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