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