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