xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 65bed588e62c7f3a0da5d65fcc588b46b470f5a7)
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 2023 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	exechdr.h		\
242	extdirent.h		\
243	fault.h			\
244	fasttrap.h		\
245	fasttrap_impl.h		\
246	fbio.h			\
247	fbuf.h			\
248	fcntl.h			\
249	fct.h			\
250	fct_defines.h		\
251	fctio.h			\
252	fdbuffer.h		\
253	fdio.h			\
254	feature_tests.h		\
255	fem.h			\
256	file.h			\
257	filio.h			\
258	flock.h			\
259	flock_impl.h		\
260	fork.h			\
261	fss.h			\
262	fsspriocntl.h		\
263	fsid.h			\
264	fssnap.h		\
265	fssnap_if.h		\
266	fstyp.h			\
267	ftrace.h		\
268	fx.h			\
269	fxpriocntl.h		\
270	gfs.h			\
271	gld.h			\
272	gldpriv.h		\
273	group.h			\
274	hdio.h			\
275	hook.h			\
276	hook_event.h		\
277	hook_impl.h		\
278	hwconf.h		\
279	ia.h			\
280	iapriocntl.h		\
281	ibpart.h		\
282	id32.h			\
283	idmap.h			\
284	ieeefp.h		\
285	id_space.h		\
286	ilstr.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	stdalign.h		\
552	stdbool.h		\
553	stddef.h		\
554	stdint.h		\
555	stermio.h		\
556	stmf.h			\
557	stmf_defines.h		\
558	stmf_ioctl.h		\
559	stmf_sbd_ioctl.h	\
560	stream.h		\
561	strft.h			\
562	strlog.h		\
563	strmdep.h		\
564	stropts.h		\
565	strredir.h		\
566	strstat.h		\
567	strsubr.h		\
568	strsun.h		\
569	strtty.h		\
570	sunddi.h		\
571	sunldi.h		\
572	sunldi_impl.h		\
573	sunmdi.h		\
574	sunndi.h		\
575	sunos_dhcp_class.h	\
576	sunpm.h			\
577	suntpi.h		\
578	suntty.h		\
579	swap.h			\
580	synch.h			\
581	sysdc.h			\
582	sysdc_impl.h		\
583	syscall.h		\
584	sysconf.h		\
585	sysconfig.h		\
586	sysevent.h		\
587	sysevent_impl.h		\
588	sysinfo.h		\
589	syslog.h		\
590	sysmacros.h		\
591	sysmsg_impl.h		\
592	systeminfo.h		\
593	systm.h			\
594	task.h			\
595	taskq.h			\
596	taskq_impl.h		\
597	t_kuser.h		\
598	t_lock.h		\
599	telioctl.h		\
600	termio.h		\
601	termios.h		\
602	termiox.h		\
603	thread.h		\
604	ticlts.h		\
605	ticots.h		\
606	ticotsord.h		\
607	tihdr.h			\
608	time.h			\
609	time_impl.h		\
610	time_std_impl.h		\
611	timeb.h			\
612	timer.h			\
613	timerfd.h		\
614	times.h			\
615	timex.h			\
616	timod.h			\
617	tirdwr.h		\
618	tiuser.h		\
619	tl.h			\
620	todio.h			\
621	tpicommon.h		\
622	ts.h			\
623	tspriocntl.h		\
624	ttcompat.h		\
625	ttold.h			\
626	tty.h			\
627	ttychars.h		\
628	ttydev.h		\
629	tuneable.h		\
630	turnstile.h		\
631	types.h			\
632	types32.h		\
633	tzfile.h		\
634	u8_textprep.h		\
635	u8_textprep_data.h	\
636	uadmin.h		\
637	ucred.h			\
638	uio.h			\
639	ulimit.h		\
640	un.h			\
641	unistd.h		\
642	user.h			\
643	ustat.h			\
644	utime.h			\
645	utsname.h		\
646	utssys.h		\
647	uuid.h			\
648	va_impl.h		\
649	va_list.h		\
650	var.h			\
651	varargs.h		\
652	vfs.h			\
653	vfs_opreg.h		\
654	vfstab.h		\
655	vgareg.h		\
656	videodev2.h		\
657	vio9p.h			\
658	visual_io.h		\
659	vlan.h			\
660	vm.h			\
661	vm_usage.h		\
662	vmem.h			\
663	vmem_impl.h		\
664	vmsystm.h		\
665	vnic.h			\
666	vnic_impl.h		\
667	vnode.h			\
668	vscan.h			\
669	vtoc.h			\
670	vtrace.h		\
671	vuid_event.h		\
672	vuid_wheel.h		\
673	vuid_queue.h		\
674	vuid_state.h		\
675	vuid_store.h		\
676	vxlan.h			\
677	wait.h			\
678	waitq.h			\
679	watchpoint.h		\
680	winlockio.h		\
681	zcons.h			\
682	zone.h			\
683	xti_inet.h		\
684	xti_osi.h		\
685	xti_xtiopt.h		\
686	zmod.h
687
688HDRS=				\
689	$(GENHDRS)		\
690	$(CHKHDRS)
691
692AUDIOHDRS=			\
693	ac97.h			\
694	audio_common.h		\
695	audio_driver.h		\
696	audio_oss.h		\
697	g711.h
698
699AVHDRS=				\
700	iec61883.h
701
702LOMHDRS=			\
703	lom_io.h		\
704	lombus.h
705
706MDESCHDRS=			\
707	mdesc.h			\
708	mdesc_impl.h
709
710CPUDRVHDRS=			\
711	cpudrv.h
712
713CRYPTOHDRS=			\
714	elfsign.h		\
715	ioctl.h			\
716	ioctladmin.h		\
717	common.h		\
718	impl.h			\
719	spi.h			\
720	api.h			\
721	ops_impl.h		\
722	sched_impl.h
723
724DCAMHDRS=			\
725	dcam1394_io.h
726
727IBHDRS=			\
728	ib_types.h	\
729	ib_pkt_hdrs.h
730
731IBTLHDRS=		\
732	ibtl_types.h	\
733	ibtl_status.h	\
734	ibti.h		\
735	ibti_cm.h	\
736	ibci.h		\
737	ibti_common.h	\
738	ibvti.h		\
739	ibtl_ci_types.h
740
741IBTLIMPLHDRS=		\
742	ibtl_util.h
743
744IBNEXHDRS=		\
745	ibnex_devctl.h
746
747IBMFHDRS=		\
748	ibmf.h		\
749	ibmf_msg.h	\
750	ibmf_saa.h	\
751	ibmf_utils.h
752
753IBMGTHDRS=		\
754	ib_dm_attr.h	\
755	ib_mad.h	\
756	sm_attr.h	\
757	sa_recs.h
758
759IBDHDRS=		\
760	ibd.h
761
762OFHDRS=			\
763	ofa_solaris.h	\
764	ofed_kernel.h
765
766RDMAHDRS=		\
767	ib_addr.h	\
768	ib_user_mad.h	\
769	ib_user_sa.h	\
770	ib_user_verbs.h \
771	ib_verbs.h	\
772	rdma_cm.h	\
773	rdma_user_cm.h
774
775SOL_UVERBSHDRS=		\
776	sol_uverbs.h	\
777	sol_uverbs2ucma.h	\
778	sol_uverbs_comp.h	\
779	sol_uverbs_hca.h	\
780	sol_uverbs_qp.h		\
781	sol_uverbs_event.h
782
783SOL_UMADHDRS=		\
784	sol_umad.h
785
786SOL_UCMAHDRS=		\
787	sol_ucma.h	\
788	sol_rdma_user_cm.h
789
790SOL_OFSHDRS=		\
791	sol_cma.h	\
792	sol_ib_cma.h	\
793	sol_ofs_common.h	\
794	sol_kverb_impl.h
795
796TAVORHDRS=		\
797	tavor_ioctl.h
798
799HERMONHDRS=		\
800	hermon_ioctl.h
801
802MLNXHDRS=		\
803	mlnx_umap.h
804
805IDMHDRS=		\
806	idm.h		\
807	idm_impl.h	\
808	idm_so.h	\
809	idm_text.h	\
810	idm_transport.h	\
811	idm_conn_sm.h
812
813ISCSITHDRS=		\
814	radius_packet.h		\
815	radius_protocol.h	\
816	chap.h			\
817	isns_protocol.h		\
818	iscsi_if.h		\
819	iscsit_common.h
820
821ISOHDRS=			\
822	signal_iso.h
823
824FMHDRS=				\
825	protocol.h		\
826	util.h
827
828FMFSHDRS=			\
829	zfs.h
830
831FMIOHDRS=			\
832	ddi.h			\
833	disk.h			\
834	pci.h			\
835	scsi.h			\
836	sun4upci.h		\
837	opl_mc_fm.h
838
839FSHDRS=				\
840	autofs.h		\
841	decomp.h		\
842	dv_node.h		\
843	sdev_impl.h		\
844	sdev_plugin.h		\
845	fifonode.h		\
846	hsfs_isospec.h		\
847	hsfs_node.h		\
848	hsfs_rrip.h		\
849	hsfs_spec.h		\
850	hsfs_susp.h		\
851	lofs_info.h		\
852	lofs_node.h		\
853	mntdata.h		\
854	namenode.h		\
855	pc_dir.h		\
856	pc_fs.h			\
857	pc_label.h		\
858	pc_node.h		\
859	pxfs_ki.h		\
860	snode.h			\
861	swapnode.h		\
862	tmp.h			\
863	tmpnode.h		\
864	udf_inode.h		\
865	udf_volume.h		\
866	ufs_acl.h		\
867	ufs_bio.h		\
868	ufs_filio.h		\
869	ufs_fs.h		\
870	ufs_fsdir.h		\
871	ufs_inode.h		\
872	ufs_lockfs.h		\
873	ufs_log.h		\
874	ufs_mount.h		\
875	ufs_panic.h		\
876	ufs_prot.h		\
877	ufs_quota.h		\
878	ufs_snap.h              \
879	ufs_trans.h		\
880	zfs.h			\
881	zut.h
882
883SCSIHDRS=		\
884	scsi.h		\
885	scsi_address.h	\
886	scsi_ctl.h	\
887	scsi_fm.h	\
888	scsi_names.h	\
889	scsi_params.h	\
890	scsi_pkt.h	\
891	scsi_resource.h	\
892	scsi_types.h	\
893	scsi_watch.h
894
895SCSICONFHDRS=		\
896	autoconf.h	\
897	device.h
898
899SCSIGENHDRS=		\
900	commands.h	\
901	dad_mode.h	\
902	inquiry.h	\
903	message.h	\
904	mode.h		\
905	persist.h	\
906	sense.h		\
907	sff_frames.h	\
908	smp_frames.h	\
909	status.h
910
911SCSIIMPLHDRS=		\
912	commands.h	\
913	inquiry.h	\
914	mode.h		\
915	scsi_reset_notify.h \
916	scsi_sas.h	\
917	sense.h		\
918	services.h	\
919	smp_transport.h	\
920	spc3_types.h	\
921	status.h	\
922	transport.h	\
923	types.h		\
924	uscsi.h		\
925	usmp.h
926
927SCSITARGETSHDRS=	\
928	ses.h		\
929	sesio.h		\
930	sgendef.h	\
931	stdef.h		\
932	sddef.h		\
933	smp.h
934
935SCSIADHDRS=
936
937SCSICADHDRS=
938
939SCSIISCSIHDRS=		\
940	iscsi_door.h	\
941	iscsi_if.h
942
943SCSIVHCIHDRS=		\
944	scsi_vhci.h	\
945	mpapi_impl.h	\
946	mpapi_scsi_vhci.h
947
948SDCARDHDRS=		\
949	sda.h		\
950	sda_impl.h	\
951	sda_ioctl.h
952
953FC4HDRS=			\
954	fc_transport.h	\
955	linkapp.h	\
956	fc.h		\
957	fcp.h		\
958	fcal_transport.h \
959	fcal.h		\
960	fcal_linkapp.h	\
961	fcio.h
962
963FCHDRS=			\
964	fc.h		\
965	fcio.h		\
966	fc_types.h	\
967	fc_appif.h
968
969FCIMPLHDRS=		\
970	fc_error.h	\
971	fcph.h
972
973FCULPHDRS=		\
974	fcp_util.h	\
975	fcsm.h
976
977SATAGENHDRS=		\
978	sata_hba.h	\
979	sata_defs.h	\
980	sata_cfgadm.h
981
982SYSEVENTHDRS=		\
983	datalink.h	\
984	dev.h		\
985	domain.h        \
986	dr.h            \
987	env.h           \
988	eventdefs.h	\
989	ipmp.h		\
990	pwrctl.h	\
991	vrrp.h
992
993CONTRACTHDRS=		\
994	process.h	\
995	process_impl.h	\
996	device.h	\
997	device_impl.h
998
999USBHDRS=	\
1000	usba.h	\
1001	usbai.h
1002
1003USBAUDHDRS=           \
1004	usb_audio.h
1005
1006USBHUBDHDRS=		\
1007	hub.h		\
1008	hubd_impl.h
1009
1010USBHIDHDRS=		\
1011	hid.h
1012
1013USBMSHDRS=		\
1014	usb_bulkonly.h	\
1015	usb_cbi.h
1016
1017USBPRNHDRS=           \
1018	usb_printer.h
1019
1020USBCDCHDRS=		\
1021	usb_cdc.h
1022
1023USBVIDHDRS=           \
1024	usbvc.h
1025
1026USBWCMHDRS=		\
1027	usbwcm.h
1028
1029UGENHDRS=           \
1030	usb_ugen.h
1031
1032USBCCIDHDRS = \
1033	ccid.h \
1034	uccid.h
1035
1036HOTPLUGHDRS=	\
1037	hpcsvc.h	\
1038	hpctrl.h
1039
1040HOTPLUGPCIHDRS=	\
1041	pcicfg.h	\
1042	pcihp.h
1043
1044RSMHDRS= \
1045	rsm.h	\
1046	rsm_common.h	\
1047	rsmapi_common.h \
1048	rsmpi.h	\
1049	rsmpi_driver.h	\
1050	rsmka_path_int.h
1051
1052TSOLHDRS=		\
1053	label.h		\
1054	label_macro.h	\
1055	priv.h		\
1056	tndb.h		\
1057	tsyscall.h
1058
1059I1394HDRS=		\
1060	cmd1394.h	\
1061	id1394.h	\
1062	ieee1212.h	\
1063	ieee1394.h	\
1064	ixl1394.h	\
1065	s1394_impl.h	\
1066	t1394.h
1067
1068# "cmdk" headers used on sparc
1069SDKTPHDRS=		\
1070	dadkio.h	\
1071	fdisk.h
1072
1073# "cmdk" headers used on i386
1074DKTPHDRS=		\
1075	altsctr.h	\
1076	bbh.h		\
1077	cm.h		\
1078	cmdev.h		\
1079	cmdk.h		\
1080	cmpkt.h		\
1081	controller.h	\
1082	dadev.h		\
1083	dadk.h		\
1084	dadkio.h	\
1085	fctypes.h	\
1086	fdisk.h		\
1087	flowctrl.h	\
1088	gda.h		\
1089	quetypes.h	\
1090	queue.h		\
1091	tgcom.h		\
1092	tgdk.h
1093
1094# "pc" header files used on i386
1095PCHDRS=			\
1096	avintr.h	\
1097	dma_engine.h	\
1098	i8272A.h	\
1099	pcic_reg.h	\
1100	pcic_var.h	\
1101	pic.h		\
1102	pit.h		\
1103	rtc.h
1104
1105NXGEHDRS=			\
1106	nxge.h			\
1107	nxge_common.h		\
1108	nxge_common_impl.h	\
1109	nxge_defs.h		\
1110	nxge_hw.h		\
1111	nxge_impl.h		\
1112	nxge_ipp.h		\
1113	nxge_ipp_hw.h		\
1114	nxge_mac.h		\
1115	nxge_mac_hw.h		\
1116	nxge_fflp.h		\
1117	nxge_fflp_hw.h		\
1118	nxge_mii.h		\
1119	nxge_rxdma.h		\
1120	nxge_rxdma_hw.h		\
1121	nxge_txc.h		\
1122	nxge_txc_hw.h		\
1123	nxge_txdma.h		\
1124	nxge_txdma_hw.h		\
1125	nxge_virtual.h		\
1126	nxge_espc.h
1127
1128PLATHDRS=		\
1129	pci_prd.h
1130
1131include Makefile.syshdrs
1132
1133dcam/%.check:	dcam/%.h
1134	$(DOT_H_CHECK)
1135
1136CHECKHDRS=						\
1137	$($(MACH)_HDRS:%.h=%.check)			\
1138	$(AUDIOHDRS:%.h=audio/%.check)			\
1139	$(AVHDRS:%.h=av/%.check)			\
1140	$(LOMHDRS:%.h=%.check)				\
1141	$(CHKHDRS:%.h=%.check)				\
1142	$(CPUDRVHDRS:%.h=%.check)			\
1143	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1144	$(DCAMHDRS:%.h=dcam/%.check)			\
1145	$(FC4HDRS:%.h=fc4/%.check)			\
1146	$(FCHDRS:%.h=fibre-channel/%.check)		\
1147	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1148	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1149	$(IBHDRS:%.h=ib/%.check)			\
1150	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1151	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1152	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1153	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1154	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1155	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1156	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1157	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1158	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1159	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1160	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1161	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1162	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1163	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1164	$(IDMHDRS:%.h=idm/%.check)			\
1165	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1166	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1167	$(ISOHDRS:%.h=iso/%.check)			\
1168	$(FMHDRS:%.h=fm/%.check)			\
1169	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1170	$(FMIOHDRS:%.h=fm/io/%.check)			\
1171	$(FSHDRS:%.h=fs/%.check)			\
1172	$(SCSIHDRS:%.h=scsi/%.check)			\
1173	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1174	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1175	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1176	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1177	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1178	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1179	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1180	$(SATAGENHDRS:%.h=sata/%.check)			\
1181	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1182	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1183	$(CONTRACTHDRS:%.h=contract/%.check)            \
1184	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1185	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1186	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1187	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1188	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1189	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1190	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1191	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1192	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1193	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1194	$(USBHDRS:%.h=usb/%.check)                      \
1195	$(I1394HDRS:%.h=1394/%.check)			\
1196	$(RSMHDRS:%.h=rsm/%.check)			\
1197	$(TSOLHDRS:%.h=tsol/%.check)			\
1198	$(NXGEHDRS:%.h=nxge/%.check)			\
1199	$(PLATHDRS:%.h=plat/%.check)
1200
1201
1202.KEEP_STATE:
1203
1204.PARALLEL:			\
1205	$(CHECKHDRS)		\
1206	$(ROOTHDRS)		\
1207	$(ROOTAUDHDRS)		\
1208	$(ROOTAVHDRS)		\
1209	$(ROOTCRYPTOHDRS)	\
1210	$(ROOTDCAMHDRS)		\
1211	$(ROOTDKTPHDRS)		\
1212	$(ROOTISOHDRS)		\
1213	$(ROOTIDMHDRS)		\
1214	$(ROOTISCSIHDRS)	\
1215	$(ROOTISCSITHDRS)	\
1216	$(ROOTFC4HDRS)		\
1217	$(ROOTFCHDRS)		\
1218	$(ROOTFCIMPLHDRS)	\
1219	$(ROOTFCULPHDRS)	\
1220	$(ROOTFMHDRS)		\
1221	$(ROOTFMIOHDRS)		\
1222	$(ROOTFMFSHDRS)		\
1223	$(ROOTFSHDRS)		\
1224	$(ROOTIBDHDRS)		\
1225	$(ROOTIBHDRS)		\
1226	$(ROOTIBTLHDRS)		\
1227	$(ROOTIBTLIMPLHDRS)	\
1228	$(ROOTIBNEXHDRS)	\
1229	$(ROOTIBMGTHDRS)	\
1230	$(ROOTIBMFHDRS)		\
1231	$(ROOTOFHDRS)		\
1232	$(ROOTRDMAHDRS)		\
1233	$(ROOTSATAGENHDRS)	\
1234	$(ROOTSOL_OFSHDRS)	\
1235	$(ROOTSOL_UMADHDRS)	\
1236	$(ROOTSOL_UVERBSHDRS)	\
1237	$(ROOTSOL_UCMAHDRS)	\
1238	$(ROOTTAVORHDRS)	\
1239	$(ROOTHERMONHDRS)	\
1240	$(ROOTMLNXHDRS)		\
1241	$(ROOTPLATHDRS)		\
1242	$(ROOTSCSIHDRS)		\
1243	$(ROOTSCSIADHDRS)	\
1244	$(ROOTSCSICONFHDRS)	\
1245	$(ROOTSCSIISCSIHDRS)	\
1246	$(ROOTSCSIGENHDRS)	\
1247	$(ROOTSCSIIMPLHDRS)	\
1248	$(ROOTSCSIVHCIHDRS)	\
1249	$(ROOTSCSITARGETSHDRS)	\
1250	$(ROOTSDCARDHDRS)	\
1251	$(ROOTSYSEVENTHDRS)     \
1252	$(ROOTCONTRACTHDRS)     \
1253	$(ROOTUSBHDRS)		\
1254	$(ROOTUWBHDRS)		\
1255	$(ROOTUWBAHDRS)		\
1256	$(ROOTUSBAUDHDRS)	\
1257	$(ROOTUSBHUBDHDRS)	\
1258	$(ROOTUSBHIDHDRS)	\
1259	$(ROOTUSBHRCHDRS)	\
1260	$(ROOTUSBMSHDRS)	\
1261	$(ROOTUSBPRNHDRS)       \
1262	$(ROOTUSBCDCHDRS)       \
1263	$(ROOTUSBVIDHDRS)       \
1264	$(ROOTUSBWCMHDRS)	\
1265	$(ROOTUSBCCIDHDRS)	\
1266	$(ROOTUGENHDRS)		\
1267	$(ROOT1394HDRS)         \
1268	$(ROOTHOTPLUGHDRS)	\
1269	$(ROOTHOTPLUGPCIHDRS)	\
1270	$(ROOTRSMHDRS)		\
1271	$(ROOTTSOLHDRS)		\
1272	$($(MACH)_ROOTHDRS)
1273
1274
1275install_h:			\
1276	$(ROOTDIRS)		\
1277	.WAIT			\
1278	$(ROOTHDRS)		\
1279	$(ROOTAUDHDRS)		\
1280	$(ROOTAVHDRS)		\
1281	$(ROOTCRYPTOHDRS)	\
1282	$(ROOTDCAMHDRS)		\
1283	$(ROOTDKTPHDRS)		\
1284	$(ROOTISOHDRS)		\
1285	$(ROOTIDMHDRS)		\
1286	$(ROOTISCSIHDRS)	\
1287	$(ROOTISCSITHDRS)	\
1288	$(ROOTFC4HDRS)		\
1289	$(ROOTFCHDRS)		\
1290	$(ROOTFCIMPLHDRS)	\
1291	$(ROOTFCULPHDRS)	\
1292	$(ROOTFMHDRS)		\
1293	$(ROOTFMFSHDRS)		\
1294	$(ROOTFMIOHDRS)		\
1295	$(ROOTFSHDRS)		\
1296	$(ROOTIBDHDRS)		\
1297	$(ROOTIBHDRS)		\
1298	$(ROOTIBTLHDRS)		\
1299	$(ROOTIBTLIMPLHDRS)	\
1300	$(ROOTIBNEXHDRS)	\
1301	$(ROOTIBMGTHDRS)	\
1302	$(ROOTIBMFHDRS)		\
1303	$(ROOTOFHDRS)		\
1304	$(ROOTRDMAHDRS)		\
1305	$(ROOTSATAGENHDRS)	\
1306	$(ROOTSOL_OFSHDRS)	\
1307	$(ROOTSOL_UMADHDRS)	\
1308	$(ROOTSOL_UVERBSHDRS)	\
1309	$(ROOTSOL_UCMAHDRS)	\
1310	$(ROOTTAVORHDRS)	\
1311	$(ROOTHERMONHDRS)	\
1312	$(ROOTMLNXHDRS)		\
1313	$(ROOTPLATHDRS)		\
1314	$(ROOTSCSIHDRS)		\
1315	$(ROOTSCSIADHDRS)	\
1316	$(ROOTSCSIISCSIHDRS)	\
1317	$(ROOTSCSICONFHDRS)	\
1318	$(ROOTSCSIGENHDRS)	\
1319	$(ROOTSCSIIMPLHDRS)	\
1320	$(ROOTSCSIVHCIHDRS)     \
1321	$(ROOTSCSITARGETSHDRS)	\
1322	$(ROOTSDCARDHDRS)	\
1323	$(ROOTSYSEVENTHDRS)     \
1324	$(ROOTCONTRACTHDRS)     \
1325	$(ROOTUWBHDRS)		\
1326	$(ROOTUWBAHDRS)		\
1327	$(ROOTUSBHDRS)		\
1328	$(ROOTUSBCCIDHDRS)	\
1329	$(ROOTUSBAUDHDRS)	\
1330	$(ROOTUSBHUBDHDRS)	\
1331	$(ROOTUSBHIDHDRS)	\
1332	$(ROOTUSBHRCHDRS)	\
1333	$(ROOTUSBMSHDRS)	\
1334	$(ROOTUSBPRNHDRS)       \
1335	$(ROOTUSBCDCHDRS)       \
1336	$(ROOTUSBVIDHDRS)       \
1337	$(ROOTUSBWCMHDRS)	\
1338	$(ROOTUGENHDRS)		\
1339	$(ROOT1394HDRS)         \
1340	$(ROOTHOTPLUGHDRS)	\
1341	$(ROOTHOTPLUGPCIHDRS)	\
1342	$(ROOTRSMHDRS)		\
1343	$(ROOTTSOLHDRS)		\
1344	$($(MACH)_ROOTHDRS)
1345
1346all_h: $(GENHDRS)
1347
1348priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1349	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1350
1351priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1352	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1353
1354usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1355	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1356
1357clean:
1358	$(RM) $(GENHDRS)
1359
1360clobber: clean
1361
1362check:	$(CHECKHDRS)
1363
1364FRC:
1365