xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 5b080c3aadfabef156c72cedee796d7b3bac5180)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2019 Joyent, Inc.
25# Copyright 2022 Garrett D'Amore
26# Copyright 2013 Saso Kiselkov. All rights reserved.
27# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
28# Copyright 2017 Nexenta Systems, Inc.
29# Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
30# Copyright 2019 Peter Tribble.
31# Copyright 2015, Joyent, Inc. All rights reserved.
32# Copyright 2024 Oxide Computer Company
33#
34
35include $(SRC)/uts/Makefile.uts
36
37FILEMODE=644
38
39#
40#	Note that the following headers are present in the kernel but
41#	neither installed or shipped as part of the product:
42#		cpuid_drv.h:		Private interface for cpuid consumers
43#		unix_bb_info.h:		Private interface to kcov
44#		nvme.h			Private interface to nvme
45#
46
47i386_HDRS=			\
48	asy.h			\
49	fd_debug.h		\
50	fdc.h			\
51	fdmedia.h		\
52	firmload.h		\
53	gfx_private.h		\
54	mouse.h			\
55	nvme.h
56
57sparc_HDRS=			\
58	mouse.h			\
59	scsi/targets/ssddef.h	\
60	$(MDESCHDRS)
61
62# Generated headers
63GENHDRS=			\
64	priv_const.h		\
65	priv_names.h		\
66	usb/usbdevs.h
67
68CHKHDRS=			\
69	acpi_drv.h		\
70	acct.h			\
71	acctctl.h		\
72	acl.h			\
73	acl_impl.h		\
74	aggr.h			\
75	aggr_impl.h		\
76	aio.h			\
77	aio_impl.h		\
78	aio_req.h		\
79	aiocb.h			\
80	ascii.h			\
81	asynch.h		\
82	atomic.h		\
83	attr.h			\
84	audio.h			\
85	audioio.h		\
86	autoconf.h		\
87	auxv.h			\
88	auxv_386.h		\
89	auxv_SPARC.h		\
90	avl.h			\
91	avl_impl.h		\
92	bitext.h		\
93	bitmap.h		\
94	bitset.h		\
95	bl.h			\
96	blkdev.h		\
97	bofi.h			\
98	bofi_impl.h		\
99	bpp_io.h		\
100	bootbanner.h		\
101	bootstat.h		\
102	brand.h			\
103	buf.h			\
104	bufmod.h		\
105	bustypes.h		\
106	byteorder.h		\
107	callb.h			\
108	callo.h			\
109	cap_util.h		\
110	cpucaps.h		\
111	cpucaps_impl.h		\
112	ccompile.h		\
113	cdio.h			\
114	cladm.h			\
115	class.h			\
116	clconf.h		\
117	clock_impl.h		\
118	cmlb.h			\
119	cmn_err.h		\
120	compress.h		\
121	condvar.h		\
122	condvar_impl.h		\
123	conf.h			\
124	consdev.h		\
125	console.h		\
126	consplat.h		\
127	vt.h			\
128	vtdaemon.h		\
129	kd.h			\
130	containerof.h		\
131	contract.h		\
132	contract_impl.h		\
133	copyops.h		\
134	core.h			\
135	corectl.h		\
136	cpc_impl.h		\
137	cpc_pcbe.h		\
138	cpr.h			\
139	cpu_uarray.h		\
140	cpupart.h		\
141	cpuvar.h		\
142	crc32.h			\
143	cred.h			\
144	cred_impl.h		\
145	crtctl.h		\
146	cryptmod.h		\
147	csiioctl.h		\
148	ctf.h			\
149	ctfs.h			\
150	ctfs_impl.h		\
151	ctf_api.h		\
152	ctype.h			\
153	cyclic.h		\
154	cyclic_impl.h		\
155	dacf.h			\
156	dacf_impl.h		\
157	damap.h			\
158	damap_impl.h		\
159	dc_ki.h			\
160	ddi.h			\
161	ddifm.h			\
162	ddifm_impl.h		\
163	ddi_hp.h		\
164	ddi_hp_impl.h		\
165	ddi_intr.h		\
166	ddi_intr_impl.h		\
167	ddi_impldefs.h		\
168	ddi_implfuncs.h		\
169	ddi_obsolete.h		\
170	ddi_periodic.h		\
171	ddi_ufm.h		\
172	ddi_ufm_impl.h		\
173	ddidevmap.h		\
174	ddidmareq.h		\
175	ddimapreq.h		\
176	ddipropdefs.h		\
177	dditypes.h		\
178	debug.h			\
179	des.h			\
180	devctl.h		\
181	devcache.h		\
182	devcache_impl.h		\
183	devfm.h			\
184	devid_cache.h		\
185	devinfo_impl.h		\
186	devops.h		\
187	devpolicy.h		\
188	devpoll.h		\
189	dirent.h		\
190	disp.h			\
191	dkbad.h			\
192	dkio.h			\
193	dkioc_free_util.h	\
194	dklabel.h		\
195	dl.h			\
196	dlpi.h			\
197	dld.h			\
198	dld_impl.h		\
199	dld_ioc.h		\
200	dls.h			\
201	dls_mgmt.h		\
202	dls_impl.h		\
203	dma_i8237A.h		\
204	dnlc.h			\
205	door.h			\
206	door_data.h		\
207	door_impl.h		\
208	dtrace.h		\
209	dtrace_impl.h		\
210	dumpadm.h		\
211	dumphdr.h		\
212	ecppsys.h		\
213	ecppio.h		\
214	ecppreg.h		\
215	ecppvar.h		\
216	edonr.h			\
217	efi_partition.h		\
218	elf.h			\
219	elf_386.h		\
220	elf_SPARC.h		\
221	elf_notes.h		\
222	elf_amd64.h		\
223	elftypes.h		\
224	emul64.h		\
225	emul64cmd.h		\
226	emul64var.h		\
227	epm.h			\
228	epoll.h			\
229	errno.h			\
230	errorq.h		\
231	errorq_impl.h		\
232	esunddi.h		\
233	ethernet.h		\
234	euc.h			\
235	eucioctl.h		\
236	eventfd.h		\
237	exacct.h		\
238	exacct_catalog.h	\
239	exacct_impl.h		\
240	exec.h			\
241	execx.h			\
242	exechdr.h		\
243	extdirent.h		\
244	fault.h			\
245	fasttrap.h		\
246	fasttrap_impl.h		\
247	fbio.h			\
248	fbuf.h			\
249	fcntl.h			\
250	fct.h			\
251	fct_defines.h		\
252	fctio.h			\
253	fdbuffer.h		\
254	fdio.h			\
255	fdsync.h		\
256	feature_tests.h		\
257	fem.h			\
258	file.h			\
259	filio.h			\
260	flock.h			\
261	flock_impl.h		\
262	fork.h			\
263	fss.h			\
264	fsspriocntl.h		\
265	fsid.h			\
266	fssnap.h		\
267	fssnap_if.h		\
268	fstyp.h			\
269	ftrace.h		\
270	fx.h			\
271	fxpriocntl.h		\
272	gfs.h			\
273	gld.h			\
274	gldpriv.h		\
275	group.h			\
276	hdio.h			\
277	hook.h			\
278	hook_event.h		\
279	hook_impl.h		\
280	hwconf.h		\
281	ia.h			\
282	iapriocntl.h		\
283	ibpart.h		\
284	id32.h			\
285	idmap.h			\
286	ieeefp.h		\
287	id_space.h		\
288	ilstr.h			\
289	instance.h		\
290	int_const.h		\
291	int_fmtio.h		\
292	int_limits.h		\
293	int_types.h		\
294	inttypes.h		\
295	ioccom.h		\
296	ioctl.h			\
297	ipc.h			\
298	ipc_impl.h		\
299	ipc_rctl.h		\
300	ipd.h			\
301	ipmi.h			\
302	isa_defs.h		\
303	iscsi_authclient.h	\
304	iscsi_authclientglue.h	\
305	iscsi_protocol.h	\
306	jioctl.h		\
307	kbd.h			\
308	kbdreg.h		\
309	kbio.h			\
310	kcpc.h			\
311	kdi.h			\
312	kdi_impl.h		\
313	kiconv.h		\
314	kiconv_big5_utf8.h	\
315	kiconv_cck_common.h	\
316	kiconv_cp950hkscs_utf8.h	\
317	kiconv_emea1.h		\
318	kiconv_emea2.h		\
319	kiconv_euckr_utf8.h	\
320	kiconv_euctw_utf8.h	\
321	kiconv_gb18030_utf8.h	\
322	kiconv_gb2312_utf8.h	\
323	kiconv_hkscs_utf8.h	\
324	kiconv_ja.h		\
325	kiconv_ja_jis_to_unicode.h	\
326	kiconv_ja_unicode_to_jis.h	\
327	kiconv_ko.h		\
328	kiconv_latin1.h		\
329	kiconv_sc.h		\
330	kiconv_tc.h		\
331	kiconv_uhc_utf8.h	\
332	kiconv_utf8_big5.h	\
333	kiconv_utf8_cp950hkscs.h	\
334	kiconv_utf8_euckr.h	\
335	kiconv_utf8_euctw.h	\
336	kiconv_utf8_gb18030.h	\
337	kiconv_utf8_gb2312.h	\
338	kiconv_utf8_hkscs.h	\
339	kiconv_utf8_uhc.h	\
340	kidmap.h		\
341	klpd.h			\
342	klwp.h			\
343	kmdb.h			\
344	kmem.h			\
345	kmem_impl.h		\
346	kobj.h			\
347	kobj_impl.h		\
348	ksocket.h		\
349	kstat.h			\
350	kstr.h			\
351	ksyms.h			\
352	ksynch.h		\
353	ktest.h			\
354	ktest_impl.h		\
355	ldterm.h		\
356	lgrp.h			\
357	lgrp_user.h		\
358	libc_kernel.h		\
359	limits.h		\
360	link.h			\
361	linker_set.h		\
362	list.h			\
363	list_impl.h		\
364	llc1.h			\
365	loadavg.h		\
366	lock.h			\
367	lockfs.h		\
368	lockstat.h		\
369	lofi.h			\
370	lofi_impl.h		\
371	log.h			\
372	logindmux.h		\
373	logindmux_impl.h	\
374	lwp.h			\
375	lwp_timer_impl.h	\
376	lwp_upimutex_impl.h	\
377	lpif.h			\
378	mac.h			\
379	mac_client.h		\
380	mac_client_impl.h	\
381	mac_ether.h		\
382	mac_flow.h		\
383	mac_flow_impl.h		\
384	mac_impl.h		\
385	mac_provider.h		\
386	mac_soft_ring.h		\
387	mac_stat.h		\
388	machelf.h		\
389	map.h			\
390	md4.h			\
391	md5.h			\
392	md5_consts.h		\
393	mdi_impldefs.h		\
394	mem.h			\
395	mem_config.h		\
396	memlist.h		\
397	mkdev.h			\
398	mhd.h			\
399	mii.h			\
400	miiregs.h		\
401	mixer.h			\
402	mman.h			\
403	mmapobj.h		\
404	mntent.h		\
405	mntio.h			\
406	mnttab.h		\
407	modctl.h		\
408	mode.h			\
409	model.h			\
410	modhash.h		\
411	modhash_impl.h		\
412	mount.h			\
413	mouse.h			\
414	msacct.h		\
415	msg.h			\
416	msg_impl.h		\
417	msio.h			\
418	msreg.h			\
419	mtio.h			\
420	mutex.h			\
421	nbmlock.h		\
422	ndifm.h			\
423	ndi_impldefs.h		\
424	net80211.h		\
425	net80211_amrr.h		\
426	net80211_crypto.h	\
427	net80211_ht.h		\
428	net80211_proto.h	\
429	netconfig.h		\
430	neti.h			\
431	netstack.h		\
432	nexusdefs.h		\
433	note.h			\
434	null.h			\
435	nvme.h			\
436	nvpair.h		\
437	nvpair_impl.h		\
438	objfs.h			\
439	objfs_impl.h		\
440	ontrap.h		\
441	open.h			\
442	openpromio.h		\
443	overlay.h		\
444	overlay_common.h	\
445	overlay_target.h	\
446	panic.h			\
447	param.h			\
448	pathconf.h		\
449	pathname.h		\
450	pattr.h			\
451	queue.h			\
452	serializer.h		\
453	pbio.h			\
454	pccard.h		\
455	pci.h			\
456	pcie.h			\
457	pci_impl.h		\
458	pci_tools.h		\
459	pcmcia.h		\
460	pctypes.h		\
461	pfmod.h			\
462	pg.h			\
463	pghw.h			\
464	physmem.h		\
465	pkp_hash.h		\
466	pm.h			\
467	policy.h		\
468	poll.h			\
469	poll_impl.h		\
470	pool.h			\
471	pool_impl.h		\
472	pool_pset.h		\
473	port.h			\
474	port_impl.h		\
475	port_kernel.h		\
476	portif.h		\
477	ppmio.h			\
478	pppt_ic_if.h		\
479	pppt_ioctl.h		\
480	priocntl.h		\
481	priv.h			\
482	priv_impl.h		\
483	prnio.h			\
484	proc.h			\
485	processor.h		\
486	procfs.h		\
487	procset.h		\
488	project.h		\
489	protosw.h		\
490	prsystm.h		\
491	pset.h			\
492	pshot.h			\
493	ptem.h			\
494	ptms.h			\
495	ptyvar.h		\
496	raidioctl.h		\
497	ramdisk.h		\
498	random.h		\
499	rctl.h			\
500	rctl_impl.h		\
501	rds.h			\
502	reboot.h		\
503	refstr.h		\
504	refstr_impl.h		\
505	resource.h		\
506	rlioctl.h		\
507	rt.h			\
508	rtpriocntl.h		\
509	rwlock.h		\
510	rwlock_impl.h		\
511	rwstlock.h		\
512	sad.h			\
513	schedctl.h		\
514	sdt.h			\
515	secflags.h		\
516	select.h		\
517	sem.h			\
518	sem_impl.h		\
519	sema_impl.h		\
520	semaphore.h		\
521	sendfile.h		\
522	sensors.h		\
523	ser_sync.h		\
524	session.h		\
525	sha1.h			\
526	sha1_consts.h		\
527	sha2.h			\
528	sha2_consts.h		\
529	share.h			\
530	shm.h			\
531	shm_impl.h		\
532	sid.h			\
533	siginfo.h		\
534	signal.h		\
535	signalfd.h		\
536	skein.h			\
537	sleepq.h		\
538	smbios.h		\
539	smbios_impl.h		\
540	sobject.h		\
541	socket.h		\
542	socket_impl.h		\
543	socket_proto.h		\
544	socketvar.h		\
545	sockfilter.h		\
546	sockio.h		\
547	soundcard.h		\
548	squeue.h		\
549	squeue_impl.h		\
550	srn.h			\
551	sservice.h		\
552	stat.h			\
553	statfs.h		\
554	statvfs.h		\
555	stdalign.h		\
556	stdbool.h		\
557	stddef.h		\
558	stdint.h		\
559	stermio.h		\
560	stmf.h			\
561	stmf_defines.h		\
562	stmf_ioctl.h		\
563	stmf_sbd_ioctl.h	\
564	stream.h		\
565	strft.h			\
566	strlog.h		\
567	strmdep.h		\
568	stropts.h		\
569	strredir.h		\
570	strstat.h		\
571	strsubr.h		\
572	strsun.h		\
573	strtty.h		\
574	sunddi.h		\
575	sunldi.h		\
576	sunldi_impl.h		\
577	sunmdi.h		\
578	sunndi.h		\
579	sunos_dhcp_class.h	\
580	sunpm.h			\
581	suntpi.h		\
582	suntty.h		\
583	swap.h			\
584	synch.h			\
585	sysdc.h			\
586	sysdc_impl.h		\
587	syscall.h		\
588	sysconf.h		\
589	sysconfig.h		\
590	sysevent.h		\
591	sysevent_impl.h		\
592	sysinfo.h		\
593	syslog.h		\
594	sysmacros.h		\
595	sysmsg_impl.h		\
596	systeminfo.h		\
597	systm.h			\
598	task.h			\
599	taskq.h			\
600	taskq_impl.h		\
601	t_kuser.h		\
602	t_lock.h		\
603	telioctl.h		\
604	termio.h		\
605	termios.h		\
606	termiox.h		\
607	thread.h		\
608	ticlts.h		\
609	ticots.h		\
610	ticotsord.h		\
611	tihdr.h			\
612	time.h			\
613	time_impl.h		\
614	time_std_impl.h		\
615	timeb.h			\
616	timer.h			\
617	timerfd.h		\
618	times.h			\
619	timex.h			\
620	timod.h			\
621	tirdwr.h		\
622	tiuser.h		\
623	tl.h			\
624	todio.h			\
625	tpicommon.h		\
626	ts.h			\
627	tspriocntl.h		\
628	ttcompat.h		\
629	ttold.h			\
630	tty.h			\
631	ttychars.h		\
632	ttydev.h		\
633	tuneable.h		\
634	turnstile.h		\
635	types.h			\
636	types32.h		\
637	tzfile.h		\
638	u8_textprep.h		\
639	u8_textprep_data.h	\
640	uadmin.h		\
641	ucred.h			\
642	uio.h			\
643	ulimit.h		\
644	un.h			\
645	unistd.h		\
646	user.h			\
647	ustat.h			\
648	utime.h			\
649	utsname.h		\
650	utssys.h		\
651	uuid.h			\
652	va_impl.h		\
653	va_list.h		\
654	var.h			\
655	varargs.h		\
656	vfs.h			\
657	vfs_opreg.h		\
658	vfstab.h		\
659	vgareg.h		\
660	videodev2.h		\
661	vio9p.h			\
662	visual_io.h		\
663	vlan.h			\
664	vm.h			\
665	vm_usage.h		\
666	vmem.h			\
667	vmem_impl.h		\
668	vmsystm.h		\
669	vnic.h			\
670	vnic_impl.h		\
671	vnode.h			\
672	vscan.h			\
673	vtoc.h			\
674	vtrace.h		\
675	vuid_event.h		\
676	vuid_wheel.h		\
677	vuid_queue.h		\
678	vuid_state.h		\
679	vuid_store.h		\
680	vxlan.h			\
681	wait.h			\
682	waitq.h			\
683	watchpoint.h		\
684	winlockio.h		\
685	zcons.h			\
686	zone.h			\
687	xti_inet.h		\
688	xti_osi.h		\
689	xti_xtiopt.h		\
690	zmod.h
691
692HDRS=				\
693	$(GENHDRS)		\
694	$(CHKHDRS)
695
696AUDIOHDRS=			\
697	ac97.h			\
698	audio_common.h		\
699	audio_driver.h		\
700	audio_oss.h		\
701	g711.h
702
703AVHDRS=				\
704	iec61883.h
705
706LOMHDRS=			\
707	lom_io.h		\
708	lombus.h
709
710MDESCHDRS=			\
711	mdesc.h			\
712	mdesc_impl.h
713
714CPUDRVHDRS=			\
715	cpudrv.h
716
717CRYPTOHDRS=			\
718	elfsign.h		\
719	ioctl.h			\
720	ioctladmin.h		\
721	common.h		\
722	impl.h			\
723	spi.h			\
724	api.h			\
725	ops_impl.h		\
726	sched_impl.h
727
728DCAMHDRS=			\
729	dcam1394_io.h
730
731IBHDRS=			\
732	ib_types.h	\
733	ib_pkt_hdrs.h
734
735IBTLHDRS=		\
736	ibtl_types.h	\
737	ibtl_status.h	\
738	ibti.h		\
739	ibti_cm.h	\
740	ibci.h		\
741	ibti_common.h	\
742	ibvti.h		\
743	ibtl_ci_types.h
744
745IBTLIMPLHDRS=		\
746	ibtl_util.h
747
748IBNEXHDRS=		\
749	ibnex_devctl.h
750
751IBMFHDRS=		\
752	ibmf.h		\
753	ibmf_msg.h	\
754	ibmf_saa.h	\
755	ibmf_utils.h
756
757IBMGTHDRS=		\
758	ib_dm_attr.h	\
759	ib_mad.h	\
760	sm_attr.h	\
761	sa_recs.h
762
763IBDHDRS=		\
764	ibd.h
765
766OFHDRS=			\
767	ofa_solaris.h	\
768	ofed_kernel.h
769
770RDMAHDRS=		\
771	ib_addr.h	\
772	ib_user_mad.h	\
773	ib_user_sa.h	\
774	ib_user_verbs.h \
775	ib_verbs.h	\
776	rdma_cm.h	\
777	rdma_user_cm.h
778
779SOL_UVERBSHDRS=		\
780	sol_uverbs.h	\
781	sol_uverbs2ucma.h	\
782	sol_uverbs_comp.h	\
783	sol_uverbs_hca.h	\
784	sol_uverbs_qp.h		\
785	sol_uverbs_event.h
786
787SOL_UMADHDRS=		\
788	sol_umad.h
789
790SOL_UCMAHDRS=		\
791	sol_ucma.h	\
792	sol_rdma_user_cm.h
793
794SOL_OFSHDRS=		\
795	sol_cma.h	\
796	sol_ib_cma.h	\
797	sol_ofs_common.h	\
798	sol_kverb_impl.h
799
800TAVORHDRS=		\
801	tavor_ioctl.h
802
803HERMONHDRS=		\
804	hermon_ioctl.h
805
806MLNXHDRS=		\
807	mlnx_umap.h
808
809IDMHDRS=		\
810	idm.h		\
811	idm_impl.h	\
812	idm_so.h	\
813	idm_text.h	\
814	idm_transport.h	\
815	idm_conn_sm.h
816
817ISCSITHDRS=		\
818	radius_packet.h		\
819	radius_protocol.h	\
820	chap.h			\
821	isns_protocol.h		\
822	iscsi_if.h		\
823	iscsit_common.h
824
825ISOHDRS=			\
826	signal_iso.h
827
828FMHDRS=				\
829	protocol.h		\
830	util.h
831
832FMFSHDRS=			\
833	zfs.h
834
835FMIOHDRS=			\
836	ddi.h			\
837	disk.h			\
838	pci.h			\
839	scsi.h			\
840	sun4upci.h		\
841	opl_mc_fm.h
842
843FSHDRS=				\
844	autofs.h		\
845	decomp.h		\
846	dv_node.h		\
847	sdev_impl.h		\
848	sdev_plugin.h		\
849	fifonode.h		\
850	hsfs_isospec.h		\
851	hsfs_node.h		\
852	hsfs_rrip.h		\
853	hsfs_spec.h		\
854	hsfs_susp.h		\
855	lofs_info.h		\
856	lofs_node.h		\
857	mntdata.h		\
858	namenode.h		\
859	pc_dir.h		\
860	pc_fs.h			\
861	pc_label.h		\
862	pc_node.h		\
863	pxfs_ki.h		\
864	snode.h			\
865	swapnode.h		\
866	tmp.h			\
867	tmpnode.h		\
868	udf_inode.h		\
869	udf_volume.h		\
870	ufs_acl.h		\
871	ufs_bio.h		\
872	ufs_filio.h		\
873	ufs_fs.h		\
874	ufs_fsdir.h		\
875	ufs_inode.h		\
876	ufs_lockfs.h		\
877	ufs_log.h		\
878	ufs_mount.h		\
879	ufs_panic.h		\
880	ufs_prot.h		\
881	ufs_quota.h		\
882	ufs_snap.h              \
883	ufs_trans.h		\
884	zfs.h			\
885	zut.h
886
887NVMEHDRS=		\
888	discovery.h		\
889	kioxia.h		\
890	kioxia_cd8.h		\
891	micron.h		\
892	micron_7300.h		\
893	micron_74x0.h		\
894	micron_x500.h		\
895	ocp.h			\
896	solidigm.h		\
897	solidigm_p5xxx.h	\
898	solidigm_ps10x0.h	\
899	wdc.h			\
900	wdc_sn840.h		\
901	wdc_sn65x.h
902
903SCSIHDRS=		\
904	scsi.h		\
905	scsi_address.h	\
906	scsi_ctl.h	\
907	scsi_fm.h	\
908	scsi_names.h	\
909	scsi_params.h	\
910	scsi_pkt.h	\
911	scsi_resource.h	\
912	scsi_types.h	\
913	scsi_watch.h
914
915SCSICONFHDRS=		\
916	autoconf.h	\
917	device.h
918
919SCSIGENHDRS=		\
920	commands.h	\
921	dad_mode.h	\
922	inquiry.h	\
923	message.h	\
924	mode.h		\
925	persist.h	\
926	sense.h		\
927	sff_frames.h	\
928	smp_frames.h	\
929	status.h
930
931SCSIIMPLHDRS=		\
932	commands.h	\
933	inquiry.h	\
934	mode.h		\
935	scsi_reset_notify.h \
936	scsi_sas.h	\
937	sense.h		\
938	services.h	\
939	smp_transport.h	\
940	spc3_types.h	\
941	status.h	\
942	transport.h	\
943	types.h		\
944	uscsi.h		\
945	usmp.h
946
947SCSITARGETSHDRS=	\
948	ses.h		\
949	sesio.h		\
950	sgendef.h	\
951	stdef.h		\
952	sddef.h		\
953	smp.h
954
955SCSIADHDRS=
956
957SCSICADHDRS=
958
959SCSIISCSIHDRS=		\
960	iscsi_door.h	\
961	iscsi_if.h
962
963SCSIVHCIHDRS=		\
964	scsi_vhci.h	\
965	mpapi_impl.h	\
966	mpapi_scsi_vhci.h
967
968SDCARDHDRS=		\
969	sda.h		\
970	sda_impl.h	\
971	sda_ioctl.h
972
973FC4HDRS=			\
974	fc_transport.h	\
975	linkapp.h	\
976	fc.h		\
977	fcp.h		\
978	fcal_transport.h \
979	fcal.h		\
980	fcal_linkapp.h	\
981	fcio.h
982
983FCHDRS=			\
984	fc.h		\
985	fcio.h		\
986	fc_types.h	\
987	fc_appif.h
988
989FCIMPLHDRS=		\
990	fc_error.h	\
991	fcph.h
992
993FCULPHDRS=		\
994	fcp_util.h	\
995	fcsm.h
996
997SATAGENHDRS=		\
998	sata_hba.h	\
999	sata_defs.h	\
1000	sata_cfgadm.h
1001
1002SYSEVENTHDRS=		\
1003	datalink.h	\
1004	dev.h		\
1005	domain.h        \
1006	dr.h            \
1007	env.h           \
1008	eventdefs.h	\
1009	ipmp.h		\
1010	pwrctl.h	\
1011	vrrp.h
1012
1013CONTRACTHDRS=		\
1014	process.h	\
1015	process_impl.h	\
1016	device.h	\
1017	device_impl.h
1018
1019USBHDRS=	\
1020	usba.h	\
1021	usbai.h
1022
1023USBAUDHDRS=           \
1024	usb_audio.h
1025
1026USBHUBDHDRS=		\
1027	hub.h		\
1028	hubd_impl.h
1029
1030USBHIDHDRS=		\
1031	hid.h
1032
1033USBMSHDRS=		\
1034	usb_bulkonly.h	\
1035	usb_cbi.h
1036
1037USBPRNHDRS=           \
1038	usb_printer.h
1039
1040USBCDCHDRS=		\
1041	usb_cdc.h
1042
1043USBVIDHDRS=           \
1044	usbvc.h
1045
1046USBWCMHDRS=		\
1047	usbwcm.h
1048
1049UGENHDRS=           \
1050	usb_ugen.h
1051
1052USBCCIDHDRS = \
1053	ccid.h \
1054	uccid.h
1055
1056HOTPLUGHDRS=	\
1057	hpcsvc.h	\
1058	hpctrl.h
1059
1060HOTPLUGPCIHDRS=	\
1061	pcicfg.h	\
1062	pcihp.h
1063
1064RSMHDRS= \
1065	rsm.h	\
1066	rsm_common.h	\
1067	rsmapi_common.h \
1068	rsmpi.h	\
1069	rsmpi_driver.h	\
1070	rsmka_path_int.h
1071
1072TSOLHDRS=		\
1073	label.h		\
1074	label_macro.h	\
1075	priv.h		\
1076	tndb.h		\
1077	tsyscall.h
1078
1079I1394HDRS=		\
1080	cmd1394.h	\
1081	id1394.h	\
1082	ieee1212.h	\
1083	ieee1394.h	\
1084	ixl1394.h	\
1085	s1394_impl.h	\
1086	t1394.h
1087
1088# "cmdk" headers used on sparc
1089SDKTPHDRS=		\
1090	dadkio.h	\
1091	fdisk.h
1092
1093# "cmdk" headers used on i386
1094DKTPHDRS=		\
1095	altsctr.h	\
1096	bbh.h		\
1097	cm.h		\
1098	cmdev.h		\
1099	cmdk.h		\
1100	cmpkt.h		\
1101	controller.h	\
1102	dadev.h		\
1103	dadk.h		\
1104	dadkio.h	\
1105	fctypes.h	\
1106	fdisk.h		\
1107	flowctrl.h	\
1108	gda.h		\
1109	quetypes.h	\
1110	queue.h		\
1111	tgcom.h		\
1112	tgdk.h
1113
1114# "pc" header files used on i386
1115PCHDRS=			\
1116	avintr.h	\
1117	dma_engine.h	\
1118	i8272A.h	\
1119	pcic_reg.h	\
1120	pcic_var.h	\
1121	pic.h		\
1122	pit.h		\
1123	rtc.h
1124
1125NXGEHDRS=			\
1126	nxge.h			\
1127	nxge_common.h		\
1128	nxge_common_impl.h	\
1129	nxge_defs.h		\
1130	nxge_hw.h		\
1131	nxge_impl.h		\
1132	nxge_ipp.h		\
1133	nxge_ipp_hw.h		\
1134	nxge_mac.h		\
1135	nxge_mac_hw.h		\
1136	nxge_fflp.h		\
1137	nxge_fflp_hw.h		\
1138	nxge_mii.h		\
1139	nxge_rxdma.h		\
1140	nxge_rxdma_hw.h		\
1141	nxge_txc.h		\
1142	nxge_txc_hw.h		\
1143	nxge_txdma.h		\
1144	nxge_txdma_hw.h		\
1145	nxge_virtual.h		\
1146	nxge_espc.h
1147
1148PLATHDRS=		\
1149	pci_prd.h
1150
1151include Makefile.syshdrs
1152
1153dcam/%.check:	dcam/%.h
1154	$(DOT_H_CHECK)
1155
1156CHECKHDRS=						\
1157	$($(MACH)_HDRS:%.h=%.check)			\
1158	$(AUDIOHDRS:%.h=audio/%.check)			\
1159	$(AVHDRS:%.h=av/%.check)			\
1160	$(LOMHDRS:%.h=%.check)				\
1161	$(CHKHDRS:%.h=%.check)				\
1162	$(CPUDRVHDRS:%.h=%.check)			\
1163	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1164	$(DCAMHDRS:%.h=dcam/%.check)			\
1165	$(FC4HDRS:%.h=fc4/%.check)			\
1166	$(FCHDRS:%.h=fibre-channel/%.check)		\
1167	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1168	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1169	$(IBHDRS:%.h=ib/%.check)			\
1170	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1171	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1172	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1173	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1174	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1175	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1176	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1177	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1178	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1179	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1180	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1181	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1182	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1183	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1184	$(IDMHDRS:%.h=idm/%.check)			\
1185	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1186	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1187	$(ISOHDRS:%.h=iso/%.check)			\
1188	$(FMHDRS:%.h=fm/%.check)			\
1189	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1190	$(FMIOHDRS:%.h=fm/io/%.check)			\
1191	$(FSHDRS:%.h=fs/%.check)			\
1192	$(NVMEHDRS:%.h=nvme/%.check)			\
1193	$(SCSIHDRS:%.h=scsi/%.check)			\
1194	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1195	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1196	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1197	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1198	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1199	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1200	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1201	$(SATAGENHDRS:%.h=sata/%.check)			\
1202	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1203	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1204	$(CONTRACTHDRS:%.h=contract/%.check)            \
1205	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1206	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1207	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1208	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1209	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1210	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1211	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1212	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1213	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1214	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1215	$(USBHDRS:%.h=usb/%.check)                      \
1216	$(I1394HDRS:%.h=1394/%.check)			\
1217	$(RSMHDRS:%.h=rsm/%.check)			\
1218	$(TSOLHDRS:%.h=tsol/%.check)			\
1219	$(NXGEHDRS:%.h=nxge/%.check)			\
1220	$(PLATHDRS:%.h=plat/%.check)
1221
1222
1223.KEEP_STATE:
1224
1225.PARALLEL:			\
1226	$(CHECKHDRS)		\
1227	$(ROOTHDRS)		\
1228	$(ROOTAUDHDRS)		\
1229	$(ROOTAVHDRS)		\
1230	$(ROOTCRYPTOHDRS)	\
1231	$(ROOTDCAMHDRS)		\
1232	$(ROOTDKTPHDRS)		\
1233	$(ROOTISOHDRS)		\
1234	$(ROOTIDMHDRS)		\
1235	$(ROOTISCSIHDRS)	\
1236	$(ROOTISCSITHDRS)	\
1237	$(ROOTFC4HDRS)		\
1238	$(ROOTFCHDRS)		\
1239	$(ROOTFCIMPLHDRS)	\
1240	$(ROOTFCULPHDRS)	\
1241	$(ROOTFMHDRS)		\
1242	$(ROOTFMIOHDRS)		\
1243	$(ROOTFMFSHDRS)		\
1244	$(ROOTFSHDRS)		\
1245	$(ROOTIBDHDRS)		\
1246	$(ROOTIBHDRS)		\
1247	$(ROOTIBTLHDRS)		\
1248	$(ROOTIBTLIMPLHDRS)	\
1249	$(ROOTIBNEXHDRS)	\
1250	$(ROOTIBMGTHDRS)	\
1251	$(ROOTIBMFHDRS)		\
1252	$(ROOTNVMEHDRS)		\
1253	$(ROOTOFHDRS)		\
1254	$(ROOTRDMAHDRS)		\
1255	$(ROOTSATAGENHDRS)	\
1256	$(ROOTSOL_OFSHDRS)	\
1257	$(ROOTSOL_UMADHDRS)	\
1258	$(ROOTSOL_UVERBSHDRS)	\
1259	$(ROOTSOL_UCMAHDRS)	\
1260	$(ROOTTAVORHDRS)	\
1261	$(ROOTHERMONHDRS)	\
1262	$(ROOTMLNXHDRS)		\
1263	$(ROOTPLATHDRS)		\
1264	$(ROOTSCSIHDRS)		\
1265	$(ROOTSCSIADHDRS)	\
1266	$(ROOTSCSICONFHDRS)	\
1267	$(ROOTSCSIISCSIHDRS)	\
1268	$(ROOTSCSIGENHDRS)	\
1269	$(ROOTSCSIIMPLHDRS)	\
1270	$(ROOTSCSIVHCIHDRS)	\
1271	$(ROOTSCSITARGETSHDRS)	\
1272	$(ROOTSDCARDHDRS)	\
1273	$(ROOTSYSEVENTHDRS)     \
1274	$(ROOTCONTRACTHDRS)     \
1275	$(ROOTUSBHDRS)		\
1276	$(ROOTUWBHDRS)		\
1277	$(ROOTUWBAHDRS)		\
1278	$(ROOTUSBAUDHDRS)	\
1279	$(ROOTUSBHUBDHDRS)	\
1280	$(ROOTUSBHIDHDRS)	\
1281	$(ROOTUSBHRCHDRS)	\
1282	$(ROOTUSBMSHDRS)	\
1283	$(ROOTUSBPRNHDRS)       \
1284	$(ROOTUSBCDCHDRS)       \
1285	$(ROOTUSBVIDHDRS)       \
1286	$(ROOTUSBWCMHDRS)	\
1287	$(ROOTUSBCCIDHDRS)	\
1288	$(ROOTUGENHDRS)		\
1289	$(ROOT1394HDRS)         \
1290	$(ROOTHOTPLUGHDRS)	\
1291	$(ROOTHOTPLUGPCIHDRS)	\
1292	$(ROOTRSMHDRS)		\
1293	$(ROOTTSOLHDRS)		\
1294	$($(MACH)_ROOTHDRS)
1295
1296
1297install_h:			\
1298	$(ROOTDIRS)		\
1299	.WAIT			\
1300	$(ROOTHDRS)		\
1301	$(ROOTAUDHDRS)		\
1302	$(ROOTAVHDRS)		\
1303	$(ROOTCRYPTOHDRS)	\
1304	$(ROOTDCAMHDRS)		\
1305	$(ROOTDKTPHDRS)		\
1306	$(ROOTISOHDRS)		\
1307	$(ROOTIDMHDRS)		\
1308	$(ROOTISCSIHDRS)	\
1309	$(ROOTISCSITHDRS)	\
1310	$(ROOTFC4HDRS)		\
1311	$(ROOTFCHDRS)		\
1312	$(ROOTFCIMPLHDRS)	\
1313	$(ROOTFCULPHDRS)	\
1314	$(ROOTFMHDRS)		\
1315	$(ROOTFMFSHDRS)		\
1316	$(ROOTFMIOHDRS)		\
1317	$(ROOTFSHDRS)		\
1318	$(ROOTIBDHDRS)		\
1319	$(ROOTIBHDRS)		\
1320	$(ROOTIBTLHDRS)		\
1321	$(ROOTIBTLIMPLHDRS)	\
1322	$(ROOTIBNEXHDRS)	\
1323	$(ROOTIBMGTHDRS)	\
1324	$(ROOTIBMFHDRS)		\
1325	$(ROOTNVMEHDRS)		\
1326	$(ROOTOFHDRS)		\
1327	$(ROOTRDMAHDRS)		\
1328	$(ROOTSATAGENHDRS)	\
1329	$(ROOTSOL_OFSHDRS)	\
1330	$(ROOTSOL_UMADHDRS)	\
1331	$(ROOTSOL_UVERBSHDRS)	\
1332	$(ROOTSOL_UCMAHDRS)	\
1333	$(ROOTTAVORHDRS)	\
1334	$(ROOTHERMONHDRS)	\
1335	$(ROOTMLNXHDRS)		\
1336	$(ROOTPLATHDRS)		\
1337	$(ROOTSCSIHDRS)		\
1338	$(ROOTSCSIADHDRS)	\
1339	$(ROOTSCSIISCSIHDRS)	\
1340	$(ROOTSCSICONFHDRS)	\
1341	$(ROOTSCSIGENHDRS)	\
1342	$(ROOTSCSIIMPLHDRS)	\
1343	$(ROOTSCSIVHCIHDRS)     \
1344	$(ROOTSCSITARGETSHDRS)	\
1345	$(ROOTSDCARDHDRS)	\
1346	$(ROOTSYSEVENTHDRS)     \
1347	$(ROOTCONTRACTHDRS)     \
1348	$(ROOTUWBHDRS)		\
1349	$(ROOTUWBAHDRS)		\
1350	$(ROOTUSBHDRS)		\
1351	$(ROOTUSBCCIDHDRS)	\
1352	$(ROOTUSBAUDHDRS)	\
1353	$(ROOTUSBHUBDHDRS)	\
1354	$(ROOTUSBHIDHDRS)	\
1355	$(ROOTUSBHRCHDRS)	\
1356	$(ROOTUSBMSHDRS)	\
1357	$(ROOTUSBPRNHDRS)       \
1358	$(ROOTUSBCDCHDRS)       \
1359	$(ROOTUSBVIDHDRS)       \
1360	$(ROOTUSBWCMHDRS)	\
1361	$(ROOTUGENHDRS)		\
1362	$(ROOT1394HDRS)         \
1363	$(ROOTHOTPLUGHDRS)	\
1364	$(ROOTHOTPLUGPCIHDRS)	\
1365	$(ROOTRSMHDRS)		\
1366	$(ROOTTSOLHDRS)		\
1367	$($(MACH)_ROOTHDRS)
1368
1369all_h: $(GENHDRS)
1370
1371priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1372	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1373
1374priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1375	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1376
1377usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1378	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1379
1380clean:
1381	$(RM) $(GENHDRS)
1382
1383clobber: clean
1384
1385check:	$(CHECKHDRS)
1386
1387FRC:
1388