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