xref: /titanic_41/usr/src/uts/common/sys/Makefile (revision 5dfd244acc8f144280c5bc8f69ed941185fc3ccc)
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
972UWBHDRS=	\
973	uwb.h	\
974	uwbai.h
975
976UWBAHDRS=	\
977	uwba.h
978
979USBAUDHDRS=           \
980	usb_audio.h
981
982USBHUBDHDRS=		\
983	hub.h		\
984	hubd_impl.h
985
986USBHIDHDRS=		\
987	hid.h
988
989USBHWARCHDRS=		\
990	hwarc.h
991
992USBMSHDRS=		\
993	usb_bulkonly.h	\
994	usb_cbi.h
995
996USBPRNHDRS=           \
997	usb_printer.h
998
999USBCDCHDRS=		\
1000	usb_cdc.h
1001
1002USBVIDHDRS=           \
1003	usbvc.h
1004
1005UGENHDRS=           \
1006	usb_ugen.h
1007
1008HOTPLUGHDRS=	\
1009	hpcsvc.h	\
1010	hpctrl.h
1011
1012HOTPLUGPCIHDRS=	\
1013	pcicfg.h	\
1014	pcihp.h
1015
1016RSMHDRS= \
1017	rsm.h	\
1018	rsm_common.h	\
1019	rsmapi_common.h \
1020	rsmpi.h	\
1021	rsmpi_driver.h	\
1022	rsmka_path_int.h
1023
1024TSOLHDRS=		\
1025	label.h		\
1026	label_macro.h	\
1027	priv.h		\
1028	tndb.h		\
1029	tsyscall.h
1030
1031I1394HDRS=		\
1032	cmd1394.h	\
1033	id1394.h	\
1034	ieee1212.h	\
1035	ieee1394.h	\
1036	ixl1394.h	\
1037	s1394_impl.h	\
1038	t1394.h
1039
1040# "cmdk" headers used on sparc
1041SDKTPHDRS=		\
1042	dadkio.h	\
1043	fdisk.h
1044
1045# "cmdk" headers used on i386
1046DKTPHDRS=		\
1047	altsctr.h	\
1048	bbh.h		\
1049	cm.h		\
1050	cmdev.h		\
1051	cmdk.h		\
1052	cmpkt.h		\
1053	controller.h	\
1054	dadev.h		\
1055	dadk.h		\
1056	dadkio.h	\
1057	fctypes.h	\
1058	fdisk.h		\
1059	flowctrl.h	\
1060	gda.h		\
1061	quetypes.h	\
1062	queue.h		\
1063	tgcom.h		\
1064	tgdk.h
1065
1066# "pc" header files used on i386
1067PCHDRS=			\
1068	avintr.h	\
1069	dma_engine.h	\
1070	i8272A.h	\
1071	pcic_reg.h	\
1072	pcic_var.h	\
1073	pic.h		\
1074	pit.h		\
1075	rtc.h
1076
1077NXGEHDRS=			\
1078	nxge.h			\
1079	nxge_common.h		\
1080	nxge_common_impl.h	\
1081	nxge_defs.h		\
1082	nxge_hw.h		\
1083	nxge_impl.h		\
1084	nxge_ipp.h		\
1085	nxge_ipp_hw.h		\
1086	nxge_mac.h		\
1087	nxge_mac_hw.h		\
1088	nxge_fflp.h		\
1089	nxge_fflp_hw.h		\
1090	nxge_mii.h		\
1091	nxge_rxdma.h		\
1092	nxge_rxdma_hw.h		\
1093	nxge_txc.h		\
1094	nxge_txc_hw.h		\
1095	nxge_txdma.h		\
1096	nxge_txdma_hw.h		\
1097	nxge_virtual.h		\
1098	nxge_espc.h
1099
1100include Makefile.syshdrs
1101
1102dcam/%.check:	dcam/%.h
1103	$(DOT_H_CHECK)
1104
1105CHECKHDRS=						\
1106	$($(MACH)_HDRS:%.h=%.check)			\
1107	$(AUDIOHDRS:%.h=audio/%.check)			\
1108	$(AVHDRS:%.h=av/%.check)			\
1109	$(BSCHDRS:%.h=%.check)				\
1110	$(CHKHDRS:%.h=%.check)				\
1111	$(CPUDRVHDRS:%.h=%.check)			\
1112	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1113	$(DCAMHDRS:%.h=dcam/%.check)			\
1114	$(FC4HDRS:%.h=fc4/%.check)			\
1115	$(FCHDRS:%.h=fibre-channel/%.check)		\
1116	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1117	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1118	$(IBHDRS:%.h=ib/%.check)			\
1119	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1120	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1121	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1122	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1123	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1124	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1125	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1126	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1127	$(IDMHDRS:%.h=idm/%.check)			\
1128	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1129	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1130	$(ISOHDRS:%.h=iso/%.check)			\
1131	$(FMHDRS:%.h=fm/%.check)			\
1132	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1133	$(FMIOHDRS:%.h=fm/io/%.check)			\
1134	$(FSHDRS:%.h=fs/%.check)			\
1135	$(LVMHDRS:%.h=lvm/%.check)			\
1136	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1137	$(SCSIHDRS:%.h=scsi/%.check)			\
1138	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1139	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1140	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1141	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1142	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1143	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1144	$(SATAGENHDRS:%.h=sata/%.check)			\
1145	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1146	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1147	$(CONTRACTHDRS:%.h=contract/%.check)            \
1148	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1149	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1150	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1151	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1152	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1153	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1154	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1155	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1156	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1157	$(USBHDRS:%.h=usb/%.check)                      \
1158	$(UWBHDRS:%.h=uwb/%.check)                      \
1159	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1160	$(I1394HDRS:%.h=1394/%.check)			\
1161	$(RSMHDRS:%.h=rsm/%.check)			\
1162	$(TSOLHDRS:%.h=tsol/%.check)			\
1163	$(NXGEHDRS:%.h=nxge/%.check)
1164
1165
1166.KEEP_STATE:
1167
1168.PARALLEL:			\
1169	$(CHECKHDRS)		\
1170	$(ROOTHDRS)		\
1171	$(ROOTAUDHDRS)		\
1172	$(ROOTAVHDRS)		\
1173	$(ROOTCRYPTOHDRS)	\
1174	$(ROOTDCAMHDRS)		\
1175	$(ROOTISOHDRS)		\
1176	$(ROOTIDMHDRS)		\
1177	$(ROOTISCSIHDRS)	\
1178	$(ROOTISCSITHDRS)	\
1179	$(ROOTFC4HDRS)		\
1180	$(ROOTFCHDRS)		\
1181	$(ROOTFCIMPLHDRS)	\
1182	$(ROOTFCULPHDRS)	\
1183	$(ROOTFMHDRS)		\
1184	$(ROOTFMIOHDRS)		\
1185	$(ROOTFMFSHDRS)		\
1186	$(ROOTFSHDRS)		\
1187	$(ROOTIBDHDRS)		\
1188	$(ROOTIBHDRS)		\
1189	$(ROOTIBTLHDRS)		\
1190	$(ROOTIBTLIMPLHDRS)	\
1191	$(ROOTIBNEXHDRS)	\
1192	$(ROOTIBMGTHDRS)	\
1193	$(ROOTIBMFHDRS)		\
1194	$(ROOTTAVORHDRS)	\
1195	$(ROOTLVMHDRS)		\
1196	$(ROOTPCMCIAHDRS)	\
1197	$(ROOTSCSIHDRS)		\
1198	$(ROOTSCSIADHDRS)	\
1199	$(ROOTSCSICONFHDRS)	\
1200	$(ROOTSCSIISCSIHDRS)	\
1201	$(ROOTSCSIGENHDRS)	\
1202	$(ROOTSCSIIMPLHDRS)	\
1203	$(ROOTSCSIVHCIHDRS)	\
1204	$(ROOTSDCARDHDRS)	\
1205	$(ROOTSYSEVENTHDRS)     \
1206	$(ROOTCONTRACTHDRS)     \
1207	$(ROOTUSBHDRS)		\
1208	$(ROOTUWBHDRS)		\
1209	$(ROOTUWBAHDRS)		\
1210	$(ROOTUSBAUDHDRS)	\
1211	$(ROOTUSBHUBDHDRS)	\
1212	$(ROOTUSBHIDHDRS)	\
1213	$(ROOTUSBHRCHDRS)	\
1214	$(ROOTUSBMSHDRS)	\
1215	$(ROOTUSBPRNHDRS)       \
1216	$(ROOTUSBCDCHDRS)       \
1217	$(ROOTUSBVIDHDRS)       \
1218	$(ROOTUGENHDRS)		\
1219	$(ROOT1394HDRS)         \
1220	$(ROOTHOTPLUGHDRS)	\
1221	$(ROOTHOTPLUGPCIHDRS)	\
1222	$(ROOTRSMHDRS)		\
1223	$(ROOTTSOLHDRS)		\
1224	$($(MACH)_ROOTHDRS)
1225
1226
1227install_h:			\
1228	$(ROOTDIRS)		\
1229	LVMDERIVED_H		\
1230	.WAIT			\
1231	$(ROOTHDRS)		\
1232	$(ROOTAUDHDRS)		\
1233	$(ROOTAVHDRS)		\
1234	$(ROOTCRYPTOHDRS)	\
1235	$(ROOTDCAMHDRS)		\
1236	$(ROOTISOHDRS)		\
1237	$(ROOTIDMHDRS)		\
1238	$(ROOTISCSIHDRS)	\
1239	$(ROOTISCSITHDRS)	\
1240	$(ROOTFC4HDRS)		\
1241	$(ROOTFCHDRS)		\
1242	$(ROOTFCIMPLHDRS)	\
1243	$(ROOTFCULPHDRS)	\
1244	$(ROOTFMHDRS)		\
1245	$(ROOTFMFSHDRS)		\
1246	$(ROOTFMIOHDRS)		\
1247	$(ROOTFSHDRS)		\
1248	$(ROOTIBDHDRS)		\
1249	$(ROOTIBHDRS)		\
1250	$(ROOTIBTLHDRS)		\
1251	$(ROOTIBTLIMPLHDRS)	\
1252	$(ROOTIBNEXHDRS)	\
1253	$(ROOTIBMGTHDRS)	\
1254	$(ROOTIBMFHDRS)		\
1255	$(ROOTTAVORHDRS)	\
1256	$(ROOTLVMHDRS)		\
1257	$(ROOTPCMCIAHDRS)	\
1258	$(ROOTSCSIHDRS)		\
1259	$(ROOTSCSIADHDRS)	\
1260	$(ROOTSCSIISCSIHDRS)	\
1261	$(ROOTSCSICONFHDRS)	\
1262	$(ROOTSCSIGENHDRS)	\
1263	$(ROOTSCSIIMPLHDRS)	\
1264	$(ROOTSCSIVHCIHDRS)     \
1265	$(ROOTSDCARDHDRS)	\
1266	$(ROOTSYSEVENTHDRS)     \
1267	$(ROOTCONTRACTHDRS)     \
1268	$(ROOTUWBHDRS)		\
1269	$(ROOTUWBAHDRS)		\
1270	$(ROOTUSBHDRS)		\
1271	$(ROOTUSBAUDHDRS)	\
1272	$(ROOTUSBHUBDHDRS)	\
1273	$(ROOTUSBHIDHDRS)	\
1274	$(ROOTUSBHRCHDRS)	\
1275	$(ROOTUSBMSHDRS)	\
1276	$(ROOTUSBPRNHDRS)       \
1277	$(ROOTUSBCDCHDRS)       \
1278	$(ROOTUSBVIDHDRS)       \
1279	$(ROOTUGENHDRS)		\
1280	$(ROOT1394HDRS)         \
1281	$(ROOTHOTPLUGHDRS)	\
1282	$(ROOTHOTPLUGPCIHDRS)	\
1283	$(ROOTRSMHDRS)		\
1284	$(ROOTTSOLHDRS)		\
1285	$($(MACH)_ROOTHDRS)
1286
1287all_h: $(GENHDRS)
1288
1289priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1290	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1291
1292priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1293	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1294
1295usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1296	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1297
1298LVMDERIVED_H:
1299	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1300
1301check:	$(CHECKHDRS)
1302
1303FRC:
1304
1305# EXPORT DELETE START
1306EXPORT_SRC:
1307	$(RM) wanboot_impl.h+ Makefile+
1308	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1309		< wanboot_impl.h > wanboot_impl.h+
1310	$(MV) wanboot_impl.h+ wanboot_impl.h
1311	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1312		< Makefile > Makefile+
1313	$(RM) Makefile
1314	$(MV) Makefile+ Makefile
1315	$(CHMOD) 444 Makefile wanboot_impl.h
1316# EXPORT DELETE END
1317