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