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