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