xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 335777d1b181cad304c5ec02288dad96b5e00a52)
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
28FILEMODE=644
29
30#
31#	Note that the following headers are present in the kernel but
32#	neither installed or shipped as part of the product:
33#		cpuid_drv.h:		Private interface for cpuid consumers
34#		unix_bb_info.h:		Private interface to kcov
35#
36
37i386_HDRS=			\
38	agp/agpamd64gart_io.h	\
39	agp/agpdefs.h		\
40	agp/agpgart_impl.h	\
41	agp/agpmaster_io.h	\
42	agp/agptarget_io.h	\
43	agpgart.h		\
44	asy.h			\
45	fd_debug.h		\
46	fdc.h			\
47	fdmedia.h		\
48	mouse.h			\
49	ucode.h
50
51sparc_HDRS= 			\
52	mouse.h			\
53	scsi/targets/ssddef.h	\
54	$(MDESCHDRS)
55
56# Generated headers
57GENHDRS=			\
58	priv_const.h		\
59	priv_names.h		\
60	usb/usbdevs.h
61
62CHKHDRS=			\
63	acpi_drv.h		\
64	acct.h			\
65	acctctl.h		\
66	acl.h			\
67	acl_impl.h		\
68	aggr.h			\
69	aggr_impl.h		\
70	aio.h			\
71	aio_impl.h		\
72	aio_req.h		\
73	aiocb.h			\
74	ascii.h			\
75	asynch.h		\
76	atomic.h		\
77	attr.h			\
78	audio.h			\
79	audioio.h		\
80	autoconf.h		\
81	auxv.h			\
82	auxv_386.h		\
83	auxv_SPARC.h		\
84	avl.h			\
85	avl_impl.h		\
86	bitmap.h		\
87	bitset.h		\
88	bl.h			\
89	bmc_intf.h		\
90	bofi.h			\
91	bofi_impl.h		\
92	bpp_io.h		\
93	bootstat.h		\
94	brand.h			\
95	buf.h			\
96	bufmod.h		\
97	bustypes.h		\
98	byteorder.h		\
99	callb.h			\
100	callo.h			\
101	cpucaps.h		\
102	cpucaps_impl.h		\
103	ccompile.h		\
104	cdio.h			\
105	cladm.h			\
106	class.h			\
107	clconf.h		\
108	cmlb.h			\
109	cmn_err.h		\
110	compress.h		\
111	condvar.h		\
112	condvar_impl.h		\
113	conf.h			\
114	consdev.h		\
115	console.h		\
116        consplat.h              \
117	vt.h			\
118	vtdaemon.h		\
119	kd.h			\
120	contract.h		\
121	contract_impl.h		\
122	copyops.h		\
123	core.h			\
124	corectl.h		\
125	cpc_impl.h		\
126	cpc_pcbe.h		\
127	cpr.h			\
128	cpupart.h		\
129	cpuvar.h		\
130	crc32.h			\
131	cred.h			\
132	cred_impl.h		\
133	crtctl.h		\
134	cryptmod.h		\
135	csiioctl.h		\
136	ctf.h			\
137	ctfs.h			\
138	ctfs_impl.h		\
139	ctf_api.h		\
140	ctype.h			\
141	cyclic.h		\
142	cyclic_impl.h		\
143	dacf.h			\
144	dacf_impl.h		\
145	damap.h		\
146	damap_impl.h		\
147	dc_ki.h			\
148	ddi.h			\
149	ddifm.h			\
150	ddifm_impl.h		\
151	ddi_intr.h		\
152	ddi_intr_impl.h		\
153	ddi_impldefs.h		\
154	ddi_implfuncs.h		\
155	ddi_obsolete.h		\
156	ddi_timer.h		\
157	ddidevmap.h		\
158	ddidmareq.h		\
159	ddimapreq.h		\
160	ddipropdefs.h		\
161	dditypes.h		\
162	debug.h			\
163	des.h			\
164	devctl.h		\
165	devcache.h		\
166	devcache_impl.h		\
167	devfm.h			\
168	devid_cache.h		\
169	devinfo_impl.h		\
170	devops.h		\
171	devpolicy.h		\
172	devpoll.h		\
173	dirent.h		\
174	disp.h			\
175	dkbad.h			\
176	dkio.h			\
177	dklabel.h		\
178	dl.h			\
179	dlpi.h			\
180	dld.h			\
181	dld_impl.h		\
182	dld_ioc.h		\
183	dls.h			\
184	dls_mgmt.h		\
185	dls_impl.h		\
186	dma_i8237A.h            \
187	dnlc.h			\
188	door.h			\
189	door_data.h		\
190	door_impl.h		\
191	dtrace.h		\
192	dtrace_impl.h		\
193	dumpadm.h		\
194	dumphdr.h		\
195	ecppsys.h		\
196	ecppio.h                \
197	ecppreg.h               \
198	ecppvar.h               \
199	efi_partition.h		\
200	elf.h			\
201	elf_386.h		\
202	elf_SPARC.h		\
203	elf_notes.h		\
204	elf_amd64.h		\
205	elftypes.h		\
206	emul64.h		\
207	emul64cmd.h		\
208	emul64var.h		\
209	epm.h			\
210	errno.h			\
211	errorq.h		\
212	errorq_impl.h		\
213	esunddi.h		\
214	ethernet.h		\
215	euc.h			\
216	eucioctl.h		\
217	exacct.h		\
218	exacct_catalog.h	\
219	exacct_impl.h		\
220	exec.h			\
221	exechdr.h		\
222	extdirent.h		\
223	fault.h			\
224	fasttrap.h		\
225	fasttrap_impl.h		\
226	fbio.h			\
227	fbuf.h			\
228	fcntl.h			\
229	fct.h			\
230	fct_defines.h		\
231	fctio.h			\
232	fdbuffer.h		\
233	fdio.h			\
234	feature_tests.h		\
235	fem.h			\
236	file.h			\
237	filio.h			\
238	flock.h			\
239	flock_impl.h		\
240	fork.h			\
241	fss.h			\
242	fsspriocntl.h		\
243	fsid.h			\
244	fssnap.h                \
245	fssnap_if.h             \
246	fstyp.h			\
247	ftrace.h		\
248	fx.h			\
249	fxpriocntl.h		\
250	gfs.h			\
251	gld.h			\
252	gldpriv.h		\
253	group.h			\
254	hdio.h			\
255	hook.h			\
256	hook_event.h		\
257	hook_impl.h		\
258	hwconf.h		\
259	ia.h			\
260	iapriocntl.h		\
261	id32.h			\
262	idmap.h 		\
263	ieeefp.h		\
264	id_space.h		\
265	instance.h		\
266	int_const.h		\
267	int_fmtio.h		\
268	int_limits.h		\
269	int_types.h		\
270	inttypes.h		\
271	ioccom.h		\
272	ioctl.h			\
273	ipc.h			\
274	ipc_impl.h		\
275	ipc_rctl.h		\
276	isa_defs.h		\
277	iscsi_authclient.h	\
278	iscsi_authclientglue.h	\
279	iscsi_protocol.h	\
280	jioctl.h		\
281	kbd.h			\
282	kbdreg.h		\
283	kbio.h			\
284	kcpc.h			\
285	kdi.h			\
286	kdi_impl.h		\
287	kiconv.h		\
288	kiconv_big5_utf8.h	\
289	kiconv_cck_common.h	\
290	kiconv_cp950hkscs_utf8.h	\
291	kiconv_emea1.h		\
292	kiconv_emea2.h		\
293	kiconv_euckr_utf8.h	\
294	kiconv_euctw_utf8.h	\
295	kiconv_gb18030_utf8.h	\
296	kiconv_gb2312_utf8.h	\
297	kiconv_hkscs_utf8.h	\
298	kiconv_ja.h		\
299	kiconv_ja_jis_to_unicode.h	\
300	kiconv_ja_unicode_to_jis.h	\
301	kiconv_ko.h		\
302	kiconv_latin1.h		\
303	kiconv_sc.h		\
304	kiconv_tc.h		\
305	kiconv_uhc_utf8.h	\
306	kiconv_utf8_big5.h	\
307	kiconv_utf8_cp950hkscs.h	\
308	kiconv_utf8_euckr.h	\
309	kiconv_utf8_euctw.h	\
310	kiconv_utf8_gb18030.h	\
311	kiconv_utf8_gb2312.h	\
312	kiconv_utf8_hkscs.h	\
313	kiconv_utf8_uhc.h	\
314	kidmap.h		\
315	klpd.h			\
316	klwp.h			\
317	kmdb.h			\
318	kmem.h			\
319	kmem_impl.h		\
320	kobj.h			\
321	kobj_impl.h		\
322	ksocket.h		\
323	kstat.h			\
324	kstr.h			\
325	ksyms.h			\
326	ksynch.h		\
327	ldterm.h		\
328	lgrp.h			\
329	lgrp_user.h		\
330	libc_kernel.h		\
331	link.h			\
332	list.h			\
333	list_impl.h		\
334	llc1.h			\
335	loadavg.h		\
336	lock.h			\
337	lockfs.h		\
338	lockstat.h		\
339	lofi.h			\
340	log.h			\
341	logindmux.h		\
342	logindmux_impl.h	\
343	lwp.h			\
344	lwp_timer_impl.h	\
345	lwp_upimutex_impl.h	\
346	lpif.h			\
347	mac.h			\
348	mac_client.h		\
349	mac_client_impl.h	\
350	mac_flow.h		\
351	mac_flow_impl.h		\
352	mac_impl.h		\
353	mac_provider.h		\
354	mac_soft_ring.h		\
355	machelf.h		\
356	map.h			\
357	md4.h			\
358	md5.h			\
359	md5_consts.h		\
360	mdi_impldefs.h		\
361	mem.h			\
362	mem_config.h		\
363	memlist.h		\
364	mkdev.h			\
365	mhd.h			\
366	mii.h			\
367	miiregs.h		\
368	mixer.h			\
369	mman.h			\
370	mmapobj.h		\
371	mntent.h		\
372	mntio.h			\
373	mnttab.h		\
374	modctl.h		\
375	mode.h			\
376	model.h			\
377	modhash.h		\
378	modhash_impl.h		\
379	mount.h			\
380	mouse.h			\
381	msacct.h		\
382	msg.h			\
383	msg_impl.h		\
384	msio.h			\
385	msreg.h			\
386	mtio.h			\
387	multidata.h		\
388	multidata_impl.h	\
389	mutex.h			\
390	nbmlock.h		\
391	ndifm.h		\
392	ndi_impldefs.h		\
393	net80211.h		\
394	net80211_crypto.h	\
395	net80211_ht.h		\
396	net80211_proto.h	\
397	netconfig.h		\
398	neti.h			\
399	netstack.h		\
400	nexusdefs.h		\
401	note.h			\
402	nvpair.h                \
403	nvpair_impl.h           \
404	objfs.h			\
405	objfs_impl.h		\
406	ontrap.h                \
407	open.h			\
408	openpromio.h		\
409	panic.h			\
410	param.h			\
411	pathconf.h		\
412	pathname.h		\
413	pattr.h			\
414	queue.h			\
415	serializer.h		\
416	pbio.h			\
417	pccard.h		\
418	pci.h			\
419	pcie.h			\
420	pci_impl.h		\
421	pci_tools.h		\
422	pcmcia.h		\
423	pctypes.h		\
424	pem.h			\
425	pfmod.h			\
426	pg.h			\
427	pghw.h			\
428	physmem.h		\
429	pm.h			\
430	policy.h		\
431	poll.h			\
432	poll_impl.h		\
433	pool.h			\
434	pool_impl.h		\
435	pool_pset.h		\
436	port.h			\
437	port_impl.h		\
438	port_kernel.h		\
439	portif.h		\
440	ppmio.h                 \
441	pppt_ic_if.h		\
442	pppt_ioctl.h		\
443	priocntl.h		\
444	priv.h			\
445	priv_impl.h		\
446	prnio.h			\
447	proc.h			\
448	processor.h		\
449	procfs.h		\
450	procset.h		\
451	project.h		\
452	protosw.h		\
453	prsystm.h		\
454	pset.h			\
455	pshot.h			\
456	ptem.h			\
457	ptms.h			\
458	ptyvar.h		\
459	raidioctl.h		\
460	ramdisk.h		\
461	random.h		\
462	rctl.h			\
463	rctl_impl.h		\
464	reboot.h		\
465	refstr.h		\
466	refstr_impl.h		\
467	resource.h		\
468	rlioctl.h		\
469	rt.h			\
470	rtpriocntl.h		\
471	rwlock.h		\
472	rwlock_impl.h		\
473	rwstlock.h		\
474	sad.h			\
475	schedctl.h		\
476	sdt.h			\
477	select.h		\
478	sem.h			\
479	sem_impl.h		\
480	sema_impl.h		\
481	semaphore.h		\
482	sendfile.h		\
483	ser_sync.h		\
484	session.h		\
485	sha1.h			\
486	sha1_consts.h		\
487	sha2.h			\
488	sha2_consts.h		\
489	share.h			\
490	shm.h			\
491	shm_impl.h		\
492	sid.h			\
493	siginfo.h		\
494	signal.h		\
495	sleepq.h		\
496	smbios.h		\
497	smbios_impl.h		\
498	sobject.h		\
499	socket.h		\
500	socket_impl.h		\
501	socket_proto.h		\
502	socketvar.h		\
503	sockio.h		\
504	soundcard.h		\
505	squeue.h		\
506	squeue_impl.h		\
507	srn.h			\
508	sservice.h		\
509	stat.h			\
510	statfs.h		\
511	statvfs.h		\
512	stdbool.h		\
513	stdint.h		\
514	stermio.h		\
515	stmf.h			\
516	stmf_defines.h		\
517	stmf_ioctl.h		\
518	stmf_sbd_ioctl.h	\
519	stream.h		\
520	strft.h			\
521	strlog.h		\
522	strmdep.h		\
523	stropts.h		\
524	strredir.h		\
525	strstat.h		\
526	strsubr.h		\
527	strsun.h		\
528	strtty.h		\
529	sunddi.h		\
530	sunldi.h		\
531	sunldi_impl.h		\
532	sunmdi.h		\
533	sunndi.h		\
534	sunos_dhcp_class.h	\
535	sunpm.h			\
536	suntpi.h		\
537	suntty.h		\
538	swap.h			\
539	synch.h			\
540	syscall.h		\
541	sysconf.h		\
542	sysconfig.h		\
543	sysevent.h		\
544	sysevent_impl.h         \
545	sysinfo.h		\
546	syslog.h		\
547	sysmacros.h		\
548	sysmsg_impl.h		\
549	systeminfo.h		\
550	systm.h			\
551	task.h			\
552	taskq.h			\
553	taskq_impl.h		\
554	t_kuser.h		\
555	t_lock.h		\
556	telioctl.h		\
557	termio.h		\
558	termios.h		\
559	termiox.h		\
560	thread.h		\
561	ticlts.h		\
562	ticots.h		\
563	ticotsord.h		\
564	tihdr.h			\
565	time.h			\
566	time_impl.h		\
567	time_std_impl.h		\
568	timeb.h			\
569	timer.h			\
570	times.h			\
571	timex.h			\
572	timod.h			\
573	tirdwr.h		\
574	tiuser.h		\
575	tl.h			\
576	tnf.h			\
577	tnf_com.h		\
578	tnf_probe.h		\
579	tnf_writer.h		\
580	todio.h			\
581	tpicommon.h		\
582	ts.h			\
583	tspriocntl.h		\
584	ttcompat.h		\
585	ttold.h			\
586	tty.h			\
587	ttychars.h		\
588	ttydev.h		\
589	tuneable.h		\
590	turnstile.h		\
591	types.h			\
592	types32.h		\
593	tzfile.h		\
594	u8_textprep.h		\
595	u8_textprep_data.h	\
596	uadmin.h		\
597	ucred.h			\
598	uio.h			\
599	ulimit.h		\
600	un.h			\
601	unistd.h		\
602	user.h			\
603	ustat.h			\
604	utime.h			\
605	utsname.h		\
606	utssys.h		\
607	uuid.h			\
608	va_impl.h		\
609	va_list.h		\
610	var.h			\
611	varargs.h		\
612	vfs.h			\
613	vfs_opreg.h		\
614	vfstab.h		\
615	vgareg.h		\
616	videodev2.h		\
617	visual_io.h		\
618	vlan.h			\
619	vm.h			\
620	vm_usage.h		\
621	vmem.h			\
622	vmem_impl.h		\
623	vmmeter.h		\
624	vmsystm.h		\
625	vnic.h			\
626	vnic_impl.h		\
627	vnode.h			\
628	vscan.h			\
629	vtoc.h			\
630	vtrace.h		\
631	vuid_event.h		\
632	vuid_wheel.h		\
633	vuid_queue.h		\
634	vuid_state.h		\
635	vuid_store.h		\
636	wait.h			\
637	waitq.h			\
638	wanboot_impl.h		\
639	watchpoint.h		\
640	winlockio.h		\
641	zcons.h			\
642	zone.h			\
643	xti_inet.h		\
644	xti_osi.h		\
645	xti_xtiopt.h		\
646	zmod.h
647
648HDRS=				\
649	$(GENHDRS)		\
650	$(CHKHDRS)
651
652AUDIOHDRS=			\
653	ac97.h			\
654	audio_common.h		\
655	audio_driver.h		\
656	audio_oss.h		\
657	g711.h
658
659AVHDRS=				\
660	iec61883.h
661
662BSCHDRS=			\
663	bscbus.h		\
664	bscv_impl.h		\
665	lom_ebuscodes.h		\
666	lom_io.h		\
667	lom_priv.h		\
668	lombus.h
669
670MDESCHDRS=			\
671	mdesc.h			\
672	mdesc_impl.h
673
674CPUDRVHDRS=			\
675	cpudrv.h
676
677CRYPTOHDRS=			\
678	elfsign.h		\
679	ioctl.h			\
680	ioctladmin.h		\
681	common.h		\
682	impl.h			\
683	spi.h			\
684	api.h			\
685	ops_impl.h		\
686	sched_impl.h
687
688DCAMHDRS=			\
689	dcam1394_io.h
690
691IBHDRS=			\
692	ib_types.h	\
693	ib_pkt_hdrs.h
694
695IBTLHDRS=		\
696	ibtl_types.h	\
697	ibtl_status.h	\
698	ibti.h		\
699	ibti_cm.h	\
700	ibci.h		\
701	ibti_common.h	\
702	ibvti.h		\
703	ibtl_ci_types.h
704
705IBTLIMPLHDRS=		\
706	ibtl_util.h
707
708IBNEXHDRS=		\
709	ibnex_devctl.h
710
711IBMFHDRS=		\
712	ibmf.h		\
713	ibmf_msg.h	\
714	ibmf_saa.h	\
715	ibmf_utils.h
716
717IBMGTHDRS=		\
718	ib_dm_attr.h	\
719	ib_mad.h	\
720	sm_attr.h	\
721	sa_recs.h
722
723IBDHDRS=		\
724	ibd.h
725
726TAVORHDRS=		\
727	tavor_ioctl.h
728
729HERMONHDRS=		\
730	hermon_ioctl.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	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	zut.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
973UWBHDRS=	\
974	uwb.h	\
975	uwbai.h
976
977UWBAHDRS=	\
978	uwba.h
979
980USBAUDHDRS=           \
981	usb_audio.h
982
983USBHUBDHDRS=		\
984	hub.h		\
985	hubd_impl.h
986
987USBHIDHDRS=		\
988	hid.h
989
990USBHWARCHDRS=		\
991	hwarc.h
992
993USBMSHDRS=		\
994	usb_bulkonly.h	\
995	usb_cbi.h
996
997USBPRNHDRS=           \
998	usb_printer.h
999
1000USBCDCHDRS=		\
1001	usb_cdc.h
1002
1003USBVIDHDRS=           \
1004	usbvc.h
1005
1006UGENHDRS=           \
1007	usb_ugen.h
1008
1009HOTPLUGHDRS=	\
1010	hpcsvc.h	\
1011	hpctrl.h
1012
1013HOTPLUGPCIHDRS=	\
1014	pcicfg.h	\
1015	pcihp.h
1016
1017RSMHDRS= \
1018	rsm.h	\
1019	rsm_common.h	\
1020	rsmapi_common.h \
1021	rsmpi.h	\
1022	rsmpi_driver.h	\
1023	rsmka_path_int.h
1024
1025TSOLHDRS=		\
1026	label.h		\
1027	label_macro.h	\
1028	priv.h		\
1029	tndb.h		\
1030	tsyscall.h
1031
1032I1394HDRS=		\
1033	cmd1394.h	\
1034	id1394.h	\
1035	ieee1212.h	\
1036	ieee1394.h	\
1037	ixl1394.h	\
1038	s1394_impl.h	\
1039	t1394.h
1040
1041# "cmdk" headers used on sparc
1042SDKTPHDRS=		\
1043	dadkio.h	\
1044	fdisk.h
1045
1046# "cmdk" headers used on i386
1047DKTPHDRS=		\
1048	altsctr.h	\
1049	bbh.h		\
1050	cm.h		\
1051	cmdev.h		\
1052	cmdk.h		\
1053	cmpkt.h		\
1054	controller.h	\
1055	dadev.h		\
1056	dadk.h		\
1057	dadkio.h	\
1058	fctypes.h	\
1059	fdisk.h		\
1060	flowctrl.h	\
1061	gda.h		\
1062	quetypes.h	\
1063	queue.h		\
1064	tgcom.h		\
1065	tgdk.h
1066
1067# "pc" header files used on i386
1068PCHDRS=			\
1069	avintr.h	\
1070	dma_engine.h	\
1071	i8272A.h	\
1072	pcic_reg.h	\
1073	pcic_var.h	\
1074	pic.h		\
1075	pit.h		\
1076	rtc.h
1077
1078NXGEHDRS=			\
1079	nxge.h			\
1080	nxge_common.h		\
1081	nxge_common_impl.h	\
1082	nxge_defs.h		\
1083	nxge_hw.h		\
1084	nxge_impl.h		\
1085	nxge_ipp.h		\
1086	nxge_ipp_hw.h		\
1087	nxge_mac.h		\
1088	nxge_mac_hw.h		\
1089	nxge_fflp.h		\
1090	nxge_fflp_hw.h		\
1091	nxge_mii.h		\
1092	nxge_rxdma.h		\
1093	nxge_rxdma_hw.h		\
1094	nxge_txc.h		\
1095	nxge_txc_hw.h		\
1096	nxge_txdma.h		\
1097	nxge_txdma_hw.h		\
1098	nxge_virtual.h		\
1099	nxge_espc.h
1100
1101include Makefile.syshdrs
1102
1103dcam/%.check:	dcam/%.h
1104	$(DOT_H_CHECK)
1105
1106CHECKHDRS=						\
1107	$($(MACH)_HDRS:%.h=%.check)			\
1108	$(AUDIOHDRS:%.h=audio/%.check)			\
1109	$(AVHDRS:%.h=av/%.check)			\
1110	$(BSCHDRS:%.h=%.check)				\
1111	$(CHKHDRS:%.h=%.check)				\
1112	$(CPUDRVHDRS:%.h=%.check)			\
1113	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1114	$(DCAMHDRS:%.h=dcam/%.check)			\
1115	$(FC4HDRS:%.h=fc4/%.check)			\
1116	$(FCHDRS:%.h=fibre-channel/%.check)		\
1117	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1118	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1119	$(IBHDRS:%.h=ib/%.check)			\
1120	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1121	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1122	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1123	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1124	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1125	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1126	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1127	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1128	$(IDMHDRS:%.h=idm/%.check)			\
1129	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1130	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1131	$(ISOHDRS:%.h=iso/%.check)			\
1132	$(FMHDRS:%.h=fm/%.check)			\
1133	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1134	$(FMIOHDRS:%.h=fm/io/%.check)			\
1135	$(FSHDRS:%.h=fs/%.check)			\
1136	$(LVMHDRS:%.h=lvm/%.check)			\
1137	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1138	$(SCSIHDRS:%.h=scsi/%.check)			\
1139	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1140	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1141	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1142	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1143	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1144	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1145	$(SATAGENHDRS:%.h=sata/%.check)			\
1146	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1147	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1148	$(CONTRACTHDRS:%.h=contract/%.check)            \
1149	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1150	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1151	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1152	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1153	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1154	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1155	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1156	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1157	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1158	$(USBHDRS:%.h=usb/%.check)                      \
1159	$(UWBHDRS:%.h=uwb/%.check)                      \
1160	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1161	$(I1394HDRS:%.h=1394/%.check)			\
1162	$(RSMHDRS:%.h=rsm/%.check)			\
1163	$(TSOLHDRS:%.h=tsol/%.check)			\
1164	$(NXGEHDRS:%.h=nxge/%.check)
1165
1166
1167.KEEP_STATE:
1168
1169.PARALLEL:			\
1170	$(CHECKHDRS)		\
1171	$(ROOTHDRS)		\
1172	$(ROOTAUDHDRS)		\
1173	$(ROOTAVHDRS)		\
1174	$(ROOTCRYPTOHDRS)	\
1175	$(ROOTDCAMHDRS)		\
1176	$(ROOTISOHDRS)		\
1177	$(ROOTIDMHDRS)		\
1178	$(ROOTISCSIHDRS)	\
1179	$(ROOTISCSITHDRS)	\
1180	$(ROOTFC4HDRS)		\
1181	$(ROOTFCHDRS)		\
1182	$(ROOTFCIMPLHDRS)	\
1183	$(ROOTFCULPHDRS)	\
1184	$(ROOTFMHDRS)		\
1185	$(ROOTFMIOHDRS)		\
1186	$(ROOTFMFSHDRS)		\
1187	$(ROOTFSHDRS)		\
1188	$(ROOTIBDHDRS)		\
1189	$(ROOTIBHDRS)		\
1190	$(ROOTIBTLHDRS)		\
1191	$(ROOTIBTLIMPLHDRS)	\
1192	$(ROOTIBNEXHDRS)	\
1193	$(ROOTIBMGTHDRS)	\
1194	$(ROOTIBMFHDRS)		\
1195	$(ROOTTAVORHDRS)	\
1196	$(ROOTHERMONHDRS)	\
1197	$(ROOTLVMHDRS)		\
1198	$(ROOTPCMCIAHDRS)	\
1199	$(ROOTSCSIHDRS)		\
1200	$(ROOTSCSIADHDRS)	\
1201	$(ROOTSCSICONFHDRS)	\
1202	$(ROOTSCSIISCSIHDRS)	\
1203	$(ROOTSCSIGENHDRS)	\
1204	$(ROOTSCSIIMPLHDRS)	\
1205	$(ROOTSCSIVHCIHDRS)	\
1206	$(ROOTSDCARDHDRS)	\
1207	$(ROOTSYSEVENTHDRS)     \
1208	$(ROOTCONTRACTHDRS)     \
1209	$(ROOTUSBHDRS)		\
1210	$(ROOTUWBHDRS)		\
1211	$(ROOTUWBAHDRS)		\
1212	$(ROOTUSBAUDHDRS)	\
1213	$(ROOTUSBHUBDHDRS)	\
1214	$(ROOTUSBHIDHDRS)	\
1215	$(ROOTUSBHRCHDRS)	\
1216	$(ROOTUSBMSHDRS)	\
1217	$(ROOTUSBPRNHDRS)       \
1218	$(ROOTUSBCDCHDRS)       \
1219	$(ROOTUSBVIDHDRS)       \
1220	$(ROOTUGENHDRS)		\
1221	$(ROOT1394HDRS)         \
1222	$(ROOTHOTPLUGHDRS)	\
1223	$(ROOTHOTPLUGPCIHDRS)	\
1224	$(ROOTRSMHDRS)		\
1225	$(ROOTTSOLHDRS)		\
1226	$($(MACH)_ROOTHDRS)
1227
1228
1229install_h:			\
1230	$(ROOTDIRS)		\
1231	LVMDERIVED_H		\
1232	.WAIT			\
1233	$(ROOTHDRS)		\
1234	$(ROOTAUDHDRS)		\
1235	$(ROOTAVHDRS)		\
1236	$(ROOTCRYPTOHDRS)	\
1237	$(ROOTDCAMHDRS)		\
1238	$(ROOTISOHDRS)		\
1239	$(ROOTIDMHDRS)		\
1240	$(ROOTISCSIHDRS)	\
1241	$(ROOTISCSITHDRS)	\
1242	$(ROOTFC4HDRS)		\
1243	$(ROOTFCHDRS)		\
1244	$(ROOTFCIMPLHDRS)	\
1245	$(ROOTFCULPHDRS)	\
1246	$(ROOTFMHDRS)		\
1247	$(ROOTFMFSHDRS)		\
1248	$(ROOTFMIOHDRS)		\
1249	$(ROOTFSHDRS)		\
1250	$(ROOTIBDHDRS)		\
1251	$(ROOTIBHDRS)		\
1252	$(ROOTIBTLHDRS)		\
1253	$(ROOTIBTLIMPLHDRS)	\
1254	$(ROOTIBNEXHDRS)	\
1255	$(ROOTIBMGTHDRS)	\
1256	$(ROOTIBMFHDRS)		\
1257	$(ROOTTAVORHDRS)	\
1258	$(ROOTHERMONHDRS)	\
1259	$(ROOTLVMHDRS)		\
1260	$(ROOTPCMCIAHDRS)	\
1261	$(ROOTSCSIHDRS)		\
1262	$(ROOTSCSIADHDRS)	\
1263	$(ROOTSCSIISCSIHDRS)	\
1264	$(ROOTSCSICONFHDRS)	\
1265	$(ROOTSCSIGENHDRS)	\
1266	$(ROOTSCSIIMPLHDRS)	\
1267	$(ROOTSCSIVHCIHDRS)     \
1268	$(ROOTSDCARDHDRS)	\
1269	$(ROOTSYSEVENTHDRS)     \
1270	$(ROOTCONTRACTHDRS)     \
1271	$(ROOTUWBHDRS)		\
1272	$(ROOTUWBAHDRS)		\
1273	$(ROOTUSBHDRS)		\
1274	$(ROOTUSBAUDHDRS)	\
1275	$(ROOTUSBHUBDHDRS)	\
1276	$(ROOTUSBHIDHDRS)	\
1277	$(ROOTUSBHRCHDRS)	\
1278	$(ROOTUSBMSHDRS)	\
1279	$(ROOTUSBPRNHDRS)       \
1280	$(ROOTUSBCDCHDRS)       \
1281	$(ROOTUSBVIDHDRS)       \
1282	$(ROOTUGENHDRS)		\
1283	$(ROOT1394HDRS)         \
1284	$(ROOTHOTPLUGHDRS)	\
1285	$(ROOTHOTPLUGPCIHDRS)	\
1286	$(ROOTRSMHDRS)		\
1287	$(ROOTTSOLHDRS)		\
1288	$($(MACH)_ROOTHDRS)
1289
1290all_h: $(GENHDRS)
1291
1292priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1293	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1294
1295priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1296	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1297
1298usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1299	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1300
1301LVMDERIVED_H:
1302	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1303
1304clean:
1305	$(RM) $(GENHDRS)
1306
1307clobber:	clean
1308
1309check:	$(CHECKHDRS)
1310
1311FRC:
1312
1313# EXPORT DELETE START
1314EXPORT_SRC:
1315	$(RM) wanboot_impl.h+ Makefile+
1316	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1317		< wanboot_impl.h > wanboot_impl.h+
1318	$(MV) wanboot_impl.h+ wanboot_impl.h
1319	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1320		< Makefile > Makefile+
1321	$(RM) Makefile
1322	$(MV) Makefile+ Makefile
1323	$(CHMOD) 444 Makefile wanboot_impl.h
1324# EXPORT DELETE END
1325