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