xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 71269a2275bf5a143dad6461eee2710a344e7261)
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
720IDMHDRS=		\
721	idm.h		\
722	idm_impl.h	\
723	idm_so.h	\
724	idm_text.h	\
725	idm_transport.h \
726	idm_conn_sm.h
727
728ISCSITHDRS=		\
729	radius_packet.h		\
730	radius_protocol.h	\
731	chap.h			\
732	isns_protocol.h		\
733	iscsi_if.h		\
734	iscsit_common.h
735
736ISOHDRS=			\
737	signal_iso.h
738
739DERIVED_LVMHDRS=	\
740	md_mdiox.h		\
741	md_basic.h		\
742	mdmed.h			\
743	md_mhdx.h		\
744	mdmn_commd.h
745
746LVMHDRS=			\
747	md_convert.h		\
748	md_crc.h		\
749	md_hotspares.h		\
750	md_mddb.h		\
751	md_mirror.h		\
752	md_mirror_shared.h	\
753	md_names.h		\
754	md_notify.h		\
755	md_raid.h		\
756	md_rename.h		\
757	md_sp.h			\
758	md_stripe.h		\
759	md_trans.h		\
760	mdio.h			\
761	mdvar.h
762
763ALL_LVMHDRS=			\
764	$(LVMHDRS)		\
765	$(DERIVED_LVMHDRS)
766
767FMHDRS=				\
768	protocol.h		\
769	util.h
770
771FMFSHDRS=			\
772	zfs.h
773
774FMIOHDRS=			\
775	ddi.h			\
776	disk.h			\
777	pci.h			\
778	scsi.h			\
779	sun4upci.h		\
780	opl_mc_fm.h
781
782FSHDRS=				\
783	autofs.h		\
784	cachefs_dir.h		\
785	cachefs_dlog.h		\
786	cachefs_filegrp.h	\
787	cachefs_fs.h		\
788	cachefs_fscache.h	\
789	cachefs_ioctl.h		\
790	cachefs_log.h		\
791	decomp.h		\
792	dv_node.h		\
793	sdev_impl.h		\
794	sdev_node.h		\
795	fifonode.h		\
796	hsfs_isospec.h		\
797	hsfs_node.h		\
798	hsfs_rrip.h		\
799	hsfs_spec.h		\
800	hsfs_susp.h		\
801	lofs_info.h		\
802	lofs_node.h		\
803	mntdata.h		\
804	namenode.h		\
805	pc_dir.h		\
806	pc_fs.h			\
807	pc_label.h		\
808	pc_node.h		\
809	pxfs_ki.h		\
810	snode.h			\
811	swapnode.h		\
812	tmp.h			\
813	tmpnode.h		\
814	udf_inode.h		\
815	udf_volume.h		\
816	ufs_acl.h		\
817	ufs_bio.h		\
818	ufs_filio.h		\
819	ufs_fs.h		\
820	ufs_fsdir.h		\
821	ufs_inode.h		\
822	ufs_lockfs.h		\
823	ufs_log.h		\
824	ufs_mount.h		\
825	ufs_panic.h		\
826	ufs_prot.h		\
827	ufs_quota.h		\
828	ufs_snap.h              \
829	ufs_trans.h		\
830	zfs.h
831
832PCMCIAHDRS=		\
833	pcata.h		\
834	pcgld.h		\
835	pcramio.h	\
836	pcramvar.h	\
837	pcser_conf.h	\
838	pcser_io.h	\
839	pcser_reg.h	\
840	pcser_manuspec.h \
841	pcser_var.h
842
843SCSIHDRS=		\
844	scsi.h		\
845	scsi_address.h	\
846	scsi_ctl.h	\
847	scsi_fm.h	\
848	scsi_params.h	\
849	scsi_pkt.h	\
850	scsi_resource.h	\
851	scsi_types.h	\
852	scsi_watch.h
853
854SCSICONFHDRS=		\
855	autoconf.h	\
856	device.h
857
858SCSIGENHDRS=		\
859	commands.h	\
860	dad_mode.h	\
861	inquiry.h	\
862	message.h	\
863	mode.h		\
864	persist.h	\
865	sense.h		\
866	smp_frames.h	\
867	status.h
868
869SCSIIMPLHDRS=		\
870	commands.h	\
871	inquiry.h	\
872	mode.h		\
873	sas_transport.h	\
874	sense.h		\
875	services.h	\
876	status.h	\
877	transport.h	\
878	scsi_reset_notify.h \
879	spc3_types.h	\
880	types.h		\
881	uscsi.h		\
882	usmp.h
883
884SCSITARGETSHDRS=	\
885	ses.h		\
886	sesio.h		\
887	sgendef.h	\
888	stdef.h		\
889	sddef.h		\
890	smp.h
891
892SCSIADHDRS=		\
893	blk2scsa.h
894
895SCSICADHDRS=
896
897SCSIISCSIHDRS=		\
898	iscsi_door.h	\
899	iscsi_if.h	\
900	iscsi_protocol.h
901
902SCSIVHCIHDRS=		\
903	scsi_vhci.h	\
904	mpapi_impl.h	\
905	mpapi_scsi_vhci.h
906
907SDCARDHDRS=		\
908	sda.h		\
909	sda_impl.h	\
910	sda_ioctl.h
911
912FC4HDRS=			\
913	fc_transport.h	\
914	linkapp.h	\
915	fc.h		\
916	fcp.h		\
917	fcal_transport.h \
918	fcal.h		\
919	fcal_linkapp.h	\
920	fcio.h
921
922FCHDRS=			\
923	fc.h		\
924	fcio.h		\
925	fc_types.h	\
926	fc_appif.h
927
928FCIMPLHDRS=		\
929	fc_error.h	\
930	fcph.h
931
932FCULPHDRS=		\
933	fcp_util.h	\
934	fcsm.h
935
936SATAGENHDRS=		\
937	sata_hba.h	\
938	sata_defs.h	\
939	sata_cfgadm.h
940
941SYSEVENTHDRS=		\
942	ap_driver.h     \
943	dev.h		\
944	domain.h        \
945	dr.h            \
946	env.h           \
947	eventdefs.h	\
948	ipmp.h		\
949	pwrctl.h	\
950	svm.h
951
952CONTRACTHDRS=		\
953	process.h	\
954	process_impl.h	\
955	device.h	\
956	device_impl.h
957
958USBHDRS=	\
959	usba.h	\
960	usbai.h
961
962USBAUDHDRS=           \
963	usb_audio.h
964
965USBHUBDHDRS=		\
966	hub.h		\
967	hubd_impl.h
968
969USBHIDHDRS=		\
970	hid.h
971
972USBMSHDRS=		\
973	usb_bulkonly.h	\
974	usb_cbi.h
975
976USBPRNHDRS=           \
977	usb_printer.h
978
979USBCDCHDRS=		\
980	usb_cdc.h
981
982USBVIDHDRS=           \
983	usbvc.h
984
985UGENHDRS=           \
986	usb_ugen.h
987
988HOTPLUGHDRS=	\
989	hpcsvc.h	\
990	hpctrl.h
991
992HOTPLUGPCIHDRS=	\
993	pcicfg.h	\
994	pcihp.h
995
996RSMHDRS= \
997	rsm.h	\
998	rsm_common.h	\
999	rsmapi_common.h \
1000	rsmpi.h	\
1001	rsmpi_driver.h	\
1002	rsmka_path_int.h
1003
1004TSOLHDRS=		\
1005	label.h		\
1006	label_macro.h	\
1007	priv.h		\
1008	tndb.h		\
1009	tsyscall.h
1010
1011I1394HDRS=		\
1012	cmd1394.h	\
1013	id1394.h	\
1014	ieee1212.h	\
1015	ieee1394.h	\
1016	ixl1394.h	\
1017	s1394_impl.h	\
1018	t1394.h
1019
1020# "cmdk" headers used on sparc
1021SDKTPHDRS=		\
1022	dadkio.h	\
1023	fdisk.h
1024
1025# "cmdk" headers used on i386
1026DKTPHDRS=		\
1027	altsctr.h	\
1028	bbh.h		\
1029	cm.h		\
1030	cmdev.h		\
1031	cmdk.h		\
1032	cmpkt.h		\
1033	controller.h	\
1034	dadev.h		\
1035	dadk.h		\
1036	dadkio.h	\
1037	fctypes.h	\
1038	fdisk.h		\
1039	flowctrl.h	\
1040	gda.h		\
1041	quetypes.h	\
1042	queue.h		\
1043	tgcom.h		\
1044	tgdk.h
1045
1046# "pc" header files used on i386
1047PCHDRS=			\
1048	avintr.h	\
1049	dma_engine.h	\
1050	i8272A.h	\
1051	pcic_reg.h	\
1052	pcic_var.h	\
1053	pic.h		\
1054	pit.h		\
1055	rtc.h
1056
1057NXGEHDRS=			\
1058	nxge.h			\
1059	nxge_common.h		\
1060	nxge_common_impl.h	\
1061	nxge_defs.h		\
1062	nxge_hw.h		\
1063	nxge_impl.h		\
1064	nxge_ipp.h		\
1065	nxge_ipp_hw.h		\
1066	nxge_mac.h		\
1067	nxge_mac_hw.h		\
1068	nxge_fflp.h		\
1069	nxge_fflp_hw.h		\
1070	nxge_mii.h		\
1071	nxge_rxdma.h		\
1072	nxge_rxdma_hw.h		\
1073	nxge_txc.h		\
1074	nxge_txc_hw.h		\
1075	nxge_txdma.h		\
1076	nxge_txdma_hw.h		\
1077	nxge_virtual.h		\
1078	nxge_espc.h
1079
1080include Makefile.syshdrs
1081
1082dcam/%.check:	dcam/%.h
1083	$(DOT_H_CHECK)
1084
1085CHECKHDRS=						\
1086	$($(MACH)_HDRS:%.h=%.check)			\
1087	$(AUDIOHDRS:%.h=audio/%.check)			\
1088	$(BSCHDRS:%.h=%.check)				\
1089	$(CHKHDRS:%.h=%.check)				\
1090	$(CPUDRVHDRS:%.h=%.check)			\
1091	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1092	$(DCAMHDRS:%.h=dcam/%.check)			\
1093	$(FC4HDRS:%.h=fc4/%.check)			\
1094	$(FCHDRS:%.h=fibre-channel/%.check)		\
1095	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1096	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1097	$(IBHDRS:%.h=ib/%.check)			\
1098	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1099	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1100	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1101	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1102	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1103	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1104	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1105	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1106	$(IDMHDRS:%.h=idm/%.check)			\
1107	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1108	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1109	$(ISOHDRS:%.h=iso/%.check)			\
1110	$(FMHDRS:%.h=fm/%.check)			\
1111	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1112	$(FMIOHDRS:%.h=fm/io/%.check)			\
1113	$(FSHDRS:%.h=fs/%.check)			\
1114	$(LVMHDRS:%.h=lvm/%.check)			\
1115	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1116	$(SCSIHDRS:%.h=scsi/%.check)			\
1117	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1118	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1119	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1120	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1121	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1122	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1123	$(SATAGENHDRS:%.h=sata/%.check)			\
1124	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1125	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1126	$(CONTRACTHDRS:%.h=contract/%.check)            \
1127	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1128	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1129	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1130	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1131	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1132	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1133	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1134	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1135	$(USBHDRS:%.h=usb/%.check)                      \
1136	$(I1394HDRS:%.h=1394/%.check)			\
1137	$(RSMHDRS:%.h=rsm/%.check)			\
1138	$(TSOLHDRS:%.h=tsol/%.check)			\
1139	$(NXGEHDRS:%.h=nxge/%.check)
1140
1141
1142.KEEP_STATE:
1143
1144.PARALLEL:			\
1145	$(CHECKHDRS)		\
1146	$(ROOTHDRS)		\
1147	$(ROOTAUDHDRS)		\
1148	$(ROOTCRYPTOHDRS)	\
1149	$(ROOTDCAMHDRS)		\
1150	$(ROOTISOHDRS)		\
1151	$(ROOTIDMHDRS)		\
1152	$(ROOTISCSIHDRS)	\
1153	$(ROOTISCSITHDRS)	\
1154	$(ROOTFC4HDRS)		\
1155	$(ROOTFCHDRS)		\
1156	$(ROOTFCIMPLHDRS)	\
1157	$(ROOTFCULPHDRS)	\
1158	$(ROOTFMHDRS)		\
1159	$(ROOTFMIOHDRS)		\
1160	$(ROOTFMFSHDRS)		\
1161	$(ROOTFSHDRS)		\
1162	$(ROOTIBDHDRS)		\
1163	$(ROOTIBHDRS)		\
1164	$(ROOTIBTLHDRS)		\
1165	$(ROOTIBTLIMPLHDRS)	\
1166	$(ROOTIBNEXHDRS)	\
1167	$(ROOTIBMGTHDRS)	\
1168	$(ROOTIBMFHDRS)		\
1169	$(ROOTTAVORHDRS)	\
1170	$(ROOTLVMHDRS)		\
1171	$(ROOTPCMCIAHDRS)	\
1172	$(ROOTSCSIHDRS)		\
1173	$(ROOTSCSIADHDRS)	\
1174	$(ROOTSCSICONFHDRS)	\
1175	$(ROOTSCSIISCSIHDRS)	\
1176	$(ROOTSCSIGENHDRS)	\
1177	$(ROOTSCSIIMPLHDRS)	\
1178	$(ROOTSCSIVHCIHDRS)	\
1179	$(ROOTSDCARDHDRS)	\
1180	$(ROOTSYSEVENTHDRS)     \
1181	$(ROOTCONTRACTHDRS)     \
1182	$(ROOTUSBHDRS)		\
1183	$(ROOTUSBAUDHDRS)	\
1184	$(ROOTUSBHUBDHDRS)	\
1185	$(ROOTUSBHIDHDRS)	\
1186	$(ROOTUSBMSHDRS)	\
1187	$(ROOTUSBPRNHDRS)       \
1188	$(ROOTUSBCDCHDRS)       \
1189	$(ROOTUSBVIDHDRS)       \
1190	$(ROOTUGENHDRS)		\
1191	$(ROOT1394HDRS)         \
1192	$(ROOTHOTPLUGHDRS)	\
1193	$(ROOTHOTPLUGPCIHDRS)	\
1194	$(ROOTRSMHDRS)		\
1195	$(ROOTTSOLHDRS)		\
1196	$($(MACH)_ROOTHDRS)
1197
1198
1199install_h:			\
1200	$(ROOTDIRS)		\
1201	LVMDERIVED_H		\
1202	.WAIT			\
1203	$(ROOTHDRS)		\
1204	$(ROOTAUDHDRS)		\
1205	$(ROOTCRYPTOHDRS)	\
1206	$(ROOTDCAMHDRS)		\
1207	$(ROOTISOHDRS)		\
1208	$(ROOTIDMHDRS)		\
1209	$(ROOTISCSIHDRS)	\
1210	$(ROOTISCSITHDRS)	\
1211	$(ROOTFC4HDRS)		\
1212	$(ROOTFCHDRS)		\
1213	$(ROOTFCIMPLHDRS)	\
1214	$(ROOTFCULPHDRS)	\
1215	$(ROOTFMHDRS)		\
1216	$(ROOTFMFSHDRS)		\
1217	$(ROOTFMIOHDRS)		\
1218	$(ROOTFSHDRS)		\
1219	$(ROOTIBDHDRS)		\
1220	$(ROOTIBHDRS)		\
1221	$(ROOTIBTLHDRS)		\
1222	$(ROOTIBTLIMPLHDRS)	\
1223	$(ROOTIBNEXHDRS)	\
1224	$(ROOTIBMGTHDRS)	\
1225	$(ROOTIBMFHDRS)		\
1226	$(ROOTTAVORHDRS)	\
1227	$(ROOTLVMHDRS)		\
1228	$(ROOTPCMCIAHDRS)	\
1229	$(ROOTSCSIHDRS)		\
1230	$(ROOTSCSIADHDRS)	\
1231	$(ROOTSCSIISCSIHDRS)	\
1232	$(ROOTSCSICONFHDRS)	\
1233	$(ROOTSCSIGENHDRS)	\
1234	$(ROOTSCSIIMPLHDRS)	\
1235	$(ROOTSCSIVHCIHDRS)     \
1236	$(ROOTSDCARDHDRS)	\
1237	$(ROOTSYSEVENTHDRS)     \
1238	$(ROOTCONTRACTHDRS)     \
1239	$(ROOTUSBHDRS)		\
1240	$(ROOTUSBAUDHDRS)	\
1241	$(ROOTUSBHUBDHDRS)	\
1242	$(ROOTUSBHIDHDRS)	\
1243	$(ROOTUSBMSHDRS)	\
1244	$(ROOTUSBPRNHDRS)       \
1245	$(ROOTUSBCDCHDRS)       \
1246	$(ROOTUSBVIDHDRS)       \
1247	$(ROOTUGENHDRS)		\
1248	$(ROOT1394HDRS)         \
1249	$(ROOTHOTPLUGHDRS)	\
1250	$(ROOTHOTPLUGPCIHDRS)	\
1251	$(ROOTRSMHDRS)		\
1252	$(ROOTTSOLHDRS)		\
1253	$($(MACH)_ROOTHDRS)
1254
1255all_h: $(GENHDRS)
1256
1257priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1258	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1259
1260priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1261	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1262
1263LVMDERIVED_H:
1264	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1265
1266check:	$(CHECKHDRS)
1267
1268FRC:
1269
1270# EXPORT DELETE START
1271EXPORT_SRC:
1272	$(RM) wanboot_impl.h+ Makefile+
1273	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1274		< wanboot_impl.h > wanboot_impl.h+
1275	$(MV) wanboot_impl.h+ wanboot_impl.h
1276	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1277		< Makefile > Makefile+
1278	$(RM) Makefile
1279	$(MV) Makefile+ Makefile
1280	$(CHMOD) 444 Makefile wanboot_impl.h
1281# EXPORT DELETE END
1282