xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision de860bd9529e1034e1666f74f7bc0ec8cd5ca701)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include $(SRC)/uts/Makefile.uts
29
30GROUP=bin
31FILEMODE=644
32
33#
34#	Note that the following headers are present in the kernel but
35#	neither installed or shipped as part of the product:
36#		cpuid_drv.h:		Private interface for cpuid consumers
37#		unix_bb_info.h:		Private interface to kcov
38#
39
40i386_HDRS=			\
41	agp/agpamd64gart_io.h	\
42	agp/agpdefs.h		\
43	agp/agpgart_impl.h	\
44	agp/agpmaster_io.h	\
45	agp/agptarget_io.h	\
46	agpgart.h		\
47	asy.h			\
48	audio/audio810.h	\
49	audio/audiohd.h	\
50	audio/audioixp.h	\
51	fd_debug.h		\
52	fdc.h			\
53	fdmedia.h		\
54	mouse.h			\
55	mse.h			\
56	vuidmice.h		\
57	ucode.h
58
59AVHDRS=				\
60	av/iec61883.h
61
62sparc_HDRS= 			\
63	audio/audiots.h		\
64	audio/am_src2.h		\
65	mouse.h			\
66	scsi/targets/ssddef.h	\
67	$(MDESCHDRS)		\
68	$(AVHDRS)
69
70# Generated headers
71GENHDRS=			\
72	priv_const.h		\
73	priv_names.h
74
75CHKHDRS=			\
76	acct.h			\
77	acctctl.h		\
78	acl.h			\
79	acl_impl.h		\
80	aggr.h			\
81	aggr_impl.h		\
82	aio.h			\
83	aio_impl.h		\
84	aio_req.h		\
85	aiocb.h			\
86	ascii.h			\
87	asynch.h		\
88	atomic.h		\
89	attr.h			\
90	audio.h			\
91	audiodebug.h		\
92	audioio.h		\
93	audiovar.h		\
94	autoconf.h		\
95	auxv.h			\
96	auxv_386.h		\
97	auxv_SPARC.h		\
98	avl.h			\
99	avl_impl.h		\
100	battery.h		\
101	bitmap.h		\
102	bitset.h		\
103	bl.h			\
104	bmc_intf.h		\
105	bofi.h			\
106	bofi_impl.h		\
107	bpp_io.h		\
108	bootstat.h		\
109	brand.h			\
110	buf.h			\
111	bufmod.h		\
112	bustypes.h		\
113	byteorder.h		\
114	callb.h			\
115	callo.h			\
116	cpucaps.h		\
117	cpucaps_impl.h		\
118	ccompile.h		\
119	cdio.h			\
120	cladm.h			\
121	class.h			\
122	clconf.h		\
123	cmlb.h			\
124	cmn_err.h		\
125	compress.h		\
126	condvar.h		\
127	condvar_impl.h		\
128	conf.h			\
129	consdev.h		\
130	console.h		\
131	contract.h		\
132	contract_impl.h		\
133	copyops.h		\
134	core.h			\
135	corectl.h		\
136	cpc_impl.h		\
137	cpc_pcbe.h		\
138	cpr.h			\
139	cpupart.h		\
140	cpuvar.h		\
141	crc32.h			\
142	cred.h			\
143	cred_impl.h		\
144	crtctl.h		\
145	cryptmod.h		\
146	csiioctl.h		\
147	ctf.h			\
148	ctfs.h			\
149	ctfs_impl.h		\
150	ctf_api.h		\
151	ctype.h			\
152	cyclic.h		\
153	cyclic_impl.h		\
154	dacf.h			\
155	dacf_impl.h		\
156	dc_ki.h			\
157	ddi.h			\
158	ddifm.h			\
159	ddifm_impl.h		\
160	ddi_intr.h		\
161	ddi_intr_impl.h		\
162	ddi_impldefs.h		\
163	ddi_implfuncs.h		\
164	ddi_obsolete.h		\
165	ddi_timer.h		\
166	ddidevmap.h		\
167	ddidmareq.h		\
168	ddimapreq.h		\
169	ddipropdefs.h		\
170	dditypes.h		\
171	debug.h			\
172	des.h			\
173	devctl.h		\
174	devcache.h		\
175	devcache_impl.h		\
176	devid_cache.h		\
177	devinfo_impl.h		\
178	devops.h		\
179	devpolicy.h		\
180	devpoll.h		\
181	dirent.h		\
182	disp.h			\
183	dkbad.h			\
184	dkio.h			\
185	dklabel.h		\
186	dl.h			\
187	dlpi.h			\
188	dld.h			\
189	dld_impl.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	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	map.h			\
350	md4.h			\
351	md5.h			\
352	md5_consts.h		\
353	mdi_impldefs.h		\
354	mem.h			\
355	mem_config.h		\
356	memlist.h		\
357	mkdev.h			\
358	mhd.h			\
359	miiregs.h		\
360	mixer.h			\
361	mman.h			\
362	mntent.h		\
363	mntio.h			\
364	mnttab.h		\
365	modctl.h		\
366	mode.h			\
367	model.h			\
368	modhash.h		\
369	modhash_impl.h		\
370	mount.h			\
371	mouse.h			\
372	msacct.h		\
373	msg.h			\
374	msg_impl.h		\
375	msio.h			\
376	msreg.h			\
377	mtio.h			\
378	multidata.h		\
379	multidata_impl.h	\
380	mutex.h			\
381	nbmlock.h		\
382	ndifm.h		\
383	ndi_impldefs.h		\
384	netconfig.h		\
385	neti.h			\
386	netstack.h		\
387	nexusdefs.h		\
388	note.h			\
389	nvpair.h                \
390	nvpair_impl.h           \
391	objfs.h			\
392	objfs_impl.h		\
393	ontrap.h                \
394	open.h			\
395	openpromio.h		\
396	panic.h			\
397	param.h			\
398	pathconf.h		\
399	pathname.h		\
400	pattr.h			\
401	queue.h			\
402	serializer.h		\
403	pbio.h			\
404	pccard.h		\
405	pci.h			\
406	pcie.h			\
407	pci_impl.h		\
408	pcmcia.h		\
409	pctypes.h		\
410	pem.h			\
411	pfmod.h			\
412	pg.h			\
413	pghw.h			\
414	physmem.h		\
415	pm.h			\
416	policy.h		\
417	poll.h			\
418	poll_impl.h		\
419	pool.h			\
420	pool_impl.h		\
421	pool_pset.h		\
422	port.h			\
423	port_impl.h		\
424	port_kernel.h		\
425	ppmio.h                 \
426	priocntl.h		\
427	priv.h			\
428	priv_impl.h		\
429	prnio.h			\
430	proc.h			\
431	processor.h		\
432	procfs.h		\
433	procset.h		\
434	project.h		\
435	protosw.h		\
436	prsystm.h		\
437	pset.h			\
438	pshot.h			\
439	ptem.h			\
440	ptms.h			\
441	ptyvar.h		\
442	raidioctl.h		\
443	ramdisk.h		\
444	random.h		\
445	rctl.h			\
446	rctl_impl.h		\
447	reboot.h		\
448	refstr.h		\
449	refstr_impl.h		\
450	resource.h		\
451	rlioctl.h		\
452	rt.h			\
453	rtpriocntl.h		\
454	rwlock.h		\
455	rwlock_impl.h		\
456	rwstlock.h		\
457	sad.h			\
458	schedctl.h		\
459	sdt.h			\
460	select.h		\
461	sem.h			\
462	sem_impl.h		\
463	sema_impl.h		\
464	semaphore.h		\
465	sendfile.h		\
466	ser_sync.h		\
467	session.h		\
468	sha1.h			\
469	sha1_consts.h		\
470	sha2.h			\
471	sha2_consts.h		\
472	share.h			\
473	shm.h			\
474	shm_impl.h		\
475	sid.h			\
476	siginfo.h		\
477	signal.h		\
478	sleepq.h		\
479	smbios.h		\
480	smbios_impl.h		\
481	sobject.h		\
482	socket.h		\
483	socket_impl.h		\
484	socketvar.h		\
485	sockio.h		\
486	squeue.h		\
487	squeue_impl.h		\
488	srn.h			\
489	sservice.h		\
490	stat.h			\
491	statfs.h		\
492	statvfs.h		\
493	stdint.h		\
494	stermio.h		\
495	stream.h		\
496	strft.h			\
497	strlog.h		\
498	strmdep.h		\
499	stropts.h		\
500	strredir.h		\
501	strstat.h		\
502	strsubr.h		\
503	strsun.h		\
504	strtty.h		\
505	sunddi.h		\
506	sunldi.h		\
507	sunldi_impl.h		\
508	sunmdi.h		\
509	sunndi.h		\
510	sunos_dhcp_class.h	\
511	sunpm.h			\
512	suntpi.h		\
513	suntty.h		\
514	swap.h			\
515	synch.h			\
516	syscall.h		\
517	sysconf.h		\
518	sysconfig.h		\
519	sysevent.h		\
520	sysevent_impl.h         \
521	sysinfo.h		\
522	syslog.h		\
523	sysmacros.h		\
524	sysmsg_impl.h		\
525	systeminfo.h		\
526	systm.h			\
527	task.h			\
528	taskq.h			\
529	taskq_impl.h		\
530	t_kuser.h		\
531	t_lock.h		\
532	telioctl.h		\
533	termio.h		\
534	termios.h		\
535	termiox.h		\
536	thread.h		\
537	ticlts.h		\
538	ticots.h		\
539	ticotsord.h		\
540	tihdr.h			\
541	time.h			\
542	time_impl.h		\
543	time_std_impl.h		\
544	timeb.h			\
545	timer.h			\
546	times.h			\
547	timex.h			\
548	timod.h			\
549	tirdwr.h		\
550	tiuser.h		\
551	tl.h			\
552	tnf.h			\
553	tnf_com.h		\
554	tnf_probe.h		\
555	tnf_writer.h		\
556	todio.h			\
557	tpicommon.h		\
558	ts.h			\
559	tspriocntl.h		\
560	ttcompat.h		\
561	ttold.h			\
562	tty.h			\
563	ttychars.h		\
564	ttydev.h		\
565	tuneable.h		\
566	turnstile.h		\
567	types.h			\
568	types32.h		\
569	tzfile.h		\
570	u8_textprep.h		\
571	u8_textprep_data.h	\
572	uadmin.h		\
573	ucred.h			\
574	uio.h			\
575	ulimit.h		\
576	un.h			\
577	unistd.h		\
578	user.h			\
579	ustat.h			\
580	utime.h			\
581	utsname.h		\
582	utssys.h		\
583	uuid.h			\
584	va_impl.h		\
585	va_list.h		\
586	var.h			\
587	varargs.h		\
588	vfs.h			\
589	vfs_opreg.h		\
590	vfstab.h		\
591	vgareg.h		\
592	videodev2.h		\
593	visual_io.h		\
594	vlan.h			\
595	vm.h			\
596	vm_usage.h		\
597	vmem.h			\
598	vmem_impl.h		\
599	vmmeter.h		\
600	vmsystm.h		\
601	vnic.h			\
602	vnic_impl.h		\
603	vnode.h			\
604	vscan.h			\
605	vtoc.h			\
606	vtrace.h		\
607	vuid_event.h		\
608	vuid_wheel.h		\
609	vuid_queue.h		\
610	vuid_state.h		\
611	vuid_store.h		\
612	wait.h			\
613	waitq.h			\
614	wanboot_impl.h		\
615	watchpoint.h		\
616	winlockio.h		\
617	zcons.h			\
618	zone.h			\
619	xti_inet.h		\
620	xti_osi.h		\
621	xti_xtiopt.h		\
622	zmod.h
623
624HDRS=				\
625	$(GENHDRS)		\
626	$(CHKHDRS)
627
628AUDIOHDRS=			\
629	ac97.h			\
630	am_src1.h		\
631	audio_apm.h		\
632	audio_mixer.h		\
633	audio_src.h		\
634	audio_support.h		\
635	audio_trace.h		\
636	g711.h
637
638BSCHDRS=			\
639	bscbus.h		\
640	bscv_impl.h		\
641	lom_ebuscodes.h		\
642	lom_io.h		\
643	lom_priv.h		\
644	lombus.h
645
646MDESCHDRS=			\
647	mdesc.h			\
648	mdesc_impl.h
649
650CPUDRVHDRS=			\
651	cpudrv.h
652
653CRYPTOHDRS=			\
654	elfsign.h		\
655	ioctl.h			\
656	ioctladmin.h		\
657	common.h		\
658	impl.h			\
659	spi.h			\
660	api.h			\
661	ops_impl.h		\
662	sched_impl.h
663
664DCAMHDRS=			\
665	dcam1394_io.h
666
667IBHDRS=			\
668	ib_types.h	\
669	ib_pkt_hdrs.h
670
671IBTLHDRS=		\
672	ibtl_types.h	\
673	ibtl_status.h	\
674	ibti.h		\
675	ibti_cm.h	\
676	ibci.h		\
677	ibti_common.h	\
678	ibvti.h		\
679	ibtl_ci_types.h
680
681IBTLIMPLHDRS=		\
682	ibtl_util.h
683
684IBNEXHDRS=		\
685	ibnex_devctl.h
686
687IBMFHDRS=		\
688	ibmf.h		\
689	ibmf_msg.h	\
690	ibmf_saa.h	\
691	ibmf_utils.h
692
693IBMGTHDRS=		\
694	ib_dm_attr.h	\
695	ib_mad.h	\
696	sm_attr.h	\
697	sa_recs.h
698
699IBDHDRS=		\
700	ibd.h
701
702ISOHDRS=			\
703	signal_iso.h
704
705DERIVED_LVMHDRS=	\
706	md_mdiox.h		\
707	md_basic.h		\
708	mdmed.h			\
709	md_mhdx.h		\
710	mdmn_commd.h
711
712LVMHDRS=			\
713	md_convert.h		\
714	md_crc.h		\
715	md_hotspares.h		\
716	md_mddb.h		\
717	md_mirror.h		\
718	md_mirror_shared.h	\
719	md_names.h		\
720	md_notify.h		\
721	md_raid.h		\
722	md_rename.h		\
723	md_sp.h			\
724	md_stripe.h		\
725	md_trans.h		\
726	mdio.h			\
727	mdvar.h
728
729ALL_LVMHDRS=			\
730	$(LVMHDRS)		\
731	$(DERIVED_LVMHDRS)
732
733FMHDRS=				\
734	protocol.h		\
735	util.h
736
737FMFSHDRS=			\
738	zfs.h
739
740FMIOHDRS=			\
741	ddi.h			\
742	disk.h			\
743	pci.h			\
744	scsi.h			\
745	sun4upci.h		\
746	opl_mc_fm.h
747
748FSHDRS=				\
749	autofs.h		\
750	cachefs_dir.h		\
751	cachefs_dlog.h		\
752	cachefs_filegrp.h	\
753	cachefs_fs.h		\
754	cachefs_fscache.h	\
755	cachefs_ioctl.h		\
756	cachefs_log.h		\
757	decomp.h		\
758	dv_node.h		\
759	sdev_impl.h		\
760	sdev_node.h		\
761	fifonode.h		\
762	hsfs_isospec.h		\
763	hsfs_node.h		\
764	hsfs_rrip.h		\
765	hsfs_spec.h		\
766	hsfs_susp.h		\
767	lofs_info.h		\
768	lofs_node.h		\
769	mntdata.h		\
770	namenode.h		\
771	pc_dir.h		\
772	pc_fs.h			\
773	pc_label.h		\
774	pc_node.h		\
775	pxfs_ki.h		\
776	snode.h			\
777	swapnode.h		\
778	tmp.h			\
779	tmpnode.h		\
780	udf_inode.h		\
781	udf_volume.h		\
782	ufs_acl.h		\
783	ufs_bio.h		\
784	ufs_filio.h		\
785	ufs_fs.h		\
786	ufs_fsdir.h		\
787	ufs_inode.h		\
788	ufs_lockfs.h		\
789	ufs_log.h		\
790	ufs_mount.h		\
791	ufs_panic.h		\
792	ufs_prot.h		\
793	ufs_quota.h		\
794	ufs_snap.h              \
795	ufs_trans.h		\
796	zfs.h
797
798PCMCIAHDRS=		\
799	pcata.h		\
800	pcgld.h		\
801	pcramio.h	\
802	pcramvar.h	\
803	pcser_conf.h	\
804	pcser_io.h	\
805	pcser_reg.h	\
806	pcser_manuspec.h \
807	pcser_var.h
808
809SCSIHDRS=		\
810	scsi.h		\
811	scsi_address.h	\
812	scsi_ctl.h	\
813	scsi_params.h	\
814	scsi_pkt.h	\
815	scsi_resource.h	\
816	scsi_types.h	\
817	scsi_watch.h
818
819SCSICONFHDRS=		\
820	autoconf.h	\
821	device.h
822
823SCSIGENHDRS=		\
824	commands.h	\
825	dad_mode.h	\
826	inquiry.h	\
827	message.h	\
828	mode.h		\
829	persist.h	\
830	sense.h		\
831	smp_frames.h	\
832	status.h
833
834SCSIIMPLHDRS=		\
835	commands.h	\
836	inquiry.h	\
837	mode.h		\
838	sas_transport.h	\
839	sense.h		\
840	services.h	\
841	status.h	\
842	transport.h	\
843	scsi_reset_notify.h \
844	types.h		\
845	uscsi.h		\
846	usmp.h
847
848SCSITARGETSHDRS=	\
849	ses.h		\
850	sesio.h		\
851	sgendef.h	\
852	stdef.h		\
853	sddef.h		\
854	smp.h
855
856SCSICADHDRS=
857
858SCSIVHCIHDRS=		\
859	scsi_vhci.h	\
860	mpapi_impl.h	\
861	mpapi_scsi_vhci.h
862
863FCHDRS=			\
864	fc_transport.h	\
865	linkapp.h	\
866	fc.h		\
867	fcp.h		\
868	fcal_transport.h \
869	fcal.h		\
870	fcal_linkapp.h	\
871	fcio.h
872
873SATAGENHDRS=		\
874	sata_hba.h	\
875	sata_defs.h	\
876	sata_cfgadm.h
877
878SYSEVENTHDRS=		\
879	acpiev.h	\
880	ap_driver.h     \
881	dev.h		\
882	domain.h        \
883	dr.h            \
884	env.h           \
885	eventdefs.h	\
886	ipmp.h		\
887	svm.h
888
889CONTRACTHDRS=		\
890	process.h	\
891	process_impl.h	\
892	device.h	\
893	device_impl.h
894
895USBHDRS=	\
896	usba.h	\
897	usbai.h
898
899USBAUDHDRS=           \
900	usb_audio.h
901
902USBHUBDHDRS=		\
903	hub.h		\
904	hubd_impl.h
905
906USBHIDHDRS=		\
907	hid.h
908
909USBMSHDRS=		\
910	usb_bulkonly.h	\
911	usb_cbi.h
912
913USBPRNHDRS=           \
914	usb_printer.h
915
916USBCDCHDRS=		\
917	usb_cdc.h
918
919USBVIDHDRS=           \
920	usbvc.h
921
922UGENHDRS=           \
923	usb_ugen.h
924
925HOTPLUGHDRS=	\
926	hpcsvc.h	\
927	hpctrl.h
928
929HOTPLUGPCIHDRS=	\
930	pcicfg.h	\
931	pcihp.h
932
933RSMHDRS= \
934	rsm.h	\
935	rsm_common.h	\
936	rsmapi_common.h \
937	rsmpi.h	\
938	rsmpi_driver.h	\
939	rsmka_path_int.h
940
941TSOLHDRS=		\
942	label.h		\
943	label_macro.h	\
944	priv.h		\
945	tndb.h		\
946	tsyscall.h
947
948I1394HDRS=		\
949	cmd1394.h	\
950	id1394.h	\
951	ieee1212.h	\
952	ieee1394.h	\
953	ixl1394.h	\
954	s1394_impl.h	\
955	t1394.h
956
957# "cmdk" headers used on sparc
958SDKTPHDRS=		\
959	dadkio.h	\
960	fdisk.h
961
962# "cmdk" headers used on i386
963DKTPHDRS=		\
964	altsctr.h	\
965	bbh.h		\
966	cm.h		\
967	cmdev.h		\
968	cmdk.h		\
969	cmpkt.h		\
970	controller.h	\
971	dadev.h		\
972	dadk.h		\
973	dadkio.h	\
974	fctypes.h	\
975	fdisk.h		\
976	flowctrl.h	\
977	gda.h		\
978	quetypes.h	\
979	queue.h		\
980	tgcom.h		\
981	tgdk.h
982
983# "pc" header files used on i386
984PCHDRS=			\
985	avintr.h	\
986	dma_engine.h	\
987	i8272A.h	\
988	pcic_reg.h	\
989	pcic_var.h	\
990	pic.h		\
991	pit.h		\
992	rtc.h
993
994NXGEHDRS=			\
995	nxge.h			\
996	nxge_common.h		\
997	nxge_common_impl.h	\
998	nxge_defs.h		\
999	nxge_hw.h		\
1000	nxge_impl.h		\
1001	nxge_ipp.h		\
1002	nxge_ipp_hw.h		\
1003	nxge_mac.h		\
1004	nxge_mac_hw.h		\
1005	nxge_fflp.h		\
1006	nxge_fflp_hw.h		\
1007	nxge_mii.h		\
1008	nxge_rxdma.h		\
1009	nxge_rxdma_hw.h		\
1010	nxge_txc.h		\
1011	nxge_txc_hw.h		\
1012	nxge_txdma.h		\
1013	nxge_txdma_hw.h		\
1014	nxge_virtual.h		\
1015	nxge_espc.h
1016
1017include Makefile.syshdrs
1018
1019dcam/%.check:	dcam/%.h
1020	$(DOT_H_CHECK)
1021
1022CHECKHDRS=						\
1023	$($(MACH)_HDRS:%.h=%.check)			\
1024	$(AUDIOHDRS:%.h=audio/%.check)			\
1025	$(BSCHDRS:%.h=%.check)				\
1026	$(CHKHDRS:%.h=%.check)				\
1027	$(CPUDRVHDRS:%.h=%.check)			\
1028	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1029	$(DCAMHDRS:%.h=dcam/%.check)			\
1030	$(IBHDRS:%.h=ib/%.check)			\
1031	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1032	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1033	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1034	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1035	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1036	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1037	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1038	$(ISOHDRS:%.h=iso/%.check)			\
1039	$(FMHDRS:%.h=fm/%.check)			\
1040	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1041	$(FMIOHDRS:%.h=fm/io/%.check)			\
1042	$(FSHDRS:%.h=fs/%.check)			\
1043	$(LVMHDRS:%.h=lvm/%.check)			\
1044	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1045	$(SCSIHDRS:%.h=scsi/%.check)			\
1046	$(SCSICONHDRS:%.h=scsi/conf/%.check)		\
1047	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1048	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1049	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1050	$(FCHDRS:%.h=fc4/%.check)			\
1051	$(SATAGENHDRS:%.h=sata/%.check)			\
1052	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1053	$(CONTRACTHDRS:%.h=contract/%.check)            \
1054	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1055	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1056	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1057	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1058	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1059	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1060	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1061	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1062	$(USBHDRS:%.h=usb/%.check)                      \
1063	$(I1394HDRS:%.h=1394/%.check)			\
1064	$(RSMHDRS:%.h=rsm/%.check)			\
1065	$(TSOLHDRS:%.h=tsol/%.check)			\
1066	$(NXGEHDRS:%.h=nxge/%.check)
1067
1068
1069.KEEP_STATE:
1070
1071.PARALLEL:			\
1072	$(CHECKHDRS)		\
1073	$(ROOTHDRS)		\
1074	$(ROOTAUDHDRS)		\
1075	$(ROOTCRYPTOHDRS)	\
1076	$(ROOTDCAMHDRS)		\
1077	$(ROOTISOHDRS)		\
1078	$(ROOTFMHDRS)		\
1079	$(ROOTFMIOHDRS)		\
1080	$(ROOTFMFSHDRS)		\
1081	$(ROOTFSHDRS)		\
1082	$(ROOTIBDHDRS)		\
1083	$(ROOTIBHDRS)		\
1084	$(ROOTIBTLHDRS)		\
1085	$(ROOTIBTLIMPLHDRS)	\
1086	$(ROOTIBNEXHDRS)	\
1087	$(ROOTIBMGTHDRS)	\
1088	$(ROOTIBMFHDRS)		\
1089	$(ROOTTAVORHDRS)	\
1090	$(ROOTLVMHDRS)		\
1091	$(ROOTPCMCIAHDRS)	\
1092	$(ROOTSCSIHDRS)		\
1093	$(ROOTSCSICONFHDRS)	\
1094	$(ROOTSCSIGENHDRS)	\
1095	$(ROOTSCSIIMPLHDRS)	\
1096	$(ROOTSCSIVHCIHDRS)	\
1097	$(ROOTFCHDRS)		\
1098	$(ROOTSYSEVENTHDRS)     \
1099	$(ROOTCONTRACTHDRS)     \
1100	$(ROOTUSBHDRS)		\
1101	$(ROOTUSBAUDHDRS)	\
1102	$(ROOTUSBHUBDHDRS)	\
1103	$(ROOTUSBHIDHDRS)	\
1104	$(ROOTUSBMSHDRS)	\
1105	$(ROOTUSBPRNHDRS)       \
1106	$(ROOTUSBCDCHDRS)       \
1107	$(ROOTUSBVIDHDRS)       \
1108	$(ROOTUGENHDRS)		\
1109	$(ROOT1394HDRS)         \
1110	$(ROOTHOTPLUGHDRS)	\
1111	$(ROOTHOTPLUGPCIHDRS)	\
1112	$(ROOTRSMHDRS)		\
1113	$(ROOTTSOLHDRS)		\
1114	$($(MACH)_ROOTHDRS)
1115
1116
1117install_h:			\
1118	$(ROOTDIRS)		\
1119	LVMDERIVED_H		\
1120	.WAIT			\
1121	$(ROOTHDRS)		\
1122	$(ROOTAUDHDRS)		\
1123	$(ROOTCRYPTOHDRS)	\
1124	$(ROOTDCAMHDRS)		\
1125	$(ROOTISOHDRS)		\
1126	$(ROOTFMHDRS)		\
1127	$(ROOTFMFSHDRS)		\
1128	$(ROOTFMIOHDRS)		\
1129	$(ROOTFSHDRS)		\
1130	$(ROOTIBDHDRS)		\
1131	$(ROOTIBHDRS)		\
1132	$(ROOTIBTLHDRS)		\
1133	$(ROOTIBTLIMPLHDRS)	\
1134	$(ROOTIBNEXHDRS)	\
1135	$(ROOTIBMGTHDRS)	\
1136	$(ROOTIBMFHDRS)		\
1137	$(ROOTTAVORHDRS)	\
1138	$(ROOTLVMHDRS)		\
1139	$(ROOTPCMCIAHDRS)	\
1140	$(ROOTSCSIHDRS)		\
1141	$(ROOTSCSICONFHDRS)	\
1142	$(ROOTSCSIGENHDRS)	\
1143	$(ROOTSCSIIMPLHDRS)	\
1144	$(ROOTSCSIVHCIHDRS)	\
1145	$(ROOTFCHDRS)		\
1146	$(ROOTSYSEVENTHDRS)     \
1147	$(ROOTCONTRACTHDRS)     \
1148	$(ROOTUSBHDRS)		\
1149	$(ROOTUSBAUDHDRS)	\
1150	$(ROOTUSBHUBDHDRS)	\
1151	$(ROOTUSBHIDHDRS)	\
1152	$(ROOTUSBMSHDRS)	\
1153	$(ROOTUSBPRNHDRS)       \
1154	$(ROOTUSBCDCHDRS)       \
1155	$(ROOTUSBVIDHDRS)       \
1156	$(ROOTUGENHDRS)		\
1157	$(ROOT1394HDRS)         \
1158	$(ROOTHOTPLUGHDRS)	\
1159	$(ROOTHOTPLUGPCIHDRS)	\
1160	$(ROOTRSMHDRS)		\
1161	$(ROOTTSOLHDRS)		\
1162	$($(MACH)_ROOTHDRS)
1163
1164all_h: $(GENHDRS)
1165
1166priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1167	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1168
1169priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1170	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1171
1172LVMDERIVED_H:
1173	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1174
1175check:	$(CHECKHDRS)
1176
1177FRC:
1178
1179# EXPORT DELETE START
1180EXPORT_SRC:
1181	$(RM) wanboot_impl.h+ Makefile+
1182	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1183		< wanboot_impl.h > wanboot_impl.h+
1184	$(MV) wanboot_impl.h+ wanboot_impl.h
1185	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1186		< Makefile > Makefile+
1187	$(RM) Makefile
1188	$(MV) Makefile+ Makefile
1189	$(CHMOD) 444 Makefile wanboot_impl.h
1190# EXPORT DELETE END
1191