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