xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 8cb74972a66bde0af7b1a957d01e0095b82a8b91)
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 2009 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
57sparc_HDRS= 			\
58	audio/audiots.h		\
59	audio/am_src2.h		\
60	mouse.h			\
61	scsi/targets/ssddef.h	\
62	$(MDESCHDRS)
63
64# Generated headers
65GENHDRS=			\
66	priv_const.h		\
67	priv_names.h		\
68	usb/usbdevs.h
69
70CHKHDRS=			\
71	acpi_drv.h		\
72	acct.h			\
73	acctctl.h		\
74	acl.h			\
75	acl_impl.h		\
76	aggr.h			\
77	aggr_impl.h		\
78	aio.h			\
79	aio_impl.h		\
80	aio_req.h		\
81	aiocb.h			\
82	ascii.h			\
83	asynch.h		\
84	atomic.h		\
85	attr.h			\
86	audio.h			\
87	audioio.h		\
88	audiovar.h		\
89	autoconf.h		\
90	auxv.h			\
91	auxv_386.h		\
92	auxv_SPARC.h		\
93	avl.h			\
94	avl_impl.h		\
95	bitmap.h		\
96	bitset.h		\
97	bl.h			\
98	bmc_intf.h		\
99	bofi.h			\
100	bofi_impl.h		\
101	bpp_io.h		\
102	bootstat.h		\
103	brand.h			\
104	buf.h			\
105	bufmod.h		\
106	bustypes.h		\
107	byteorder.h		\
108	callb.h			\
109	callo.h			\
110	cpucaps.h		\
111	cpucaps_impl.h		\
112	ccompile.h		\
113	cdio.h			\
114	cladm.h			\
115	class.h			\
116	clconf.h		\
117	cmlb.h			\
118	cmn_err.h		\
119	compress.h		\
120	condvar.h		\
121	condvar_impl.h		\
122	conf.h			\
123	consdev.h		\
124	console.h		\
125        consplat.h              \
126	vt.h			\
127	vtdaemon.h		\
128	kd.h			\
129	contract.h		\
130	contract_impl.h		\
131	copyops.h		\
132	core.h			\
133	corectl.h		\
134	cpc_impl.h		\
135	cpc_pcbe.h		\
136	cpr.h			\
137	cpupart.h		\
138	cpuvar.h		\
139	crc32.h			\
140	cred.h			\
141	cred_impl.h		\
142	crtctl.h		\
143	cryptmod.h		\
144	csiioctl.h		\
145	ctf.h			\
146	ctfs.h			\
147	ctfs_impl.h		\
148	ctf_api.h		\
149	ctype.h			\
150	cyclic.h		\
151	cyclic_impl.h		\
152	dacf.h			\
153	dacf_impl.h		\
154	dc_ki.h			\
155	ddi.h			\
156	ddifm.h			\
157	ddifm_impl.h		\
158	ddi_intr.h		\
159	ddi_intr_impl.h		\
160	ddi_impldefs.h		\
161	ddi_implfuncs.h		\
162	ddi_obsolete.h		\
163	ddi_timer.h		\
164	ddidevmap.h		\
165	ddidmareq.h		\
166	ddimapreq.h		\
167	ddipropdefs.h		\
168	dditypes.h		\
169	debug.h			\
170	des.h			\
171	devctl.h		\
172	devcache.h		\
173	devcache_impl.h		\
174	devfm.h			\
175	devid_cache.h		\
176	devinfo_impl.h		\
177	devops.h		\
178	devpolicy.h		\
179	devpoll.h		\
180	dirent.h		\
181	disp.h			\
182	dkbad.h			\
183	dkio.h			\
184	dklabel.h		\
185	dl.h			\
186	dlpi.h			\
187	dld.h			\
188	dld_impl.h		\
189	dld_ioc.h		\
190	dls.h			\
191	dls_mgmt.h		\
192	dls_impl.h		\
193	dma_i8237A.h            \
194	dnlc.h			\
195	door.h			\
196	door_data.h		\
197	door_impl.h		\
198	dtrace.h		\
199	dtrace_impl.h		\
200	dumpadm.h		\
201	dumphdr.h		\
202	ecppsys.h		\
203	ecppio.h                \
204	ecppreg.h               \
205	ecppvar.h               \
206	efi_partition.h		\
207	elf.h			\
208	elf_386.h		\
209	elf_SPARC.h		\
210	elf_notes.h		\
211	elf_amd64.h		\
212	elftypes.h		\
213	emul64.h		\
214	emul64cmd.h		\
215	emul64var.h		\
216	epm.h			\
217	errno.h			\
218	errorq.h		\
219	errorq_impl.h		\
220	esunddi.h		\
221	ethernet.h		\
222	euc.h			\
223	eucioctl.h		\
224	exacct.h		\
225	exacct_catalog.h	\
226	exacct_impl.h		\
227	exec.h			\
228	exechdr.h		\
229	extdirent.h		\
230	fault.h			\
231	fasttrap.h		\
232	fasttrap_impl.h		\
233	fbio.h			\
234	fbuf.h			\
235	fcntl.h			\
236	fct.h			\
237	fct_defines.h		\
238	fctio.h			\
239	fdbuffer.h		\
240	fdio.h			\
241	feature_tests.h		\
242	fem.h			\
243	file.h			\
244	filio.h			\
245	flock.h			\
246	flock_impl.h		\
247	fork.h			\
248	fss.h			\
249	fsspriocntl.h		\
250	fsid.h			\
251	fssnap.h                \
252	fssnap_if.h             \
253	fstyp.h			\
254	ftrace.h		\
255	fx.h			\
256	fxpriocntl.h		\
257	gfs.h			\
258	gld.h			\
259	gldpriv.h		\
260	group.h			\
261	hdio.h			\
262	hook.h			\
263	hook_event.h		\
264	hook_impl.h		\
265	hwconf.h		\
266	ia.h			\
267	iapriocntl.h		\
268	id32.h			\
269	idmap.h 		\
270	ieeefp.h		\
271	id_space.h		\
272	instance.h		\
273	int_const.h		\
274	int_fmtio.h		\
275	int_limits.h		\
276	int_types.h		\
277	inttypes.h		\
278	ioccom.h		\
279	ioctl.h			\
280	ipc.h			\
281	ipc_impl.h		\
282	ipc_rctl.h		\
283	isa_defs.h		\
284	iscsi_authclient.h	\
285	iscsi_authclientglue.h	\
286	iscsi_protocol.h	\
287	jioctl.h		\
288	kbd.h			\
289	kbdreg.h		\
290	kbio.h			\
291	kcpc.h			\
292	kdi.h			\
293	kdi_impl.h		\
294	kiconv.h		\
295	kiconv_big5_utf8.h	\
296	kiconv_cck_common.h	\
297	kiconv_cp950hkscs_utf8.h	\
298	kiconv_emea1.h		\
299	kiconv_emea2.h		\
300	kiconv_euckr_utf8.h	\
301	kiconv_euctw_utf8.h	\
302	kiconv_gb18030_utf8.h	\
303	kiconv_gb2312_utf8.h	\
304	kiconv_hkscs_utf8.h	\
305	kiconv_ja.h		\
306	kiconv_ja_jis_to_unicode.h	\
307	kiconv_ja_unicode_to_jis.h	\
308	kiconv_ko.h		\
309	kiconv_latin1.h		\
310	kiconv_sc.h		\
311	kiconv_tc.h		\
312	kiconv_uhc_utf8.h	\
313	kiconv_utf8_big5.h	\
314	kiconv_utf8_cp950hkscs.h	\
315	kiconv_utf8_euckr.h	\
316	kiconv_utf8_euctw.h	\
317	kiconv_utf8_gb18030.h	\
318	kiconv_utf8_gb2312.h	\
319	kiconv_utf8_hkscs.h	\
320	kiconv_utf8_uhc.h	\
321	kidmap.h		\
322	klpd.h			\
323	klwp.h			\
324	kmdb.h			\
325	kmem.h			\
326	kmem_impl.h		\
327	kobj.h			\
328	kobj_impl.h		\
329	ksocket.h		\
330	kstat.h			\
331	kstr.h			\
332	ksyms.h			\
333	ksynch.h		\
334	ldterm.h		\
335	lgrp.h			\
336	lgrp_user.h		\
337	libc_kernel.h		\
338	link.h			\
339	list.h			\
340	list_impl.h		\
341	llc1.h			\
342	loadavg.h		\
343	lock.h			\
344	lockfs.h		\
345	lockstat.h		\
346	lofi.h			\
347	log.h			\
348	logindmux.h		\
349	logindmux_impl.h	\
350	lwp.h			\
351	lwp_timer_impl.h	\
352	lwp_upimutex_impl.h	\
353	lpif.h			\
354	mac.h			\
355	mac_client.h		\
356	mac_client_impl.h	\
357	mac_flow.h		\
358	mac_flow_impl.h		\
359	mac_impl.h		\
360	mac_provider.h		\
361	mac_soft_ring.h		\
362	machelf.h		\
363	map.h			\
364	md4.h			\
365	md5.h			\
366	md5_consts.h		\
367	mdi_impldefs.h		\
368	mem.h			\
369	mem_config.h		\
370	memlist.h		\
371	mkdev.h			\
372	mhd.h			\
373	miiregs.h		\
374	mixer.h			\
375	mman.h			\
376	mmapobj.h		\
377	mntent.h		\
378	mntio.h			\
379	mnttab.h		\
380	modctl.h		\
381	mode.h			\
382	model.h			\
383	modhash.h		\
384	modhash_impl.h		\
385	mount.h			\
386	mouse.h			\
387	msacct.h		\
388	msg.h			\
389	msg_impl.h		\
390	msio.h			\
391	msreg.h			\
392	mtio.h			\
393	multidata.h		\
394	multidata_impl.h	\
395	mutex.h			\
396	nbmlock.h		\
397	ndifm.h		\
398	ndi_impldefs.h		\
399	net80211.h		\
400	net80211_crypto.h	\
401	net80211_proto.h	\
402	netconfig.h		\
403	neti.h			\
404	netstack.h		\
405	nexusdefs.h		\
406	note.h			\
407	nvpair.h                \
408	nvpair_impl.h           \
409	objfs.h			\
410	objfs_impl.h		\
411	ontrap.h                \
412	open.h			\
413	openpromio.h		\
414	panic.h			\
415	param.h			\
416	pathconf.h		\
417	pathname.h		\
418	pattr.h			\
419	queue.h			\
420	serializer.h		\
421	pbio.h			\
422	pccard.h		\
423	pci.h			\
424	pcie.h			\
425	pci_impl.h		\
426	pci_tools.h		\
427	pcmcia.h		\
428	pctypes.h		\
429	pem.h			\
430	pfmod.h			\
431	pg.h			\
432	pghw.h			\
433	physmem.h		\
434	pm.h			\
435	policy.h		\
436	poll.h			\
437	poll_impl.h		\
438	pool.h			\
439	pool_impl.h		\
440	pool_pset.h		\
441	port.h			\
442	port_impl.h		\
443	port_kernel.h		\
444	portif.h		\
445	ppmio.h                 \
446	priocntl.h		\
447	priv.h			\
448	priv_impl.h		\
449	prnio.h			\
450	proc.h			\
451	processor.h		\
452	procfs.h		\
453	procset.h		\
454	project.h		\
455	protosw.h		\
456	prsystm.h		\
457	pset.h			\
458	pshot.h			\
459	ptem.h			\
460	ptms.h			\
461	ptyvar.h		\
462	raidioctl.h		\
463	ramdisk.h		\
464	random.h		\
465	rctl.h			\
466	rctl_impl.h		\
467	reboot.h		\
468	refstr.h		\
469	refstr_impl.h		\
470	resource.h		\
471	rlioctl.h		\
472	rt.h			\
473	rtpriocntl.h		\
474	rwlock.h		\
475	rwlock_impl.h		\
476	rwstlock.h		\
477	sad.h			\
478	schedctl.h		\
479	sdt.h			\
480	select.h		\
481	sem.h			\
482	sem_impl.h		\
483	sema_impl.h		\
484	semaphore.h		\
485	sendfile.h		\
486	ser_sync.h		\
487	session.h		\
488	sha1.h			\
489	sha1_consts.h		\
490	sha2.h			\
491	sha2_consts.h		\
492	share.h			\
493	shm.h			\
494	shm_impl.h		\
495	sid.h			\
496	siginfo.h		\
497	signal.h		\
498	sleepq.h		\
499	smbios.h		\
500	smbios_impl.h		\
501	sobject.h		\
502	socket.h		\
503	socket_impl.h		\
504	socket_proto.h		\
505	socketvar.h		\
506	sockio.h		\
507	sodirect.h		\
508	squeue.h		\
509	squeue_impl.h		\
510	srn.h			\
511	sservice.h		\
512	stat.h			\
513	statfs.h		\
514	statvfs.h		\
515	stdint.h		\
516	stermio.h		\
517	stmf.h			\
518	stmf_defines.h		\
519	stmf_ioctl.h		\
520	stmf_sbd_ioctl.h	\
521	stream.h		\
522	strft.h			\
523	strlog.h		\
524	strmdep.h		\
525	stropts.h		\
526	strredir.h		\
527	strstat.h		\
528	strsubr.h		\
529	strsun.h		\
530	strtty.h		\
531	sunddi.h		\
532	sunldi.h		\
533	sunldi_impl.h		\
534	sunmdi.h		\
535	sunndi.h		\
536	sunos_dhcp_class.h	\
537	sunpm.h			\
538	suntpi.h		\
539	suntty.h		\
540	swap.h			\
541	synch.h			\
542	syscall.h		\
543	sysconf.h		\
544	sysconfig.h		\
545	sysevent.h		\
546	sysevent_impl.h         \
547	sysinfo.h		\
548	syslog.h		\
549	sysmacros.h		\
550	sysmsg_impl.h		\
551	systeminfo.h		\
552	systm.h			\
553	task.h			\
554	taskq.h			\
555	taskq_impl.h		\
556	t_kuser.h		\
557	t_lock.h		\
558	telioctl.h		\
559	termio.h		\
560	termios.h		\
561	termiox.h		\
562	thread.h		\
563	ticlts.h		\
564	ticots.h		\
565	ticotsord.h		\
566	tihdr.h			\
567	time.h			\
568	time_impl.h		\
569	time_std_impl.h		\
570	timeb.h			\
571	timer.h			\
572	times.h			\
573	timex.h			\
574	timod.h			\
575	tirdwr.h		\
576	tiuser.h		\
577	tl.h			\
578	tnf.h			\
579	tnf_com.h		\
580	tnf_probe.h		\
581	tnf_writer.h		\
582	todio.h			\
583	tpicommon.h		\
584	ts.h			\
585	tspriocntl.h		\
586	ttcompat.h		\
587	ttold.h			\
588	tty.h			\
589	ttychars.h		\
590	ttydev.h		\
591	tuneable.h		\
592	turnstile.h		\
593	types.h			\
594	types32.h		\
595	tzfile.h		\
596	u8_textprep.h		\
597	u8_textprep_data.h	\
598	uadmin.h		\
599	ucred.h			\
600	uio.h			\
601	ulimit.h		\
602	un.h			\
603	unistd.h		\
604	user.h			\
605	ustat.h			\
606	utime.h			\
607	utsname.h		\
608	utssys.h		\
609	uuid.h			\
610	va_impl.h		\
611	va_list.h		\
612	var.h			\
613	varargs.h		\
614	vfs.h			\
615	vfs_opreg.h		\
616	vfstab.h		\
617	vgareg.h		\
618	videodev2.h		\
619	visual_io.h		\
620	vlan.h			\
621	vm.h			\
622	vm_usage.h		\
623	vmem.h			\
624	vmem_impl.h		\
625	vmmeter.h		\
626	vmsystm.h		\
627	vnic.h			\
628	vnic_impl.h		\
629	vnode.h			\
630	vscan.h			\
631	vtoc.h			\
632	vtrace.h		\
633	vuid_event.h		\
634	vuid_wheel.h		\
635	vuid_queue.h		\
636	vuid_state.h		\
637	vuid_store.h		\
638	wait.h			\
639	waitq.h			\
640	wanboot_impl.h		\
641	watchpoint.h		\
642	winlockio.h		\
643	zcons.h			\
644	zone.h			\
645	xti_inet.h		\
646	xti_osi.h		\
647	xti_xtiopt.h		\
648	zmod.h
649
650HDRS=				\
651	$(GENHDRS)		\
652	$(CHKHDRS)
653
654AUDIOHDRS=			\
655	ac97.h			\
656	am_src1.h		\
657	audio_apm.h		\
658	audio_mixer.h		\
659	audio_src.h		\
660	audio_support.h		\
661	audio_trace.h		\
662	g711.h
663
664AVHDRS=				\
665	iec61883.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
912SCSIVHCIHDRS=		\
913	scsi_vhci.h	\
914	mpapi_impl.h	\
915	mpapi_scsi_vhci.h
916
917SDCARDHDRS=		\
918	sda.h		\
919	sda_impl.h	\
920	sda_ioctl.h
921
922FC4HDRS=			\
923	fc_transport.h	\
924	linkapp.h	\
925	fc.h		\
926	fcp.h		\
927	fcal_transport.h \
928	fcal.h		\
929	fcal_linkapp.h	\
930	fcio.h
931
932FCHDRS=			\
933	fc.h		\
934	fcio.h		\
935	fc_types.h	\
936	fc_appif.h
937
938FCIMPLHDRS=		\
939	fc_error.h	\
940	fcph.h
941
942FCULPHDRS=		\
943	fcp_util.h	\
944	fcsm.h
945
946SATAGENHDRS=		\
947	sata_hba.h	\
948	sata_defs.h	\
949	sata_cfgadm.h
950
951SYSEVENTHDRS=		\
952	ap_driver.h     \
953	dev.h		\
954	domain.h        \
955	dr.h            \
956	env.h           \
957	eventdefs.h	\
958	ipmp.h		\
959	pwrctl.h	\
960	svm.h
961
962CONTRACTHDRS=		\
963	process.h	\
964	process_impl.h	\
965	device.h	\
966	device_impl.h
967
968USBHDRS=	\
969	usba.h	\
970	usbai.h
971
972USBAUDHDRS=           \
973	usb_audio.h
974
975USBHUBDHDRS=		\
976	hub.h		\
977	hubd_impl.h
978
979USBHIDHDRS=		\
980	hid.h
981
982USBMSHDRS=		\
983	usb_bulkonly.h	\
984	usb_cbi.h
985
986USBPRNHDRS=           \
987	usb_printer.h
988
989USBCDCHDRS=		\
990	usb_cdc.h
991
992USBVIDHDRS=           \
993	usbvc.h
994
995UGENHDRS=           \
996	usb_ugen.h
997
998HOTPLUGHDRS=	\
999	hpcsvc.h	\
1000	hpctrl.h
1001
1002HOTPLUGPCIHDRS=	\
1003	pcicfg.h	\
1004	pcihp.h
1005
1006RSMHDRS= \
1007	rsm.h	\
1008	rsm_common.h	\
1009	rsmapi_common.h \
1010	rsmpi.h	\
1011	rsmpi_driver.h	\
1012	rsmka_path_int.h
1013
1014TSOLHDRS=		\
1015	label.h		\
1016	label_macro.h	\
1017	priv.h		\
1018	tndb.h		\
1019	tsyscall.h
1020
1021I1394HDRS=		\
1022	cmd1394.h	\
1023	id1394.h	\
1024	ieee1212.h	\
1025	ieee1394.h	\
1026	ixl1394.h	\
1027	s1394_impl.h	\
1028	t1394.h
1029
1030# "cmdk" headers used on sparc
1031SDKTPHDRS=		\
1032	dadkio.h	\
1033	fdisk.h
1034
1035# "cmdk" headers used on i386
1036DKTPHDRS=		\
1037	altsctr.h	\
1038	bbh.h		\
1039	cm.h		\
1040	cmdev.h		\
1041	cmdk.h		\
1042	cmpkt.h		\
1043	controller.h	\
1044	dadev.h		\
1045	dadk.h		\
1046	dadkio.h	\
1047	fctypes.h	\
1048	fdisk.h		\
1049	flowctrl.h	\
1050	gda.h		\
1051	quetypes.h	\
1052	queue.h		\
1053	tgcom.h		\
1054	tgdk.h
1055
1056# "pc" header files used on i386
1057PCHDRS=			\
1058	avintr.h	\
1059	dma_engine.h	\
1060	i8272A.h	\
1061	pcic_reg.h	\
1062	pcic_var.h	\
1063	pic.h		\
1064	pit.h		\
1065	rtc.h
1066
1067NXGEHDRS=			\
1068	nxge.h			\
1069	nxge_common.h		\
1070	nxge_common_impl.h	\
1071	nxge_defs.h		\
1072	nxge_hw.h		\
1073	nxge_impl.h		\
1074	nxge_ipp.h		\
1075	nxge_ipp_hw.h		\
1076	nxge_mac.h		\
1077	nxge_mac_hw.h		\
1078	nxge_fflp.h		\
1079	nxge_fflp_hw.h		\
1080	nxge_mii.h		\
1081	nxge_rxdma.h		\
1082	nxge_rxdma_hw.h		\
1083	nxge_txc.h		\
1084	nxge_txc_hw.h		\
1085	nxge_txdma.h		\
1086	nxge_txdma_hw.h		\
1087	nxge_virtual.h		\
1088	nxge_espc.h
1089
1090include Makefile.syshdrs
1091
1092dcam/%.check:	dcam/%.h
1093	$(DOT_H_CHECK)
1094
1095CHECKHDRS=						\
1096	$($(MACH)_HDRS:%.h=%.check)			\
1097	$(AUDIOHDRS:%.h=audio/%.check)			\
1098	$(AVHDRS:%.h=av/%.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	$(ROOTAVHDRS)		\
1160	$(ROOTCRYPTOHDRS)	\
1161	$(ROOTDCAMHDRS)		\
1162	$(ROOTISOHDRS)		\
1163	$(ROOTIDMHDRS)		\
1164	$(ROOTISCSIHDRS)	\
1165	$(ROOTISCSITHDRS)	\
1166	$(ROOTFC4HDRS)		\
1167	$(ROOTFCHDRS)		\
1168	$(ROOTFCIMPLHDRS)	\
1169	$(ROOTFCULPHDRS)	\
1170	$(ROOTFMHDRS)		\
1171	$(ROOTFMIOHDRS)		\
1172	$(ROOTFMFSHDRS)		\
1173	$(ROOTFSHDRS)		\
1174	$(ROOTIBDHDRS)		\
1175	$(ROOTIBHDRS)		\
1176	$(ROOTIBTLHDRS)		\
1177	$(ROOTIBTLIMPLHDRS)	\
1178	$(ROOTIBNEXHDRS)	\
1179	$(ROOTIBMGTHDRS)	\
1180	$(ROOTIBMFHDRS)		\
1181	$(ROOTTAVORHDRS)	\
1182	$(ROOTLVMHDRS)		\
1183	$(ROOTPCMCIAHDRS)	\
1184	$(ROOTSCSIHDRS)		\
1185	$(ROOTSCSIADHDRS)	\
1186	$(ROOTSCSICONFHDRS)	\
1187	$(ROOTSCSIISCSIHDRS)	\
1188	$(ROOTSCSIGENHDRS)	\
1189	$(ROOTSCSIIMPLHDRS)	\
1190	$(ROOTSCSIVHCIHDRS)	\
1191	$(ROOTSDCARDHDRS)	\
1192	$(ROOTSYSEVENTHDRS)     \
1193	$(ROOTCONTRACTHDRS)     \
1194	$(ROOTUSBHDRS)		\
1195	$(ROOTUSBAUDHDRS)	\
1196	$(ROOTUSBHUBDHDRS)	\
1197	$(ROOTUSBHIDHDRS)	\
1198	$(ROOTUSBMSHDRS)	\
1199	$(ROOTUSBPRNHDRS)       \
1200	$(ROOTUSBCDCHDRS)       \
1201	$(ROOTUSBVIDHDRS)       \
1202	$(ROOTUGENHDRS)		\
1203	$(ROOT1394HDRS)         \
1204	$(ROOTHOTPLUGHDRS)	\
1205	$(ROOTHOTPLUGPCIHDRS)	\
1206	$(ROOTRSMHDRS)		\
1207	$(ROOTTSOLHDRS)		\
1208	$($(MACH)_ROOTHDRS)
1209
1210
1211install_h:			\
1212	$(ROOTDIRS)		\
1213	LVMDERIVED_H		\
1214	.WAIT			\
1215	$(ROOTHDRS)		\
1216	$(ROOTAUDHDRS)		\
1217	$(ROOTAVHDRS)		\
1218	$(ROOTCRYPTOHDRS)	\
1219	$(ROOTDCAMHDRS)		\
1220	$(ROOTISOHDRS)		\
1221	$(ROOTIDMHDRS)		\
1222	$(ROOTISCSIHDRS)	\
1223	$(ROOTISCSITHDRS)	\
1224	$(ROOTFC4HDRS)		\
1225	$(ROOTFCHDRS)		\
1226	$(ROOTFCIMPLHDRS)	\
1227	$(ROOTFCULPHDRS)	\
1228	$(ROOTFMHDRS)		\
1229	$(ROOTFMFSHDRS)		\
1230	$(ROOTFMIOHDRS)		\
1231	$(ROOTFSHDRS)		\
1232	$(ROOTIBDHDRS)		\
1233	$(ROOTIBHDRS)		\
1234	$(ROOTIBTLHDRS)		\
1235	$(ROOTIBTLIMPLHDRS)	\
1236	$(ROOTIBNEXHDRS)	\
1237	$(ROOTIBMGTHDRS)	\
1238	$(ROOTIBMFHDRS)		\
1239	$(ROOTTAVORHDRS)	\
1240	$(ROOTLVMHDRS)		\
1241	$(ROOTPCMCIAHDRS)	\
1242	$(ROOTSCSIHDRS)		\
1243	$(ROOTSCSIADHDRS)	\
1244	$(ROOTSCSIISCSIHDRS)	\
1245	$(ROOTSCSICONFHDRS)	\
1246	$(ROOTSCSIGENHDRS)	\
1247	$(ROOTSCSIIMPLHDRS)	\
1248	$(ROOTSCSIVHCIHDRS)     \
1249	$(ROOTSDCARDHDRS)	\
1250	$(ROOTSYSEVENTHDRS)     \
1251	$(ROOTCONTRACTHDRS)     \
1252	$(ROOTUSBHDRS)		\
1253	$(ROOTUSBAUDHDRS)	\
1254	$(ROOTUSBHUBDHDRS)	\
1255	$(ROOTUSBHIDHDRS)	\
1256	$(ROOTUSBMSHDRS)	\
1257	$(ROOTUSBPRNHDRS)       \
1258	$(ROOTUSBCDCHDRS)       \
1259	$(ROOTUSBVIDHDRS)       \
1260	$(ROOTUGENHDRS)		\
1261	$(ROOT1394HDRS)         \
1262	$(ROOTHOTPLUGHDRS)	\
1263	$(ROOTHOTPLUGPCIHDRS)	\
1264	$(ROOTRSMHDRS)		\
1265	$(ROOTTSOLHDRS)		\
1266	$($(MACH)_ROOTHDRS)
1267
1268all_h: $(GENHDRS)
1269
1270priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1271	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1272
1273priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1274	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1275
1276usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1277	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1278
1279LVMDERIVED_H:
1280	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1281
1282check:	$(CHECKHDRS)
1283
1284FRC:
1285
1286# EXPORT DELETE START
1287EXPORT_SRC:
1288	$(RM) wanboot_impl.h+ Makefile+
1289	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1290		< wanboot_impl.h > wanboot_impl.h+
1291	$(MV) wanboot_impl.h+ wanboot_impl.h
1292	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1293		< Makefile > Makefile+
1294	$(RM) Makefile
1295	$(MV) Makefile+ Makefile
1296	$(CHMOD) 444 Makefile wanboot_impl.h
1297# EXPORT DELETE END
1298