xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision e3d60c9bd991a9826cbfa63b10595d44e123b9c4)
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 2008 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	contract.h		\
130	contract_impl.h		\
131	copyops.h		\
132	core.h			\
133	corectl.h		\
134	cpc_impl.h		\
135	cpc_pcbe.h		\
136	cpr.h			\
137	cpupart.h		\
138	cpuvar.h		\
139	crc32.h			\
140	cred.h			\
141	cred_impl.h		\
142	crtctl.h		\
143	cryptmod.h		\
144	csiioctl.h		\
145	ctf.h			\
146	ctfs.h			\
147	ctfs_impl.h		\
148	ctf_api.h		\
149	ctype.h			\
150	cyclic.h		\
151	cyclic_impl.h		\
152	dacf.h			\
153	dacf_impl.h		\
154	dc_ki.h			\
155	ddi.h			\
156	ddifm.h			\
157	ddifm_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_timer.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	devid_cache.h		\
175	devinfo_impl.h		\
176	devops.h		\
177	devpolicy.h		\
178	devpoll.h		\
179	dirent.h		\
180	disp.h			\
181	dkbad.h			\
182	dkio.h			\
183	dklabel.h		\
184	dl.h			\
185	dlpi.h			\
186	dld.h			\
187	dld_impl.h		\
188	dls.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	fdbuffer.h		\
234	fdio.h			\
235	feature_tests.h		\
236	fem.h			\
237	file.h			\
238	filio.h			\
239	flock.h			\
240	flock_impl.h		\
241	fork.h			\
242	fss.h			\
243	fsspriocntl.h		\
244	fsid.h			\
245	fssnap.h                \
246	fssnap_if.h             \
247	fstyp.h			\
248	ftrace.h		\
249	fx.h			\
250	fxpriocntl.h		\
251	gfs.h			\
252	gld.h			\
253	gldpriv.h		\
254	group.h			\
255	hdio.h			\
256	hook.h			\
257	hook_event.h		\
258	hook_impl.h		\
259	hwconf.h		\
260	ia.h			\
261	iapriocntl.h		\
262	id32.h			\
263	idmap.h 		\
264	ieeefp.h		\
265	id_space.h		\
266	instance.h		\
267	int_const.h		\
268	int_fmtio.h		\
269	int_limits.h		\
270	int_types.h		\
271	inttypes.h		\
272	ioccom.h		\
273	ioctl.h			\
274	ipc.h			\
275	ipc_impl.h		\
276	ipc_rctl.h		\
277	isa_defs.h		\
278	iscsi_authclient.h	\
279	iscsi_authclientglue.h	\
280	iscsi_protocol.h	\
281	jioctl.h		\
282	kbd.h			\
283	kbdreg.h		\
284	kbio.h			\
285	kcpc.h			\
286	kdi.h			\
287	kdi_impl.h		\
288	kiconv.h		\
289	kiconv_big5_utf8.h	\
290	kiconv_cck_common.h	\
291	kiconv_cp950hkscs_utf8.h	\
292	kiconv_emea1.h		\
293	kiconv_emea2.h		\
294	kiconv_euckr_utf8.h	\
295	kiconv_euctw_utf8.h	\
296	kiconv_gb18030_utf8.h	\
297	kiconv_gb2312_utf8.h	\
298	kiconv_hkscs_utf8.h	\
299	kiconv_ja.h		\
300	kiconv_ja_jis_to_unicode.h	\
301	kiconv_ja_unicode_to_jis.h	\
302	kiconv_ko.h		\
303	kiconv_latin1.h		\
304	kiconv_sc.h		\
305	kiconv_tc.h		\
306	kiconv_uhc_utf8.h	\
307	kiconv_utf8_big5.h	\
308	kiconv_utf8_cp950hkscs.h	\
309	kiconv_utf8_euckr.h	\
310	kiconv_utf8_euctw.h	\
311	kiconv_utf8_gb18030.h	\
312	kiconv_utf8_gb2312.h	\
313	kiconv_utf8_hkscs.h	\
314	kiconv_utf8_uhc.h	\
315	kidmap.h		\
316	klpd.h			\
317	klwp.h			\
318	kmdb.h			\
319	kmem.h			\
320	kmem_impl.h		\
321	kobj.h			\
322	kobj_impl.h		\
323	kstat.h			\
324	kstr.h			\
325	ksyms.h			\
326	ksynch.h		\
327	ldterm.h		\
328	lgrp.h			\
329	lgrp_user.h		\
330	libc_kernel.h		\
331	link.h			\
332	list.h			\
333	list_impl.h		\
334	llc1.h			\
335	loadavg.h		\
336	lock.h			\
337	lockfs.h		\
338	lockstat.h		\
339	lofi.h			\
340	log.h			\
341	logindmux.h		\
342	logindmux_impl.h	\
343	lwp.h			\
344	lwp_timer_impl.h	\
345	lwp_upimutex_impl.h	\
346	mac.h			\
347	mac_impl.h		\
348	machelf.h		\
349	map.h			\
350	md4.h			\
351	md5.h			\
352	md5_consts.h		\
353	mdi_impldefs.h		\
354	mem.h			\
355	mem_config.h		\
356	memlist.h		\
357	mkdev.h			\
358	mhd.h			\
359	miiregs.h		\
360	mixer.h			\
361	mman.h			\
362	mntent.h		\
363	mntio.h			\
364	mnttab.h		\
365	modctl.h		\
366	mode.h			\
367	model.h			\
368	modhash.h		\
369	modhash_impl.h		\
370	mount.h			\
371	mouse.h			\
372	msacct.h		\
373	msg.h			\
374	msg_impl.h		\
375	msio.h			\
376	msreg.h			\
377	mtio.h			\
378	multidata.h		\
379	multidata_impl.h	\
380	mutex.h			\
381	nbmlock.h		\
382	ndifm.h		\
383	ndi_impldefs.h		\
384	net80211.h		\
385	net80211_crypto.h	\
386	net80211_proto.h	\
387	netconfig.h		\
388	neti.h			\
389	netstack.h		\
390	nexusdefs.h		\
391	note.h			\
392	nvpair.h                \
393	nvpair_impl.h           \
394	objfs.h			\
395	objfs_impl.h		\
396	ontrap.h                \
397	open.h			\
398	openpromio.h		\
399	panic.h			\
400	param.h			\
401	pathconf.h		\
402	pathname.h		\
403	pattr.h			\
404	queue.h			\
405	serializer.h		\
406	pbio.h			\
407	pccard.h		\
408	pci.h			\
409	pcie.h			\
410	pci_impl.h		\
411	pcmcia.h		\
412	pctypes.h		\
413	pem.h			\
414	pfmod.h			\
415	pg.h			\
416	pghw.h			\
417	physmem.h		\
418	pm.h			\
419	policy.h		\
420	poll.h			\
421	poll_impl.h		\
422	pool.h			\
423	pool_impl.h		\
424	pool_pset.h		\
425	port.h			\
426	port_impl.h		\
427	port_kernel.h		\
428	ppmio.h                 \
429	priocntl.h		\
430	priv.h			\
431	priv_impl.h		\
432	prnio.h			\
433	proc.h			\
434	processor.h		\
435	procfs.h		\
436	procset.h		\
437	project.h		\
438	protosw.h		\
439	prsystm.h		\
440	pset.h			\
441	pshot.h			\
442	ptem.h			\
443	ptms.h			\
444	ptyvar.h		\
445	raidioctl.h		\
446	ramdisk.h		\
447	random.h		\
448	rctl.h			\
449	rctl_impl.h		\
450	reboot.h		\
451	refstr.h		\
452	refstr_impl.h		\
453	resource.h		\
454	rlioctl.h		\
455	rt.h			\
456	rtpriocntl.h		\
457	rwlock.h		\
458	rwlock_impl.h		\
459	rwstlock.h		\
460	sad.h			\
461	schedctl.h		\
462	sdt.h			\
463	select.h		\
464	sem.h			\
465	sem_impl.h		\
466	sema_impl.h		\
467	semaphore.h		\
468	sendfile.h		\
469	ser_sync.h		\
470	session.h		\
471	sha1.h			\
472	sha1_consts.h		\
473	sha2.h			\
474	sha2_consts.h		\
475	share.h			\
476	shm.h			\
477	shm_impl.h		\
478	sid.h			\
479	siginfo.h		\
480	signal.h		\
481	sleepq.h		\
482	smbios.h		\
483	smbios_impl.h		\
484	sobject.h		\
485	socket.h		\
486	socket_impl.h		\
487	socketvar.h		\
488	sockio.h		\
489	sodirect.h		\
490	squeue.h		\
491	squeue_impl.h		\
492	srn.h			\
493	sservice.h		\
494	stat.h			\
495	statfs.h		\
496	statvfs.h		\
497	stdint.h		\
498	stermio.h		\
499	stream.h		\
500	strft.h			\
501	strlog.h		\
502	strmdep.h		\
503	stropts.h		\
504	strredir.h		\
505	strstat.h		\
506	strsubr.h		\
507	strsun.h		\
508	strtty.h		\
509	sunddi.h		\
510	sunldi.h		\
511	sunldi_impl.h		\
512	sunmdi.h		\
513	sunndi.h		\
514	sunos_dhcp_class.h	\
515	sunpm.h			\
516	suntpi.h		\
517	suntty.h		\
518	swap.h			\
519	synch.h			\
520	syscall.h		\
521	sysconf.h		\
522	sysconfig.h		\
523	sysevent.h		\
524	sysevent_impl.h         \
525	sysinfo.h		\
526	syslog.h		\
527	sysmacros.h		\
528	sysmsg_impl.h		\
529	systeminfo.h		\
530	systm.h			\
531	task.h			\
532	taskq.h			\
533	taskq_impl.h		\
534	t_kuser.h		\
535	t_lock.h		\
536	telioctl.h		\
537	termio.h		\
538	termios.h		\
539	termiox.h		\
540	thread.h		\
541	ticlts.h		\
542	ticots.h		\
543	ticotsord.h		\
544	tihdr.h			\
545	time.h			\
546	time_impl.h		\
547	time_std_impl.h		\
548	timeb.h			\
549	timer.h			\
550	times.h			\
551	timex.h			\
552	timod.h			\
553	tirdwr.h		\
554	tiuser.h		\
555	tl.h			\
556	tnf.h			\
557	tnf_com.h		\
558	tnf_probe.h		\
559	tnf_writer.h		\
560	todio.h			\
561	tpicommon.h		\
562	ts.h			\
563	tspriocntl.h		\
564	ttcompat.h		\
565	ttold.h			\
566	tty.h			\
567	ttychars.h		\
568	ttydev.h		\
569	tuneable.h		\
570	turnstile.h		\
571	types.h			\
572	types32.h		\
573	tzfile.h		\
574	u8_textprep.h		\
575	u8_textprep_data.h	\
576	uadmin.h		\
577	ucred.h			\
578	uio.h			\
579	ulimit.h		\
580	un.h			\
581	unistd.h		\
582	user.h			\
583	ustat.h			\
584	utime.h			\
585	utsname.h		\
586	utssys.h		\
587	uuid.h			\
588	va_impl.h		\
589	va_list.h		\
590	var.h			\
591	varargs.h		\
592	vfs.h			\
593	vfs_opreg.h		\
594	vfstab.h		\
595	vgareg.h		\
596	videodev2.h		\
597	visual_io.h		\
598	vlan.h			\
599	vm.h			\
600	vm_usage.h		\
601	vmem.h			\
602	vmem_impl.h		\
603	vmmeter.h		\
604	vmsystm.h		\
605	vnic.h			\
606	vnic_impl.h		\
607	vnode.h			\
608	vscan.h			\
609	vtoc.h			\
610	vtrace.h		\
611	vuid_event.h		\
612	vuid_wheel.h		\
613	vuid_queue.h		\
614	vuid_state.h		\
615	vuid_store.h		\
616	wait.h			\
617	waitq.h			\
618	wanboot_impl.h		\
619	watchpoint.h		\
620	winlockio.h		\
621	zcons.h			\
622	zone.h			\
623	xti_inet.h		\
624	xti_osi.h		\
625	xti_xtiopt.h		\
626	zmod.h
627
628HDRS=				\
629	$(GENHDRS)		\
630	$(CHKHDRS)
631
632AUDIOHDRS=			\
633	ac97.h			\
634	am_src1.h		\
635	audio_apm.h		\
636	audio_mixer.h		\
637	audio_src.h		\
638	audio_support.h		\
639	audio_trace.h		\
640	g711.h
641
642BSCHDRS=			\
643	bscbus.h		\
644	bscv_impl.h		\
645	lom_ebuscodes.h		\
646	lom_io.h		\
647	lom_priv.h		\
648	lombus.h
649
650MDESCHDRS=			\
651	mdesc.h			\
652	mdesc_impl.h
653
654CPUDRVHDRS=			\
655	cpudrv.h
656
657CRYPTOHDRS=			\
658	elfsign.h		\
659	ioctl.h			\
660	ioctladmin.h		\
661	common.h		\
662	impl.h			\
663	spi.h			\
664	api.h			\
665	ops_impl.h		\
666	sched_impl.h
667
668DCAMHDRS=			\
669	dcam1394_io.h
670
671IBHDRS=			\
672	ib_types.h	\
673	ib_pkt_hdrs.h
674
675IBTLHDRS=		\
676	ibtl_types.h	\
677	ibtl_status.h	\
678	ibti.h		\
679	ibti_cm.h	\
680	ibci.h		\
681	ibti_common.h	\
682	ibvti.h		\
683	ibtl_ci_types.h
684
685IBTLIMPLHDRS=		\
686	ibtl_util.h
687
688IBNEXHDRS=		\
689	ibnex_devctl.h
690
691IBMFHDRS=		\
692	ibmf.h		\
693	ibmf_msg.h	\
694	ibmf_saa.h	\
695	ibmf_utils.h
696
697IBMGTHDRS=		\
698	ib_dm_attr.h	\
699	ib_mad.h	\
700	sm_attr.h	\
701	sa_recs.h
702
703IBDHDRS=		\
704	ibd.h
705
706ISOHDRS=			\
707	signal_iso.h
708
709DERIVED_LVMHDRS=	\
710	md_mdiox.h		\
711	md_basic.h		\
712	mdmed.h			\
713	md_mhdx.h		\
714	mdmn_commd.h
715
716LVMHDRS=			\
717	md_convert.h		\
718	md_crc.h		\
719	md_hotspares.h		\
720	md_mddb.h		\
721	md_mirror.h		\
722	md_mirror_shared.h	\
723	md_names.h		\
724	md_notify.h		\
725	md_raid.h		\
726	md_rename.h		\
727	md_sp.h			\
728	md_stripe.h		\
729	md_trans.h		\
730	mdio.h			\
731	mdvar.h
732
733ALL_LVMHDRS=			\
734	$(LVMHDRS)		\
735	$(DERIVED_LVMHDRS)
736
737FMHDRS=				\
738	protocol.h		\
739	util.h
740
741FMFSHDRS=			\
742	zfs.h
743
744FMIOHDRS=			\
745	ddi.h			\
746	disk.h			\
747	pci.h			\
748	scsi.h			\
749	sun4upci.h		\
750	opl_mc_fm.h
751
752FSHDRS=				\
753	autofs.h		\
754	cachefs_dir.h		\
755	cachefs_dlog.h		\
756	cachefs_filegrp.h	\
757	cachefs_fs.h		\
758	cachefs_fscache.h	\
759	cachefs_ioctl.h		\
760	cachefs_log.h		\
761	decomp.h		\
762	dv_node.h		\
763	sdev_impl.h		\
764	sdev_node.h		\
765	fifonode.h		\
766	hsfs_isospec.h		\
767	hsfs_node.h		\
768	hsfs_rrip.h		\
769	hsfs_spec.h		\
770	hsfs_susp.h		\
771	lofs_info.h		\
772	lofs_node.h		\
773	mntdata.h		\
774	namenode.h		\
775	pc_dir.h		\
776	pc_fs.h			\
777	pc_label.h		\
778	pc_node.h		\
779	pxfs_ki.h		\
780	snode.h			\
781	swapnode.h		\
782	tmp.h			\
783	tmpnode.h		\
784	udf_inode.h		\
785	udf_volume.h		\
786	ufs_acl.h		\
787	ufs_bio.h		\
788	ufs_filio.h		\
789	ufs_fs.h		\
790	ufs_fsdir.h		\
791	ufs_inode.h		\
792	ufs_lockfs.h		\
793	ufs_log.h		\
794	ufs_mount.h		\
795	ufs_panic.h		\
796	ufs_prot.h		\
797	ufs_quota.h		\
798	ufs_snap.h              \
799	ufs_trans.h		\
800	zfs.h
801
802PCMCIAHDRS=		\
803	pcata.h		\
804	pcgld.h		\
805	pcramio.h	\
806	pcramvar.h	\
807	pcser_conf.h	\
808	pcser_io.h	\
809	pcser_reg.h	\
810	pcser_manuspec.h \
811	pcser_var.h
812
813SCSIHDRS=		\
814	scsi.h		\
815	scsi_address.h	\
816	scsi_ctl.h	\
817	scsi_params.h	\
818	scsi_pkt.h	\
819	scsi_resource.h	\
820	scsi_types.h	\
821	scsi_watch.h
822
823SCSICONFHDRS=		\
824	autoconf.h	\
825	device.h
826
827SCSIGENHDRS=		\
828	commands.h	\
829	dad_mode.h	\
830	inquiry.h	\
831	message.h	\
832	mode.h		\
833	persist.h	\
834	sense.h		\
835	smp_frames.h	\
836	status.h
837
838SCSIIMPLHDRS=		\
839	commands.h	\
840	inquiry.h	\
841	mode.h		\
842	sas_transport.h	\
843	sense.h		\
844	services.h	\
845	status.h	\
846	transport.h	\
847	scsi_reset_notify.h \
848	spc3_types.h	\
849	types.h		\
850	uscsi.h		\
851	usmp.h
852
853SCSITARGETSHDRS=	\
854	ses.h		\
855	sesio.h		\
856	sgendef.h	\
857	stdef.h		\
858	sddef.h		\
859	smp.h
860
861SCSIADHDRS=		\
862	blk2scsa.h
863
864SCSICADHDRS=
865
866SCSIVHCIHDRS=		\
867	scsi_vhci.h	\
868	mpapi_impl.h	\
869	mpapi_scsi_vhci.h
870
871SDCARDHDRS=		\
872	sda.h		\
873	sda_impl.h	\
874	sda_ioctl.h
875
876FCHDRS=			\
877	fc_transport.h	\
878	linkapp.h	\
879	fc.h		\
880	fcp.h		\
881	fcal_transport.h \
882	fcal.h		\
883	fcal_linkapp.h	\
884	fcio.h
885
886SATAGENHDRS=		\
887	sata_hba.h	\
888	sata_defs.h	\
889	sata_cfgadm.h
890
891SYSEVENTHDRS=		\
892	ap_driver.h     \
893	dev.h		\
894	domain.h        \
895	dr.h            \
896	env.h           \
897	eventdefs.h	\
898	ipmp.h		\
899	pwrctl.h	\
900	svm.h
901
902CONTRACTHDRS=		\
903	process.h	\
904	process_impl.h	\
905	device.h	\
906	device_impl.h
907
908USBHDRS=	\
909	usba.h	\
910	usbai.h
911
912USBAUDHDRS=           \
913	usb_audio.h
914
915USBHUBDHDRS=		\
916	hub.h		\
917	hubd_impl.h
918
919USBHIDHDRS=		\
920	hid.h
921
922USBMSHDRS=		\
923	usb_bulkonly.h	\
924	usb_cbi.h
925
926USBPRNHDRS=           \
927	usb_printer.h
928
929USBCDCHDRS=		\
930	usb_cdc.h
931
932USBVIDHDRS=           \
933	usbvc.h
934
935UGENHDRS=           \
936	usb_ugen.h
937
938HOTPLUGHDRS=	\
939	hpcsvc.h	\
940	hpctrl.h
941
942HOTPLUGPCIHDRS=	\
943	pcicfg.h	\
944	pcihp.h
945
946RSMHDRS= \
947	rsm.h	\
948	rsm_common.h	\
949	rsmapi_common.h \
950	rsmpi.h	\
951	rsmpi_driver.h	\
952	rsmka_path_int.h
953
954TSOLHDRS=		\
955	label.h		\
956	label_macro.h	\
957	priv.h		\
958	tndb.h		\
959	tsyscall.h
960
961I1394HDRS=		\
962	cmd1394.h	\
963	id1394.h	\
964	ieee1212.h	\
965	ieee1394.h	\
966	ixl1394.h	\
967	s1394_impl.h	\
968	t1394.h
969
970# "cmdk" headers used on sparc
971SDKTPHDRS=		\
972	dadkio.h	\
973	fdisk.h
974
975# "cmdk" headers used on i386
976DKTPHDRS=		\
977	altsctr.h	\
978	bbh.h		\
979	cm.h		\
980	cmdev.h		\
981	cmdk.h		\
982	cmpkt.h		\
983	controller.h	\
984	dadev.h		\
985	dadk.h		\
986	dadkio.h	\
987	fctypes.h	\
988	fdisk.h		\
989	flowctrl.h	\
990	gda.h		\
991	quetypes.h	\
992	queue.h		\
993	tgcom.h		\
994	tgdk.h
995
996# "pc" header files used on i386
997PCHDRS=			\
998	avintr.h	\
999	dma_engine.h	\
1000	i8272A.h	\
1001	pcic_reg.h	\
1002	pcic_var.h	\
1003	pic.h		\
1004	pit.h		\
1005	rtc.h
1006
1007NXGEHDRS=			\
1008	nxge.h			\
1009	nxge_common.h		\
1010	nxge_common_impl.h	\
1011	nxge_defs.h		\
1012	nxge_hw.h		\
1013	nxge_impl.h		\
1014	nxge_ipp.h		\
1015	nxge_ipp_hw.h		\
1016	nxge_mac.h		\
1017	nxge_mac_hw.h		\
1018	nxge_fflp.h		\
1019	nxge_fflp_hw.h		\
1020	nxge_mii.h		\
1021	nxge_rxdma.h		\
1022	nxge_rxdma_hw.h		\
1023	nxge_txc.h		\
1024	nxge_txc_hw.h		\
1025	nxge_txdma.h		\
1026	nxge_txdma_hw.h		\
1027	nxge_virtual.h		\
1028	nxge_espc.h
1029
1030include Makefile.syshdrs
1031
1032dcam/%.check:	dcam/%.h
1033	$(DOT_H_CHECK)
1034
1035CHECKHDRS=						\
1036	$($(MACH)_HDRS:%.h=%.check)			\
1037	$(AUDIOHDRS:%.h=audio/%.check)			\
1038	$(BSCHDRS:%.h=%.check)				\
1039	$(CHKHDRS:%.h=%.check)				\
1040	$(CPUDRVHDRS:%.h=%.check)			\
1041	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1042	$(DCAMHDRS:%.h=dcam/%.check)			\
1043	$(IBHDRS:%.h=ib/%.check)			\
1044	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1045	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1046	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1047	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1048	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1049	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1050	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1051	$(ISOHDRS:%.h=iso/%.check)			\
1052	$(FMHDRS:%.h=fm/%.check)			\
1053	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1054	$(FMIOHDRS:%.h=fm/io/%.check)			\
1055	$(FSHDRS:%.h=fs/%.check)			\
1056	$(LVMHDRS:%.h=lvm/%.check)			\
1057	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1058	$(SCSIHDRS:%.h=scsi/%.check)			\
1059	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1060	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1061	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1062	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1063	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1064	$(FCHDRS:%.h=fc4/%.check)			\
1065	$(SATAGENHDRS:%.h=sata/%.check)			\
1066	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1067	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1068	$(CONTRACTHDRS:%.h=contract/%.check)            \
1069	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1070	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1071	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1072	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1073	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1074	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1075	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1076	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1077	$(USBHDRS:%.h=usb/%.check)                      \
1078	$(I1394HDRS:%.h=1394/%.check)			\
1079	$(RSMHDRS:%.h=rsm/%.check)			\
1080	$(TSOLHDRS:%.h=tsol/%.check)			\
1081	$(NXGEHDRS:%.h=nxge/%.check)
1082
1083
1084.KEEP_STATE:
1085
1086.PARALLEL:			\
1087	$(CHECKHDRS)		\
1088	$(ROOTHDRS)		\
1089	$(ROOTAUDHDRS)		\
1090	$(ROOTCRYPTOHDRS)	\
1091	$(ROOTDCAMHDRS)		\
1092	$(ROOTISOHDRS)		\
1093	$(ROOTFMHDRS)		\
1094	$(ROOTFMIOHDRS)		\
1095	$(ROOTFMFSHDRS)		\
1096	$(ROOTFSHDRS)		\
1097	$(ROOTIBDHDRS)		\
1098	$(ROOTIBHDRS)		\
1099	$(ROOTIBTLHDRS)		\
1100	$(ROOTIBTLIMPLHDRS)	\
1101	$(ROOTIBNEXHDRS)	\
1102	$(ROOTIBMGTHDRS)	\
1103	$(ROOTIBMFHDRS)		\
1104	$(ROOTTAVORHDRS)	\
1105	$(ROOTLVMHDRS)		\
1106	$(ROOTPCMCIAHDRS)	\
1107	$(ROOTSCSIHDRS)		\
1108	$(ROOTSCSIADHDRS)	\
1109	$(ROOTSCSICONFHDRS)	\
1110	$(ROOTSCSIGENHDRS)	\
1111	$(ROOTSCSIIMPLHDRS)	\
1112	$(ROOTSCSIVHCIHDRS)	\
1113	$(ROOTFCHDRS)		\
1114	$(ROOTSDCARDHDRS)	\
1115	$(ROOTSYSEVENTHDRS)     \
1116	$(ROOTCONTRACTHDRS)     \
1117	$(ROOTUSBHDRS)		\
1118	$(ROOTUSBAUDHDRS)	\
1119	$(ROOTUSBHUBDHDRS)	\
1120	$(ROOTUSBHIDHDRS)	\
1121	$(ROOTUSBMSHDRS)	\
1122	$(ROOTUSBPRNHDRS)       \
1123	$(ROOTUSBCDCHDRS)       \
1124	$(ROOTUSBVIDHDRS)       \
1125	$(ROOTUGENHDRS)		\
1126	$(ROOT1394HDRS)         \
1127	$(ROOTHOTPLUGHDRS)	\
1128	$(ROOTHOTPLUGPCIHDRS)	\
1129	$(ROOTRSMHDRS)		\
1130	$(ROOTTSOLHDRS)		\
1131	$($(MACH)_ROOTHDRS)
1132
1133
1134install_h:			\
1135	$(ROOTDIRS)		\
1136	LVMDERIVED_H		\
1137	.WAIT			\
1138	$(ROOTHDRS)		\
1139	$(ROOTAUDHDRS)		\
1140	$(ROOTCRYPTOHDRS)	\
1141	$(ROOTDCAMHDRS)		\
1142	$(ROOTISOHDRS)		\
1143	$(ROOTFMHDRS)		\
1144	$(ROOTFMFSHDRS)		\
1145	$(ROOTFMIOHDRS)		\
1146	$(ROOTFSHDRS)		\
1147	$(ROOTIBDHDRS)		\
1148	$(ROOTIBHDRS)		\
1149	$(ROOTIBTLHDRS)		\
1150	$(ROOTIBTLIMPLHDRS)	\
1151	$(ROOTIBNEXHDRS)	\
1152	$(ROOTIBMGTHDRS)	\
1153	$(ROOTIBMFHDRS)		\
1154	$(ROOTTAVORHDRS)	\
1155	$(ROOTLVMHDRS)		\
1156	$(ROOTPCMCIAHDRS)	\
1157	$(ROOTSCSIHDRS)		\
1158	$(ROOTSCSIADHDRS)	\
1159	$(ROOTSCSICONFHDRS)	\
1160	$(ROOTSCSIGENHDRS)	\
1161	$(ROOTSCSIIMPLHDRS)	\
1162	$(ROOTSCSIVHCIHDRS)	\
1163	$(ROOTFCHDRS)		\
1164	$(ROOTSDCARDHDRS)	\
1165	$(ROOTSYSEVENTHDRS)     \
1166	$(ROOTCONTRACTHDRS)     \
1167	$(ROOTUSBHDRS)		\
1168	$(ROOTUSBAUDHDRS)	\
1169	$(ROOTUSBHUBDHDRS)	\
1170	$(ROOTUSBHIDHDRS)	\
1171	$(ROOTUSBMSHDRS)	\
1172	$(ROOTUSBPRNHDRS)       \
1173	$(ROOTUSBCDCHDRS)       \
1174	$(ROOTUSBVIDHDRS)       \
1175	$(ROOTUGENHDRS)		\
1176	$(ROOT1394HDRS)         \
1177	$(ROOTHOTPLUGHDRS)	\
1178	$(ROOTHOTPLUGPCIHDRS)	\
1179	$(ROOTRSMHDRS)		\
1180	$(ROOTTSOLHDRS)		\
1181	$($(MACH)_ROOTHDRS)
1182
1183all_h: $(GENHDRS)
1184
1185priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1186	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1187
1188priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1189	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1190
1191LVMDERIVED_H:
1192	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1193
1194check:	$(CHECKHDRS)
1195
1196FRC:
1197
1198# EXPORT DELETE START
1199EXPORT_SRC:
1200	$(RM) wanboot_impl.h+ Makefile+
1201	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1202		< wanboot_impl.h > wanboot_impl.h+
1203	$(MV) wanboot_impl.h+ wanboot_impl.h
1204	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1205		< Makefile > Makefile+
1206	$(RM) Makefile
1207	$(MV) Makefile+ Makefile
1208	$(CHMOD) 444 Makefile wanboot_impl.h
1209# EXPORT DELETE END
1210