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