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