xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 61dfa5098dc8576d9a5e277deba6df647bb70c06)
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 2013 Garrett D'Amore <garrett@damore.org>
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#
31
32include $(SRC)/uts/Makefile.uts
33
34FILEMODE=644
35
36#
37#	Note that the following headers are present in the kernel but
38#	neither installed or shipped as part of the product:
39#		cpuid_drv.h:		Private interface for cpuid consumers
40#		unix_bb_info.h:		Private interface to kcov
41#		nvme.h			Private interface to nvme
42#
43
44i386_HDRS=			\
45	asy.h			\
46	fd_debug.h		\
47	fdc.h			\
48	fdmedia.h		\
49	firmload.h		\
50	gfx_private.h		\
51	mouse.h			\
52	nvme.h			\
53	ucode.h
54
55sparc_HDRS=			\
56	mouse.h			\
57	scsi/targets/ssddef.h	\
58	$(MDESCHDRS)
59
60# Generated headers
61GENHDRS=			\
62	priv_const.h		\
63	priv_names.h		\
64	usb/usbdevs.h
65
66CHKHDRS=			\
67	acpi_drv.h		\
68	acct.h			\
69	acctctl.h		\
70	acl.h			\
71	acl_impl.h		\
72	aggr.h			\
73	aggr_impl.h		\
74	aio.h			\
75	aio_impl.h		\
76	aio_req.h		\
77	aiocb.h			\
78	ascii.h			\
79	asynch.h		\
80	atomic.h		\
81	attr.h			\
82	audio.h			\
83	audioio.h		\
84	autoconf.h		\
85	auxv.h			\
86	auxv_386.h		\
87	auxv_SPARC.h		\
88	avl.h			\
89	avl_impl.h		\
90	bitmap.h		\
91	bitset.h		\
92	bl.h			\
93	blkdev.h		\
94	bofi.h			\
95	bofi_impl.h		\
96	bpp_io.h		\
97	bootstat.h		\
98	brand.h			\
99	buf.h			\
100	bufmod.h		\
101	bustypes.h		\
102	byteorder.h		\
103	callb.h			\
104	callo.h			\
105	cap_util.h		\
106	cpucaps.h		\
107	cpucaps_impl.h		\
108	ccompile.h		\
109	cdio.h			\
110	cladm.h			\
111	class.h			\
112	clconf.h		\
113	clock_impl.h		\
114	cmlb.h			\
115	cmn_err.h		\
116	compress.h		\
117	condvar.h		\
118	condvar_impl.h		\
119	conf.h			\
120	consdev.h		\
121	console.h		\
122	consplat.h		\
123	vt.h			\
124	vtdaemon.h		\
125	kd.h			\
126	containerof.h		\
127	contract.h		\
128	contract_impl.h		\
129	copyops.h		\
130	core.h			\
131	corectl.h		\
132	cpc_impl.h		\
133	cpc_pcbe.h		\
134	cpr.h			\
135	cpu_uarray.h		\
136	cpupart.h		\
137	cpuvar.h		\
138	crc32.h			\
139	cred.h			\
140	cred_impl.h		\
141	crtctl.h		\
142	cryptmod.h		\
143	csiioctl.h		\
144	ctf.h			\
145	ctfs.h			\
146	ctfs_impl.h		\
147	ctf_api.h		\
148	ctype.h			\
149	cyclic.h		\
150	cyclic_impl.h		\
151	dacf.h			\
152	dacf_impl.h		\
153	damap.h			\
154	damap_impl.h		\
155	dc_ki.h			\
156	ddi.h			\
157	ddifm.h			\
158	ddifm_impl.h		\
159	ddi_hp.h		\
160	ddi_hp_impl.h		\
161	ddi_intr.h		\
162	ddi_intr_impl.h		\
163	ddi_impldefs.h		\
164	ddi_implfuncs.h		\
165	ddi_obsolete.h		\
166	ddi_periodic.h		\
167	ddi_ufm.h		\
168	ddi_ufm_impl.h		\
169	ddidevmap.h		\
170	ddidmareq.h		\
171	ddimapreq.h		\
172	ddipropdefs.h		\
173	dditypes.h		\
174	debug.h			\
175	des.h			\
176	devctl.h		\
177	devcache.h		\
178	devcache_impl.h		\
179	devfm.h			\
180	devid_cache.h		\
181	devinfo_impl.h		\
182	devops.h		\
183	devpolicy.h		\
184	devpoll.h		\
185	dirent.h		\
186	disp.h			\
187	dkbad.h			\
188	dkio.h			\
189	dkioc_free_util.h	\
190	dklabel.h		\
191	dl.h			\
192	dlpi.h			\
193	dld.h			\
194	dld_impl.h		\
195	dld_ioc.h		\
196	dls.h			\
197	dls_mgmt.h		\
198	dls_impl.h		\
199	dma_i8237A.h		\
200	dnlc.h			\
201	door.h			\
202	door_data.h		\
203	door_impl.h		\
204	dtrace.h		\
205	dtrace_impl.h		\
206	dumpadm.h		\
207	dumphdr.h		\
208	ecppsys.h		\
209	ecppio.h		\
210	ecppreg.h		\
211	ecppvar.h		\
212	edonr.h			\
213	efi_partition.h		\
214	elf.h			\
215	elf_386.h		\
216	elf_SPARC.h		\
217	elf_notes.h		\
218	elf_amd64.h		\
219	elftypes.h		\
220	emul64.h		\
221	emul64cmd.h		\
222	emul64var.h		\
223	epm.h			\
224	epoll.h			\
225	errno.h			\
226	errorq.h		\
227	errorq_impl.h		\
228	esunddi.h		\
229	ethernet.h		\
230	euc.h			\
231	eucioctl.h		\
232	eventfd.h		\
233	exacct.h		\
234	exacct_catalog.h	\
235	exacct_impl.h		\
236	exec.h			\
237	exechdr.h		\
238	extdirent.h		\
239	fault.h			\
240	fasttrap.h		\
241	fasttrap_impl.h		\
242	fbio.h			\
243	fbuf.h			\
244	fcntl.h			\
245	fct.h			\
246	fct_defines.h		\
247	fctio.h			\
248	fdbuffer.h		\
249	fdio.h			\
250	feature_tests.h		\
251	fem.h			\
252	file.h			\
253	filio.h			\
254	flock.h			\
255	flock_impl.h		\
256	fork.h			\
257	fss.h			\
258	fsspriocntl.h		\
259	fsid.h			\
260	fssnap.h		\
261	fssnap_if.h		\
262	fstyp.h			\
263	ftrace.h		\
264	fx.h			\
265	fxpriocntl.h		\
266	gfs.h			\
267	gld.h			\
268	gldpriv.h		\
269	group.h			\
270	hdio.h			\
271	hook.h			\
272	hook_event.h		\
273	hook_impl.h		\
274	hwconf.h		\
275	ia.h			\
276	iapriocntl.h		\
277	ibpart.h		\
278	id32.h			\
279	idmap.h			\
280	ieeefp.h		\
281	id_space.h		\
282	instance.h		\
283	int_const.h		\
284	int_fmtio.h		\
285	int_limits.h		\
286	int_types.h		\
287	inttypes.h		\
288	ioccom.h		\
289	ioctl.h			\
290	ipc.h			\
291	ipc_impl.h		\
292	ipc_rctl.h		\
293	ipd.h			\
294	ipmi.h			\
295	isa_defs.h		\
296	iscsi_authclient.h	\
297	iscsi_authclientglue.h	\
298	iscsi_protocol.h	\
299	jioctl.h		\
300	kbd.h			\
301	kbdreg.h		\
302	kbio.h			\
303	kcpc.h			\
304	kdi.h			\
305	kdi_impl.h		\
306	kiconv.h		\
307	kiconv_big5_utf8.h	\
308	kiconv_cck_common.h	\
309	kiconv_cp950hkscs_utf8.h	\
310	kiconv_emea1.h		\
311	kiconv_emea2.h		\
312	kiconv_euckr_utf8.h	\
313	kiconv_euctw_utf8.h	\
314	kiconv_gb18030_utf8.h	\
315	kiconv_gb2312_utf8.h	\
316	kiconv_hkscs_utf8.h	\
317	kiconv_ja.h		\
318	kiconv_ja_jis_to_unicode.h	\
319	kiconv_ja_unicode_to_jis.h	\
320	kiconv_ko.h		\
321	kiconv_latin1.h		\
322	kiconv_sc.h		\
323	kiconv_tc.h		\
324	kiconv_uhc_utf8.h	\
325	kiconv_utf8_big5.h	\
326	kiconv_utf8_cp950hkscs.h	\
327	kiconv_utf8_euckr.h	\
328	kiconv_utf8_euctw.h	\
329	kiconv_utf8_gb18030.h	\
330	kiconv_utf8_gb2312.h	\
331	kiconv_utf8_hkscs.h	\
332	kiconv_utf8_uhc.h	\
333	kidmap.h		\
334	klpd.h			\
335	klwp.h			\
336	kmdb.h			\
337	kmem.h			\
338	kmem_impl.h		\
339	kobj.h			\
340	kobj_impl.h		\
341	ksocket.h		\
342	kstat.h			\
343	kstr.h			\
344	ksyms.h			\
345	ksynch.h		\
346	ldterm.h		\
347	lgrp.h			\
348	lgrp_user.h		\
349	libc_kernel.h		\
350	link.h			\
351	linker_set.h		\
352	list.h			\
353	list_impl.h		\
354	llc1.h			\
355	loadavg.h		\
356	lock.h			\
357	lockfs.h		\
358	lockstat.h		\
359	lofi.h			\
360	lofi_impl.h		\
361	log.h			\
362	logindmux.h		\
363	logindmux_impl.h	\
364	lwp.h			\
365	lwp_timer_impl.h	\
366	lwp_upimutex_impl.h	\
367	lpif.h			\
368	mac.h			\
369	mac_client.h		\
370	mac_client_impl.h	\
371	mac_ether.h		\
372	mac_flow.h		\
373	mac_flow_impl.h		\
374	mac_impl.h		\
375	mac_provider.h		\
376	mac_soft_ring.h		\
377	mac_stat.h		\
378	machelf.h		\
379	map.h			\
380	md4.h			\
381	md5.h			\
382	md5_consts.h		\
383	mdi_impldefs.h		\
384	mem.h			\
385	mem_config.h		\
386	memlist.h		\
387	mkdev.h			\
388	mhd.h			\
389	mii.h			\
390	miiregs.h		\
391	mixer.h			\
392	mman.h			\
393	mmapobj.h		\
394	mntent.h		\
395	mntio.h			\
396	mnttab.h		\
397	modctl.h		\
398	mode.h			\
399	model.h			\
400	modhash.h		\
401	modhash_impl.h		\
402	mount.h			\
403	mouse.h			\
404	msacct.h		\
405	msg.h			\
406	msg_impl.h		\
407	msio.h			\
408	msreg.h			\
409	mtio.h			\
410	multidata.h		\
411	multidata_impl.h	\
412	mutex.h			\
413	nbmlock.h		\
414	ndifm.h			\
415	ndi_impldefs.h		\
416	net80211.h		\
417	net80211_amrr.h		\
418	net80211_crypto.h	\
419	net80211_ht.h		\
420	net80211_proto.h	\
421	netconfig.h		\
422	neti.h			\
423	netstack.h		\
424	nexusdefs.h		\
425	note.h			\
426	null.h			\
427	nvme.h			\
428	nvpair.h		\
429	nvpair_impl.h		\
430	objfs.h			\
431	objfs_impl.h		\
432	ontrap.h		\
433	open.h			\
434	openpromio.h		\
435	panic.h			\
436	param.h			\
437	pathconf.h		\
438	pathname.h		\
439	pattr.h			\
440	queue.h			\
441	serializer.h		\
442	pbio.h			\
443	pccard.h		\
444	pci.h			\
445	pcie.h			\
446	pci_impl.h		\
447	pci_tools.h		\
448	pcmcia.h		\
449	pctypes.h		\
450	pfmod.h			\
451	pg.h			\
452	pghw.h			\
453	physmem.h		\
454	pkp_hash.h		\
455	pm.h			\
456	policy.h		\
457	poll.h			\
458	poll_impl.h		\
459	pool.h			\
460	pool_impl.h		\
461	pool_pset.h		\
462	port.h			\
463	port_impl.h		\
464	port_kernel.h		\
465	portif.h		\
466	ppmio.h			\
467	pppt_ic_if.h		\
468	pppt_ioctl.h		\
469	priocntl.h		\
470	priv.h			\
471	priv_impl.h		\
472	prnio.h			\
473	proc.h			\
474	processor.h		\
475	procfs.h		\
476	procset.h		\
477	project.h		\
478	protosw.h		\
479	prsystm.h		\
480	pset.h			\
481	pshot.h			\
482	ptem.h			\
483	ptms.h			\
484	ptyvar.h		\
485	raidioctl.h		\
486	ramdisk.h		\
487	random.h		\
488	rctl.h			\
489	rctl_impl.h		\
490	rds.h			\
491	reboot.h		\
492	refstr.h		\
493	refstr_impl.h		\
494	resource.h		\
495	rlioctl.h		\
496	rt.h			\
497	rtpriocntl.h		\
498	rwlock.h		\
499	rwlock_impl.h		\
500	rwstlock.h		\
501	sad.h			\
502	schedctl.h		\
503	sdt.h			\
504	secflags.h		\
505	select.h		\
506	sem.h			\
507	sem_impl.h		\
508	sema_impl.h		\
509	semaphore.h		\
510	sendfile.h		\
511	sensors.h		\
512	ser_sync.h		\
513	session.h		\
514	sha1.h			\
515	sha1_consts.h		\
516	sha2.h			\
517	sha2_consts.h		\
518	share.h			\
519	shm.h			\
520	shm_impl.h		\
521	sid.h			\
522	siginfo.h		\
523	signal.h		\
524	signalfd.h		\
525	skein.h			\
526	sleepq.h		\
527	smbios.h		\
528	smbios_impl.h		\
529	sobject.h		\
530	socket.h		\
531	socket_impl.h		\
532	socket_proto.h		\
533	socketvar.h		\
534	sockfilter.h		\
535	sockio.h		\
536	soundcard.h		\
537	squeue.h		\
538	squeue_impl.h		\
539	srn.h			\
540	sservice.h		\
541	stat.h			\
542	statfs.h		\
543	statvfs.h		\
544	stdbool.h		\
545	stddef.h		\
546	stdint.h		\
547	stermio.h		\
548	stmf.h			\
549	stmf_defines.h		\
550	stmf_ioctl.h		\
551	stmf_sbd_ioctl.h	\
552	stream.h		\
553	strft.h			\
554	strlog.h		\
555	strmdep.h		\
556	stropts.h		\
557	strredir.h		\
558	strstat.h		\
559	strsubr.h		\
560	strsun.h		\
561	strtty.h		\
562	sunddi.h		\
563	sunldi.h		\
564	sunldi_impl.h		\
565	sunmdi.h		\
566	sunndi.h		\
567	sunos_dhcp_class.h	\
568	sunpm.h			\
569	suntpi.h		\
570	suntty.h		\
571	swap.h			\
572	synch.h			\
573	sysdc.h			\
574	sysdc_impl.h		\
575	syscall.h		\
576	sysconf.h		\
577	sysconfig.h		\
578	sysevent.h		\
579	sysevent_impl.h		\
580	sysinfo.h		\
581	syslog.h		\
582	sysmacros.h		\
583	sysmsg_impl.h		\
584	systeminfo.h		\
585	systm.h			\
586	task.h			\
587	taskq.h			\
588	taskq_impl.h		\
589	t_kuser.h		\
590	t_lock.h		\
591	telioctl.h		\
592	termio.h		\
593	termios.h		\
594	termiox.h		\
595	thread.h		\
596	ticlts.h		\
597	ticots.h		\
598	ticotsord.h		\
599	tihdr.h			\
600	time.h			\
601	time_impl.h		\
602	time_std_impl.h		\
603	timeb.h			\
604	timer.h			\
605	timerfd.h		\
606	times.h			\
607	timex.h			\
608	timod.h			\
609	tirdwr.h		\
610	tiuser.h		\
611	tl.h			\
612	tnf.h			\
613	tnf_com.h		\
614	tnf_probe.h		\
615	tnf_writer.h		\
616	todio.h			\
617	tpicommon.h		\
618	ts.h			\
619	tspriocntl.h		\
620	ttcompat.h		\
621	ttold.h			\
622	tty.h			\
623	ttychars.h		\
624	ttydev.h		\
625	tuneable.h		\
626	turnstile.h		\
627	types.h			\
628	types32.h		\
629	tzfile.h		\
630	u8_textprep.h		\
631	u8_textprep_data.h	\
632	uadmin.h		\
633	ucred.h			\
634	uio.h			\
635	ulimit.h		\
636	un.h			\
637	unistd.h		\
638	user.h			\
639	ustat.h			\
640	utime.h			\
641	utsname.h		\
642	utssys.h		\
643	uuid.h			\
644	va_impl.h		\
645	va_list.h		\
646	var.h			\
647	varargs.h		\
648	vfs.h			\
649	vfs_opreg.h		\
650	vfstab.h		\
651	vgareg.h		\
652	videodev2.h		\
653	visual_io.h		\
654	vlan.h			\
655	vm.h			\
656	vm_usage.h		\
657	vmem.h			\
658	vmem_impl.h		\
659	vmsystm.h		\
660	vnic.h			\
661	vnic_impl.h		\
662	vnode.h			\
663	vscan.h			\
664	vtoc.h			\
665	vtrace.h		\
666	vuid_event.h		\
667	vuid_wheel.h		\
668	vuid_queue.h		\
669	vuid_state.h		\
670	vuid_store.h		\
671	wait.h			\
672	waitq.h			\
673	watchpoint.h		\
674	winlockio.h		\
675	zcons.h			\
676	zone.h			\
677	xti_inet.h		\
678	xti_osi.h		\
679	xti_xtiopt.h		\
680	zmod.h
681
682HDRS=				\
683	$(GENHDRS)		\
684	$(CHKHDRS)
685
686AUDIOHDRS=			\
687	ac97.h			\
688	audio_common.h		\
689	audio_driver.h		\
690	audio_oss.h		\
691	g711.h
692
693AVHDRS=				\
694	iec61883.h
695
696BSCHDRS=			\
697	bscbus.h		\
698	bscv_impl.h		\
699	lom_ebuscodes.h		\
700	lom_io.h		\
701	lom_priv.h		\
702	lombus.h
703
704MDESCHDRS=			\
705	mdesc.h			\
706	mdesc_impl.h
707
708CPUDRVHDRS=			\
709	cpudrv.h
710
711CRYPTOHDRS=			\
712	elfsign.h		\
713	ioctl.h			\
714	ioctladmin.h		\
715	common.h		\
716	impl.h			\
717	spi.h			\
718	api.h			\
719	ops_impl.h		\
720	sched_impl.h
721
722DCAMHDRS=			\
723	dcam1394_io.h
724
725IBHDRS=			\
726	ib_types.h	\
727	ib_pkt_hdrs.h
728
729IBTLHDRS=		\
730	ibtl_types.h	\
731	ibtl_status.h	\
732	ibti.h		\
733	ibti_cm.h	\
734	ibci.h		\
735	ibti_common.h	\
736	ibvti.h		\
737	ibtl_ci_types.h
738
739IBTLIMPLHDRS=		\
740	ibtl_util.h
741
742IBNEXHDRS=		\
743	ibnex_devctl.h
744
745IBMFHDRS=		\
746	ibmf.h		\
747	ibmf_msg.h	\
748	ibmf_saa.h	\
749	ibmf_utils.h
750
751IBMGTHDRS=		\
752	ib_dm_attr.h	\
753	ib_mad.h	\
754	sm_attr.h	\
755	sa_recs.h
756
757IBDHDRS=		\
758	ibd.h
759
760OFHDRS=			\
761	ofa_solaris.h	\
762	ofed_kernel.h
763
764RDMAHDRS=		\
765	ib_addr.h	\
766	ib_user_mad.h	\
767	ib_user_sa.h	\
768	ib_user_verbs.h \
769	ib_verbs.h	\
770	rdma_cm.h	\
771	rdma_user_cm.h
772
773SOL_UVERBSHDRS=		\
774	sol_uverbs.h	\
775	sol_uverbs2ucma.h	\
776	sol_uverbs_comp.h	\
777	sol_uverbs_hca.h	\
778	sol_uverbs_qp.h		\
779	sol_uverbs_event.h
780
781SOL_UMADHDRS=		\
782	sol_umad.h
783
784SOL_UCMAHDRS=		\
785	sol_ucma.h	\
786	sol_rdma_user_cm.h
787
788SOL_OFSHDRS=		\
789	sol_cma.h	\
790	sol_ib_cma.h	\
791	sol_ofs_common.h	\
792	sol_kverb_impl.h
793
794TAVORHDRS=		\
795	tavor_ioctl.h
796
797HERMONHDRS=		\
798	hermon_ioctl.h
799
800MLNXHDRS=		\
801	mlnx_umap.h
802
803IDMHDRS=		\
804	idm.h		\
805	idm_impl.h	\
806	idm_so.h	\
807	idm_text.h	\
808	idm_transport.h	\
809	idm_conn_sm.h
810
811ISCSITHDRS=		\
812	radius_packet.h		\
813	radius_protocol.h	\
814	chap.h			\
815	isns_protocol.h		\
816	iscsi_if.h		\
817	iscsit_common.h
818
819ISOHDRS=			\
820	signal_iso.h
821
822FMHDRS=				\
823	protocol.h		\
824	util.h
825
826FMFSHDRS=			\
827	zfs.h
828
829FMIOHDRS=			\
830	ddi.h			\
831	disk.h			\
832	pci.h			\
833	scsi.h			\
834	sun4upci.h		\
835	opl_mc_fm.h
836
837FSHDRS=				\
838	autofs.h		\
839	decomp.h		\
840	dv_node.h		\
841	sdev_impl.h		\
842	fifonode.h		\
843	hsfs_isospec.h		\
844	hsfs_node.h		\
845	hsfs_rrip.h		\
846	hsfs_spec.h		\
847	hsfs_susp.h		\
848	lofs_info.h		\
849	lofs_node.h		\
850	mntdata.h		\
851	namenode.h		\
852	pc_dir.h		\
853	pc_fs.h			\
854	pc_label.h		\
855	pc_node.h		\
856	pxfs_ki.h		\
857	snode.h			\
858	swapnode.h		\
859	tmp.h			\
860	tmpnode.h		\
861	udf_inode.h		\
862	udf_volume.h		\
863	ufs_acl.h		\
864	ufs_bio.h		\
865	ufs_filio.h		\
866	ufs_fs.h		\
867	ufs_fsdir.h		\
868	ufs_inode.h		\
869	ufs_lockfs.h		\
870	ufs_log.h		\
871	ufs_mount.h		\
872	ufs_panic.h		\
873	ufs_prot.h		\
874	ufs_quota.h		\
875	ufs_snap.h              \
876	ufs_trans.h		\
877	zfs.h			\
878	zut.h
879
880SCSIHDRS=		\
881	scsi.h		\
882	scsi_address.h	\
883	scsi_ctl.h	\
884	scsi_fm.h	\
885	scsi_names.h	\
886	scsi_params.h	\
887	scsi_pkt.h	\
888	scsi_resource.h	\
889	scsi_types.h	\
890	scsi_watch.h
891
892SCSICONFHDRS=		\
893	autoconf.h	\
894	device.h
895
896SCSIGENHDRS=		\
897	commands.h	\
898	dad_mode.h	\
899	inquiry.h	\
900	message.h	\
901	mode.h		\
902	persist.h	\
903	sense.h		\
904	sff_frames.h	\
905	smp_frames.h	\
906	status.h
907
908SCSIIMPLHDRS=		\
909	commands.h	\
910	inquiry.h	\
911	mode.h		\
912	scsi_reset_notify.h \
913	scsi_sas.h	\
914	sense.h		\
915	services.h	\
916	smp_transport.h	\
917	spc3_types.h	\
918	status.h	\
919	transport.h	\
920	types.h		\
921	uscsi.h		\
922	usmp.h
923
924SCSITARGETSHDRS=	\
925	ses.h		\
926	sesio.h		\
927	sgendef.h	\
928	stdef.h		\
929	sddef.h		\
930	smp.h
931
932SCSIADHDRS=
933
934SCSICADHDRS=
935
936SCSIISCSIHDRS=		\
937	iscsi_door.h	\
938	iscsi_if.h
939
940SCSIVHCIHDRS=		\
941	scsi_vhci.h	\
942	mpapi_impl.h	\
943	mpapi_scsi_vhci.h
944
945SDCARDHDRS=		\
946	sda.h		\
947	sda_impl.h	\
948	sda_ioctl.h
949
950FC4HDRS=			\
951	fc_transport.h	\
952	linkapp.h	\
953	fc.h		\
954	fcp.h		\
955	fcal_transport.h \
956	fcal.h		\
957	fcal_linkapp.h	\
958	fcio.h
959
960FCHDRS=			\
961	fc.h		\
962	fcio.h		\
963	fc_types.h	\
964	fc_appif.h
965
966FCIMPLHDRS=		\
967	fc_error.h	\
968	fcph.h
969
970FCULPHDRS=		\
971	fcp_util.h	\
972	fcsm.h
973
974SATAGENHDRS=		\
975	sata_hba.h	\
976	sata_defs.h	\
977	sata_cfgadm.h
978
979SYSEVENTHDRS=		\
980	ap_driver.h     \
981	datalink.h	\
982	dev.h		\
983	domain.h        \
984	dr.h            \
985	env.h           \
986	eventdefs.h	\
987	ipmp.h		\
988	pwrctl.h	\
989	vrrp.h
990
991CONTRACTHDRS=		\
992	process.h	\
993	process_impl.h	\
994	device.h	\
995	device_impl.h
996
997USBHDRS=	\
998	usba.h	\
999	usbai.h
1000
1001USBAUDHDRS=           \
1002	usb_audio.h
1003
1004USBHUBDHDRS=		\
1005	hub.h		\
1006	hubd_impl.h
1007
1008USBHIDHDRS=		\
1009	hid.h
1010
1011USBMSHDRS=		\
1012	usb_bulkonly.h	\
1013	usb_cbi.h
1014
1015USBPRNHDRS=           \
1016	usb_printer.h
1017
1018USBCDCHDRS=		\
1019	usb_cdc.h
1020
1021USBVIDHDRS=           \
1022	usbvc.h
1023
1024USBWCMHDRS=		\
1025	usbwcm.h
1026
1027UGENHDRS=           \
1028	usb_ugen.h
1029
1030HOTPLUGHDRS=	\
1031	hpcsvc.h	\
1032	hpctrl.h
1033
1034HOTPLUGPCIHDRS=	\
1035	pcicfg.h	\
1036	pcihp.h
1037
1038RSMHDRS= \
1039	rsm.h	\
1040	rsm_common.h	\
1041	rsmapi_common.h \
1042	rsmpi.h	\
1043	rsmpi_driver.h	\
1044	rsmka_path_int.h
1045
1046TSOLHDRS=		\
1047	label.h		\
1048	label_macro.h	\
1049	priv.h		\
1050	tndb.h		\
1051	tsyscall.h
1052
1053I1394HDRS=		\
1054	cmd1394.h	\
1055	id1394.h	\
1056	ieee1212.h	\
1057	ieee1394.h	\
1058	ixl1394.h	\
1059	s1394_impl.h	\
1060	t1394.h
1061
1062# "cmdk" headers used on sparc
1063SDKTPHDRS=		\
1064	dadkio.h	\
1065	fdisk.h
1066
1067# "cmdk" headers used on i386
1068DKTPHDRS=		\
1069	altsctr.h	\
1070	bbh.h		\
1071	cm.h		\
1072	cmdev.h		\
1073	cmdk.h		\
1074	cmpkt.h		\
1075	controller.h	\
1076	dadev.h		\
1077	dadk.h		\
1078	dadkio.h	\
1079	fctypes.h	\
1080	fdisk.h		\
1081	flowctrl.h	\
1082	gda.h		\
1083	quetypes.h	\
1084	queue.h		\
1085	tgcom.h		\
1086	tgdk.h
1087
1088# "pc" header files used on i386
1089PCHDRS=			\
1090	avintr.h	\
1091	dma_engine.h	\
1092	i8272A.h	\
1093	pcic_reg.h	\
1094	pcic_var.h	\
1095	pic.h		\
1096	pit.h		\
1097	rtc.h
1098
1099NXGEHDRS=			\
1100	nxge.h			\
1101	nxge_common.h		\
1102	nxge_common_impl.h	\
1103	nxge_defs.h		\
1104	nxge_hw.h		\
1105	nxge_impl.h		\
1106	nxge_ipp.h		\
1107	nxge_ipp_hw.h		\
1108	nxge_mac.h		\
1109	nxge_mac_hw.h		\
1110	nxge_fflp.h		\
1111	nxge_fflp_hw.h		\
1112	nxge_mii.h		\
1113	nxge_rxdma.h		\
1114	nxge_rxdma_hw.h		\
1115	nxge_txc.h		\
1116	nxge_txc_hw.h		\
1117	nxge_txdma.h		\
1118	nxge_txdma_hw.h		\
1119	nxge_virtual.h		\
1120	nxge_espc.h
1121
1122include Makefile.syshdrs
1123
1124dcam/%.check:	dcam/%.h
1125	$(DOT_H_CHECK)
1126
1127CHECKHDRS=						\
1128	$($(MACH)_HDRS:%.h=%.check)			\
1129	$(AUDIOHDRS:%.h=audio/%.check)			\
1130	$(AVHDRS:%.h=av/%.check)			\
1131	$(BSCHDRS:%.h=%.check)				\
1132	$(CHKHDRS:%.h=%.check)				\
1133	$(CPUDRVHDRS:%.h=%.check)			\
1134	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1135	$(DCAMHDRS:%.h=dcam/%.check)			\
1136	$(FC4HDRS:%.h=fc4/%.check)			\
1137	$(FCHDRS:%.h=fibre-channel/%.check)		\
1138	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1139	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1140	$(IBHDRS:%.h=ib/%.check)			\
1141	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1142	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1143	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1144	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1145	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1146	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1147	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1148	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1149	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1150	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1151	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1152	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1153	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1154	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1155	$(IDMHDRS:%.h=idm/%.check)			\
1156	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1157	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1158	$(ISOHDRS:%.h=iso/%.check)			\
1159	$(FMHDRS:%.h=fm/%.check)			\
1160	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1161	$(FMIOHDRS:%.h=fm/io/%.check)			\
1162	$(FSHDRS:%.h=fs/%.check)			\
1163	$(SCSIHDRS:%.h=scsi/%.check)			\
1164	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1165	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1166	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1167	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1168	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1169	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1170	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1171	$(SATAGENHDRS:%.h=sata/%.check)			\
1172	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1173	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1174	$(CONTRACTHDRS:%.h=contract/%.check)            \
1175	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1176	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1177	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1178	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1179	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1180	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1181	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1182	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1183	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1184	$(USBHDRS:%.h=usb/%.check)                      \
1185	$(I1394HDRS:%.h=1394/%.check)			\
1186	$(RSMHDRS:%.h=rsm/%.check)			\
1187	$(TSOLHDRS:%.h=tsol/%.check)			\
1188	$(NXGEHDRS:%.h=nxge/%.check)
1189
1190
1191.KEEP_STATE:
1192
1193.PARALLEL:			\
1194	$(CHECKHDRS)		\
1195	$(ROOTHDRS)		\
1196	$(ROOTAUDHDRS)		\
1197	$(ROOTAVHDRS)		\
1198	$(ROOTCRYPTOHDRS)	\
1199	$(ROOTDCAMHDRS)		\
1200	$(ROOTISOHDRS)		\
1201	$(ROOTIDMHDRS)		\
1202	$(ROOTISCSIHDRS)	\
1203	$(ROOTISCSITHDRS)	\
1204	$(ROOTFC4HDRS)		\
1205	$(ROOTFCHDRS)		\
1206	$(ROOTFCIMPLHDRS)	\
1207	$(ROOTFCULPHDRS)	\
1208	$(ROOTFMHDRS)		\
1209	$(ROOTFMIOHDRS)		\
1210	$(ROOTFMFSHDRS)		\
1211	$(ROOTFSHDRS)		\
1212	$(ROOTIBDHDRS)		\
1213	$(ROOTIBHDRS)		\
1214	$(ROOTIBTLHDRS)		\
1215	$(ROOTIBTLIMPLHDRS)	\
1216	$(ROOTIBNEXHDRS)	\
1217	$(ROOTIBMGTHDRS)	\
1218	$(ROOTIBMFHDRS)		\
1219	$(ROOTOFHDRS)		\
1220	$(ROOTRDMAHDRS)		\
1221	$(ROOTSOL_OFSHDRS)	\
1222	$(ROOTSOL_UMADHDRS)	\
1223	$(ROOTSOL_UVERBSHDRS)	\
1224	$(ROOTSOL_UCMAHDRS)	\
1225	$(ROOTTAVORHDRS)	\
1226	$(ROOTHERMONHDRS)	\
1227	$(ROOTMLNXHDRS)		\
1228	$(ROOTSCSIHDRS)		\
1229	$(ROOTSCSIADHDRS)	\
1230	$(ROOTSCSICONFHDRS)	\
1231	$(ROOTSCSIISCSIHDRS)	\
1232	$(ROOTSCSIGENHDRS)	\
1233	$(ROOTSCSIIMPLHDRS)	\
1234	$(ROOTSCSIVHCIHDRS)	\
1235	$(ROOTSDCARDHDRS)	\
1236	$(ROOTSYSEVENTHDRS)     \
1237	$(ROOTCONTRACTHDRS)     \
1238	$(ROOTUSBHDRS)		\
1239	$(ROOTUWBHDRS)		\
1240	$(ROOTUWBAHDRS)		\
1241	$(ROOTUSBAUDHDRS)	\
1242	$(ROOTUSBHUBDHDRS)	\
1243	$(ROOTUSBHIDHDRS)	\
1244	$(ROOTUSBHRCHDRS)	\
1245	$(ROOTUSBMSHDRS)	\
1246	$(ROOTUSBPRNHDRS)       \
1247	$(ROOTUSBCDCHDRS)       \
1248	$(ROOTUSBVIDHDRS)       \
1249	$(ROOTUSBWCMHDRS)	\
1250	$(ROOTUGENHDRS)		\
1251	$(ROOT1394HDRS)         \
1252	$(ROOTHOTPLUGHDRS)	\
1253	$(ROOTHOTPLUGPCIHDRS)	\
1254	$(ROOTRSMHDRS)		\
1255	$(ROOTTSOLHDRS)		\
1256	$($(MACH)_ROOTHDRS)
1257
1258
1259install_h:			\
1260	$(ROOTDIRS)		\
1261	.WAIT			\
1262	$(ROOTHDRS)		\
1263	$(ROOTAUDHDRS)		\
1264	$(ROOTAVHDRS)		\
1265	$(ROOTCRYPTOHDRS)	\
1266	$(ROOTDCAMHDRS)		\
1267	$(ROOTISOHDRS)		\
1268	$(ROOTIDMHDRS)		\
1269	$(ROOTISCSIHDRS)	\
1270	$(ROOTISCSITHDRS)	\
1271	$(ROOTFC4HDRS)		\
1272	$(ROOTFCHDRS)		\
1273	$(ROOTFCIMPLHDRS)	\
1274	$(ROOTFCULPHDRS)	\
1275	$(ROOTFMHDRS)		\
1276	$(ROOTFMFSHDRS)		\
1277	$(ROOTFMIOHDRS)		\
1278	$(ROOTFSHDRS)		\
1279	$(ROOTIBDHDRS)		\
1280	$(ROOTIBHDRS)		\
1281	$(ROOTIBTLHDRS)		\
1282	$(ROOTIBTLIMPLHDRS)	\
1283	$(ROOTIBNEXHDRS)	\
1284	$(ROOTIBMGTHDRS)	\
1285	$(ROOTIBMFHDRS)		\
1286	$(ROOTOFHDRS)		\
1287	$(ROOTRDMAHDRS)		\
1288	$(ROOTSOL_OFSHDRS)	\
1289	$(ROOTSOL_UMADHDRS)	\
1290	$(ROOTSOL_UVERBSHDRS)	\
1291	$(ROOTSOL_UCMAHDRS)	\
1292	$(ROOTTAVORHDRS)	\
1293	$(ROOTHERMONHDRS)	\
1294	$(ROOTMLNXHDRS)		\
1295	$(ROOTSCSIHDRS)		\
1296	$(ROOTSCSIADHDRS)	\
1297	$(ROOTSCSIISCSIHDRS)	\
1298	$(ROOTSCSICONFHDRS)	\
1299	$(ROOTSCSIGENHDRS)	\
1300	$(ROOTSCSIIMPLHDRS)	\
1301	$(ROOTSCSIVHCIHDRS)     \
1302	$(ROOTSDCARDHDRS)	\
1303	$(ROOTSYSEVENTHDRS)     \
1304	$(ROOTCONTRACTHDRS)     \
1305	$(ROOTUWBHDRS)		\
1306	$(ROOTUWBAHDRS)		\
1307	$(ROOTUSBHDRS)		\
1308	$(ROOTUSBAUDHDRS)	\
1309	$(ROOTUSBHUBDHDRS)	\
1310	$(ROOTUSBHIDHDRS)	\
1311	$(ROOTUSBHRCHDRS)	\
1312	$(ROOTUSBMSHDRS)	\
1313	$(ROOTUSBPRNHDRS)       \
1314	$(ROOTUSBCDCHDRS)       \
1315	$(ROOTUSBVIDHDRS)       \
1316	$(ROOTUSBWCMHDRS)	\
1317	$(ROOTUGENHDRS)		\
1318	$(ROOT1394HDRS)         \
1319	$(ROOTHOTPLUGHDRS)	\
1320	$(ROOTHOTPLUGPCIHDRS)	\
1321	$(ROOTRSMHDRS)		\
1322	$(ROOTTSOLHDRS)		\
1323	$($(MACH)_ROOTHDRS)
1324
1325all_h: $(GENHDRS)
1326
1327priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1328	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1329
1330priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1331	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1332
1333usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1334	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1335
1336clean:
1337	$(RM) $(GENHDRS)
1338
1339clobber: clean
1340
1341check:	$(CHECKHDRS)
1342
1343FRC:
1344