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