xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision 2ec7cc7fc084163eaed884efee9bbd322cc8951b)
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	dc_ki.h			\
146	ddi.h			\
147	ddifm.h			\
148	ddifm_impl.h		\
149	ddi_intr.h		\
150	ddi_intr_impl.h		\
151	ddi_impldefs.h		\
152	ddi_implfuncs.h		\
153	ddi_obsolete.h		\
154	ddi_timer.h		\
155	ddidevmap.h		\
156	ddidmareq.h		\
157	ddimapreq.h		\
158	ddipropdefs.h		\
159	dditypes.h		\
160	debug.h			\
161	des.h			\
162	devctl.h		\
163	devcache.h		\
164	devcache_impl.h		\
165	devfm.h			\
166	devid_cache.h		\
167	devinfo_impl.h		\
168	devops.h		\
169	devpolicy.h		\
170	devpoll.h		\
171	dirent.h		\
172	disp.h			\
173	dkbad.h			\
174	dkio.h			\
175	dklabel.h		\
176	dl.h			\
177	dlpi.h			\
178	dld.h			\
179	dld_impl.h		\
180	dld_ioc.h		\
181	dls.h			\
182	dls_mgmt.h		\
183	dls_impl.h		\
184	dma_i8237A.h            \
185	dnlc.h			\
186	door.h			\
187	door_data.h		\
188	door_impl.h		\
189	dtrace.h		\
190	dtrace_impl.h		\
191	dumpadm.h		\
192	dumphdr.h		\
193	ecppsys.h		\
194	ecppio.h                \
195	ecppreg.h               \
196	ecppvar.h               \
197	efi_partition.h		\
198	elf.h			\
199	elf_386.h		\
200	elf_SPARC.h		\
201	elf_notes.h		\
202	elf_amd64.h		\
203	elftypes.h		\
204	emul64.h		\
205	emul64cmd.h		\
206	emul64var.h		\
207	epm.h			\
208	errno.h			\
209	errorq.h		\
210	errorq_impl.h		\
211	esunddi.h		\
212	ethernet.h		\
213	euc.h			\
214	eucioctl.h		\
215	exacct.h		\
216	exacct_catalog.h	\
217	exacct_impl.h		\
218	exec.h			\
219	exechdr.h		\
220	extdirent.h		\
221	fault.h			\
222	fasttrap.h		\
223	fasttrap_impl.h		\
224	fbio.h			\
225	fbuf.h			\
226	fcntl.h			\
227	fct.h			\
228	fct_defines.h		\
229	fctio.h			\
230	fdbuffer.h		\
231	fdio.h			\
232	feature_tests.h		\
233	fem.h			\
234	file.h			\
235	filio.h			\
236	flock.h			\
237	flock_impl.h		\
238	fork.h			\
239	fss.h			\
240	fsspriocntl.h		\
241	fsid.h			\
242	fssnap.h                \
243	fssnap_if.h             \
244	fstyp.h			\
245	ftrace.h		\
246	fx.h			\
247	fxpriocntl.h		\
248	gfs.h			\
249	gld.h			\
250	gldpriv.h		\
251	group.h			\
252	hdio.h			\
253	hook.h			\
254	hook_event.h		\
255	hook_impl.h		\
256	hwconf.h		\
257	ia.h			\
258	iapriocntl.h		\
259	id32.h			\
260	idmap.h 		\
261	ieeefp.h		\
262	id_space.h		\
263	instance.h		\
264	int_const.h		\
265	int_fmtio.h		\
266	int_limits.h		\
267	int_types.h		\
268	inttypes.h		\
269	ioccom.h		\
270	ioctl.h			\
271	ipc.h			\
272	ipc_impl.h		\
273	ipc_rctl.h		\
274	isa_defs.h		\
275	iscsi_authclient.h	\
276	iscsi_authclientglue.h	\
277	iscsi_protocol.h	\
278	jioctl.h		\
279	kbd.h			\
280	kbdreg.h		\
281	kbio.h			\
282	kcpc.h			\
283	kdi.h			\
284	kdi_impl.h		\
285	kiconv.h		\
286	kiconv_big5_utf8.h	\
287	kiconv_cck_common.h	\
288	kiconv_cp950hkscs_utf8.h	\
289	kiconv_emea1.h		\
290	kiconv_emea2.h		\
291	kiconv_euckr_utf8.h	\
292	kiconv_euctw_utf8.h	\
293	kiconv_gb18030_utf8.h	\
294	kiconv_gb2312_utf8.h	\
295	kiconv_hkscs_utf8.h	\
296	kiconv_ja.h		\
297	kiconv_ja_jis_to_unicode.h	\
298	kiconv_ja_unicode_to_jis.h	\
299	kiconv_ko.h		\
300	kiconv_latin1.h		\
301	kiconv_sc.h		\
302	kiconv_tc.h		\
303	kiconv_uhc_utf8.h	\
304	kiconv_utf8_big5.h	\
305	kiconv_utf8_cp950hkscs.h	\
306	kiconv_utf8_euckr.h	\
307	kiconv_utf8_euctw.h	\
308	kiconv_utf8_gb18030.h	\
309	kiconv_utf8_gb2312.h	\
310	kiconv_utf8_hkscs.h	\
311	kiconv_utf8_uhc.h	\
312	kidmap.h		\
313	klpd.h			\
314	klwp.h			\
315	kmdb.h			\
316	kmem.h			\
317	kmem_impl.h		\
318	kobj.h			\
319	kobj_impl.h		\
320	ksocket.h		\
321	kstat.h			\
322	kstr.h			\
323	ksyms.h			\
324	ksynch.h		\
325	ldterm.h		\
326	lgrp.h			\
327	lgrp_user.h		\
328	libc_kernel.h		\
329	link.h			\
330	list.h			\
331	list_impl.h		\
332	llc1.h			\
333	loadavg.h		\
334	lock.h			\
335	lockfs.h		\
336	lockstat.h		\
337	lofi.h			\
338	log.h			\
339	logindmux.h		\
340	logindmux_impl.h	\
341	lwp.h			\
342	lwp_timer_impl.h	\
343	lwp_upimutex_impl.h	\
344	lpif.h			\
345	mac.h			\
346	mac_client.h		\
347	mac_client_impl.h	\
348	mac_flow.h		\
349	mac_flow_impl.h		\
350	mac_impl.h		\
351	mac_provider.h		\
352	mac_soft_ring.h		\
353	machelf.h		\
354	map.h			\
355	md4.h			\
356	md5.h			\
357	md5_consts.h		\
358	mdi_impldefs.h		\
359	mem.h			\
360	mem_config.h		\
361	memlist.h		\
362	mkdev.h			\
363	mhd.h			\
364	mii.h			\
365	miiregs.h		\
366	mixer.h			\
367	mman.h			\
368	mmapobj.h		\
369	mntent.h		\
370	mntio.h			\
371	mnttab.h		\
372	modctl.h		\
373	mode.h			\
374	model.h			\
375	modhash.h		\
376	modhash_impl.h		\
377	mount.h			\
378	mouse.h			\
379	msacct.h		\
380	msg.h			\
381	msg_impl.h		\
382	msio.h			\
383	msreg.h			\
384	mtio.h			\
385	multidata.h		\
386	multidata_impl.h	\
387	mutex.h			\
388	nbmlock.h		\
389	ndifm.h		\
390	ndi_impldefs.h		\
391	net80211.h		\
392	net80211_crypto.h	\
393	net80211_ht.h		\
394	net80211_proto.h	\
395	netconfig.h		\
396	neti.h			\
397	netstack.h		\
398	nexusdefs.h		\
399	note.h			\
400	nvpair.h                \
401	nvpair_impl.h           \
402	objfs.h			\
403	objfs_impl.h		\
404	ontrap.h                \
405	open.h			\
406	openpromio.h		\
407	panic.h			\
408	param.h			\
409	pathconf.h		\
410	pathname.h		\
411	pattr.h			\
412	queue.h			\
413	serializer.h		\
414	pbio.h			\
415	pccard.h		\
416	pci.h			\
417	pcie.h			\
418	pci_impl.h		\
419	pci_tools.h		\
420	pcmcia.h		\
421	pctypes.h		\
422	pem.h			\
423	pfmod.h			\
424	pg.h			\
425	pghw.h			\
426	physmem.h		\
427	pm.h			\
428	policy.h		\
429	poll.h			\
430	poll_impl.h		\
431	pool.h			\
432	pool_impl.h		\
433	pool_pset.h		\
434	port.h			\
435	port_impl.h		\
436	port_kernel.h		\
437	portif.h		\
438	ppmio.h                 \
439	priocntl.h		\
440	priv.h			\
441	priv_impl.h		\
442	prnio.h			\
443	proc.h			\
444	processor.h		\
445	procfs.h		\
446	procset.h		\
447	project.h		\
448	protosw.h		\
449	prsystm.h		\
450	pset.h			\
451	pshot.h			\
452	ptem.h			\
453	ptms.h			\
454	ptyvar.h		\
455	raidioctl.h		\
456	ramdisk.h		\
457	random.h		\
458	rctl.h			\
459	rctl_impl.h		\
460	reboot.h		\
461	refstr.h		\
462	refstr_impl.h		\
463	resource.h		\
464	rlioctl.h		\
465	rt.h			\
466	rtpriocntl.h		\
467	rwlock.h		\
468	rwlock_impl.h		\
469	rwstlock.h		\
470	sad.h			\
471	schedctl.h		\
472	sdt.h			\
473	select.h		\
474	sem.h			\
475	sem_impl.h		\
476	sema_impl.h		\
477	semaphore.h		\
478	sendfile.h		\
479	ser_sync.h		\
480	session.h		\
481	sha1.h			\
482	sha1_consts.h		\
483	sha2.h			\
484	sha2_consts.h		\
485	share.h			\
486	shm.h			\
487	shm_impl.h		\
488	sid.h			\
489	siginfo.h		\
490	signal.h		\
491	sleepq.h		\
492	smbios.h		\
493	smbios_impl.h		\
494	sobject.h		\
495	socket.h		\
496	socket_impl.h		\
497	socket_proto.h		\
498	socketvar.h		\
499	sockio.h		\
500	soundcard.h		\
501	squeue.h		\
502	squeue_impl.h		\
503	srn.h			\
504	sservice.h		\
505	stat.h			\
506	statfs.h		\
507	statvfs.h		\
508	stdbool.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	fifonode.h		\
803	hsfs_isospec.h		\
804	hsfs_node.h		\
805	hsfs_rrip.h		\
806	hsfs_spec.h		\
807	hsfs_susp.h		\
808	lofs_info.h		\
809	lofs_node.h		\
810	mntdata.h		\
811	namenode.h		\
812	pc_dir.h		\
813	pc_fs.h			\
814	pc_label.h		\
815	pc_node.h		\
816	pxfs_ki.h		\
817	snode.h			\
818	swapnode.h		\
819	tmp.h			\
820	tmpnode.h		\
821	udf_inode.h		\
822	udf_volume.h		\
823	ufs_acl.h		\
824	ufs_bio.h		\
825	ufs_filio.h		\
826	ufs_fs.h		\
827	ufs_fsdir.h		\
828	ufs_inode.h		\
829	ufs_lockfs.h		\
830	ufs_log.h		\
831	ufs_mount.h		\
832	ufs_panic.h		\
833	ufs_prot.h		\
834	ufs_quota.h		\
835	ufs_snap.h              \
836	ufs_trans.h		\
837	zfs.h			\
838	zut.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