xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 08855964b9970604433f7b19dcd71cf5af5e5f14)
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	micron.h	\
890	micron_7300.h	\
891	micron_74x0.h	\
892	micron_x500.h	\
893	ocp.h		\
894	wdc.h		\
895	wdc_sn840.h	\
896	wdc_sn65x.h
897
898SCSIHDRS=		\
899	scsi.h		\
900	scsi_address.h	\
901	scsi_ctl.h	\
902	scsi_fm.h	\
903	scsi_names.h	\
904	scsi_params.h	\
905	scsi_pkt.h	\
906	scsi_resource.h	\
907	scsi_types.h	\
908	scsi_watch.h
909
910SCSICONFHDRS=		\
911	autoconf.h	\
912	device.h
913
914SCSIGENHDRS=		\
915	commands.h	\
916	dad_mode.h	\
917	inquiry.h	\
918	message.h	\
919	mode.h		\
920	persist.h	\
921	sense.h		\
922	sff_frames.h	\
923	smp_frames.h	\
924	status.h
925
926SCSIIMPLHDRS=		\
927	commands.h	\
928	inquiry.h	\
929	mode.h		\
930	scsi_reset_notify.h \
931	scsi_sas.h	\
932	sense.h		\
933	services.h	\
934	smp_transport.h	\
935	spc3_types.h	\
936	status.h	\
937	transport.h	\
938	types.h		\
939	uscsi.h		\
940	usmp.h
941
942SCSITARGETSHDRS=	\
943	ses.h		\
944	sesio.h		\
945	sgendef.h	\
946	stdef.h		\
947	sddef.h		\
948	smp.h
949
950SCSIADHDRS=
951
952SCSICADHDRS=
953
954SCSIISCSIHDRS=		\
955	iscsi_door.h	\
956	iscsi_if.h
957
958SCSIVHCIHDRS=		\
959	scsi_vhci.h	\
960	mpapi_impl.h	\
961	mpapi_scsi_vhci.h
962
963SDCARDHDRS=		\
964	sda.h		\
965	sda_impl.h	\
966	sda_ioctl.h
967
968FC4HDRS=			\
969	fc_transport.h	\
970	linkapp.h	\
971	fc.h		\
972	fcp.h		\
973	fcal_transport.h \
974	fcal.h		\
975	fcal_linkapp.h	\
976	fcio.h
977
978FCHDRS=			\
979	fc.h		\
980	fcio.h		\
981	fc_types.h	\
982	fc_appif.h
983
984FCIMPLHDRS=		\
985	fc_error.h	\
986	fcph.h
987
988FCULPHDRS=		\
989	fcp_util.h	\
990	fcsm.h
991
992SATAGENHDRS=		\
993	sata_hba.h	\
994	sata_defs.h	\
995	sata_cfgadm.h
996
997SYSEVENTHDRS=		\
998	datalink.h	\
999	dev.h		\
1000	domain.h        \
1001	dr.h            \
1002	env.h           \
1003	eventdefs.h	\
1004	ipmp.h		\
1005	pwrctl.h	\
1006	vrrp.h
1007
1008CONTRACTHDRS=		\
1009	process.h	\
1010	process_impl.h	\
1011	device.h	\
1012	device_impl.h
1013
1014USBHDRS=	\
1015	usba.h	\
1016	usbai.h
1017
1018USBAUDHDRS=           \
1019	usb_audio.h
1020
1021USBHUBDHDRS=		\
1022	hub.h		\
1023	hubd_impl.h
1024
1025USBHIDHDRS=		\
1026	hid.h
1027
1028USBMSHDRS=		\
1029	usb_bulkonly.h	\
1030	usb_cbi.h
1031
1032USBPRNHDRS=           \
1033	usb_printer.h
1034
1035USBCDCHDRS=		\
1036	usb_cdc.h
1037
1038USBVIDHDRS=           \
1039	usbvc.h
1040
1041USBWCMHDRS=		\
1042	usbwcm.h
1043
1044UGENHDRS=           \
1045	usb_ugen.h
1046
1047USBCCIDHDRS = \
1048	ccid.h \
1049	uccid.h
1050
1051HOTPLUGHDRS=	\
1052	hpcsvc.h	\
1053	hpctrl.h
1054
1055HOTPLUGPCIHDRS=	\
1056	pcicfg.h	\
1057	pcihp.h
1058
1059RSMHDRS= \
1060	rsm.h	\
1061	rsm_common.h	\
1062	rsmapi_common.h \
1063	rsmpi.h	\
1064	rsmpi_driver.h	\
1065	rsmka_path_int.h
1066
1067TSOLHDRS=		\
1068	label.h		\
1069	label_macro.h	\
1070	priv.h		\
1071	tndb.h		\
1072	tsyscall.h
1073
1074I1394HDRS=		\
1075	cmd1394.h	\
1076	id1394.h	\
1077	ieee1212.h	\
1078	ieee1394.h	\
1079	ixl1394.h	\
1080	s1394_impl.h	\
1081	t1394.h
1082
1083# "cmdk" headers used on sparc
1084SDKTPHDRS=		\
1085	dadkio.h	\
1086	fdisk.h
1087
1088# "cmdk" headers used on i386
1089DKTPHDRS=		\
1090	altsctr.h	\
1091	bbh.h		\
1092	cm.h		\
1093	cmdev.h		\
1094	cmdk.h		\
1095	cmpkt.h		\
1096	controller.h	\
1097	dadev.h		\
1098	dadk.h		\
1099	dadkio.h	\
1100	fctypes.h	\
1101	fdisk.h		\
1102	flowctrl.h	\
1103	gda.h		\
1104	quetypes.h	\
1105	queue.h		\
1106	tgcom.h		\
1107	tgdk.h
1108
1109# "pc" header files used on i386
1110PCHDRS=			\
1111	avintr.h	\
1112	dma_engine.h	\
1113	i8272A.h	\
1114	pcic_reg.h	\
1115	pcic_var.h	\
1116	pic.h		\
1117	pit.h		\
1118	rtc.h
1119
1120NXGEHDRS=			\
1121	nxge.h			\
1122	nxge_common.h		\
1123	nxge_common_impl.h	\
1124	nxge_defs.h		\
1125	nxge_hw.h		\
1126	nxge_impl.h		\
1127	nxge_ipp.h		\
1128	nxge_ipp_hw.h		\
1129	nxge_mac.h		\
1130	nxge_mac_hw.h		\
1131	nxge_fflp.h		\
1132	nxge_fflp_hw.h		\
1133	nxge_mii.h		\
1134	nxge_rxdma.h		\
1135	nxge_rxdma_hw.h		\
1136	nxge_txc.h		\
1137	nxge_txc_hw.h		\
1138	nxge_txdma.h		\
1139	nxge_txdma_hw.h		\
1140	nxge_virtual.h		\
1141	nxge_espc.h
1142
1143PLATHDRS=		\
1144	pci_prd.h
1145
1146include Makefile.syshdrs
1147
1148dcam/%.check:	dcam/%.h
1149	$(DOT_H_CHECK)
1150
1151CHECKHDRS=						\
1152	$($(MACH)_HDRS:%.h=%.check)			\
1153	$(AUDIOHDRS:%.h=audio/%.check)			\
1154	$(AVHDRS:%.h=av/%.check)			\
1155	$(LOMHDRS:%.h=%.check)				\
1156	$(CHKHDRS:%.h=%.check)				\
1157	$(CPUDRVHDRS:%.h=%.check)			\
1158	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1159	$(DCAMHDRS:%.h=dcam/%.check)			\
1160	$(FC4HDRS:%.h=fc4/%.check)			\
1161	$(FCHDRS:%.h=fibre-channel/%.check)		\
1162	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1163	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1164	$(IBHDRS:%.h=ib/%.check)			\
1165	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1166	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1167	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1168	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1169	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1170	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1171	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1172	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1173	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1174	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1175	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1176	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1177	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1178	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1179	$(IDMHDRS:%.h=idm/%.check)			\
1180	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1181	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1182	$(ISOHDRS:%.h=iso/%.check)			\
1183	$(FMHDRS:%.h=fm/%.check)			\
1184	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1185	$(FMIOHDRS:%.h=fm/io/%.check)			\
1186	$(FSHDRS:%.h=fs/%.check)			\
1187	$(NVMEHDRS:%.h=nvme/%.check)			\
1188	$(SCSIHDRS:%.h=scsi/%.check)			\
1189	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1190	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1191	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1192	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1193	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1194	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1195	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1196	$(SATAGENHDRS:%.h=sata/%.check)			\
1197	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1198	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1199	$(CONTRACTHDRS:%.h=contract/%.check)            \
1200	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1201	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1202	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1203	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1204	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1205	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1206	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1207	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1208	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1209	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1210	$(USBHDRS:%.h=usb/%.check)                      \
1211	$(I1394HDRS:%.h=1394/%.check)			\
1212	$(RSMHDRS:%.h=rsm/%.check)			\
1213	$(TSOLHDRS:%.h=tsol/%.check)			\
1214	$(NXGEHDRS:%.h=nxge/%.check)			\
1215	$(PLATHDRS:%.h=plat/%.check)
1216
1217
1218.KEEP_STATE:
1219
1220.PARALLEL:			\
1221	$(CHECKHDRS)		\
1222	$(ROOTHDRS)		\
1223	$(ROOTAUDHDRS)		\
1224	$(ROOTAVHDRS)		\
1225	$(ROOTCRYPTOHDRS)	\
1226	$(ROOTDCAMHDRS)		\
1227	$(ROOTDKTPHDRS)		\
1228	$(ROOTISOHDRS)		\
1229	$(ROOTIDMHDRS)		\
1230	$(ROOTISCSIHDRS)	\
1231	$(ROOTISCSITHDRS)	\
1232	$(ROOTFC4HDRS)		\
1233	$(ROOTFCHDRS)		\
1234	$(ROOTFCIMPLHDRS)	\
1235	$(ROOTFCULPHDRS)	\
1236	$(ROOTFMHDRS)		\
1237	$(ROOTFMIOHDRS)		\
1238	$(ROOTFMFSHDRS)		\
1239	$(ROOTFSHDRS)		\
1240	$(ROOTIBDHDRS)		\
1241	$(ROOTIBHDRS)		\
1242	$(ROOTIBTLHDRS)		\
1243	$(ROOTIBTLIMPLHDRS)	\
1244	$(ROOTIBNEXHDRS)	\
1245	$(ROOTIBMGTHDRS)	\
1246	$(ROOTIBMFHDRS)		\
1247	$(ROOTNVMEHDRS)		\
1248	$(ROOTOFHDRS)		\
1249	$(ROOTRDMAHDRS)		\
1250	$(ROOTSATAGENHDRS)	\
1251	$(ROOTSOL_OFSHDRS)	\
1252	$(ROOTSOL_UMADHDRS)	\
1253	$(ROOTSOL_UVERBSHDRS)	\
1254	$(ROOTSOL_UCMAHDRS)	\
1255	$(ROOTTAVORHDRS)	\
1256	$(ROOTHERMONHDRS)	\
1257	$(ROOTMLNXHDRS)		\
1258	$(ROOTPLATHDRS)		\
1259	$(ROOTSCSIHDRS)		\
1260	$(ROOTSCSIADHDRS)	\
1261	$(ROOTSCSICONFHDRS)	\
1262	$(ROOTSCSIISCSIHDRS)	\
1263	$(ROOTSCSIGENHDRS)	\
1264	$(ROOTSCSIIMPLHDRS)	\
1265	$(ROOTSCSIVHCIHDRS)	\
1266	$(ROOTSCSITARGETSHDRS)	\
1267	$(ROOTSDCARDHDRS)	\
1268	$(ROOTSYSEVENTHDRS)     \
1269	$(ROOTCONTRACTHDRS)     \
1270	$(ROOTUSBHDRS)		\
1271	$(ROOTUWBHDRS)		\
1272	$(ROOTUWBAHDRS)		\
1273	$(ROOTUSBAUDHDRS)	\
1274	$(ROOTUSBHUBDHDRS)	\
1275	$(ROOTUSBHIDHDRS)	\
1276	$(ROOTUSBHRCHDRS)	\
1277	$(ROOTUSBMSHDRS)	\
1278	$(ROOTUSBPRNHDRS)       \
1279	$(ROOTUSBCDCHDRS)       \
1280	$(ROOTUSBVIDHDRS)       \
1281	$(ROOTUSBWCMHDRS)	\
1282	$(ROOTUSBCCIDHDRS)	\
1283	$(ROOTUGENHDRS)		\
1284	$(ROOT1394HDRS)         \
1285	$(ROOTHOTPLUGHDRS)	\
1286	$(ROOTHOTPLUGPCIHDRS)	\
1287	$(ROOTRSMHDRS)		\
1288	$(ROOTTSOLHDRS)		\
1289	$($(MACH)_ROOTHDRS)
1290
1291
1292install_h:			\
1293	$(ROOTDIRS)		\
1294	.WAIT			\
1295	$(ROOTHDRS)		\
1296	$(ROOTAUDHDRS)		\
1297	$(ROOTAVHDRS)		\
1298	$(ROOTCRYPTOHDRS)	\
1299	$(ROOTDCAMHDRS)		\
1300	$(ROOTDKTPHDRS)		\
1301	$(ROOTISOHDRS)		\
1302	$(ROOTIDMHDRS)		\
1303	$(ROOTISCSIHDRS)	\
1304	$(ROOTISCSITHDRS)	\
1305	$(ROOTFC4HDRS)		\
1306	$(ROOTFCHDRS)		\
1307	$(ROOTFCIMPLHDRS)	\
1308	$(ROOTFCULPHDRS)	\
1309	$(ROOTFMHDRS)		\
1310	$(ROOTFMFSHDRS)		\
1311	$(ROOTFMIOHDRS)		\
1312	$(ROOTFSHDRS)		\
1313	$(ROOTIBDHDRS)		\
1314	$(ROOTIBHDRS)		\
1315	$(ROOTIBTLHDRS)		\
1316	$(ROOTIBTLIMPLHDRS)	\
1317	$(ROOTIBNEXHDRS)	\
1318	$(ROOTIBMGTHDRS)	\
1319	$(ROOTIBMFHDRS)		\
1320	$(ROOTNVMEHDRS)		\
1321	$(ROOTOFHDRS)		\
1322	$(ROOTRDMAHDRS)		\
1323	$(ROOTSATAGENHDRS)	\
1324	$(ROOTSOL_OFSHDRS)	\
1325	$(ROOTSOL_UMADHDRS)	\
1326	$(ROOTSOL_UVERBSHDRS)	\
1327	$(ROOTSOL_UCMAHDRS)	\
1328	$(ROOTTAVORHDRS)	\
1329	$(ROOTHERMONHDRS)	\
1330	$(ROOTMLNXHDRS)		\
1331	$(ROOTPLATHDRS)		\
1332	$(ROOTSCSIHDRS)		\
1333	$(ROOTSCSIADHDRS)	\
1334	$(ROOTSCSIISCSIHDRS)	\
1335	$(ROOTSCSICONFHDRS)	\
1336	$(ROOTSCSIGENHDRS)	\
1337	$(ROOTSCSIIMPLHDRS)	\
1338	$(ROOTSCSIVHCIHDRS)     \
1339	$(ROOTSCSITARGETSHDRS)	\
1340	$(ROOTSDCARDHDRS)	\
1341	$(ROOTSYSEVENTHDRS)     \
1342	$(ROOTCONTRACTHDRS)     \
1343	$(ROOTUWBHDRS)		\
1344	$(ROOTUWBAHDRS)		\
1345	$(ROOTUSBHDRS)		\
1346	$(ROOTUSBCCIDHDRS)	\
1347	$(ROOTUSBAUDHDRS)	\
1348	$(ROOTUSBHUBDHDRS)	\
1349	$(ROOTUSBHIDHDRS)	\
1350	$(ROOTUSBHRCHDRS)	\
1351	$(ROOTUSBMSHDRS)	\
1352	$(ROOTUSBPRNHDRS)       \
1353	$(ROOTUSBCDCHDRS)       \
1354	$(ROOTUSBVIDHDRS)       \
1355	$(ROOTUSBWCMHDRS)	\
1356	$(ROOTUGENHDRS)		\
1357	$(ROOT1394HDRS)         \
1358	$(ROOTHOTPLUGHDRS)	\
1359	$(ROOTHOTPLUGPCIHDRS)	\
1360	$(ROOTRSMHDRS)		\
1361	$(ROOTTSOLHDRS)		\
1362	$($(MACH)_ROOTHDRS)
1363
1364all_h: $(GENHDRS)
1365
1366priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1367	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1368
1369priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1370	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1371
1372usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1373	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1374
1375clean:
1376	$(RM) $(GENHDRS)
1377
1378clobber: clean
1379
1380check:	$(CHECKHDRS)
1381
1382FRC:
1383