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