xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 02ac56e010f18fc0c5aafe47377586d8ba8c897c)
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	feature_tests.h		\
256	fem.h			\
257	file.h			\
258	filio.h			\
259	flock.h			\
260	flock_impl.h		\
261	fork.h			\
262	fss.h			\
263	fsspriocntl.h		\
264	fsid.h			\
265	fssnap.h		\
266	fssnap_if.h		\
267	fstyp.h			\
268	ftrace.h		\
269	fx.h			\
270	fxpriocntl.h		\
271	gfs.h			\
272	gld.h			\
273	gldpriv.h		\
274	group.h			\
275	hdio.h			\
276	hook.h			\
277	hook_event.h		\
278	hook_impl.h		\
279	hwconf.h		\
280	ia.h			\
281	iapriocntl.h		\
282	ibpart.h		\
283	id32.h			\
284	idmap.h			\
285	ieeefp.h		\
286	id_space.h		\
287	ilstr.h			\
288	instance.h		\
289	int_const.h		\
290	int_fmtio.h		\
291	int_limits.h		\
292	int_types.h		\
293	inttypes.h		\
294	ioccom.h		\
295	ioctl.h			\
296	ipc.h			\
297	ipc_impl.h		\
298	ipc_rctl.h		\
299	ipd.h			\
300	ipmi.h			\
301	isa_defs.h		\
302	iscsi_authclient.h	\
303	iscsi_authclientglue.h	\
304	iscsi_protocol.h	\
305	jioctl.h		\
306	kbd.h			\
307	kbdreg.h		\
308	kbio.h			\
309	kcpc.h			\
310	kdi.h			\
311	kdi_impl.h		\
312	kiconv.h		\
313	kiconv_big5_utf8.h	\
314	kiconv_cck_common.h	\
315	kiconv_cp950hkscs_utf8.h	\
316	kiconv_emea1.h		\
317	kiconv_emea2.h		\
318	kiconv_euckr_utf8.h	\
319	kiconv_euctw_utf8.h	\
320	kiconv_gb18030_utf8.h	\
321	kiconv_gb2312_utf8.h	\
322	kiconv_hkscs_utf8.h	\
323	kiconv_ja.h		\
324	kiconv_ja_jis_to_unicode.h	\
325	kiconv_ja_unicode_to_jis.h	\
326	kiconv_ko.h		\
327	kiconv_latin1.h		\
328	kiconv_sc.h		\
329	kiconv_tc.h		\
330	kiconv_uhc_utf8.h	\
331	kiconv_utf8_big5.h	\
332	kiconv_utf8_cp950hkscs.h	\
333	kiconv_utf8_euckr.h	\
334	kiconv_utf8_euctw.h	\
335	kiconv_utf8_gb18030.h	\
336	kiconv_utf8_gb2312.h	\
337	kiconv_utf8_hkscs.h	\
338	kiconv_utf8_uhc.h	\
339	kidmap.h		\
340	klpd.h			\
341	klwp.h			\
342	kmdb.h			\
343	kmem.h			\
344	kmem_impl.h		\
345	kobj.h			\
346	kobj_impl.h		\
347	ksocket.h		\
348	kstat.h			\
349	kstr.h			\
350	ksyms.h			\
351	ksynch.h		\
352	ldterm.h		\
353	lgrp.h			\
354	lgrp_user.h		\
355	libc_kernel.h		\
356	limits.h		\
357	link.h			\
358	linker_set.h		\
359	list.h			\
360	list_impl.h		\
361	llc1.h			\
362	loadavg.h		\
363	lock.h			\
364	lockfs.h		\
365	lockstat.h		\
366	lofi.h			\
367	lofi_impl.h		\
368	log.h			\
369	logindmux.h		\
370	logindmux_impl.h	\
371	lwp.h			\
372	lwp_timer_impl.h	\
373	lwp_upimutex_impl.h	\
374	lpif.h			\
375	mac.h			\
376	mac_client.h		\
377	mac_client_impl.h	\
378	mac_ether.h		\
379	mac_flow.h		\
380	mac_flow_impl.h		\
381	mac_impl.h		\
382	mac_provider.h		\
383	mac_soft_ring.h		\
384	mac_stat.h		\
385	machelf.h		\
386	map.h			\
387	md4.h			\
388	md5.h			\
389	md5_consts.h		\
390	mdi_impldefs.h		\
391	mem.h			\
392	mem_config.h		\
393	memlist.h		\
394	mkdev.h			\
395	mhd.h			\
396	mii.h			\
397	miiregs.h		\
398	mixer.h			\
399	mman.h			\
400	mmapobj.h		\
401	mntent.h		\
402	mntio.h			\
403	mnttab.h		\
404	modctl.h		\
405	mode.h			\
406	model.h			\
407	modhash.h		\
408	modhash_impl.h		\
409	mount.h			\
410	mouse.h			\
411	msacct.h		\
412	msg.h			\
413	msg_impl.h		\
414	msio.h			\
415	msreg.h			\
416	mtio.h			\
417	mutex.h			\
418	nbmlock.h		\
419	ndifm.h			\
420	ndi_impldefs.h		\
421	net80211.h		\
422	net80211_amrr.h		\
423	net80211_crypto.h	\
424	net80211_ht.h		\
425	net80211_proto.h	\
426	netconfig.h		\
427	neti.h			\
428	netstack.h		\
429	nexusdefs.h		\
430	note.h			\
431	null.h			\
432	nvme.h			\
433	nvpair.h		\
434	nvpair_impl.h		\
435	objfs.h			\
436	objfs_impl.h		\
437	ontrap.h		\
438	open.h			\
439	openpromio.h		\
440	overlay.h		\
441	overlay_common.h	\
442	overlay_target.h	\
443	panic.h			\
444	param.h			\
445	pathconf.h		\
446	pathname.h		\
447	pattr.h			\
448	queue.h			\
449	serializer.h		\
450	pbio.h			\
451	pccard.h		\
452	pci.h			\
453	pcie.h			\
454	pci_impl.h		\
455	pci_tools.h		\
456	pcmcia.h		\
457	pctypes.h		\
458	pfmod.h			\
459	pg.h			\
460	pghw.h			\
461	physmem.h		\
462	pkp_hash.h		\
463	pm.h			\
464	policy.h		\
465	poll.h			\
466	poll_impl.h		\
467	pool.h			\
468	pool_impl.h		\
469	pool_pset.h		\
470	port.h			\
471	port_impl.h		\
472	port_kernel.h		\
473	portif.h		\
474	ppmio.h			\
475	pppt_ic_if.h		\
476	pppt_ioctl.h		\
477	priocntl.h		\
478	priv.h			\
479	priv_impl.h		\
480	prnio.h			\
481	proc.h			\
482	processor.h		\
483	procfs.h		\
484	procset.h		\
485	project.h		\
486	protosw.h		\
487	prsystm.h		\
488	pset.h			\
489	pshot.h			\
490	ptem.h			\
491	ptms.h			\
492	ptyvar.h		\
493	raidioctl.h		\
494	ramdisk.h		\
495	random.h		\
496	rctl.h			\
497	rctl_impl.h		\
498	rds.h			\
499	reboot.h		\
500	refstr.h		\
501	refstr_impl.h		\
502	resource.h		\
503	rlioctl.h		\
504	rt.h			\
505	rtpriocntl.h		\
506	rwlock.h		\
507	rwlock_impl.h		\
508	rwstlock.h		\
509	sad.h			\
510	schedctl.h		\
511	sdt.h			\
512	secflags.h		\
513	select.h		\
514	sem.h			\
515	sem_impl.h		\
516	sema_impl.h		\
517	semaphore.h		\
518	sendfile.h		\
519	sensors.h		\
520	ser_sync.h		\
521	session.h		\
522	sha1.h			\
523	sha1_consts.h		\
524	sha2.h			\
525	sha2_consts.h		\
526	share.h			\
527	shm.h			\
528	shm_impl.h		\
529	sid.h			\
530	siginfo.h		\
531	signal.h		\
532	signalfd.h		\
533	skein.h			\
534	sleepq.h		\
535	smbios.h		\
536	smbios_impl.h		\
537	sobject.h		\
538	socket.h		\
539	socket_impl.h		\
540	socket_proto.h		\
541	socketvar.h		\
542	sockfilter.h		\
543	sockio.h		\
544	soundcard.h		\
545	squeue.h		\
546	squeue_impl.h		\
547	srn.h			\
548	sservice.h		\
549	stat.h			\
550	statfs.h		\
551	statvfs.h		\
552	stdalign.h		\
553	stdbool.h		\
554	stddef.h		\
555	stdint.h		\
556	stermio.h		\
557	stmf.h			\
558	stmf_defines.h		\
559	stmf_ioctl.h		\
560	stmf_sbd_ioctl.h	\
561	stream.h		\
562	strft.h			\
563	strlog.h		\
564	strmdep.h		\
565	stropts.h		\
566	strredir.h		\
567	strstat.h		\
568	strsubr.h		\
569	strsun.h		\
570	strtty.h		\
571	sunddi.h		\
572	sunldi.h		\
573	sunldi_impl.h		\
574	sunmdi.h		\
575	sunndi.h		\
576	sunos_dhcp_class.h	\
577	sunpm.h			\
578	suntpi.h		\
579	suntty.h		\
580	swap.h			\
581	synch.h			\
582	sysdc.h			\
583	sysdc_impl.h		\
584	syscall.h		\
585	sysconf.h		\
586	sysconfig.h		\
587	sysevent.h		\
588	sysevent_impl.h		\
589	sysinfo.h		\
590	syslog.h		\
591	sysmacros.h		\
592	sysmsg_impl.h		\
593	systeminfo.h		\
594	systm.h			\
595	task.h			\
596	taskq.h			\
597	taskq_impl.h		\
598	t_kuser.h		\
599	t_lock.h		\
600	telioctl.h		\
601	termio.h		\
602	termios.h		\
603	termiox.h		\
604	thread.h		\
605	ticlts.h		\
606	ticots.h		\
607	ticotsord.h		\
608	tihdr.h			\
609	time.h			\
610	time_impl.h		\
611	time_std_impl.h		\
612	timeb.h			\
613	timer.h			\
614	timerfd.h		\
615	times.h			\
616	timex.h			\
617	timod.h			\
618	tirdwr.h		\
619	tiuser.h		\
620	tl.h			\
621	todio.h			\
622	tpicommon.h		\
623	ts.h			\
624	tspriocntl.h		\
625	ttcompat.h		\
626	ttold.h			\
627	tty.h			\
628	ttychars.h		\
629	ttydev.h		\
630	tuneable.h		\
631	turnstile.h		\
632	types.h			\
633	types32.h		\
634	tzfile.h		\
635	u8_textprep.h		\
636	u8_textprep_data.h	\
637	uadmin.h		\
638	ucred.h			\
639	uio.h			\
640	ulimit.h		\
641	un.h			\
642	unistd.h		\
643	user.h			\
644	ustat.h			\
645	utime.h			\
646	utsname.h		\
647	utssys.h		\
648	uuid.h			\
649	va_impl.h		\
650	va_list.h		\
651	var.h			\
652	varargs.h		\
653	vfs.h			\
654	vfs_opreg.h		\
655	vfstab.h		\
656	vgareg.h		\
657	videodev2.h		\
658	vio9p.h			\
659	visual_io.h		\
660	vlan.h			\
661	vm.h			\
662	vm_usage.h		\
663	vmem.h			\
664	vmem_impl.h		\
665	vmsystm.h		\
666	vnic.h			\
667	vnic_impl.h		\
668	vnode.h			\
669	vscan.h			\
670	vtoc.h			\
671	vtrace.h		\
672	vuid_event.h		\
673	vuid_wheel.h		\
674	vuid_queue.h		\
675	vuid_state.h		\
676	vuid_store.h		\
677	vxlan.h			\
678	wait.h			\
679	waitq.h			\
680	watchpoint.h		\
681	winlockio.h		\
682	zcons.h			\
683	zone.h			\
684	xti_inet.h		\
685	xti_osi.h		\
686	xti_xtiopt.h		\
687	zmod.h
688
689HDRS=				\
690	$(GENHDRS)		\
691	$(CHKHDRS)
692
693AUDIOHDRS=			\
694	ac97.h			\
695	audio_common.h		\
696	audio_driver.h		\
697	audio_oss.h		\
698	g711.h
699
700AVHDRS=				\
701	iec61883.h
702
703LOMHDRS=			\
704	lom_io.h		\
705	lombus.h
706
707MDESCHDRS=			\
708	mdesc.h			\
709	mdesc_impl.h
710
711CPUDRVHDRS=			\
712	cpudrv.h
713
714CRYPTOHDRS=			\
715	elfsign.h		\
716	ioctl.h			\
717	ioctladmin.h		\
718	common.h		\
719	impl.h			\
720	spi.h			\
721	api.h			\
722	ops_impl.h		\
723	sched_impl.h
724
725DCAMHDRS=			\
726	dcam1394_io.h
727
728IBHDRS=			\
729	ib_types.h	\
730	ib_pkt_hdrs.h
731
732IBTLHDRS=		\
733	ibtl_types.h	\
734	ibtl_status.h	\
735	ibti.h		\
736	ibti_cm.h	\
737	ibci.h		\
738	ibti_common.h	\
739	ibvti.h		\
740	ibtl_ci_types.h
741
742IBTLIMPLHDRS=		\
743	ibtl_util.h
744
745IBNEXHDRS=		\
746	ibnex_devctl.h
747
748IBMFHDRS=		\
749	ibmf.h		\
750	ibmf_msg.h	\
751	ibmf_saa.h	\
752	ibmf_utils.h
753
754IBMGTHDRS=		\
755	ib_dm_attr.h	\
756	ib_mad.h	\
757	sm_attr.h	\
758	sa_recs.h
759
760IBDHDRS=		\
761	ibd.h
762
763OFHDRS=			\
764	ofa_solaris.h	\
765	ofed_kernel.h
766
767RDMAHDRS=		\
768	ib_addr.h	\
769	ib_user_mad.h	\
770	ib_user_sa.h	\
771	ib_user_verbs.h \
772	ib_verbs.h	\
773	rdma_cm.h	\
774	rdma_user_cm.h
775
776SOL_UVERBSHDRS=		\
777	sol_uverbs.h	\
778	sol_uverbs2ucma.h	\
779	sol_uverbs_comp.h	\
780	sol_uverbs_hca.h	\
781	sol_uverbs_qp.h		\
782	sol_uverbs_event.h
783
784SOL_UMADHDRS=		\
785	sol_umad.h
786
787SOL_UCMAHDRS=		\
788	sol_ucma.h	\
789	sol_rdma_user_cm.h
790
791SOL_OFSHDRS=		\
792	sol_cma.h	\
793	sol_ib_cma.h	\
794	sol_ofs_common.h	\
795	sol_kverb_impl.h
796
797TAVORHDRS=		\
798	tavor_ioctl.h
799
800HERMONHDRS=		\
801	hermon_ioctl.h
802
803MLNXHDRS=		\
804	mlnx_umap.h
805
806IDMHDRS=		\
807	idm.h		\
808	idm_impl.h	\
809	idm_so.h	\
810	idm_text.h	\
811	idm_transport.h	\
812	idm_conn_sm.h
813
814ISCSITHDRS=		\
815	radius_packet.h		\
816	radius_protocol.h	\
817	chap.h			\
818	isns_protocol.h		\
819	iscsi_if.h		\
820	iscsit_common.h
821
822ISOHDRS=			\
823	signal_iso.h
824
825FMHDRS=				\
826	protocol.h		\
827	util.h
828
829FMFSHDRS=			\
830	zfs.h
831
832FMIOHDRS=			\
833	ddi.h			\
834	disk.h			\
835	pci.h			\
836	scsi.h			\
837	sun4upci.h		\
838	opl_mc_fm.h
839
840FSHDRS=				\
841	autofs.h		\
842	decomp.h		\
843	dv_node.h		\
844	sdev_impl.h		\
845	sdev_plugin.h		\
846	fifonode.h		\
847	hsfs_isospec.h		\
848	hsfs_node.h		\
849	hsfs_rrip.h		\
850	hsfs_spec.h		\
851	hsfs_susp.h		\
852	lofs_info.h		\
853	lofs_node.h		\
854	mntdata.h		\
855	namenode.h		\
856	pc_dir.h		\
857	pc_fs.h			\
858	pc_label.h		\
859	pc_node.h		\
860	pxfs_ki.h		\
861	snode.h			\
862	swapnode.h		\
863	tmp.h			\
864	tmpnode.h		\
865	udf_inode.h		\
866	udf_volume.h		\
867	ufs_acl.h		\
868	ufs_bio.h		\
869	ufs_filio.h		\
870	ufs_fs.h		\
871	ufs_fsdir.h		\
872	ufs_inode.h		\
873	ufs_lockfs.h		\
874	ufs_log.h		\
875	ufs_mount.h		\
876	ufs_panic.h		\
877	ufs_prot.h		\
878	ufs_quota.h		\
879	ufs_snap.h              \
880	ufs_trans.h		\
881	zfs.h			\
882	zut.h
883
884NVMEHDRS=		\
885	discovery.h	\
886	micron.h	\
887	micron_7300.h	\
888	micron_74x0.h	\
889	micron_x500.h	\
890	ocp.h		\
891	wdc.h		\
892	wdc_sn840.h	\
893	wdc_sn65x.h
894
895SCSIHDRS=		\
896	scsi.h		\
897	scsi_address.h	\
898	scsi_ctl.h	\
899	scsi_fm.h	\
900	scsi_names.h	\
901	scsi_params.h	\
902	scsi_pkt.h	\
903	scsi_resource.h	\
904	scsi_types.h	\
905	scsi_watch.h
906
907SCSICONFHDRS=		\
908	autoconf.h	\
909	device.h
910
911SCSIGENHDRS=		\
912	commands.h	\
913	dad_mode.h	\
914	inquiry.h	\
915	message.h	\
916	mode.h		\
917	persist.h	\
918	sense.h		\
919	sff_frames.h	\
920	smp_frames.h	\
921	status.h
922
923SCSIIMPLHDRS=		\
924	commands.h	\
925	inquiry.h	\
926	mode.h		\
927	scsi_reset_notify.h \
928	scsi_sas.h	\
929	sense.h		\
930	services.h	\
931	smp_transport.h	\
932	spc3_types.h	\
933	status.h	\
934	transport.h	\
935	types.h		\
936	uscsi.h		\
937	usmp.h
938
939SCSITARGETSHDRS=	\
940	ses.h		\
941	sesio.h		\
942	sgendef.h	\
943	stdef.h		\
944	sddef.h		\
945	smp.h
946
947SCSIADHDRS=
948
949SCSICADHDRS=
950
951SCSIISCSIHDRS=		\
952	iscsi_door.h	\
953	iscsi_if.h
954
955SCSIVHCIHDRS=		\
956	scsi_vhci.h	\
957	mpapi_impl.h	\
958	mpapi_scsi_vhci.h
959
960SDCARDHDRS=		\
961	sda.h		\
962	sda_impl.h	\
963	sda_ioctl.h
964
965FC4HDRS=			\
966	fc_transport.h	\
967	linkapp.h	\
968	fc.h		\
969	fcp.h		\
970	fcal_transport.h \
971	fcal.h		\
972	fcal_linkapp.h	\
973	fcio.h
974
975FCHDRS=			\
976	fc.h		\
977	fcio.h		\
978	fc_types.h	\
979	fc_appif.h
980
981FCIMPLHDRS=		\
982	fc_error.h	\
983	fcph.h
984
985FCULPHDRS=		\
986	fcp_util.h	\
987	fcsm.h
988
989SATAGENHDRS=		\
990	sata_hba.h	\
991	sata_defs.h	\
992	sata_cfgadm.h
993
994SYSEVENTHDRS=		\
995	datalink.h	\
996	dev.h		\
997	domain.h        \
998	dr.h            \
999	env.h           \
1000	eventdefs.h	\
1001	ipmp.h		\
1002	pwrctl.h	\
1003	vrrp.h
1004
1005CONTRACTHDRS=		\
1006	process.h	\
1007	process_impl.h	\
1008	device.h	\
1009	device_impl.h
1010
1011USBHDRS=	\
1012	usba.h	\
1013	usbai.h
1014
1015USBAUDHDRS=           \
1016	usb_audio.h
1017
1018USBHUBDHDRS=		\
1019	hub.h		\
1020	hubd_impl.h
1021
1022USBHIDHDRS=		\
1023	hid.h
1024
1025USBMSHDRS=		\
1026	usb_bulkonly.h	\
1027	usb_cbi.h
1028
1029USBPRNHDRS=           \
1030	usb_printer.h
1031
1032USBCDCHDRS=		\
1033	usb_cdc.h
1034
1035USBVIDHDRS=           \
1036	usbvc.h
1037
1038USBWCMHDRS=		\
1039	usbwcm.h
1040
1041UGENHDRS=           \
1042	usb_ugen.h
1043
1044USBCCIDHDRS = \
1045	ccid.h \
1046	uccid.h
1047
1048HOTPLUGHDRS=	\
1049	hpcsvc.h	\
1050	hpctrl.h
1051
1052HOTPLUGPCIHDRS=	\
1053	pcicfg.h	\
1054	pcihp.h
1055
1056RSMHDRS= \
1057	rsm.h	\
1058	rsm_common.h	\
1059	rsmapi_common.h \
1060	rsmpi.h	\
1061	rsmpi_driver.h	\
1062	rsmka_path_int.h
1063
1064TSOLHDRS=		\
1065	label.h		\
1066	label_macro.h	\
1067	priv.h		\
1068	tndb.h		\
1069	tsyscall.h
1070
1071I1394HDRS=		\
1072	cmd1394.h	\
1073	id1394.h	\
1074	ieee1212.h	\
1075	ieee1394.h	\
1076	ixl1394.h	\
1077	s1394_impl.h	\
1078	t1394.h
1079
1080# "cmdk" headers used on sparc
1081SDKTPHDRS=		\
1082	dadkio.h	\
1083	fdisk.h
1084
1085# "cmdk" headers used on i386
1086DKTPHDRS=		\
1087	altsctr.h	\
1088	bbh.h		\
1089	cm.h		\
1090	cmdev.h		\
1091	cmdk.h		\
1092	cmpkt.h		\
1093	controller.h	\
1094	dadev.h		\
1095	dadk.h		\
1096	dadkio.h	\
1097	fctypes.h	\
1098	fdisk.h		\
1099	flowctrl.h	\
1100	gda.h		\
1101	quetypes.h	\
1102	queue.h		\
1103	tgcom.h		\
1104	tgdk.h
1105
1106# "pc" header files used on i386
1107PCHDRS=			\
1108	avintr.h	\
1109	dma_engine.h	\
1110	i8272A.h	\
1111	pcic_reg.h	\
1112	pcic_var.h	\
1113	pic.h		\
1114	pit.h		\
1115	rtc.h
1116
1117NXGEHDRS=			\
1118	nxge.h			\
1119	nxge_common.h		\
1120	nxge_common_impl.h	\
1121	nxge_defs.h		\
1122	nxge_hw.h		\
1123	nxge_impl.h		\
1124	nxge_ipp.h		\
1125	nxge_ipp_hw.h		\
1126	nxge_mac.h		\
1127	nxge_mac_hw.h		\
1128	nxge_fflp.h		\
1129	nxge_fflp_hw.h		\
1130	nxge_mii.h		\
1131	nxge_rxdma.h		\
1132	nxge_rxdma_hw.h		\
1133	nxge_txc.h		\
1134	nxge_txc_hw.h		\
1135	nxge_txdma.h		\
1136	nxge_txdma_hw.h		\
1137	nxge_virtual.h		\
1138	nxge_espc.h
1139
1140PLATHDRS=		\
1141	pci_prd.h
1142
1143include Makefile.syshdrs
1144
1145dcam/%.check:	dcam/%.h
1146	$(DOT_H_CHECK)
1147
1148CHECKHDRS=						\
1149	$($(MACH)_HDRS:%.h=%.check)			\
1150	$(AUDIOHDRS:%.h=audio/%.check)			\
1151	$(AVHDRS:%.h=av/%.check)			\
1152	$(LOMHDRS:%.h=%.check)				\
1153	$(CHKHDRS:%.h=%.check)				\
1154	$(CPUDRVHDRS:%.h=%.check)			\
1155	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1156	$(DCAMHDRS:%.h=dcam/%.check)			\
1157	$(FC4HDRS:%.h=fc4/%.check)			\
1158	$(FCHDRS:%.h=fibre-channel/%.check)		\
1159	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1160	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1161	$(IBHDRS:%.h=ib/%.check)			\
1162	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1163	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1164	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1165	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1166	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1167	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1168	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1169	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1170	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1171	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1172	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1173	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1174	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1175	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1176	$(IDMHDRS:%.h=idm/%.check)			\
1177	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1178	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1179	$(ISOHDRS:%.h=iso/%.check)			\
1180	$(FMHDRS:%.h=fm/%.check)			\
1181	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1182	$(FMIOHDRS:%.h=fm/io/%.check)			\
1183	$(FSHDRS:%.h=fs/%.check)			\
1184	$(NVMEHDRS:%.h=nvme/%.check)			\
1185	$(SCSIHDRS:%.h=scsi/%.check)			\
1186	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1187	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1188	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1189	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1190	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1191	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1192	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1193	$(SATAGENHDRS:%.h=sata/%.check)			\
1194	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1195	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1196	$(CONTRACTHDRS:%.h=contract/%.check)            \
1197	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1198	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1199	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1200	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1201	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1202	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1203	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1204	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1205	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1206	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1207	$(USBHDRS:%.h=usb/%.check)                      \
1208	$(I1394HDRS:%.h=1394/%.check)			\
1209	$(RSMHDRS:%.h=rsm/%.check)			\
1210	$(TSOLHDRS:%.h=tsol/%.check)			\
1211	$(NXGEHDRS:%.h=nxge/%.check)			\
1212	$(PLATHDRS:%.h=plat/%.check)
1213
1214
1215.KEEP_STATE:
1216
1217.PARALLEL:			\
1218	$(CHECKHDRS)		\
1219	$(ROOTHDRS)		\
1220	$(ROOTAUDHDRS)		\
1221	$(ROOTAVHDRS)		\
1222	$(ROOTCRYPTOHDRS)	\
1223	$(ROOTDCAMHDRS)		\
1224	$(ROOTDKTPHDRS)		\
1225	$(ROOTISOHDRS)		\
1226	$(ROOTIDMHDRS)		\
1227	$(ROOTISCSIHDRS)	\
1228	$(ROOTISCSITHDRS)	\
1229	$(ROOTFC4HDRS)		\
1230	$(ROOTFCHDRS)		\
1231	$(ROOTFCIMPLHDRS)	\
1232	$(ROOTFCULPHDRS)	\
1233	$(ROOTFMHDRS)		\
1234	$(ROOTFMIOHDRS)		\
1235	$(ROOTFMFSHDRS)		\
1236	$(ROOTFSHDRS)		\
1237	$(ROOTIBDHDRS)		\
1238	$(ROOTIBHDRS)		\
1239	$(ROOTIBTLHDRS)		\
1240	$(ROOTIBTLIMPLHDRS)	\
1241	$(ROOTIBNEXHDRS)	\
1242	$(ROOTIBMGTHDRS)	\
1243	$(ROOTIBMFHDRS)		\
1244	$(ROOTNVMEHDRS)		\
1245	$(ROOTOFHDRS)		\
1246	$(ROOTRDMAHDRS)		\
1247	$(ROOTSATAGENHDRS)	\
1248	$(ROOTSOL_OFSHDRS)	\
1249	$(ROOTSOL_UMADHDRS)	\
1250	$(ROOTSOL_UVERBSHDRS)	\
1251	$(ROOTSOL_UCMAHDRS)	\
1252	$(ROOTTAVORHDRS)	\
1253	$(ROOTHERMONHDRS)	\
1254	$(ROOTMLNXHDRS)		\
1255	$(ROOTPLATHDRS)		\
1256	$(ROOTSCSIHDRS)		\
1257	$(ROOTSCSIADHDRS)	\
1258	$(ROOTSCSICONFHDRS)	\
1259	$(ROOTSCSIISCSIHDRS)	\
1260	$(ROOTSCSIGENHDRS)	\
1261	$(ROOTSCSIIMPLHDRS)	\
1262	$(ROOTSCSIVHCIHDRS)	\
1263	$(ROOTSCSITARGETSHDRS)	\
1264	$(ROOTSDCARDHDRS)	\
1265	$(ROOTSYSEVENTHDRS)     \
1266	$(ROOTCONTRACTHDRS)     \
1267	$(ROOTUSBHDRS)		\
1268	$(ROOTUWBHDRS)		\
1269	$(ROOTUWBAHDRS)		\
1270	$(ROOTUSBAUDHDRS)	\
1271	$(ROOTUSBHUBDHDRS)	\
1272	$(ROOTUSBHIDHDRS)	\
1273	$(ROOTUSBHRCHDRS)	\
1274	$(ROOTUSBMSHDRS)	\
1275	$(ROOTUSBPRNHDRS)       \
1276	$(ROOTUSBCDCHDRS)       \
1277	$(ROOTUSBVIDHDRS)       \
1278	$(ROOTUSBWCMHDRS)	\
1279	$(ROOTUSBCCIDHDRS)	\
1280	$(ROOTUGENHDRS)		\
1281	$(ROOT1394HDRS)         \
1282	$(ROOTHOTPLUGHDRS)	\
1283	$(ROOTHOTPLUGPCIHDRS)	\
1284	$(ROOTRSMHDRS)		\
1285	$(ROOTTSOLHDRS)		\
1286	$($(MACH)_ROOTHDRS)
1287
1288
1289install_h:			\
1290	$(ROOTDIRS)		\
1291	.WAIT			\
1292	$(ROOTHDRS)		\
1293	$(ROOTAUDHDRS)		\
1294	$(ROOTAVHDRS)		\
1295	$(ROOTCRYPTOHDRS)	\
1296	$(ROOTDCAMHDRS)		\
1297	$(ROOTDKTPHDRS)		\
1298	$(ROOTISOHDRS)		\
1299	$(ROOTIDMHDRS)		\
1300	$(ROOTISCSIHDRS)	\
1301	$(ROOTISCSITHDRS)	\
1302	$(ROOTFC4HDRS)		\
1303	$(ROOTFCHDRS)		\
1304	$(ROOTFCIMPLHDRS)	\
1305	$(ROOTFCULPHDRS)	\
1306	$(ROOTFMHDRS)		\
1307	$(ROOTFMFSHDRS)		\
1308	$(ROOTFMIOHDRS)		\
1309	$(ROOTFSHDRS)		\
1310	$(ROOTIBDHDRS)		\
1311	$(ROOTIBHDRS)		\
1312	$(ROOTIBTLHDRS)		\
1313	$(ROOTIBTLIMPLHDRS)	\
1314	$(ROOTIBNEXHDRS)	\
1315	$(ROOTIBMGTHDRS)	\
1316	$(ROOTIBMFHDRS)		\
1317	$(ROOTNVMEHDRS)		\
1318	$(ROOTOFHDRS)		\
1319	$(ROOTRDMAHDRS)		\
1320	$(ROOTSATAGENHDRS)	\
1321	$(ROOTSOL_OFSHDRS)	\
1322	$(ROOTSOL_UMADHDRS)	\
1323	$(ROOTSOL_UVERBSHDRS)	\
1324	$(ROOTSOL_UCMAHDRS)	\
1325	$(ROOTTAVORHDRS)	\
1326	$(ROOTHERMONHDRS)	\
1327	$(ROOTMLNXHDRS)		\
1328	$(ROOTPLATHDRS)		\
1329	$(ROOTSCSIHDRS)		\
1330	$(ROOTSCSIADHDRS)	\
1331	$(ROOTSCSIISCSIHDRS)	\
1332	$(ROOTSCSICONFHDRS)	\
1333	$(ROOTSCSIGENHDRS)	\
1334	$(ROOTSCSIIMPLHDRS)	\
1335	$(ROOTSCSIVHCIHDRS)     \
1336	$(ROOTSCSITARGETSHDRS)	\
1337	$(ROOTSDCARDHDRS)	\
1338	$(ROOTSYSEVENTHDRS)     \
1339	$(ROOTCONTRACTHDRS)     \
1340	$(ROOTUWBHDRS)		\
1341	$(ROOTUWBAHDRS)		\
1342	$(ROOTUSBHDRS)		\
1343	$(ROOTUSBCCIDHDRS)	\
1344	$(ROOTUSBAUDHDRS)	\
1345	$(ROOTUSBHUBDHDRS)	\
1346	$(ROOTUSBHIDHDRS)	\
1347	$(ROOTUSBHRCHDRS)	\
1348	$(ROOTUSBMSHDRS)	\
1349	$(ROOTUSBPRNHDRS)       \
1350	$(ROOTUSBCDCHDRS)       \
1351	$(ROOTUSBVIDHDRS)       \
1352	$(ROOTUSBWCMHDRS)	\
1353	$(ROOTUGENHDRS)		\
1354	$(ROOT1394HDRS)         \
1355	$(ROOTHOTPLUGHDRS)	\
1356	$(ROOTHOTPLUGPCIHDRS)	\
1357	$(ROOTRSMHDRS)		\
1358	$(ROOTTSOLHDRS)		\
1359	$($(MACH)_ROOTHDRS)
1360
1361all_h: $(GENHDRS)
1362
1363priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1364	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1365
1366priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1367	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1368
1369usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1370	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1371
1372clean:
1373	$(RM) $(GENHDRS)
1374
1375clobber: clean
1376
1377check:	$(CHECKHDRS)
1378
1379FRC:
1380