xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision 63251bc7f1ca38259078c48e316fee4ed66d4e93)
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
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	cpu_pm.h		\
143	crc32.h			\
144	cred.h			\
145	cred_impl.h		\
146	crtctl.h		\
147	cryptmod.h		\
148	csiioctl.h		\
149	ctf.h			\
150	ctfs.h			\
151	ctfs_impl.h		\
152	ctf_api.h		\
153	ctype.h			\
154	cyclic.h		\
155	cyclic_impl.h		\
156	dacf.h			\
157	dacf_impl.h		\
158	dc_ki.h			\
159	ddi.h			\
160	ddifm.h			\
161	ddifm_impl.h		\
162	ddi_intr.h		\
163	ddi_intr_impl.h		\
164	ddi_impldefs.h		\
165	ddi_implfuncs.h		\
166	ddi_obsolete.h		\
167	ddi_timer.h		\
168	ddidevmap.h		\
169	ddidmareq.h		\
170	ddimapreq.h		\
171	ddipropdefs.h		\
172	dditypes.h		\
173	debug.h			\
174	des.h			\
175	devctl.h		\
176	devcache.h		\
177	devcache_impl.h		\
178	devfm.h			\
179	devid_cache.h		\
180	devinfo_impl.h		\
181	devops.h		\
182	devpolicy.h		\
183	devpoll.h		\
184	dirent.h		\
185	disp.h			\
186	dkbad.h			\
187	dkio.h			\
188	dklabel.h		\
189	dl.h			\
190	dlpi.h			\
191	dld.h			\
192	dld_impl.h		\
193	dld_ioc.h		\
194	dls.h			\
195	dls_mgmt.h		\
196	dls_impl.h		\
197	dma_i8237A.h            \
198	dnlc.h			\
199	door.h			\
200	door_data.h		\
201	door_impl.h		\
202	dtrace.h		\
203	dtrace_impl.h		\
204	dumpadm.h		\
205	dumphdr.h		\
206	ecppsys.h		\
207	ecppio.h                \
208	ecppreg.h               \
209	ecppvar.h               \
210	efi_partition.h		\
211	elf.h			\
212	elf_386.h		\
213	elf_SPARC.h		\
214	elf_notes.h		\
215	elf_amd64.h		\
216	elftypes.h		\
217	emul64.h		\
218	emul64cmd.h		\
219	emul64var.h		\
220	epm.h			\
221	errno.h			\
222	errorq.h		\
223	errorq_impl.h		\
224	esunddi.h		\
225	ethernet.h		\
226	euc.h			\
227	eucioctl.h		\
228	exacct.h		\
229	exacct_catalog.h	\
230	exacct_impl.h		\
231	exec.h			\
232	exechdr.h		\
233	extdirent.h		\
234	fault.h			\
235	fasttrap.h		\
236	fasttrap_impl.h		\
237	fbio.h			\
238	fbuf.h			\
239	fcntl.h			\
240	fct.h			\
241	fct_defines.h		\
242	fctio.h			\
243	fdbuffer.h		\
244	fdio.h			\
245	feature_tests.h		\
246	fem.h			\
247	file.h			\
248	filio.h			\
249	flock.h			\
250	flock_impl.h		\
251	fork.h			\
252	fss.h			\
253	fsspriocntl.h		\
254	fsid.h			\
255	fssnap.h                \
256	fssnap_if.h             \
257	fstyp.h			\
258	ftrace.h		\
259	fx.h			\
260	fxpriocntl.h		\
261	gfs.h			\
262	gld.h			\
263	gldpriv.h		\
264	group.h			\
265	hdio.h			\
266	hook.h			\
267	hook_event.h		\
268	hook_impl.h		\
269	hwconf.h		\
270	ia.h			\
271	iapriocntl.h		\
272	id32.h			\
273	idmap.h 		\
274	ieeefp.h		\
275	id_space.h		\
276	instance.h		\
277	int_const.h		\
278	int_fmtio.h		\
279	int_limits.h		\
280	int_types.h		\
281	inttypes.h		\
282	ioccom.h		\
283	ioctl.h			\
284	ipc.h			\
285	ipc_impl.h		\
286	ipc_rctl.h		\
287	isa_defs.h		\
288	iscsi_authclient.h	\
289	iscsi_authclientglue.h	\
290	iscsi_protocol.h	\
291	jioctl.h		\
292	kbd.h			\
293	kbdreg.h		\
294	kbio.h			\
295	kcpc.h			\
296	kdi.h			\
297	kdi_impl.h		\
298	kiconv.h		\
299	kiconv_big5_utf8.h	\
300	kiconv_cck_common.h	\
301	kiconv_cp950hkscs_utf8.h	\
302	kiconv_emea1.h		\
303	kiconv_emea2.h		\
304	kiconv_euckr_utf8.h	\
305	kiconv_euctw_utf8.h	\
306	kiconv_gb18030_utf8.h	\
307	kiconv_gb2312_utf8.h	\
308	kiconv_hkscs_utf8.h	\
309	kiconv_ja.h		\
310	kiconv_ja_jis_to_unicode.h	\
311	kiconv_ja_unicode_to_jis.h	\
312	kiconv_ko.h		\
313	kiconv_latin1.h		\
314	kiconv_sc.h		\
315	kiconv_tc.h		\
316	kiconv_uhc_utf8.h	\
317	kiconv_utf8_big5.h	\
318	kiconv_utf8_cp950hkscs.h	\
319	kiconv_utf8_euckr.h	\
320	kiconv_utf8_euctw.h	\
321	kiconv_utf8_gb18030.h	\
322	kiconv_utf8_gb2312.h	\
323	kiconv_utf8_hkscs.h	\
324	kiconv_utf8_uhc.h	\
325	kidmap.h		\
326	klpd.h			\
327	klwp.h			\
328	kmdb.h			\
329	kmem.h			\
330	kmem_impl.h		\
331	kobj.h			\
332	kobj_impl.h		\
333	ksocket.h		\
334	kstat.h			\
335	kstr.h			\
336	ksyms.h			\
337	ksynch.h		\
338	ldterm.h		\
339	lgrp.h			\
340	lgrp_user.h		\
341	libc_kernel.h		\
342	link.h			\
343	list.h			\
344	list_impl.h		\
345	llc1.h			\
346	loadavg.h		\
347	lock.h			\
348	lockfs.h		\
349	lockstat.h		\
350	lofi.h			\
351	log.h			\
352	logindmux.h		\
353	logindmux_impl.h	\
354	lwp.h			\
355	lwp_timer_impl.h	\
356	lwp_upimutex_impl.h	\
357	lpif.h			\
358	mac.h			\
359	mac_client.h		\
360	mac_client_impl.h	\
361	mac_flow.h		\
362	mac_flow_impl.h		\
363	mac_impl.h		\
364	mac_provider.h		\
365	mac_soft_ring.h		\
366	machelf.h		\
367	map.h			\
368	md4.h			\
369	md5.h			\
370	md5_consts.h		\
371	mdi_impldefs.h		\
372	mem.h			\
373	mem_config.h		\
374	memlist.h		\
375	mkdev.h			\
376	mhd.h			\
377	miiregs.h		\
378	mixer.h			\
379	mman.h			\
380	mmapobj.h		\
381	mntent.h		\
382	mntio.h			\
383	mnttab.h		\
384	modctl.h		\
385	mode.h			\
386	model.h			\
387	modhash.h		\
388	modhash_impl.h		\
389	mount.h			\
390	mouse.h			\
391	msacct.h		\
392	msg.h			\
393	msg_impl.h		\
394	msio.h			\
395	msreg.h			\
396	mtio.h			\
397	multidata.h		\
398	multidata_impl.h	\
399	mutex.h			\
400	nbmlock.h		\
401	ndifm.h		\
402	ndi_impldefs.h		\
403	net80211.h		\
404	net80211_crypto.h	\
405	net80211_proto.h	\
406	netconfig.h		\
407	neti.h			\
408	netstack.h		\
409	nexusdefs.h		\
410	note.h			\
411	nvpair.h                \
412	nvpair_impl.h           \
413	objfs.h			\
414	objfs_impl.h		\
415	ontrap.h                \
416	open.h			\
417	openpromio.h		\
418	panic.h			\
419	param.h			\
420	pathconf.h		\
421	pathname.h		\
422	pattr.h			\
423	queue.h			\
424	serializer.h		\
425	pbio.h			\
426	pccard.h		\
427	pci.h			\
428	pcie.h			\
429	pci_impl.h		\
430	pci_tools.h		\
431	pcmcia.h		\
432	pctypes.h		\
433	pem.h			\
434	pfmod.h			\
435	pg.h			\
436	pghw.h			\
437	physmem.h		\
438	pm.h			\
439	policy.h		\
440	poll.h			\
441	poll_impl.h		\
442	pool.h			\
443	pool_impl.h		\
444	pool_pset.h		\
445	port.h			\
446	port_impl.h		\
447	port_kernel.h		\
448	portif.h		\
449	ppmio.h                 \
450	priocntl.h		\
451	priv.h			\
452	priv_impl.h		\
453	prnio.h			\
454	proc.h			\
455	processor.h		\
456	procfs.h		\
457	procset.h		\
458	project.h		\
459	protosw.h		\
460	prsystm.h		\
461	pset.h			\
462	pshot.h			\
463	ptem.h			\
464	ptms.h			\
465	ptyvar.h		\
466	raidioctl.h		\
467	ramdisk.h		\
468	random.h		\
469	rctl.h			\
470	rctl_impl.h		\
471	reboot.h		\
472	refstr.h		\
473	refstr_impl.h		\
474	resource.h		\
475	rlioctl.h		\
476	rt.h			\
477	rtpriocntl.h		\
478	rwlock.h		\
479	rwlock_impl.h		\
480	rwstlock.h		\
481	sad.h			\
482	schedctl.h		\
483	sdt.h			\
484	select.h		\
485	sem.h			\
486	sem_impl.h		\
487	sema_impl.h		\
488	semaphore.h		\
489	sendfile.h		\
490	ser_sync.h		\
491	session.h		\
492	sha1.h			\
493	sha1_consts.h		\
494	sha2.h			\
495	sha2_consts.h		\
496	share.h			\
497	shm.h			\
498	shm_impl.h		\
499	sid.h			\
500	siginfo.h		\
501	signal.h		\
502	sleepq.h		\
503	smbios.h		\
504	smbios_impl.h		\
505	sobject.h		\
506	socket.h		\
507	socket_impl.h		\
508	socket_proto.h		\
509	socketvar.h		\
510	sockio.h		\
511	sodirect.h		\
512	squeue.h		\
513	squeue_impl.h		\
514	srn.h			\
515	sservice.h		\
516	stat.h			\
517	statfs.h		\
518	statvfs.h		\
519	stdint.h		\
520	stermio.h		\
521	stmf.h			\
522	stmf_defines.h		\
523	stmf_ioctl.h		\
524	stmf_sbd_ioctl.h	\
525	stream.h		\
526	strft.h			\
527	strlog.h		\
528	strmdep.h		\
529	stropts.h		\
530	strredir.h		\
531	strstat.h		\
532	strsubr.h		\
533	strsun.h		\
534	strtty.h		\
535	sunddi.h		\
536	sunldi.h		\
537	sunldi_impl.h		\
538	sunmdi.h		\
539	sunndi.h		\
540	sunos_dhcp_class.h	\
541	sunpm.h			\
542	suntpi.h		\
543	suntty.h		\
544	swap.h			\
545	synch.h			\
546	syscall.h		\
547	sysconf.h		\
548	sysconfig.h		\
549	sysevent.h		\
550	sysevent_impl.h         \
551	sysinfo.h		\
552	syslog.h		\
553	sysmacros.h		\
554	sysmsg_impl.h		\
555	systeminfo.h		\
556	systm.h			\
557	task.h			\
558	taskq.h			\
559	taskq_impl.h		\
560	t_kuser.h		\
561	t_lock.h		\
562	telioctl.h		\
563	termio.h		\
564	termios.h		\
565	termiox.h		\
566	thread.h		\
567	ticlts.h		\
568	ticots.h		\
569	ticotsord.h		\
570	tihdr.h			\
571	time.h			\
572	time_impl.h		\
573	time_std_impl.h		\
574	timeb.h			\
575	timer.h			\
576	times.h			\
577	timex.h			\
578	timod.h			\
579	tirdwr.h		\
580	tiuser.h		\
581	tl.h			\
582	tnf.h			\
583	tnf_com.h		\
584	tnf_probe.h		\
585	tnf_writer.h		\
586	todio.h			\
587	tpicommon.h		\
588	ts.h			\
589	tspriocntl.h		\
590	ttcompat.h		\
591	ttold.h			\
592	tty.h			\
593	ttychars.h		\
594	ttydev.h		\
595	tuneable.h		\
596	turnstile.h		\
597	types.h			\
598	types32.h		\
599	tzfile.h		\
600	u8_textprep.h		\
601	u8_textprep_data.h	\
602	uadmin.h		\
603	ucred.h			\
604	uio.h			\
605	ulimit.h		\
606	un.h			\
607	unistd.h		\
608	user.h			\
609	ustat.h			\
610	utime.h			\
611	utsname.h		\
612	utssys.h		\
613	uuid.h			\
614	va_impl.h		\
615	va_list.h		\
616	var.h			\
617	varargs.h		\
618	vfs.h			\
619	vfs_opreg.h		\
620	vfstab.h		\
621	vgareg.h		\
622	videodev2.h		\
623	visual_io.h		\
624	vlan.h			\
625	vm.h			\
626	vm_usage.h		\
627	vmem.h			\
628	vmem_impl.h		\
629	vmmeter.h		\
630	vmsystm.h		\
631	vnic.h			\
632	vnic_impl.h		\
633	vnode.h			\
634	vscan.h			\
635	vtoc.h			\
636	vtrace.h		\
637	vuid_event.h		\
638	vuid_wheel.h		\
639	vuid_queue.h		\
640	vuid_state.h		\
641	vuid_store.h		\
642	wait.h			\
643	waitq.h			\
644	wanboot_impl.h		\
645	watchpoint.h		\
646	winlockio.h		\
647	zcons.h			\
648	zone.h			\
649	xti_inet.h		\
650	xti_osi.h		\
651	xti_xtiopt.h		\
652	zmod.h
653
654HDRS=				\
655	$(GENHDRS)		\
656	$(CHKHDRS)
657
658AUDIOHDRS=			\
659	ac97.h			\
660	am_src1.h		\
661	audio_apm.h		\
662	audio_mixer.h		\
663	audio_src.h		\
664	audio_support.h		\
665	audio_trace.h		\
666	g711.h
667
668BSCHDRS=			\
669	bscbus.h		\
670	bscv_impl.h		\
671	lom_ebuscodes.h		\
672	lom_io.h		\
673	lom_priv.h		\
674	lombus.h
675
676MDESCHDRS=			\
677	mdesc.h			\
678	mdesc_impl.h
679
680CPUDRVHDRS=			\
681	cpudrv.h
682
683CRYPTOHDRS=			\
684	elfsign.h		\
685	ioctl.h			\
686	ioctladmin.h		\
687	common.h		\
688	impl.h			\
689	spi.h			\
690	api.h			\
691	ops_impl.h		\
692	sched_impl.h
693
694DCAMHDRS=			\
695	dcam1394_io.h
696
697IBHDRS=			\
698	ib_types.h	\
699	ib_pkt_hdrs.h
700
701IBTLHDRS=		\
702	ibtl_types.h	\
703	ibtl_status.h	\
704	ibti.h		\
705	ibti_cm.h	\
706	ibci.h		\
707	ibti_common.h	\
708	ibvti.h		\
709	ibtl_ci_types.h
710
711IBTLIMPLHDRS=		\
712	ibtl_util.h
713
714IBNEXHDRS=		\
715	ibnex_devctl.h
716
717IBMFHDRS=		\
718	ibmf.h		\
719	ibmf_msg.h	\
720	ibmf_saa.h	\
721	ibmf_utils.h
722
723IBMGTHDRS=		\
724	ib_dm_attr.h	\
725	ib_mad.h	\
726	sm_attr.h	\
727	sa_recs.h
728
729IBDHDRS=		\
730	ibd.h
731
732IDMHDRS=		\
733	idm.h		\
734	idm_impl.h	\
735	idm_so.h	\
736	idm_text.h	\
737	idm_transport.h \
738	idm_conn_sm.h
739
740ISCSITHDRS=		\
741	radius_packet.h		\
742	radius_protocol.h	\
743	chap.h			\
744	isns_protocol.h		\
745	iscsi_if.h		\
746	iscsit_common.h
747
748ISOHDRS=			\
749	signal_iso.h
750
751DERIVED_LVMHDRS=	\
752	md_mdiox.h		\
753	md_basic.h		\
754	mdmed.h			\
755	md_mhdx.h		\
756	mdmn_commd.h
757
758LVMHDRS=			\
759	md_convert.h		\
760	md_crc.h		\
761	md_hotspares.h		\
762	md_mddb.h		\
763	md_mirror.h		\
764	md_mirror_shared.h	\
765	md_names.h		\
766	md_notify.h		\
767	md_raid.h		\
768	md_rename.h		\
769	md_sp.h			\
770	md_stripe.h		\
771	md_trans.h		\
772	mdio.h			\
773	mdvar.h
774
775ALL_LVMHDRS=			\
776	$(LVMHDRS)		\
777	$(DERIVED_LVMHDRS)
778
779FMHDRS=				\
780	protocol.h		\
781	util.h
782
783FMFSHDRS=			\
784	zfs.h
785
786FMIOHDRS=			\
787	ddi.h			\
788	disk.h			\
789	pci.h			\
790	scsi.h			\
791	sun4upci.h		\
792	opl_mc_fm.h
793
794FSHDRS=				\
795	autofs.h		\
796	cachefs_dir.h		\
797	cachefs_dlog.h		\
798	cachefs_filegrp.h	\
799	cachefs_fs.h		\
800	cachefs_fscache.h	\
801	cachefs_ioctl.h		\
802	cachefs_log.h		\
803	decomp.h		\
804	dv_node.h		\
805	sdev_impl.h		\
806	sdev_node.h		\
807	fifonode.h		\
808	hsfs_isospec.h		\
809	hsfs_node.h		\
810	hsfs_rrip.h		\
811	hsfs_spec.h		\
812	hsfs_susp.h		\
813	lofs_info.h		\
814	lofs_node.h		\
815	mntdata.h		\
816	namenode.h		\
817	pc_dir.h		\
818	pc_fs.h			\
819	pc_label.h		\
820	pc_node.h		\
821	pxfs_ki.h		\
822	snode.h			\
823	swapnode.h		\
824	tmp.h			\
825	tmpnode.h		\
826	udf_inode.h		\
827	udf_volume.h		\
828	ufs_acl.h		\
829	ufs_bio.h		\
830	ufs_filio.h		\
831	ufs_fs.h		\
832	ufs_fsdir.h		\
833	ufs_inode.h		\
834	ufs_lockfs.h		\
835	ufs_log.h		\
836	ufs_mount.h		\
837	ufs_panic.h		\
838	ufs_prot.h		\
839	ufs_quota.h		\
840	ufs_snap.h              \
841	ufs_trans.h		\
842	zfs.h
843
844PCMCIAHDRS=		\
845	pcata.h		\
846	pcgld.h		\
847	pcramio.h	\
848	pcramvar.h	\
849	pcser_conf.h	\
850	pcser_io.h	\
851	pcser_reg.h	\
852	pcser_manuspec.h \
853	pcser_var.h
854
855SCSIHDRS=		\
856	scsi.h		\
857	scsi_address.h	\
858	scsi_ctl.h	\
859	scsi_fm.h	\
860	scsi_params.h	\
861	scsi_pkt.h	\
862	scsi_resource.h	\
863	scsi_types.h	\
864	scsi_watch.h
865
866SCSICONFHDRS=		\
867	autoconf.h	\
868	device.h
869
870SCSIGENHDRS=		\
871	commands.h	\
872	dad_mode.h	\
873	inquiry.h	\
874	message.h	\
875	mode.h		\
876	persist.h	\
877	sense.h		\
878	smp_frames.h	\
879	status.h
880
881SCSIIMPLHDRS=		\
882	commands.h	\
883	inquiry.h	\
884	mode.h		\
885	sas_transport.h	\
886	sense.h		\
887	services.h	\
888	status.h	\
889	transport.h	\
890	scsi_reset_notify.h \
891	spc3_types.h	\
892	types.h		\
893	uscsi.h		\
894	usmp.h
895
896SCSITARGETSHDRS=	\
897	ses.h		\
898	sesio.h		\
899	sgendef.h	\
900	stdef.h		\
901	sddef.h		\
902	smp.h
903
904SCSIADHDRS=		\
905	blk2scsa.h
906
907SCSICADHDRS=
908
909SCSIISCSIHDRS=		\
910	iscsi_door.h	\
911	iscsi_if.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