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