xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 64121b135066abca1808f49288c947e236922532)
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 2022 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	ucode.h
57
58sparc_HDRS=			\
59	mouse.h			\
60	scsi/targets/ssddef.h	\
61	$(MDESCHDRS)
62
63# Generated headers
64GENHDRS=			\
65	priv_const.h		\
66	priv_names.h		\
67	usb/usbdevs.h
68
69CHKHDRS=			\
70	acpi_drv.h		\
71	acct.h			\
72	acctctl.h		\
73	acl.h			\
74	acl_impl.h		\
75	aggr.h			\
76	aggr_impl.h		\
77	aio.h			\
78	aio_impl.h		\
79	aio_req.h		\
80	aiocb.h			\
81	ascii.h			\
82	asynch.h		\
83	atomic.h		\
84	attr.h			\
85	audio.h			\
86	audioio.h		\
87	autoconf.h		\
88	auxv.h			\
89	auxv_386.h		\
90	auxv_SPARC.h		\
91	avl.h			\
92	avl_impl.h		\
93	bitext.h		\
94	bitmap.h		\
95	bitset.h		\
96	bl.h			\
97	blkdev.h		\
98	bofi.h			\
99	bofi_impl.h		\
100	bpp_io.h		\
101	bootbanner.h		\
102	bootstat.h		\
103	brand.h			\
104	buf.h			\
105	bufmod.h		\
106	bustypes.h		\
107	byteorder.h		\
108	callb.h			\
109	callo.h			\
110	cap_util.h		\
111	cpucaps.h		\
112	cpucaps_impl.h		\
113	ccompile.h		\
114	cdio.h			\
115	cladm.h			\
116	class.h			\
117	clconf.h		\
118	clock_impl.h		\
119	cmlb.h			\
120	cmn_err.h		\
121	compress.h		\
122	condvar.h		\
123	condvar_impl.h		\
124	conf.h			\
125	consdev.h		\
126	console.h		\
127	consplat.h		\
128	vt.h			\
129	vtdaemon.h		\
130	kd.h			\
131	containerof.h		\
132	contract.h		\
133	contract_impl.h		\
134	copyops.h		\
135	core.h			\
136	corectl.h		\
137	cpc_impl.h		\
138	cpc_pcbe.h		\
139	cpr.h			\
140	cpu_uarray.h		\
141	cpupart.h		\
142	cpuvar.h		\
143	crc32.h			\
144	cred.h			\
145	cred_impl.h		\
146	crtctl.h		\
147	cryptmod.h		\
148	csiioctl.h		\
149	ctf.h			\
150	ctfs.h			\
151	ctfs_impl.h		\
152	ctf_api.h		\
153	ctype.h			\
154	cyclic.h		\
155	cyclic_impl.h		\
156	dacf.h			\
157	dacf_impl.h		\
158	damap.h			\
159	damap_impl.h		\
160	dc_ki.h			\
161	ddi.h			\
162	ddifm.h			\
163	ddifm_impl.h		\
164	ddi_hp.h		\
165	ddi_hp_impl.h		\
166	ddi_intr.h		\
167	ddi_intr_impl.h		\
168	ddi_impldefs.h		\
169	ddi_implfuncs.h		\
170	ddi_obsolete.h		\
171	ddi_periodic.h		\
172	ddi_ufm.h		\
173	ddi_ufm_impl.h		\
174	ddidevmap.h		\
175	ddidmareq.h		\
176	ddimapreq.h		\
177	ddipropdefs.h		\
178	dditypes.h		\
179	debug.h			\
180	des.h			\
181	devctl.h		\
182	devcache.h		\
183	devcache_impl.h		\
184	devfm.h			\
185	devid_cache.h		\
186	devinfo_impl.h		\
187	devops.h		\
188	devpolicy.h		\
189	devpoll.h		\
190	dirent.h		\
191	disp.h			\
192	dkbad.h			\
193	dkio.h			\
194	dkioc_free_util.h	\
195	dklabel.h		\
196	dl.h			\
197	dlpi.h			\
198	dld.h			\
199	dld_impl.h		\
200	dld_ioc.h		\
201	dls.h			\
202	dls_mgmt.h		\
203	dls_impl.h		\
204	dma_i8237A.h		\
205	dnlc.h			\
206	door.h			\
207	door_data.h		\
208	door_impl.h		\
209	dtrace.h		\
210	dtrace_impl.h		\
211	dumpadm.h		\
212	dumphdr.h		\
213	ecppsys.h		\
214	ecppio.h		\
215	ecppreg.h		\
216	ecppvar.h		\
217	edonr.h			\
218	efi_partition.h		\
219	elf.h			\
220	elf_386.h		\
221	elf_SPARC.h		\
222	elf_notes.h		\
223	elf_amd64.h		\
224	elftypes.h		\
225	emul64.h		\
226	emul64cmd.h		\
227	emul64var.h		\
228	epm.h			\
229	epoll.h			\
230	errno.h			\
231	errorq.h		\
232	errorq_impl.h		\
233	esunddi.h		\
234	ethernet.h		\
235	euc.h			\
236	eucioctl.h		\
237	eventfd.h		\
238	exacct.h		\
239	exacct_catalog.h	\
240	exacct_impl.h		\
241	exec.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	instance.h		\
288	int_const.h		\
289	int_fmtio.h		\
290	int_limits.h		\
291	int_types.h		\
292	inttypes.h		\
293	ioccom.h		\
294	ioctl.h			\
295	ipc.h			\
296	ipc_impl.h		\
297	ipc_rctl.h		\
298	ipd.h			\
299	ipmi.h			\
300	isa_defs.h		\
301	iscsi_authclient.h	\
302	iscsi_authclientglue.h	\
303	iscsi_protocol.h	\
304	jioctl.h		\
305	kbd.h			\
306	kbdreg.h		\
307	kbio.h			\
308	kcpc.h			\
309	kdi.h			\
310	kdi_impl.h		\
311	kiconv.h		\
312	kiconv_big5_utf8.h	\
313	kiconv_cck_common.h	\
314	kiconv_cp950hkscs_utf8.h	\
315	kiconv_emea1.h		\
316	kiconv_emea2.h		\
317	kiconv_euckr_utf8.h	\
318	kiconv_euctw_utf8.h	\
319	kiconv_gb18030_utf8.h	\
320	kiconv_gb2312_utf8.h	\
321	kiconv_hkscs_utf8.h	\
322	kiconv_ja.h		\
323	kiconv_ja_jis_to_unicode.h	\
324	kiconv_ja_unicode_to_jis.h	\
325	kiconv_ko.h		\
326	kiconv_latin1.h		\
327	kiconv_sc.h		\
328	kiconv_tc.h		\
329	kiconv_uhc_utf8.h	\
330	kiconv_utf8_big5.h	\
331	kiconv_utf8_cp950hkscs.h	\
332	kiconv_utf8_euckr.h	\
333	kiconv_utf8_euctw.h	\
334	kiconv_utf8_gb18030.h	\
335	kiconv_utf8_gb2312.h	\
336	kiconv_utf8_hkscs.h	\
337	kiconv_utf8_uhc.h	\
338	kidmap.h		\
339	klpd.h			\
340	klwp.h			\
341	kmdb.h			\
342	kmem.h			\
343	kmem_impl.h		\
344	kobj.h			\
345	kobj_impl.h		\
346	ksocket.h		\
347	kstat.h			\
348	kstr.h			\
349	ksyms.h			\
350	ksynch.h		\
351	ldterm.h		\
352	lgrp.h			\
353	lgrp_user.h		\
354	libc_kernel.h		\
355	limits.h		\
356	link.h			\
357	linker_set.h		\
358	list.h			\
359	list_impl.h		\
360	llc1.h			\
361	loadavg.h		\
362	lock.h			\
363	lockfs.h		\
364	lockstat.h		\
365	lofi.h			\
366	lofi_impl.h		\
367	log.h			\
368	logindmux.h		\
369	logindmux_impl.h	\
370	lwp.h			\
371	lwp_timer_impl.h	\
372	lwp_upimutex_impl.h	\
373	lpif.h			\
374	mac.h			\
375	mac_client.h		\
376	mac_client_impl.h	\
377	mac_ether.h		\
378	mac_flow.h		\
379	mac_flow_impl.h		\
380	mac_impl.h		\
381	mac_provider.h		\
382	mac_soft_ring.h		\
383	mac_stat.h		\
384	machelf.h		\
385	map.h			\
386	md4.h			\
387	md5.h			\
388	md5_consts.h		\
389	mdi_impldefs.h		\
390	mem.h			\
391	mem_config.h		\
392	memlist.h		\
393	mkdev.h			\
394	mhd.h			\
395	mii.h			\
396	miiregs.h		\
397	mixer.h			\
398	mman.h			\
399	mmapobj.h		\
400	mntent.h		\
401	mntio.h			\
402	mnttab.h		\
403	modctl.h		\
404	mode.h			\
405	model.h			\
406	modhash.h		\
407	modhash_impl.h		\
408	mount.h			\
409	mouse.h			\
410	msacct.h		\
411	msg.h			\
412	msg_impl.h		\
413	msio.h			\
414	msreg.h			\
415	mtio.h			\
416	mutex.h			\
417	nbmlock.h		\
418	ndifm.h			\
419	ndi_impldefs.h		\
420	net80211.h		\
421	net80211_amrr.h		\
422	net80211_crypto.h	\
423	net80211_ht.h		\
424	net80211_proto.h	\
425	netconfig.h		\
426	neti.h			\
427	netstack.h		\
428	nexusdefs.h		\
429	note.h			\
430	null.h			\
431	nvme.h			\
432	nvpair.h		\
433	nvpair_impl.h		\
434	objfs.h			\
435	objfs_impl.h		\
436	ontrap.h		\
437	open.h			\
438	openpromio.h		\
439	overlay.h		\
440	overlay_common.h	\
441	overlay_target.h	\
442	panic.h			\
443	param.h			\
444	pathconf.h		\
445	pathname.h		\
446	pattr.h			\
447	queue.h			\
448	serializer.h		\
449	pbio.h			\
450	pccard.h		\
451	pci.h			\
452	pcie.h			\
453	pci_impl.h		\
454	pci_tools.h		\
455	pcmcia.h		\
456	pctypes.h		\
457	pfmod.h			\
458	pg.h			\
459	pghw.h			\
460	physmem.h		\
461	pkp_hash.h		\
462	pm.h			\
463	policy.h		\
464	poll.h			\
465	poll_impl.h		\
466	pool.h			\
467	pool_impl.h		\
468	pool_pset.h		\
469	port.h			\
470	port_impl.h		\
471	port_kernel.h		\
472	portif.h		\
473	ppmio.h			\
474	pppt_ic_if.h		\
475	pppt_ioctl.h		\
476	priocntl.h		\
477	priv.h			\
478	priv_impl.h		\
479	prnio.h			\
480	proc.h			\
481	processor.h		\
482	procfs.h		\
483	procset.h		\
484	project.h		\
485	protosw.h		\
486	prsystm.h		\
487	pset.h			\
488	pshot.h			\
489	ptem.h			\
490	ptms.h			\
491	ptyvar.h		\
492	raidioctl.h		\
493	ramdisk.h		\
494	random.h		\
495	rctl.h			\
496	rctl_impl.h		\
497	rds.h			\
498	reboot.h		\
499	refstr.h		\
500	refstr_impl.h		\
501	resource.h		\
502	rlioctl.h		\
503	rt.h			\
504	rtpriocntl.h		\
505	rwlock.h		\
506	rwlock_impl.h		\
507	rwstlock.h		\
508	sad.h			\
509	schedctl.h		\
510	sdt.h			\
511	secflags.h		\
512	select.h		\
513	sem.h			\
514	sem_impl.h		\
515	sema_impl.h		\
516	semaphore.h		\
517	sendfile.h		\
518	sensors.h		\
519	ser_sync.h		\
520	session.h		\
521	sha1.h			\
522	sha1_consts.h		\
523	sha2.h			\
524	sha2_consts.h		\
525	share.h			\
526	shm.h			\
527	shm_impl.h		\
528	sid.h			\
529	siginfo.h		\
530	signal.h		\
531	signalfd.h		\
532	skein.h			\
533	sleepq.h		\
534	smbios.h		\
535	smbios_impl.h		\
536	sobject.h		\
537	socket.h		\
538	socket_impl.h		\
539	socket_proto.h		\
540	socketvar.h		\
541	sockfilter.h		\
542	sockio.h		\
543	soundcard.h		\
544	squeue.h		\
545	squeue_impl.h		\
546	srn.h			\
547	sservice.h		\
548	stat.h			\
549	statfs.h		\
550	statvfs.h		\
551	stdbool.h		\
552	stddef.h		\
553	stdint.h		\
554	stermio.h		\
555	stmf.h			\
556	stmf_defines.h		\
557	stmf_ioctl.h		\
558	stmf_sbd_ioctl.h	\
559	stream.h		\
560	strft.h			\
561	strlog.h		\
562	strmdep.h		\
563	stropts.h		\
564	strredir.h		\
565	strstat.h		\
566	strsubr.h		\
567	strsun.h		\
568	strtty.h		\
569	sunddi.h		\
570	sunldi.h		\
571	sunldi_impl.h		\
572	sunmdi.h		\
573	sunndi.h		\
574	sunos_dhcp_class.h	\
575	sunpm.h			\
576	suntpi.h		\
577	suntty.h		\
578	swap.h			\
579	synch.h			\
580	sysdc.h			\
581	sysdc_impl.h		\
582	syscall.h		\
583	sysconf.h		\
584	sysconfig.h		\
585	sysevent.h		\
586	sysevent_impl.h		\
587	sysinfo.h		\
588	syslog.h		\
589	sysmacros.h		\
590	sysmsg_impl.h		\
591	systeminfo.h		\
592	systm.h			\
593	task.h			\
594	taskq.h			\
595	taskq_impl.h		\
596	t_kuser.h		\
597	t_lock.h		\
598	telioctl.h		\
599	termio.h		\
600	termios.h		\
601	termiox.h		\
602	thread.h		\
603	ticlts.h		\
604	ticots.h		\
605	ticotsord.h		\
606	tihdr.h			\
607	time.h			\
608	time_impl.h		\
609	time_std_impl.h		\
610	timeb.h			\
611	timer.h			\
612	timerfd.h		\
613	times.h			\
614	timex.h			\
615	timod.h			\
616	tirdwr.h		\
617	tiuser.h		\
618	tl.h			\
619	tnf.h			\
620	tnf_com.h		\
621	tnf_probe.h		\
622	tnf_writer.h		\
623	todio.h			\
624	tpicommon.h		\
625	ts.h			\
626	tspriocntl.h		\
627	ttcompat.h		\
628	ttold.h			\
629	tty.h			\
630	ttychars.h		\
631	ttydev.h		\
632	tuneable.h		\
633	turnstile.h		\
634	types.h			\
635	types32.h		\
636	tzfile.h		\
637	u8_textprep.h		\
638	u8_textprep_data.h	\
639	uadmin.h		\
640	ucred.h			\
641	uio.h			\
642	ulimit.h		\
643	un.h			\
644	unistd.h		\
645	user.h			\
646	ustat.h			\
647	utime.h			\
648	utsname.h		\
649	utssys.h		\
650	uuid.h			\
651	va_impl.h		\
652	va_list.h		\
653	var.h			\
654	varargs.h		\
655	vfs.h			\
656	vfs_opreg.h		\
657	vfstab.h		\
658	vgareg.h		\
659	videodev2.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
885SCSIHDRS=		\
886	scsi.h		\
887	scsi_address.h	\
888	scsi_ctl.h	\
889	scsi_fm.h	\
890	scsi_names.h	\
891	scsi_params.h	\
892	scsi_pkt.h	\
893	scsi_resource.h	\
894	scsi_types.h	\
895	scsi_watch.h
896
897SCSICONFHDRS=		\
898	autoconf.h	\
899	device.h
900
901SCSIGENHDRS=		\
902	commands.h	\
903	dad_mode.h	\
904	inquiry.h	\
905	message.h	\
906	mode.h		\
907	persist.h	\
908	sense.h		\
909	sff_frames.h	\
910	smp_frames.h	\
911	status.h
912
913SCSIIMPLHDRS=		\
914	commands.h	\
915	inquiry.h	\
916	mode.h		\
917	scsi_reset_notify.h \
918	scsi_sas.h	\
919	sense.h		\
920	services.h	\
921	smp_transport.h	\
922	spc3_types.h	\
923	status.h	\
924	transport.h	\
925	types.h		\
926	uscsi.h		\
927	usmp.h
928
929SCSITARGETSHDRS=	\
930	ses.h		\
931	sesio.h		\
932	sgendef.h	\
933	stdef.h		\
934	sddef.h		\
935	smp.h
936
937SCSIADHDRS=
938
939SCSICADHDRS=
940
941SCSIISCSIHDRS=		\
942	iscsi_door.h	\
943	iscsi_if.h
944
945SCSIVHCIHDRS=		\
946	scsi_vhci.h	\
947	mpapi_impl.h	\
948	mpapi_scsi_vhci.h
949
950SDCARDHDRS=		\
951	sda.h		\
952	sda_impl.h	\
953	sda_ioctl.h
954
955FC4HDRS=			\
956	fc_transport.h	\
957	linkapp.h	\
958	fc.h		\
959	fcp.h		\
960	fcal_transport.h \
961	fcal.h		\
962	fcal_linkapp.h	\
963	fcio.h
964
965FCHDRS=			\
966	fc.h		\
967	fcio.h		\
968	fc_types.h	\
969	fc_appif.h
970
971FCIMPLHDRS=		\
972	fc_error.h	\
973	fcph.h
974
975FCULPHDRS=		\
976	fcp_util.h	\
977	fcsm.h
978
979SATAGENHDRS=		\
980	sata_hba.h	\
981	sata_defs.h	\
982	sata_cfgadm.h
983
984SYSEVENTHDRS=		\
985	datalink.h	\
986	dev.h		\
987	domain.h        \
988	dr.h            \
989	env.h           \
990	eventdefs.h	\
991	ipmp.h		\
992	pwrctl.h	\
993	vrrp.h
994
995CONTRACTHDRS=		\
996	process.h	\
997	process_impl.h	\
998	device.h	\
999	device_impl.h
1000
1001USBHDRS=	\
1002	usba.h	\
1003	usbai.h
1004
1005USBAUDHDRS=           \
1006	usb_audio.h
1007
1008USBHUBDHDRS=		\
1009	hub.h		\
1010	hubd_impl.h
1011
1012USBHIDHDRS=		\
1013	hid.h
1014
1015USBMSHDRS=		\
1016	usb_bulkonly.h	\
1017	usb_cbi.h
1018
1019USBPRNHDRS=           \
1020	usb_printer.h
1021
1022USBCDCHDRS=		\
1023	usb_cdc.h
1024
1025USBVIDHDRS=           \
1026	usbvc.h
1027
1028USBWCMHDRS=		\
1029	usbwcm.h
1030
1031UGENHDRS=           \
1032	usb_ugen.h
1033
1034USBCCIDHDRS = \
1035	ccid.h \
1036	uccid.h
1037
1038HOTPLUGHDRS=	\
1039	hpcsvc.h	\
1040	hpctrl.h
1041
1042HOTPLUGPCIHDRS=	\
1043	pcicfg.h	\
1044	pcihp.h
1045
1046RSMHDRS= \
1047	rsm.h	\
1048	rsm_common.h	\
1049	rsmapi_common.h \
1050	rsmpi.h	\
1051	rsmpi_driver.h	\
1052	rsmka_path_int.h
1053
1054TSOLHDRS=		\
1055	label.h		\
1056	label_macro.h	\
1057	priv.h		\
1058	tndb.h		\
1059	tsyscall.h
1060
1061I1394HDRS=		\
1062	cmd1394.h	\
1063	id1394.h	\
1064	ieee1212.h	\
1065	ieee1394.h	\
1066	ixl1394.h	\
1067	s1394_impl.h	\
1068	t1394.h
1069
1070# "cmdk" headers used on sparc
1071SDKTPHDRS=		\
1072	dadkio.h	\
1073	fdisk.h
1074
1075# "cmdk" headers used on i386
1076DKTPHDRS=		\
1077	altsctr.h	\
1078	bbh.h		\
1079	cm.h		\
1080	cmdev.h		\
1081	cmdk.h		\
1082	cmpkt.h		\
1083	controller.h	\
1084	dadev.h		\
1085	dadk.h		\
1086	dadkio.h	\
1087	fctypes.h	\
1088	fdisk.h		\
1089	flowctrl.h	\
1090	gda.h		\
1091	quetypes.h	\
1092	queue.h		\
1093	tgcom.h		\
1094	tgdk.h
1095
1096# "pc" header files used on i386
1097PCHDRS=			\
1098	avintr.h	\
1099	dma_engine.h	\
1100	i8272A.h	\
1101	pcic_reg.h	\
1102	pcic_var.h	\
1103	pic.h		\
1104	pit.h		\
1105	rtc.h
1106
1107NXGEHDRS=			\
1108	nxge.h			\
1109	nxge_common.h		\
1110	nxge_common_impl.h	\
1111	nxge_defs.h		\
1112	nxge_hw.h		\
1113	nxge_impl.h		\
1114	nxge_ipp.h		\
1115	nxge_ipp_hw.h		\
1116	nxge_mac.h		\
1117	nxge_mac_hw.h		\
1118	nxge_fflp.h		\
1119	nxge_fflp_hw.h		\
1120	nxge_mii.h		\
1121	nxge_rxdma.h		\
1122	nxge_rxdma_hw.h		\
1123	nxge_txc.h		\
1124	nxge_txc_hw.h		\
1125	nxge_txdma.h		\
1126	nxge_txdma_hw.h		\
1127	nxge_virtual.h		\
1128	nxge_espc.h
1129
1130PLATHDRS=		\
1131	pci_prd.h
1132
1133include Makefile.syshdrs
1134
1135dcam/%.check:	dcam/%.h
1136	$(DOT_H_CHECK)
1137
1138CHECKHDRS=						\
1139	$($(MACH)_HDRS:%.h=%.check)			\
1140	$(AUDIOHDRS:%.h=audio/%.check)			\
1141	$(AVHDRS:%.h=av/%.check)			\
1142	$(LOMHDRS:%.h=%.check)				\
1143	$(CHKHDRS:%.h=%.check)				\
1144	$(CPUDRVHDRS:%.h=%.check)			\
1145	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1146	$(DCAMHDRS:%.h=dcam/%.check)			\
1147	$(FC4HDRS:%.h=fc4/%.check)			\
1148	$(FCHDRS:%.h=fibre-channel/%.check)		\
1149	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1150	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1151	$(IBHDRS:%.h=ib/%.check)			\
1152	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1153	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1154	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1155	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1156	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1157	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1158	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1159	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1160	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1161	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1162	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1163	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1164	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1165	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1166	$(IDMHDRS:%.h=idm/%.check)			\
1167	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1168	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1169	$(ISOHDRS:%.h=iso/%.check)			\
1170	$(FMHDRS:%.h=fm/%.check)			\
1171	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1172	$(FMIOHDRS:%.h=fm/io/%.check)			\
1173	$(FSHDRS:%.h=fs/%.check)			\
1174	$(SCSIHDRS:%.h=scsi/%.check)			\
1175	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1176	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1177	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1178	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1179	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1180	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1181	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1182	$(SATAGENHDRS:%.h=sata/%.check)			\
1183	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1184	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1185	$(CONTRACTHDRS:%.h=contract/%.check)            \
1186	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1187	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1188	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1189	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1190	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1191	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1192	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1193	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1194	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1195	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1196	$(USBHDRS:%.h=usb/%.check)                      \
1197	$(I1394HDRS:%.h=1394/%.check)			\
1198	$(RSMHDRS:%.h=rsm/%.check)			\
1199	$(TSOLHDRS:%.h=tsol/%.check)			\
1200	$(NXGEHDRS:%.h=nxge/%.check)			\
1201	$(PLATHDRS:%.h=plat/%.check)
1202
1203
1204.KEEP_STATE:
1205
1206.PARALLEL:			\
1207	$(CHECKHDRS)		\
1208	$(ROOTHDRS)		\
1209	$(ROOTAUDHDRS)		\
1210	$(ROOTAVHDRS)		\
1211	$(ROOTCRYPTOHDRS)	\
1212	$(ROOTDCAMHDRS)		\
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	$(ROOTSOL_OFSHDRS)	\
1235	$(ROOTSOL_UMADHDRS)	\
1236	$(ROOTSOL_UVERBSHDRS)	\
1237	$(ROOTSOL_UCMAHDRS)	\
1238	$(ROOTTAVORHDRS)	\
1239	$(ROOTHERMONHDRS)	\
1240	$(ROOTMLNXHDRS)		\
1241	$(ROOTPLATHDRS)		\
1242	$(ROOTSCSIHDRS)		\
1243	$(ROOTSCSIADHDRS)	\
1244	$(ROOTSCSICONFHDRS)	\
1245	$(ROOTSCSIISCSIHDRS)	\
1246	$(ROOTSCSIGENHDRS)	\
1247	$(ROOTSCSIIMPLHDRS)	\
1248	$(ROOTSCSIVHCIHDRS)	\
1249	$(ROOTSDCARDHDRS)	\
1250	$(ROOTSYSEVENTHDRS)     \
1251	$(ROOTCONTRACTHDRS)     \
1252	$(ROOTUSBHDRS)		\
1253	$(ROOTUWBHDRS)		\
1254	$(ROOTUWBAHDRS)		\
1255	$(ROOTUSBAUDHDRS)	\
1256	$(ROOTUSBHUBDHDRS)	\
1257	$(ROOTUSBHIDHDRS)	\
1258	$(ROOTUSBHRCHDRS)	\
1259	$(ROOTUSBMSHDRS)	\
1260	$(ROOTUSBPRNHDRS)       \
1261	$(ROOTUSBCDCHDRS)       \
1262	$(ROOTUSBVIDHDRS)       \
1263	$(ROOTUSBWCMHDRS)	\
1264	$(ROOTUSBCCIDHDRS)	\
1265	$(ROOTUGENHDRS)		\
1266	$(ROOT1394HDRS)         \
1267	$(ROOTHOTPLUGHDRS)	\
1268	$(ROOTHOTPLUGPCIHDRS)	\
1269	$(ROOTRSMHDRS)		\
1270	$(ROOTTSOLHDRS)		\
1271	$($(MACH)_ROOTHDRS)
1272
1273
1274install_h:			\
1275	$(ROOTDIRS)		\
1276	.WAIT			\
1277	$(ROOTHDRS)		\
1278	$(ROOTAUDHDRS)		\
1279	$(ROOTAVHDRS)		\
1280	$(ROOTCRYPTOHDRS)	\
1281	$(ROOTDCAMHDRS)		\
1282	$(ROOTISOHDRS)		\
1283	$(ROOTIDMHDRS)		\
1284	$(ROOTISCSIHDRS)	\
1285	$(ROOTISCSITHDRS)	\
1286	$(ROOTFC4HDRS)		\
1287	$(ROOTFCHDRS)		\
1288	$(ROOTFCIMPLHDRS)	\
1289	$(ROOTFCULPHDRS)	\
1290	$(ROOTFMHDRS)		\
1291	$(ROOTFMFSHDRS)		\
1292	$(ROOTFMIOHDRS)		\
1293	$(ROOTFSHDRS)		\
1294	$(ROOTIBDHDRS)		\
1295	$(ROOTIBHDRS)		\
1296	$(ROOTIBTLHDRS)		\
1297	$(ROOTIBTLIMPLHDRS)	\
1298	$(ROOTIBNEXHDRS)	\
1299	$(ROOTIBMGTHDRS)	\
1300	$(ROOTIBMFHDRS)		\
1301	$(ROOTOFHDRS)		\
1302	$(ROOTRDMAHDRS)		\
1303	$(ROOTSOL_OFSHDRS)	\
1304	$(ROOTSOL_UMADHDRS)	\
1305	$(ROOTSOL_UVERBSHDRS)	\
1306	$(ROOTSOL_UCMAHDRS)	\
1307	$(ROOTTAVORHDRS)	\
1308	$(ROOTHERMONHDRS)	\
1309	$(ROOTMLNXHDRS)		\
1310	$(ROOTPLATHDRS)		\
1311	$(ROOTSCSIHDRS)		\
1312	$(ROOTSCSIADHDRS)	\
1313	$(ROOTSCSIISCSIHDRS)	\
1314	$(ROOTSCSICONFHDRS)	\
1315	$(ROOTSCSIGENHDRS)	\
1316	$(ROOTSCSIIMPLHDRS)	\
1317	$(ROOTSCSIVHCIHDRS)     \
1318	$(ROOTSDCARDHDRS)	\
1319	$(ROOTSYSEVENTHDRS)     \
1320	$(ROOTCONTRACTHDRS)     \
1321	$(ROOTUWBHDRS)		\
1322	$(ROOTUWBAHDRS)		\
1323	$(ROOTUSBHDRS)		\
1324	$(ROOTUSBCCIDHDRS)	\
1325	$(ROOTUSBAUDHDRS)	\
1326	$(ROOTUSBHUBDHDRS)	\
1327	$(ROOTUSBHIDHDRS)	\
1328	$(ROOTUSBHRCHDRS)	\
1329	$(ROOTUSBMSHDRS)	\
1330	$(ROOTUSBPRNHDRS)       \
1331	$(ROOTUSBCDCHDRS)       \
1332	$(ROOTUSBVIDHDRS)       \
1333	$(ROOTUSBWCMHDRS)	\
1334	$(ROOTUGENHDRS)		\
1335	$(ROOT1394HDRS)         \
1336	$(ROOTHOTPLUGHDRS)	\
1337	$(ROOTHOTPLUGPCIHDRS)	\
1338	$(ROOTRSMHDRS)		\
1339	$(ROOTTSOLHDRS)		\
1340	$($(MACH)_ROOTHDRS)
1341
1342all_h: $(GENHDRS)
1343
1344priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1345	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1346
1347priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1348	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1349
1350usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1351	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1352
1353clean:
1354	$(RM) $(GENHDRS)
1355
1356clobber: clean
1357
1358check:	$(CHECKHDRS)
1359
1360FRC:
1361