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