xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision a50a8b93baff29e0de15419af4b3816646854321)
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	cpu_pm.h		\
140	crc32.h			\
141	cred.h			\
142	cred_impl.h		\
143	crtctl.h		\
144	cryptmod.h		\
145	csiioctl.h		\
146	ctf.h			\
147	ctfs.h			\
148	ctfs_impl.h		\
149	ctf_api.h		\
150	ctype.h			\
151	cyclic.h		\
152	cyclic_impl.h		\
153	dacf.h			\
154	dacf_impl.h		\
155	dc_ki.h			\
156	ddi.h			\
157	ddifm.h			\
158	ddifm_impl.h		\
159	ddi_intr.h		\
160	ddi_intr_impl.h		\
161	ddi_impldefs.h		\
162	ddi_implfuncs.h		\
163	ddi_obsolete.h		\
164	ddi_timer.h		\
165	ddidevmap.h		\
166	ddidmareq.h		\
167	ddimapreq.h		\
168	ddipropdefs.h		\
169	dditypes.h		\
170	debug.h			\
171	des.h			\
172	devctl.h		\
173	devcache.h		\
174	devcache_impl.h		\
175	devfm.h			\
176	devid_cache.h		\
177	devinfo_impl.h		\
178	devops.h		\
179	devpolicy.h		\
180	devpoll.h		\
181	dirent.h		\
182	disp.h			\
183	dkbad.h			\
184	dkio.h			\
185	dklabel.h		\
186	dl.h			\
187	dlpi.h			\
188	dld.h			\
189	dld_impl.h		\
190	dld_ioc.h		\
191	dls.h			\
192	dls_mgmt.h		\
193	dls_impl.h		\
194	dma_i8237A.h            \
195	dnlc.h			\
196	door.h			\
197	door_data.h		\
198	door_impl.h		\
199	dtrace.h		\
200	dtrace_impl.h		\
201	dumpadm.h		\
202	dumphdr.h		\
203	ecppsys.h		\
204	ecppio.h                \
205	ecppreg.h               \
206	ecppvar.h               \
207	efi_partition.h		\
208	elf.h			\
209	elf_386.h		\
210	elf_SPARC.h		\
211	elf_notes.h		\
212	elf_amd64.h		\
213	elftypes.h		\
214	emul64.h		\
215	emul64cmd.h		\
216	emul64var.h		\
217	epm.h			\
218	errno.h			\
219	errorq.h		\
220	errorq_impl.h		\
221	esunddi.h		\
222	ethernet.h		\
223	euc.h			\
224	eucioctl.h		\
225	exacct.h		\
226	exacct_catalog.h	\
227	exacct_impl.h		\
228	exec.h			\
229	exechdr.h		\
230	extdirent.h		\
231	fault.h			\
232	fasttrap.h		\
233	fasttrap_impl.h		\
234	fbio.h			\
235	fbuf.h			\
236	fcntl.h			\
237	fct.h			\
238	fct_defines.h		\
239	fctio.h			\
240	fdbuffer.h		\
241	fdio.h			\
242	feature_tests.h		\
243	fem.h			\
244	file.h			\
245	filio.h			\
246	flock.h			\
247	flock_impl.h		\
248	fork.h			\
249	fss.h			\
250	fsspriocntl.h		\
251	fsid.h			\
252	fssnap.h                \
253	fssnap_if.h             \
254	fstyp.h			\
255	ftrace.h		\
256	fx.h			\
257	fxpriocntl.h		\
258	gfs.h			\
259	gld.h			\
260	gldpriv.h		\
261	group.h			\
262	hdio.h			\
263	hook.h			\
264	hook_event.h		\
265	hook_impl.h		\
266	hwconf.h		\
267	ia.h			\
268	iapriocntl.h		\
269	id32.h			\
270	idmap.h 		\
271	ieeefp.h		\
272	id_space.h		\
273	instance.h		\
274	int_const.h		\
275	int_fmtio.h		\
276	int_limits.h		\
277	int_types.h		\
278	inttypes.h		\
279	ioccom.h		\
280	ioctl.h			\
281	ipc.h			\
282	ipc_impl.h		\
283	ipc_rctl.h		\
284	isa_defs.h		\
285	iscsi_authclient.h	\
286	iscsi_authclientglue.h	\
287	iscsi_protocol.h	\
288	jioctl.h		\
289	kbd.h			\
290	kbdreg.h		\
291	kbio.h			\
292	kcpc.h			\
293	kdi.h			\
294	kdi_impl.h		\
295	kiconv.h		\
296	kiconv_big5_utf8.h	\
297	kiconv_cck_common.h	\
298	kiconv_cp950hkscs_utf8.h	\
299	kiconv_emea1.h		\
300	kiconv_emea2.h		\
301	kiconv_euckr_utf8.h	\
302	kiconv_euctw_utf8.h	\
303	kiconv_gb18030_utf8.h	\
304	kiconv_gb2312_utf8.h	\
305	kiconv_hkscs_utf8.h	\
306	kiconv_ja.h		\
307	kiconv_ja_jis_to_unicode.h	\
308	kiconv_ja_unicode_to_jis.h	\
309	kiconv_ko.h		\
310	kiconv_latin1.h		\
311	kiconv_sc.h		\
312	kiconv_tc.h		\
313	kiconv_uhc_utf8.h	\
314	kiconv_utf8_big5.h	\
315	kiconv_utf8_cp950hkscs.h	\
316	kiconv_utf8_euckr.h	\
317	kiconv_utf8_euctw.h	\
318	kiconv_utf8_gb18030.h	\
319	kiconv_utf8_gb2312.h	\
320	kiconv_utf8_hkscs.h	\
321	kiconv_utf8_uhc.h	\
322	kidmap.h		\
323	klpd.h			\
324	klwp.h			\
325	kmdb.h			\
326	kmem.h			\
327	kmem_impl.h		\
328	kobj.h			\
329	kobj_impl.h		\
330	ksocket.h		\
331	kstat.h			\
332	kstr.h			\
333	ksyms.h			\
334	ksynch.h		\
335	ldterm.h		\
336	lgrp.h			\
337	lgrp_user.h		\
338	libc_kernel.h		\
339	link.h			\
340	list.h			\
341	list_impl.h		\
342	llc1.h			\
343	loadavg.h		\
344	lock.h			\
345	lockfs.h		\
346	lockstat.h		\
347	lofi.h			\
348	log.h			\
349	logindmux.h		\
350	logindmux_impl.h	\
351	lwp.h			\
352	lwp_timer_impl.h	\
353	lwp_upimutex_impl.h	\
354	lpif.h			\
355	mac.h			\
356	mac_client.h		\
357	mac_client_impl.h	\
358	mac_flow.h		\
359	mac_flow_impl.h		\
360	mac_impl.h		\
361	mac_provider.h		\
362	mac_soft_ring.h		\
363	machelf.h		\
364	map.h			\
365	md4.h			\
366	md5.h			\
367	md5_consts.h		\
368	mdi_impldefs.h		\
369	mem.h			\
370	mem_config.h		\
371	memlist.h		\
372	mkdev.h			\
373	mhd.h			\
374	miiregs.h		\
375	mixer.h			\
376	mman.h			\
377	mmapobj.h		\
378	mntent.h		\
379	mntio.h			\
380	mnttab.h		\
381	modctl.h		\
382	mode.h			\
383	model.h			\
384	modhash.h		\
385	modhash_impl.h		\
386	mount.h			\
387	mouse.h			\
388	msacct.h		\
389	msg.h			\
390	msg_impl.h		\
391	msio.h			\
392	msreg.h			\
393	mtio.h			\
394	multidata.h		\
395	multidata_impl.h	\
396	mutex.h			\
397	nbmlock.h		\
398	ndifm.h		\
399	ndi_impldefs.h		\
400	net80211.h		\
401	net80211_crypto.h	\
402	net80211_proto.h	\
403	netconfig.h		\
404	neti.h			\
405	netstack.h		\
406	nexusdefs.h		\
407	note.h			\
408	nvpair.h                \
409	nvpair_impl.h           \
410	objfs.h			\
411	objfs_impl.h		\
412	ontrap.h                \
413	open.h			\
414	openpromio.h		\
415	panic.h			\
416	param.h			\
417	pathconf.h		\
418	pathname.h		\
419	pattr.h			\
420	queue.h			\
421	serializer.h		\
422	pbio.h			\
423	pccard.h		\
424	pci.h			\
425	pcie.h			\
426	pci_impl.h		\
427	pci_tools.h		\
428	pcmcia.h		\
429	pctypes.h		\
430	pem.h			\
431	pfmod.h			\
432	pg.h			\
433	pghw.h			\
434	physmem.h		\
435	pm.h			\
436	policy.h		\
437	poll.h			\
438	poll_impl.h		\
439	pool.h			\
440	pool_impl.h		\
441	pool_pset.h		\
442	port.h			\
443	port_impl.h		\
444	port_kernel.h		\
445	portif.h		\
446	ppmio.h                 \
447	priocntl.h		\
448	priv.h			\
449	priv_impl.h		\
450	prnio.h			\
451	proc.h			\
452	processor.h		\
453	procfs.h		\
454	procset.h		\
455	project.h		\
456	protosw.h		\
457	prsystm.h		\
458	pset.h			\
459	pshot.h			\
460	ptem.h			\
461	ptms.h			\
462	ptyvar.h		\
463	raidioctl.h		\
464	ramdisk.h		\
465	random.h		\
466	rctl.h			\
467	rctl_impl.h		\
468	reboot.h		\
469	refstr.h		\
470	refstr_impl.h		\
471	resource.h		\
472	rlioctl.h		\
473	rt.h			\
474	rtpriocntl.h		\
475	rwlock.h		\
476	rwlock_impl.h		\
477	rwstlock.h		\
478	sad.h			\
479	schedctl.h		\
480	sdt.h			\
481	select.h		\
482	sem.h			\
483	sem_impl.h		\
484	sema_impl.h		\
485	semaphore.h		\
486	sendfile.h		\
487	ser_sync.h		\
488	session.h		\
489	sha1.h			\
490	sha1_consts.h		\
491	sha2.h			\
492	sha2_consts.h		\
493	share.h			\
494	shm.h			\
495	shm_impl.h		\
496	sid.h			\
497	siginfo.h		\
498	signal.h		\
499	sleepq.h		\
500	smbios.h		\
501	smbios_impl.h		\
502	sobject.h		\
503	socket.h		\
504	socket_impl.h		\
505	socket_proto.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
665AVHDRS=				\
666	iec61883.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	$(AVHDRS:%.h=av/%.check)			\
1100	$(BSCHDRS:%.h=%.check)				\
1101	$(CHKHDRS:%.h=%.check)				\
1102	$(CPUDRVHDRS:%.h=%.check)			\
1103	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1104	$(DCAMHDRS:%.h=dcam/%.check)			\
1105	$(FC4HDRS:%.h=fc4/%.check)			\
1106	$(FCHDRS:%.h=fibre-channel/%.check)		\
1107	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1108	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1109	$(IBHDRS:%.h=ib/%.check)			\
1110	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1111	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1112	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1113	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1114	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1115	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1116	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1117	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1118	$(IDMHDRS:%.h=idm/%.check)			\
1119	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1120	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1121	$(ISOHDRS:%.h=iso/%.check)			\
1122	$(FMHDRS:%.h=fm/%.check)			\
1123	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1124	$(FMIOHDRS:%.h=fm/io/%.check)			\
1125	$(FSHDRS:%.h=fs/%.check)			\
1126	$(LVMHDRS:%.h=lvm/%.check)			\
1127	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1128	$(SCSIHDRS:%.h=scsi/%.check)			\
1129	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1130	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1131	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1132	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1133	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1134	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1135	$(SATAGENHDRS:%.h=sata/%.check)			\
1136	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1137	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1138	$(CONTRACTHDRS:%.h=contract/%.check)            \
1139	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1140	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1141	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1142	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1143	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1144	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1145	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1146	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1147	$(USBHDRS:%.h=usb/%.check)                      \
1148	$(I1394HDRS:%.h=1394/%.check)			\
1149	$(RSMHDRS:%.h=rsm/%.check)			\
1150	$(TSOLHDRS:%.h=tsol/%.check)			\
1151	$(NXGEHDRS:%.h=nxge/%.check)
1152
1153
1154.KEEP_STATE:
1155
1156.PARALLEL:			\
1157	$(CHECKHDRS)		\
1158	$(ROOTHDRS)		\
1159	$(ROOTAUDHDRS)		\
1160	$(ROOTAVHDRS)		\
1161	$(ROOTCRYPTOHDRS)	\
1162	$(ROOTDCAMHDRS)		\
1163	$(ROOTISOHDRS)		\
1164	$(ROOTIDMHDRS)		\
1165	$(ROOTISCSIHDRS)	\
1166	$(ROOTISCSITHDRS)	\
1167	$(ROOTFC4HDRS)		\
1168	$(ROOTFCHDRS)		\
1169	$(ROOTFCIMPLHDRS)	\
1170	$(ROOTFCULPHDRS)	\
1171	$(ROOTFMHDRS)		\
1172	$(ROOTFMIOHDRS)		\
1173	$(ROOTFMFSHDRS)		\
1174	$(ROOTFSHDRS)		\
1175	$(ROOTIBDHDRS)		\
1176	$(ROOTIBHDRS)		\
1177	$(ROOTIBTLHDRS)		\
1178	$(ROOTIBTLIMPLHDRS)	\
1179	$(ROOTIBNEXHDRS)	\
1180	$(ROOTIBMGTHDRS)	\
1181	$(ROOTIBMFHDRS)		\
1182	$(ROOTTAVORHDRS)	\
1183	$(ROOTLVMHDRS)		\
1184	$(ROOTPCMCIAHDRS)	\
1185	$(ROOTSCSIHDRS)		\
1186	$(ROOTSCSIADHDRS)	\
1187	$(ROOTSCSICONFHDRS)	\
1188	$(ROOTSCSIISCSIHDRS)	\
1189	$(ROOTSCSIGENHDRS)	\
1190	$(ROOTSCSIIMPLHDRS)	\
1191	$(ROOTSCSIVHCIHDRS)	\
1192	$(ROOTSDCARDHDRS)	\
1193	$(ROOTSYSEVENTHDRS)     \
1194	$(ROOTCONTRACTHDRS)     \
1195	$(ROOTUSBHDRS)		\
1196	$(ROOTUSBAUDHDRS)	\
1197	$(ROOTUSBHUBDHDRS)	\
1198	$(ROOTUSBHIDHDRS)	\
1199	$(ROOTUSBMSHDRS)	\
1200	$(ROOTUSBPRNHDRS)       \
1201	$(ROOTUSBCDCHDRS)       \
1202	$(ROOTUSBVIDHDRS)       \
1203	$(ROOTUGENHDRS)		\
1204	$(ROOT1394HDRS)         \
1205	$(ROOTHOTPLUGHDRS)	\
1206	$(ROOTHOTPLUGPCIHDRS)	\
1207	$(ROOTRSMHDRS)		\
1208	$(ROOTTSOLHDRS)		\
1209	$($(MACH)_ROOTHDRS)
1210
1211
1212install_h:			\
1213	$(ROOTDIRS)		\
1214	LVMDERIVED_H		\
1215	.WAIT			\
1216	$(ROOTHDRS)		\
1217	$(ROOTAUDHDRS)		\
1218	$(ROOTAVHDRS)		\
1219	$(ROOTCRYPTOHDRS)	\
1220	$(ROOTDCAMHDRS)		\
1221	$(ROOTISOHDRS)		\
1222	$(ROOTIDMHDRS)		\
1223	$(ROOTISCSIHDRS)	\
1224	$(ROOTISCSITHDRS)	\
1225	$(ROOTFC4HDRS)		\
1226	$(ROOTFCHDRS)		\
1227	$(ROOTFCIMPLHDRS)	\
1228	$(ROOTFCULPHDRS)	\
1229	$(ROOTFMHDRS)		\
1230	$(ROOTFMFSHDRS)		\
1231	$(ROOTFMIOHDRS)		\
1232	$(ROOTFSHDRS)		\
1233	$(ROOTIBDHDRS)		\
1234	$(ROOTIBHDRS)		\
1235	$(ROOTIBTLHDRS)		\
1236	$(ROOTIBTLIMPLHDRS)	\
1237	$(ROOTIBNEXHDRS)	\
1238	$(ROOTIBMGTHDRS)	\
1239	$(ROOTIBMFHDRS)		\
1240	$(ROOTTAVORHDRS)	\
1241	$(ROOTLVMHDRS)		\
1242	$(ROOTPCMCIAHDRS)	\
1243	$(ROOTSCSIHDRS)		\
1244	$(ROOTSCSIADHDRS)	\
1245	$(ROOTSCSIISCSIHDRS)	\
1246	$(ROOTSCSICONFHDRS)	\
1247	$(ROOTSCSIGENHDRS)	\
1248	$(ROOTSCSIIMPLHDRS)	\
1249	$(ROOTSCSIVHCIHDRS)     \
1250	$(ROOTSDCARDHDRS)	\
1251	$(ROOTSYSEVENTHDRS)     \
1252	$(ROOTCONTRACTHDRS)     \
1253	$(ROOTUSBHDRS)		\
1254	$(ROOTUSBAUDHDRS)	\
1255	$(ROOTUSBHUBDHDRS)	\
1256	$(ROOTUSBHIDHDRS)	\
1257	$(ROOTUSBMSHDRS)	\
1258	$(ROOTUSBPRNHDRS)       \
1259	$(ROOTUSBCDCHDRS)       \
1260	$(ROOTUSBVIDHDRS)       \
1261	$(ROOTUGENHDRS)		\
1262	$(ROOT1394HDRS)         \
1263	$(ROOTHOTPLUGHDRS)	\
1264	$(ROOTHOTPLUGPCIHDRS)	\
1265	$(ROOTRSMHDRS)		\
1266	$(ROOTTSOLHDRS)		\
1267	$($(MACH)_ROOTHDRS)
1268
1269all_h: $(GENHDRS)
1270
1271priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1272	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1273
1274priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1275	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1276
1277usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1278	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1279
1280LVMDERIVED_H:
1281	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1282
1283check:	$(CHECKHDRS)
1284
1285FRC:
1286
1287# EXPORT DELETE START
1288EXPORT_SRC:
1289	$(RM) wanboot_impl.h+ Makefile+
1290	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1291		< wanboot_impl.h > wanboot_impl.h+
1292	$(MV) wanboot_impl.h+ wanboot_impl.h
1293	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1294		< Makefile > Makefile+
1295	$(RM) Makefile
1296	$(MV) Makefile+ Makefile
1297	$(CHMOD) 444 Makefile wanboot_impl.h
1298# EXPORT DELETE END
1299