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