xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision 8883f1c270cc8e33c18dd088e744840092b47bbb)
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	fd_debug.h		\
47	fdc.h			\
48	fdmedia.h		\
49	mouse.h			\
50	mse.h			\
51	vuidmice.h		\
52	ucode.h
53
54sparc_HDRS= 			\
55	mouse.h			\
56	scsi/targets/ssddef.h	\
57	$(MDESCHDRS)
58
59# Generated headers
60GENHDRS=			\
61	priv_const.h		\
62	priv_names.h		\
63	usb/usbdevs.h
64
65CHKHDRS=			\
66	acpi_drv.h		\
67	acct.h			\
68	acctctl.h		\
69	acl.h			\
70	acl_impl.h		\
71	aggr.h			\
72	aggr_impl.h		\
73	aio.h			\
74	aio_impl.h		\
75	aio_req.h		\
76	aiocb.h			\
77	ascii.h			\
78	asynch.h		\
79	atomic.h		\
80	attr.h			\
81	audio.h			\
82	audioio.h		\
83	autoconf.h		\
84	auxv.h			\
85	auxv_386.h		\
86	auxv_SPARC.h		\
87	avl.h			\
88	avl_impl.h		\
89	bitmap.h		\
90	bitset.h		\
91	bl.h			\
92	bmc_intf.h		\
93	bofi.h			\
94	bofi_impl.h		\
95	bpp_io.h		\
96	bootstat.h		\
97	brand.h			\
98	buf.h			\
99	bufmod.h		\
100	bustypes.h		\
101	byteorder.h		\
102	callb.h			\
103	callo.h			\
104	cpucaps.h		\
105	cpucaps_impl.h		\
106	ccompile.h		\
107	cdio.h			\
108	cladm.h			\
109	class.h			\
110	clconf.h		\
111	cmlb.h			\
112	cmn_err.h		\
113	compress.h		\
114	condvar.h		\
115	condvar_impl.h		\
116	conf.h			\
117	consdev.h		\
118	console.h		\
119        consplat.h              \
120	vt.h			\
121	vtdaemon.h		\
122	kd.h			\
123	contract.h		\
124	contract_impl.h		\
125	copyops.h		\
126	core.h			\
127	corectl.h		\
128	cpc_impl.h		\
129	cpc_pcbe.h		\
130	cpr.h			\
131	cpupart.h		\
132	cpuvar.h		\
133	crc32.h			\
134	cred.h			\
135	cred_impl.h		\
136	crtctl.h		\
137	cryptmod.h		\
138	csiioctl.h		\
139	ctf.h			\
140	ctfs.h			\
141	ctfs_impl.h		\
142	ctf_api.h		\
143	ctype.h			\
144	cyclic.h		\
145	cyclic_impl.h		\
146	dacf.h			\
147	dacf_impl.h		\
148	dc_ki.h			\
149	ddi.h			\
150	ddifm.h			\
151	ddifm_impl.h		\
152	ddi_intr.h		\
153	ddi_intr_impl.h		\
154	ddi_impldefs.h		\
155	ddi_implfuncs.h		\
156	ddi_obsolete.h		\
157	ddi_timer.h		\
158	ddidevmap.h		\
159	ddidmareq.h		\
160	ddimapreq.h		\
161	ddipropdefs.h		\
162	dditypes.h		\
163	debug.h			\
164	des.h			\
165	devctl.h		\
166	devcache.h		\
167	devcache_impl.h		\
168	devfm.h			\
169	devid_cache.h		\
170	devinfo_impl.h		\
171	devops.h		\
172	devpolicy.h		\
173	devpoll.h		\
174	dirent.h		\
175	disp.h			\
176	dkbad.h			\
177	dkio.h			\
178	dklabel.h		\
179	dl.h			\
180	dlpi.h			\
181	dld.h			\
182	dld_impl.h		\
183	dld_ioc.h		\
184	dls.h			\
185	dls_mgmt.h		\
186	dls_impl.h		\
187	dma_i8237A.h            \
188	dnlc.h			\
189	door.h			\
190	door_data.h		\
191	door_impl.h		\
192	dtrace.h		\
193	dtrace_impl.h		\
194	dumpadm.h		\
195	dumphdr.h		\
196	ecppsys.h		\
197	ecppio.h                \
198	ecppreg.h               \
199	ecppvar.h               \
200	efi_partition.h		\
201	elf.h			\
202	elf_386.h		\
203	elf_SPARC.h		\
204	elf_notes.h		\
205	elf_amd64.h		\
206	elftypes.h		\
207	emul64.h		\
208	emul64cmd.h		\
209	emul64var.h		\
210	epm.h			\
211	errno.h			\
212	errorq.h		\
213	errorq_impl.h		\
214	esunddi.h		\
215	ethernet.h		\
216	euc.h			\
217	eucioctl.h		\
218	exacct.h		\
219	exacct_catalog.h	\
220	exacct_impl.h		\
221	exec.h			\
222	exechdr.h		\
223	extdirent.h		\
224	fault.h			\
225	fasttrap.h		\
226	fasttrap_impl.h		\
227	fbio.h			\
228	fbuf.h			\
229	fcntl.h			\
230	fct.h			\
231	fct_defines.h		\
232	fctio.h			\
233	fdbuffer.h		\
234	fdio.h			\
235	feature_tests.h		\
236	fem.h			\
237	file.h			\
238	filio.h			\
239	flock.h			\
240	flock_impl.h		\
241	fork.h			\
242	fss.h			\
243	fsspriocntl.h		\
244	fsid.h			\
245	fssnap.h                \
246	fssnap_if.h             \
247	fstyp.h			\
248	ftrace.h		\
249	fx.h			\
250	fxpriocntl.h		\
251	gfs.h			\
252	gld.h			\
253	gldpriv.h		\
254	group.h			\
255	hdio.h			\
256	hook.h			\
257	hook_event.h		\
258	hook_impl.h		\
259	hwconf.h		\
260	ia.h			\
261	iapriocntl.h		\
262	id32.h			\
263	idmap.h 		\
264	ieeefp.h		\
265	id_space.h		\
266	instance.h		\
267	int_const.h		\
268	int_fmtio.h		\
269	int_limits.h		\
270	int_types.h		\
271	inttypes.h		\
272	ioccom.h		\
273	ioctl.h			\
274	ipc.h			\
275	ipc_impl.h		\
276	ipc_rctl.h		\
277	isa_defs.h		\
278	iscsi_authclient.h	\
279	iscsi_authclientglue.h	\
280	iscsi_protocol.h	\
281	jioctl.h		\
282	kbd.h			\
283	kbdreg.h		\
284	kbio.h			\
285	kcpc.h			\
286	kdi.h			\
287	kdi_impl.h		\
288	kiconv.h		\
289	kiconv_big5_utf8.h	\
290	kiconv_cck_common.h	\
291	kiconv_cp950hkscs_utf8.h	\
292	kiconv_emea1.h		\
293	kiconv_emea2.h		\
294	kiconv_euckr_utf8.h	\
295	kiconv_euctw_utf8.h	\
296	kiconv_gb18030_utf8.h	\
297	kiconv_gb2312_utf8.h	\
298	kiconv_hkscs_utf8.h	\
299	kiconv_ja.h		\
300	kiconv_ja_jis_to_unicode.h	\
301	kiconv_ja_unicode_to_jis.h	\
302	kiconv_ko.h		\
303	kiconv_latin1.h		\
304	kiconv_sc.h		\
305	kiconv_tc.h		\
306	kiconv_uhc_utf8.h	\
307	kiconv_utf8_big5.h	\
308	kiconv_utf8_cp950hkscs.h	\
309	kiconv_utf8_euckr.h	\
310	kiconv_utf8_euctw.h	\
311	kiconv_utf8_gb18030.h	\
312	kiconv_utf8_gb2312.h	\
313	kiconv_utf8_hkscs.h	\
314	kiconv_utf8_uhc.h	\
315	kidmap.h		\
316	klpd.h			\
317	klwp.h			\
318	kmdb.h			\
319	kmem.h			\
320	kmem_impl.h		\
321	kobj.h			\
322	kobj_impl.h		\
323	ksocket.h		\
324	kstat.h			\
325	kstr.h			\
326	ksyms.h			\
327	ksynch.h		\
328	ldterm.h		\
329	lgrp.h			\
330	lgrp_user.h		\
331	libc_kernel.h		\
332	link.h			\
333	list.h			\
334	list_impl.h		\
335	llc1.h			\
336	loadavg.h		\
337	lock.h			\
338	lockfs.h		\
339	lockstat.h		\
340	lofi.h			\
341	log.h			\
342	logindmux.h		\
343	logindmux_impl.h	\
344	lwp.h			\
345	lwp_timer_impl.h	\
346	lwp_upimutex_impl.h	\
347	lpif.h			\
348	mac.h			\
349	mac_client.h		\
350	mac_client_impl.h	\
351	mac_flow.h		\
352	mac_flow_impl.h		\
353	mac_impl.h		\
354	mac_provider.h		\
355	mac_soft_ring.h		\
356	machelf.h		\
357	map.h			\
358	md4.h			\
359	md5.h			\
360	md5_consts.h		\
361	mdi_impldefs.h		\
362	mem.h			\
363	mem_config.h		\
364	memlist.h		\
365	mkdev.h			\
366	mhd.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_proto.h	\
396	netconfig.h		\
397	neti.h			\
398	netstack.h		\
399	nexusdefs.h		\
400	note.h			\
401	nvpair.h                \
402	nvpair_impl.h           \
403	objfs.h			\
404	objfs_impl.h		\
405	ontrap.h                \
406	open.h			\
407	openpromio.h		\
408	panic.h			\
409	param.h			\
410	pathconf.h		\
411	pathname.h		\
412	pattr.h			\
413	queue.h			\
414	serializer.h		\
415	pbio.h			\
416	pccard.h		\
417	pci.h			\
418	pcie.h			\
419	pci_impl.h		\
420	pci_tools.h		\
421	pcmcia.h		\
422	pctypes.h		\
423	pem.h			\
424	pfmod.h			\
425	pg.h			\
426	pghw.h			\
427	physmem.h		\
428	pm.h			\
429	policy.h		\
430	poll.h			\
431	poll_impl.h		\
432	pool.h			\
433	pool_impl.h		\
434	pool_pset.h		\
435	port.h			\
436	port_impl.h		\
437	port_kernel.h		\
438	portif.h		\
439	ppmio.h                 \
440	priocntl.h		\
441	priv.h			\
442	priv_impl.h		\
443	prnio.h			\
444	proc.h			\
445	processor.h		\
446	procfs.h		\
447	procset.h		\
448	project.h		\
449	protosw.h		\
450	prsystm.h		\
451	pset.h			\
452	pshot.h			\
453	ptem.h			\
454	ptms.h			\
455	ptyvar.h		\
456	raidioctl.h		\
457	ramdisk.h		\
458	random.h		\
459	rctl.h			\
460	rctl_impl.h		\
461	reboot.h		\
462	refstr.h		\
463	refstr_impl.h		\
464	resource.h		\
465	rlioctl.h		\
466	rt.h			\
467	rtpriocntl.h		\
468	rwlock.h		\
469	rwlock_impl.h		\
470	rwstlock.h		\
471	sad.h			\
472	schedctl.h		\
473	sdt.h			\
474	select.h		\
475	sem.h			\
476	sem_impl.h		\
477	sema_impl.h		\
478	semaphore.h		\
479	sendfile.h		\
480	ser_sync.h		\
481	session.h		\
482	sha1.h			\
483	sha1_consts.h		\
484	sha2.h			\
485	sha2_consts.h		\
486	share.h			\
487	shm.h			\
488	shm_impl.h		\
489	sid.h			\
490	siginfo.h		\
491	signal.h		\
492	sleepq.h		\
493	smbios.h		\
494	smbios_impl.h		\
495	sobject.h		\
496	socket.h		\
497	socket_impl.h		\
498	socket_proto.h		\
499	socketvar.h		\
500	sockio.h		\
501	soundcard.h		\
502	squeue.h		\
503	squeue_impl.h		\
504	srn.h			\
505	sservice.h		\
506	stat.h			\
507	statfs.h		\
508	statvfs.h		\
509	stdint.h		\
510	stermio.h		\
511	stmf.h			\
512	stmf_defines.h		\
513	stmf_ioctl.h		\
514	stmf_sbd_ioctl.h	\
515	stream.h		\
516	strft.h			\
517	strlog.h		\
518	strmdep.h		\
519	stropts.h		\
520	strredir.h		\
521	strstat.h		\
522	strsubr.h		\
523	strsun.h		\
524	strtty.h		\
525	sunddi.h		\
526	sunldi.h		\
527	sunldi_impl.h		\
528	sunmdi.h		\
529	sunndi.h		\
530	sunos_dhcp_class.h	\
531	sunpm.h			\
532	suntpi.h		\
533	suntty.h		\
534	swap.h			\
535	synch.h			\
536	syscall.h		\
537	sysconf.h		\
538	sysconfig.h		\
539	sysevent.h		\
540	sysevent_impl.h         \
541	sysinfo.h		\
542	syslog.h		\
543	sysmacros.h		\
544	sysmsg_impl.h		\
545	systeminfo.h		\
546	systm.h			\
547	task.h			\
548	taskq.h			\
549	taskq_impl.h		\
550	t_kuser.h		\
551	t_lock.h		\
552	telioctl.h		\
553	termio.h		\
554	termios.h		\
555	termiox.h		\
556	thread.h		\
557	ticlts.h		\
558	ticots.h		\
559	ticotsord.h		\
560	tihdr.h			\
561	time.h			\
562	time_impl.h		\
563	time_std_impl.h		\
564	timeb.h			\
565	timer.h			\
566	times.h			\
567	timex.h			\
568	timod.h			\
569	tirdwr.h		\
570	tiuser.h		\
571	tl.h			\
572	tnf.h			\
573	tnf_com.h		\
574	tnf_probe.h		\
575	tnf_writer.h		\
576	todio.h			\
577	tpicommon.h		\
578	ts.h			\
579	tspriocntl.h		\
580	ttcompat.h		\
581	ttold.h			\
582	tty.h			\
583	ttychars.h		\
584	ttydev.h		\
585	tuneable.h		\
586	turnstile.h		\
587	types.h			\
588	types32.h		\
589	tzfile.h		\
590	u8_textprep.h		\
591	u8_textprep_data.h	\
592	uadmin.h		\
593	ucred.h			\
594	uio.h			\
595	ulimit.h		\
596	un.h			\
597	unistd.h		\
598	user.h			\
599	ustat.h			\
600	utime.h			\
601	utsname.h		\
602	utssys.h		\
603	uuid.h			\
604	va_impl.h		\
605	va_list.h		\
606	var.h			\
607	varargs.h		\
608	vfs.h			\
609	vfs_opreg.h		\
610	vfstab.h		\
611	vgareg.h		\
612	videodev2.h		\
613	visual_io.h		\
614	vlan.h			\
615	vm.h			\
616	vm_usage.h		\
617	vmem.h			\
618	vmem_impl.h		\
619	vmmeter.h		\
620	vmsystm.h		\
621	vnic.h			\
622	vnic_impl.h		\
623	vnode.h			\
624	vscan.h			\
625	vtoc.h			\
626	vtrace.h		\
627	vuid_event.h		\
628	vuid_wheel.h		\
629	vuid_queue.h		\
630	vuid_state.h		\
631	vuid_store.h		\
632	wait.h			\
633	waitq.h			\
634	wanboot_impl.h		\
635	watchpoint.h		\
636	winlockio.h		\
637	zcons.h			\
638	zone.h			\
639	xti_inet.h		\
640	xti_osi.h		\
641	xti_xtiopt.h		\
642	zmod.h
643
644HDRS=				\
645	$(GENHDRS)		\
646	$(CHKHDRS)
647
648AUDIOHDRS=			\
649	ac97.h			\
650	audio_common.h		\
651	audio_driver.h		\
652	audio_oss.h		\
653	g711.h
654
655AVHDRS=				\
656	iec61883.h
657
658BSCHDRS=			\
659	bscbus.h		\
660	bscv_impl.h		\
661	lom_ebuscodes.h		\
662	lom_io.h		\
663	lom_priv.h		\
664	lombus.h
665
666MDESCHDRS=			\
667	mdesc.h			\
668	mdesc_impl.h
669
670CPUDRVHDRS=			\
671	cpudrv.h
672
673CRYPTOHDRS=			\
674	elfsign.h		\
675	ioctl.h			\
676	ioctladmin.h		\
677	common.h		\
678	impl.h			\
679	spi.h			\
680	api.h			\
681	ops_impl.h		\
682	sched_impl.h
683
684DCAMHDRS=			\
685	dcam1394_io.h
686
687IBHDRS=			\
688	ib_types.h	\
689	ib_pkt_hdrs.h
690
691IBTLHDRS=		\
692	ibtl_types.h	\
693	ibtl_status.h	\
694	ibti.h		\
695	ibti_cm.h	\
696	ibci.h		\
697	ibti_common.h	\
698	ibvti.h		\
699	ibtl_ci_types.h
700
701IBTLIMPLHDRS=		\
702	ibtl_util.h
703
704IBNEXHDRS=		\
705	ibnex_devctl.h
706
707IBMFHDRS=		\
708	ibmf.h		\
709	ibmf_msg.h	\
710	ibmf_saa.h	\
711	ibmf_utils.h
712
713IBMGTHDRS=		\
714	ib_dm_attr.h	\
715	ib_mad.h	\
716	sm_attr.h	\
717	sa_recs.h
718
719IBDHDRS=		\
720	ibd.h
721
722TAVORHDRS=		\
723	tavor_ioctl.h
724
725HERMONHDRS=		\
726	hermon_ioctl.h
727
728IDMHDRS=		\
729	idm.h		\
730	idm_impl.h	\
731	idm_so.h	\
732	idm_text.h	\
733	idm_transport.h \
734	idm_conn_sm.h
735
736ISCSITHDRS=		\
737	radius_packet.h		\
738	radius_protocol.h	\
739	chap.h			\
740	isns_protocol.h		\
741	iscsi_if.h		\
742	iscsit_common.h
743
744ISOHDRS=			\
745	signal_iso.h
746
747DERIVED_LVMHDRS=	\
748	md_mdiox.h		\
749	md_basic.h		\
750	mdmed.h			\
751	md_mhdx.h		\
752	mdmn_commd.h
753
754LVMHDRS=			\
755	md_convert.h		\
756	md_crc.h		\
757	md_hotspares.h		\
758	md_mddb.h		\
759	md_mirror.h		\
760	md_mirror_shared.h	\
761	md_names.h		\
762	md_notify.h		\
763	md_raid.h		\
764	md_rename.h		\
765	md_sp.h			\
766	md_stripe.h		\
767	md_trans.h		\
768	mdio.h			\
769	mdvar.h
770
771ALL_LVMHDRS=			\
772	$(LVMHDRS)		\
773	$(DERIVED_LVMHDRS)
774
775FMHDRS=				\
776	protocol.h		\
777	util.h
778
779FMFSHDRS=			\
780	zfs.h
781
782FMIOHDRS=			\
783	ddi.h			\
784	disk.h			\
785	pci.h			\
786	scsi.h			\
787	sun4upci.h		\
788	opl_mc_fm.h
789
790FSHDRS=				\
791	autofs.h		\
792	cachefs_dir.h		\
793	cachefs_dlog.h		\
794	cachefs_filegrp.h	\
795	cachefs_fs.h		\
796	cachefs_fscache.h	\
797	cachefs_ioctl.h		\
798	cachefs_log.h		\
799	decomp.h		\
800	dv_node.h		\
801	sdev_impl.h		\
802	sdev_node.h		\
803	fifonode.h		\
804	hsfs_isospec.h		\
805	hsfs_node.h		\
806	hsfs_rrip.h		\
807	hsfs_spec.h		\
808	hsfs_susp.h		\
809	lofs_info.h		\
810	lofs_node.h		\
811	mntdata.h		\
812	namenode.h		\
813	pc_dir.h		\
814	pc_fs.h			\
815	pc_label.h		\
816	pc_node.h		\
817	pxfs_ki.h		\
818	snode.h			\
819	swapnode.h		\
820	tmp.h			\
821	tmpnode.h		\
822	udf_inode.h		\
823	udf_volume.h		\
824	ufs_acl.h		\
825	ufs_bio.h		\
826	ufs_filio.h		\
827	ufs_fs.h		\
828	ufs_fsdir.h		\
829	ufs_inode.h		\
830	ufs_lockfs.h		\
831	ufs_log.h		\
832	ufs_mount.h		\
833	ufs_panic.h		\
834	ufs_prot.h		\
835	ufs_quota.h		\
836	ufs_snap.h              \
837	ufs_trans.h		\
838	zfs.h
839
840PCMCIAHDRS=		\
841	pcata.h		\
842	pcgld.h		\
843	pcramio.h	\
844	pcramvar.h	\
845	pcser_conf.h	\
846	pcser_io.h	\
847	pcser_reg.h	\
848	pcser_manuspec.h \
849	pcser_var.h
850
851SCSIHDRS=		\
852	scsi.h		\
853	scsi_address.h	\
854	scsi_ctl.h	\
855	scsi_fm.h	\
856	scsi_params.h	\
857	scsi_pkt.h	\
858	scsi_resource.h	\
859	scsi_types.h	\
860	scsi_watch.h
861
862SCSICONFHDRS=		\
863	autoconf.h	\
864	device.h
865
866SCSIGENHDRS=		\
867	commands.h	\
868	dad_mode.h	\
869	inquiry.h	\
870	message.h	\
871	mode.h		\
872	persist.h	\
873	sense.h		\
874	smp_frames.h	\
875	status.h
876
877SCSIIMPLHDRS=		\
878	commands.h	\
879	inquiry.h	\
880	mode.h		\
881	sas_transport.h	\
882	sense.h		\
883	services.h	\
884	status.h	\
885	transport.h	\
886	scsi_reset_notify.h \
887	spc3_types.h	\
888	types.h		\
889	uscsi.h		\
890	usmp.h
891
892SCSITARGETSHDRS=	\
893	ses.h		\
894	sesio.h		\
895	sgendef.h	\
896	stdef.h		\
897	sddef.h		\
898	smp.h
899
900SCSIADHDRS=		\
901	blk2scsa.h
902
903SCSICADHDRS=
904
905SCSIISCSIHDRS=		\
906	iscsi_door.h	\
907	iscsi_if.h
908
909SCSIVHCIHDRS=		\
910	scsi_vhci.h	\
911	mpapi_impl.h	\
912	mpapi_scsi_vhci.h
913
914SDCARDHDRS=		\
915	sda.h		\
916	sda_impl.h	\
917	sda_ioctl.h
918
919FC4HDRS=			\
920	fc_transport.h	\
921	linkapp.h	\
922	fc.h		\
923	fcp.h		\
924	fcal_transport.h \
925	fcal.h		\
926	fcal_linkapp.h	\
927	fcio.h
928
929FCHDRS=			\
930	fc.h		\
931	fcio.h		\
932	fc_types.h	\
933	fc_appif.h
934
935FCIMPLHDRS=		\
936	fc_error.h	\
937	fcph.h
938
939FCULPHDRS=		\
940	fcp_util.h	\
941	fcsm.h
942
943SATAGENHDRS=		\
944	sata_hba.h	\
945	sata_defs.h	\
946	sata_cfgadm.h
947
948SYSEVENTHDRS=		\
949	ap_driver.h     \
950	dev.h		\
951	domain.h        \
952	dr.h            \
953	env.h           \
954	eventdefs.h	\
955	ipmp.h		\
956	pwrctl.h	\
957	svm.h
958
959CONTRACTHDRS=		\
960	process.h	\
961	process_impl.h	\
962	device.h	\
963	device_impl.h
964
965USBHDRS=	\
966	usba.h	\
967	usbai.h
968
969UWBHDRS=	\
970	uwb.h	\
971	uwbai.h
972
973UWBAHDRS=	\
974	uwba.h
975
976USBAUDHDRS=           \
977	usb_audio.h
978
979USBHUBDHDRS=		\
980	hub.h		\
981	hubd_impl.h
982
983USBHIDHDRS=		\
984	hid.h
985
986USBHWARCHDRS=		\
987	hwarc.h
988
989USBMSHDRS=		\
990	usb_bulkonly.h	\
991	usb_cbi.h
992
993USBPRNHDRS=           \
994	usb_printer.h
995
996USBCDCHDRS=		\
997	usb_cdc.h
998
999USBVIDHDRS=           \
1000	usbvc.h
1001
1002UGENHDRS=           \
1003	usb_ugen.h
1004
1005HOTPLUGHDRS=	\
1006	hpcsvc.h	\
1007	hpctrl.h
1008
1009HOTPLUGPCIHDRS=	\
1010	pcicfg.h	\
1011	pcihp.h
1012
1013RSMHDRS= \
1014	rsm.h	\
1015	rsm_common.h	\
1016	rsmapi_common.h \
1017	rsmpi.h	\
1018	rsmpi_driver.h	\
1019	rsmka_path_int.h
1020
1021TSOLHDRS=		\
1022	label.h		\
1023	label_macro.h	\
1024	priv.h		\
1025	tndb.h		\
1026	tsyscall.h
1027
1028I1394HDRS=		\
1029	cmd1394.h	\
1030	id1394.h	\
1031	ieee1212.h	\
1032	ieee1394.h	\
1033	ixl1394.h	\
1034	s1394_impl.h	\
1035	t1394.h
1036
1037# "cmdk" headers used on sparc
1038SDKTPHDRS=		\
1039	dadkio.h	\
1040	fdisk.h
1041
1042# "cmdk" headers used on i386
1043DKTPHDRS=		\
1044	altsctr.h	\
1045	bbh.h		\
1046	cm.h		\
1047	cmdev.h		\
1048	cmdk.h		\
1049	cmpkt.h		\
1050	controller.h	\
1051	dadev.h		\
1052	dadk.h		\
1053	dadkio.h	\
1054	fctypes.h	\
1055	fdisk.h		\
1056	flowctrl.h	\
1057	gda.h		\
1058	quetypes.h	\
1059	queue.h		\
1060	tgcom.h		\
1061	tgdk.h
1062
1063# "pc" header files used on i386
1064PCHDRS=			\
1065	avintr.h	\
1066	dma_engine.h	\
1067	i8272A.h	\
1068	pcic_reg.h	\
1069	pcic_var.h	\
1070	pic.h		\
1071	pit.h		\
1072	rtc.h
1073
1074NXGEHDRS=			\
1075	nxge.h			\
1076	nxge_common.h		\
1077	nxge_common_impl.h	\
1078	nxge_defs.h		\
1079	nxge_hw.h		\
1080	nxge_impl.h		\
1081	nxge_ipp.h		\
1082	nxge_ipp_hw.h		\
1083	nxge_mac.h		\
1084	nxge_mac_hw.h		\
1085	nxge_fflp.h		\
1086	nxge_fflp_hw.h		\
1087	nxge_mii.h		\
1088	nxge_rxdma.h		\
1089	nxge_rxdma_hw.h		\
1090	nxge_txc.h		\
1091	nxge_txc_hw.h		\
1092	nxge_txdma.h		\
1093	nxge_txdma_hw.h		\
1094	nxge_virtual.h		\
1095	nxge_espc.h
1096
1097include Makefile.syshdrs
1098
1099dcam/%.check:	dcam/%.h
1100	$(DOT_H_CHECK)
1101
1102CHECKHDRS=						\
1103	$($(MACH)_HDRS:%.h=%.check)			\
1104	$(AUDIOHDRS:%.h=audio/%.check)			\
1105	$(AVHDRS:%.h=av/%.check)			\
1106	$(BSCHDRS:%.h=%.check)				\
1107	$(CHKHDRS:%.h=%.check)				\
1108	$(CPUDRVHDRS:%.h=%.check)			\
1109	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1110	$(DCAMHDRS:%.h=dcam/%.check)			\
1111	$(FC4HDRS:%.h=fc4/%.check)			\
1112	$(FCHDRS:%.h=fibre-channel/%.check)		\
1113	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1114	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1115	$(IBHDRS:%.h=ib/%.check)			\
1116	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1117	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1118	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1119	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1120	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1121	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1122	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1123	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1124	$(IDMHDRS:%.h=idm/%.check)			\
1125	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1126	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1127	$(ISOHDRS:%.h=iso/%.check)			\
1128	$(FMHDRS:%.h=fm/%.check)			\
1129	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1130	$(FMIOHDRS:%.h=fm/io/%.check)			\
1131	$(FSHDRS:%.h=fs/%.check)			\
1132	$(LVMHDRS:%.h=lvm/%.check)			\
1133	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1134	$(SCSIHDRS:%.h=scsi/%.check)			\
1135	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1136	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1137	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1138	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1139	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1140	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1141	$(SATAGENHDRS:%.h=sata/%.check)			\
1142	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1143	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1144	$(CONTRACTHDRS:%.h=contract/%.check)            \
1145	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1146	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1147	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1148	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1149	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1150	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1151	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1152	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1153	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1154	$(USBHDRS:%.h=usb/%.check)                      \
1155	$(UWBHDRS:%.h=uwb/%.check)                      \
1156	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1157	$(I1394HDRS:%.h=1394/%.check)			\
1158	$(RSMHDRS:%.h=rsm/%.check)			\
1159	$(TSOLHDRS:%.h=tsol/%.check)			\
1160	$(NXGEHDRS:%.h=nxge/%.check)
1161
1162
1163.KEEP_STATE:
1164
1165.PARALLEL:			\
1166	$(CHECKHDRS)		\
1167	$(ROOTHDRS)		\
1168	$(ROOTAUDHDRS)		\
1169	$(ROOTAVHDRS)		\
1170	$(ROOTCRYPTOHDRS)	\
1171	$(ROOTDCAMHDRS)		\
1172	$(ROOTISOHDRS)		\
1173	$(ROOTIDMHDRS)		\
1174	$(ROOTISCSIHDRS)	\
1175	$(ROOTISCSITHDRS)	\
1176	$(ROOTFC4HDRS)		\
1177	$(ROOTFCHDRS)		\
1178	$(ROOTFCIMPLHDRS)	\
1179	$(ROOTFCULPHDRS)	\
1180	$(ROOTFMHDRS)		\
1181	$(ROOTFMIOHDRS)		\
1182	$(ROOTFMFSHDRS)		\
1183	$(ROOTFSHDRS)		\
1184	$(ROOTIBDHDRS)		\
1185	$(ROOTIBHDRS)		\
1186	$(ROOTIBTLHDRS)		\
1187	$(ROOTIBTLIMPLHDRS)	\
1188	$(ROOTIBNEXHDRS)	\
1189	$(ROOTIBMGTHDRS)	\
1190	$(ROOTIBMFHDRS)		\
1191	$(ROOTTAVORHDRS)	\
1192	$(ROOTHERMONHDRS)	\
1193	$(ROOTLVMHDRS)		\
1194	$(ROOTPCMCIAHDRS)	\
1195	$(ROOTSCSIHDRS)		\
1196	$(ROOTSCSIADHDRS)	\
1197	$(ROOTSCSICONFHDRS)	\
1198	$(ROOTSCSIISCSIHDRS)	\
1199	$(ROOTSCSIGENHDRS)	\
1200	$(ROOTSCSIIMPLHDRS)	\
1201	$(ROOTSCSIVHCIHDRS)	\
1202	$(ROOTSDCARDHDRS)	\
1203	$(ROOTSYSEVENTHDRS)     \
1204	$(ROOTCONTRACTHDRS)     \
1205	$(ROOTUSBHDRS)		\
1206	$(ROOTUWBHDRS)		\
1207	$(ROOTUWBAHDRS)		\
1208	$(ROOTUSBAUDHDRS)	\
1209	$(ROOTUSBHUBDHDRS)	\
1210	$(ROOTUSBHIDHDRS)	\
1211	$(ROOTUSBHRCHDRS)	\
1212	$(ROOTUSBMSHDRS)	\
1213	$(ROOTUSBPRNHDRS)       \
1214	$(ROOTUSBCDCHDRS)       \
1215	$(ROOTUSBVIDHDRS)       \
1216	$(ROOTUGENHDRS)		\
1217	$(ROOT1394HDRS)         \
1218	$(ROOTHOTPLUGHDRS)	\
1219	$(ROOTHOTPLUGPCIHDRS)	\
1220	$(ROOTRSMHDRS)		\
1221	$(ROOTTSOLHDRS)		\
1222	$($(MACH)_ROOTHDRS)
1223
1224
1225install_h:			\
1226	$(ROOTDIRS)		\
1227	LVMDERIVED_H		\
1228	.WAIT			\
1229	$(ROOTHDRS)		\
1230	$(ROOTAUDHDRS)		\
1231	$(ROOTAVHDRS)		\
1232	$(ROOTCRYPTOHDRS)	\
1233	$(ROOTDCAMHDRS)		\
1234	$(ROOTISOHDRS)		\
1235	$(ROOTIDMHDRS)		\
1236	$(ROOTISCSIHDRS)	\
1237	$(ROOTISCSITHDRS)	\
1238	$(ROOTFC4HDRS)		\
1239	$(ROOTFCHDRS)		\
1240	$(ROOTFCIMPLHDRS)	\
1241	$(ROOTFCULPHDRS)	\
1242	$(ROOTFMHDRS)		\
1243	$(ROOTFMFSHDRS)		\
1244	$(ROOTFMIOHDRS)		\
1245	$(ROOTFSHDRS)		\
1246	$(ROOTIBDHDRS)		\
1247	$(ROOTIBHDRS)		\
1248	$(ROOTIBTLHDRS)		\
1249	$(ROOTIBTLIMPLHDRS)	\
1250	$(ROOTIBNEXHDRS)	\
1251	$(ROOTIBMGTHDRS)	\
1252	$(ROOTIBMFHDRS)		\
1253	$(ROOTTAVORHDRS)	\
1254	$(ROOTHERMONHDRS)	\
1255	$(ROOTLVMHDRS)		\
1256	$(ROOTPCMCIAHDRS)	\
1257	$(ROOTSCSIHDRS)		\
1258	$(ROOTSCSIADHDRS)	\
1259	$(ROOTSCSIISCSIHDRS)	\
1260	$(ROOTSCSICONFHDRS)	\
1261	$(ROOTSCSIGENHDRS)	\
1262	$(ROOTSCSIIMPLHDRS)	\
1263	$(ROOTSCSIVHCIHDRS)     \
1264	$(ROOTSDCARDHDRS)	\
1265	$(ROOTSYSEVENTHDRS)     \
1266	$(ROOTCONTRACTHDRS)     \
1267	$(ROOTUWBHDRS)		\
1268	$(ROOTUWBAHDRS)		\
1269	$(ROOTUSBHDRS)		\
1270	$(ROOTUSBAUDHDRS)	\
1271	$(ROOTUSBHUBDHDRS)	\
1272	$(ROOTUSBHIDHDRS)	\
1273	$(ROOTUSBHRCHDRS)	\
1274	$(ROOTUSBMSHDRS)	\
1275	$(ROOTUSBPRNHDRS)       \
1276	$(ROOTUSBCDCHDRS)       \
1277	$(ROOTUSBVIDHDRS)       \
1278	$(ROOTUGENHDRS)		\
1279	$(ROOT1394HDRS)         \
1280	$(ROOTHOTPLUGHDRS)	\
1281	$(ROOTHOTPLUGPCIHDRS)	\
1282	$(ROOTRSMHDRS)		\
1283	$(ROOTTSOLHDRS)		\
1284	$($(MACH)_ROOTHDRS)
1285
1286all_h: $(GENHDRS)
1287
1288priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1289	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1290
1291priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1292	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1293
1294usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1295	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1296
1297LVMDERIVED_H:
1298	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1299
1300check:	$(CHECKHDRS)
1301
1302FRC:
1303
1304# EXPORT DELETE START
1305EXPORT_SRC:
1306	$(RM) wanboot_impl.h+ Makefile+
1307	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1308		< wanboot_impl.h > wanboot_impl.h+
1309	$(MV) wanboot_impl.h+ wanboot_impl.h
1310	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1311		< Makefile > Makefile+
1312	$(RM) Makefile
1313	$(MV) Makefile+ Makefile
1314	$(CHMOD) 444 Makefile wanboot_impl.h
1315# EXPORT DELETE END
1316