xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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_proto.h	\
394	netconfig.h		\
395	neti.h			\
396	netstack.h		\
397	nexusdefs.h		\
398	note.h			\
399	nvpair.h                \
400	nvpair_impl.h           \
401	objfs.h			\
402	objfs_impl.h		\
403	ontrap.h                \
404	open.h			\
405	openpromio.h		\
406	panic.h			\
407	param.h			\
408	pathconf.h		\
409	pathname.h		\
410	pattr.h			\
411	queue.h			\
412	serializer.h		\
413	pbio.h			\
414	pccard.h		\
415	pci.h			\
416	pcie.h			\
417	pci_impl.h		\
418	pci_tools.h		\
419	pcmcia.h		\
420	pctypes.h		\
421	pem.h			\
422	pfmod.h			\
423	pg.h			\
424	pghw.h			\
425	physmem.h		\
426	pm.h			\
427	policy.h		\
428	poll.h			\
429	poll_impl.h		\
430	pool.h			\
431	pool_impl.h		\
432	pool_pset.h		\
433	port.h			\
434	port_impl.h		\
435	port_kernel.h		\
436	portif.h		\
437	ppmio.h                 \
438	priocntl.h		\
439	priv.h			\
440	priv_impl.h		\
441	prnio.h			\
442	proc.h			\
443	processor.h		\
444	procfs.h		\
445	procset.h		\
446	project.h		\
447	protosw.h		\
448	prsystm.h		\
449	pset.h			\
450	pshot.h			\
451	ptem.h			\
452	ptms.h			\
453	ptyvar.h		\
454	raidioctl.h		\
455	ramdisk.h		\
456	random.h		\
457	rctl.h			\
458	rctl_impl.h		\
459	reboot.h		\
460	refstr.h		\
461	refstr_impl.h		\
462	resource.h		\
463	rlioctl.h		\
464	rt.h			\
465	rtpriocntl.h		\
466	rwlock.h		\
467	rwlock_impl.h		\
468	rwstlock.h		\
469	sad.h			\
470	schedctl.h		\
471	sdt.h			\
472	select.h		\
473	sem.h			\
474	sem_impl.h		\
475	sema_impl.h		\
476	semaphore.h		\
477	sendfile.h		\
478	ser_sync.h		\
479	session.h		\
480	sha1.h			\
481	sha1_consts.h		\
482	sha2.h			\
483	sha2_consts.h		\
484	share.h			\
485	shm.h			\
486	shm_impl.h		\
487	sid.h			\
488	siginfo.h		\
489	signal.h		\
490	sleepq.h		\
491	smbios.h		\
492	smbios_impl.h		\
493	sobject.h		\
494	socket.h		\
495	socket_impl.h		\
496	socket_proto.h		\
497	socketvar.h		\
498	sockio.h		\
499	soundcard.h		\
500	squeue.h		\
501	squeue_impl.h		\
502	srn.h			\
503	sservice.h		\
504	stat.h			\
505	statfs.h		\
506	statvfs.h		\
507	stdint.h		\
508	stermio.h		\
509	stmf.h			\
510	stmf_defines.h		\
511	stmf_ioctl.h		\
512	stmf_sbd_ioctl.h	\
513	stream.h		\
514	strft.h			\
515	strlog.h		\
516	strmdep.h		\
517	stropts.h		\
518	strredir.h		\
519	strstat.h		\
520	strsubr.h		\
521	strsun.h		\
522	strtty.h		\
523	sunddi.h		\
524	sunldi.h		\
525	sunldi_impl.h		\
526	sunmdi.h		\
527	sunndi.h		\
528	sunos_dhcp_class.h	\
529	sunpm.h			\
530	suntpi.h		\
531	suntty.h		\
532	swap.h			\
533	synch.h			\
534	syscall.h		\
535	sysconf.h		\
536	sysconfig.h		\
537	sysevent.h		\
538	sysevent_impl.h         \
539	sysinfo.h		\
540	syslog.h		\
541	sysmacros.h		\
542	sysmsg_impl.h		\
543	systeminfo.h		\
544	systm.h			\
545	task.h			\
546	taskq.h			\
547	taskq_impl.h		\
548	t_kuser.h		\
549	t_lock.h		\
550	telioctl.h		\
551	termio.h		\
552	termios.h		\
553	termiox.h		\
554	thread.h		\
555	ticlts.h		\
556	ticots.h		\
557	ticotsord.h		\
558	tihdr.h			\
559	time.h			\
560	time_impl.h		\
561	time_std_impl.h		\
562	timeb.h			\
563	timer.h			\
564	times.h			\
565	timex.h			\
566	timod.h			\
567	tirdwr.h		\
568	tiuser.h		\
569	tl.h			\
570	tnf.h			\
571	tnf_com.h		\
572	tnf_probe.h		\
573	tnf_writer.h		\
574	todio.h			\
575	tpicommon.h		\
576	ts.h			\
577	tspriocntl.h		\
578	ttcompat.h		\
579	ttold.h			\
580	tty.h			\
581	ttychars.h		\
582	ttydev.h		\
583	tuneable.h		\
584	turnstile.h		\
585	types.h			\
586	types32.h		\
587	tzfile.h		\
588	u8_textprep.h		\
589	u8_textprep_data.h	\
590	uadmin.h		\
591	ucred.h			\
592	uio.h			\
593	ulimit.h		\
594	un.h			\
595	unistd.h		\
596	user.h			\
597	ustat.h			\
598	utime.h			\
599	utsname.h		\
600	utssys.h		\
601	uuid.h			\
602	va_impl.h		\
603	va_list.h		\
604	var.h			\
605	varargs.h		\
606	vfs.h			\
607	vfs_opreg.h		\
608	vfstab.h		\
609	vgareg.h		\
610	videodev2.h		\
611	visual_io.h		\
612	vlan.h			\
613	vm.h			\
614	vm_usage.h		\
615	vmem.h			\
616	vmem_impl.h		\
617	vmmeter.h		\
618	vmsystm.h		\
619	vnic.h			\
620	vnic_impl.h		\
621	vnode.h			\
622	vscan.h			\
623	vtoc.h			\
624	vtrace.h		\
625	vuid_event.h		\
626	vuid_wheel.h		\
627	vuid_queue.h		\
628	vuid_state.h		\
629	vuid_store.h		\
630	wait.h			\
631	waitq.h			\
632	wanboot_impl.h		\
633	watchpoint.h		\
634	winlockio.h		\
635	zcons.h			\
636	zone.h			\
637	xti_inet.h		\
638	xti_osi.h		\
639	xti_xtiopt.h		\
640	zmod.h
641
642HDRS=				\
643	$(GENHDRS)		\
644	$(CHKHDRS)
645
646AUDIOHDRS=			\
647	ac97.h			\
648	audio_common.h		\
649	audio_driver.h		\
650	audio_oss.h		\
651	g711.h
652
653AVHDRS=				\
654	iec61883.h
655
656BSCHDRS=			\
657	bscbus.h		\
658	bscv_impl.h		\
659	lom_ebuscodes.h		\
660	lom_io.h		\
661	lom_priv.h		\
662	lombus.h
663
664MDESCHDRS=			\
665	mdesc.h			\
666	mdesc_impl.h
667
668CPUDRVHDRS=			\
669	cpudrv.h
670
671CRYPTOHDRS=			\
672	elfsign.h		\
673	ioctl.h			\
674	ioctladmin.h		\
675	common.h		\
676	impl.h			\
677	spi.h			\
678	api.h			\
679	ops_impl.h		\
680	sched_impl.h
681
682DCAMHDRS=			\
683	dcam1394_io.h
684
685IBHDRS=			\
686	ib_types.h	\
687	ib_pkt_hdrs.h
688
689IBTLHDRS=		\
690	ibtl_types.h	\
691	ibtl_status.h	\
692	ibti.h		\
693	ibti_cm.h	\
694	ibci.h		\
695	ibti_common.h	\
696	ibvti.h		\
697	ibtl_ci_types.h
698
699IBTLIMPLHDRS=		\
700	ibtl_util.h
701
702IBNEXHDRS=		\
703	ibnex_devctl.h
704
705IBMFHDRS=		\
706	ibmf.h		\
707	ibmf_msg.h	\
708	ibmf_saa.h	\
709	ibmf_utils.h
710
711IBMGTHDRS=		\
712	ib_dm_attr.h	\
713	ib_mad.h	\
714	sm_attr.h	\
715	sa_recs.h
716
717IBDHDRS=		\
718	ibd.h
719
720TAVORHDRS=		\
721	tavor_ioctl.h
722
723HERMONHDRS=		\
724	hermon_ioctl.h
725
726IDMHDRS=		\
727	idm.h		\
728	idm_impl.h	\
729	idm_so.h	\
730	idm_text.h	\
731	idm_transport.h \
732	idm_conn_sm.h
733
734ISCSITHDRS=		\
735	radius_packet.h		\
736	radius_protocol.h	\
737	chap.h			\
738	isns_protocol.h		\
739	iscsi_if.h		\
740	iscsit_common.h
741
742ISOHDRS=			\
743	signal_iso.h
744
745DERIVED_LVMHDRS=	\
746	md_mdiox.h		\
747	md_basic.h		\
748	mdmed.h			\
749	md_mhdx.h		\
750	mdmn_commd.h
751
752LVMHDRS=			\
753	md_convert.h		\
754	md_crc.h		\
755	md_hotspares.h		\
756	md_mddb.h		\
757	md_mirror.h		\
758	md_mirror_shared.h	\
759	md_names.h		\
760	md_notify.h		\
761	md_raid.h		\
762	md_rename.h		\
763	md_sp.h			\
764	md_stripe.h		\
765	md_trans.h		\
766	mdio.h			\
767	mdvar.h
768
769ALL_LVMHDRS=			\
770	$(LVMHDRS)		\
771	$(DERIVED_LVMHDRS)
772
773FMHDRS=				\
774	protocol.h		\
775	util.h
776
777FMFSHDRS=			\
778	zfs.h
779
780FMIOHDRS=			\
781	ddi.h			\
782	disk.h			\
783	pci.h			\
784	scsi.h			\
785	sun4upci.h		\
786	opl_mc_fm.h
787
788FSHDRS=				\
789	autofs.h		\
790	cachefs_dir.h		\
791	cachefs_dlog.h		\
792	cachefs_filegrp.h	\
793	cachefs_fs.h		\
794	cachefs_fscache.h	\
795	cachefs_ioctl.h		\
796	cachefs_log.h		\
797	decomp.h		\
798	dv_node.h		\
799	sdev_impl.h		\
800	fifonode.h		\
801	hsfs_isospec.h		\
802	hsfs_node.h		\
803	hsfs_rrip.h		\
804	hsfs_spec.h		\
805	hsfs_susp.h		\
806	lofs_info.h		\
807	lofs_node.h		\
808	mntdata.h		\
809	namenode.h		\
810	pc_dir.h		\
811	pc_fs.h			\
812	pc_label.h		\
813	pc_node.h		\
814	pxfs_ki.h		\
815	snode.h			\
816	swapnode.h		\
817	tmp.h			\
818	tmpnode.h		\
819	udf_inode.h		\
820	udf_volume.h		\
821	ufs_acl.h		\
822	ufs_bio.h		\
823	ufs_filio.h		\
824	ufs_fs.h		\
825	ufs_fsdir.h		\
826	ufs_inode.h		\
827	ufs_lockfs.h		\
828	ufs_log.h		\
829	ufs_mount.h		\
830	ufs_panic.h		\
831	ufs_prot.h		\
832	ufs_quota.h		\
833	ufs_snap.h              \
834	ufs_trans.h		\
835	zfs.h			\
836	zut.h
837
838PCMCIAHDRS=		\
839	pcata.h		\
840	pcgld.h		\
841	pcramio.h	\
842	pcramvar.h	\
843	pcser_conf.h	\
844	pcser_io.h	\
845	pcser_reg.h	\
846	pcser_manuspec.h \
847	pcser_var.h
848
849SCSIHDRS=		\
850	scsi.h		\
851	scsi_address.h	\
852	scsi_ctl.h	\
853	scsi_fm.h	\
854	scsi_params.h	\
855	scsi_pkt.h	\
856	scsi_resource.h	\
857	scsi_types.h	\
858	scsi_watch.h
859
860SCSICONFHDRS=		\
861	autoconf.h	\
862	device.h
863
864SCSIGENHDRS=		\
865	commands.h	\
866	dad_mode.h	\
867	inquiry.h	\
868	message.h	\
869	mode.h		\
870	persist.h	\
871	sense.h		\
872	smp_frames.h	\
873	status.h
874
875SCSIIMPLHDRS=		\
876	commands.h	\
877	inquiry.h	\
878	mode.h		\
879	sas_transport.h	\
880	sense.h		\
881	services.h	\
882	status.h	\
883	transport.h	\
884	scsi_reset_notify.h \
885	spc3_types.h	\
886	types.h		\
887	uscsi.h		\
888	usmp.h
889
890SCSITARGETSHDRS=	\
891	ses.h		\
892	sesio.h		\
893	sgendef.h	\
894	stdef.h		\
895	sddef.h		\
896	smp.h
897
898SCSIADHDRS=		\
899	blk2scsa.h
900
901SCSICADHDRS=
902
903SCSIISCSIHDRS=		\
904	iscsi_door.h	\
905	iscsi_if.h
906
907SCSIVHCIHDRS=		\
908	scsi_vhci.h	\
909	mpapi_impl.h	\
910	mpapi_scsi_vhci.h
911
912SDCARDHDRS=		\
913	sda.h		\
914	sda_impl.h	\
915	sda_ioctl.h
916
917FC4HDRS=			\
918	fc_transport.h	\
919	linkapp.h	\
920	fc.h		\
921	fcp.h		\
922	fcal_transport.h \
923	fcal.h		\
924	fcal_linkapp.h	\
925	fcio.h
926
927FCHDRS=			\
928	fc.h		\
929	fcio.h		\
930	fc_types.h	\
931	fc_appif.h
932
933FCIMPLHDRS=		\
934	fc_error.h	\
935	fcph.h
936
937FCULPHDRS=		\
938	fcp_util.h	\
939	fcsm.h
940
941SATAGENHDRS=		\
942	sata_hba.h	\
943	sata_defs.h	\
944	sata_cfgadm.h
945
946SYSEVENTHDRS=		\
947	ap_driver.h     \
948	dev.h		\
949	domain.h        \
950	dr.h            \
951	env.h           \
952	eventdefs.h	\
953	ipmp.h		\
954	pwrctl.h	\
955	svm.h
956
957CONTRACTHDRS=		\
958	process.h	\
959	process_impl.h	\
960	device.h	\
961	device_impl.h
962
963USBHDRS=	\
964	usba.h	\
965	usbai.h
966
967UWBHDRS=	\
968	uwb.h	\
969	uwbai.h
970
971UWBAHDRS=	\
972	uwba.h
973
974USBAUDHDRS=           \
975	usb_audio.h
976
977USBHUBDHDRS=		\
978	hub.h		\
979	hubd_impl.h
980
981USBHIDHDRS=		\
982	hid.h
983
984USBHWARCHDRS=		\
985	hwarc.h
986
987USBMSHDRS=		\
988	usb_bulkonly.h	\
989	usb_cbi.h
990
991USBPRNHDRS=           \
992	usb_printer.h
993
994USBCDCHDRS=		\
995	usb_cdc.h
996
997USBVIDHDRS=           \
998	usbvc.h
999
1000UGENHDRS=           \
1001	usb_ugen.h
1002
1003HOTPLUGHDRS=	\
1004	hpcsvc.h	\
1005	hpctrl.h
1006
1007HOTPLUGPCIHDRS=	\
1008	pcicfg.h	\
1009	pcihp.h
1010
1011RSMHDRS= \
1012	rsm.h	\
1013	rsm_common.h	\
1014	rsmapi_common.h \
1015	rsmpi.h	\
1016	rsmpi_driver.h	\
1017	rsmka_path_int.h
1018
1019TSOLHDRS=		\
1020	label.h		\
1021	label_macro.h	\
1022	priv.h		\
1023	tndb.h		\
1024	tsyscall.h
1025
1026I1394HDRS=		\
1027	cmd1394.h	\
1028	id1394.h	\
1029	ieee1212.h	\
1030	ieee1394.h	\
1031	ixl1394.h	\
1032	s1394_impl.h	\
1033	t1394.h
1034
1035# "cmdk" headers used on sparc
1036SDKTPHDRS=		\
1037	dadkio.h	\
1038	fdisk.h
1039
1040# "cmdk" headers used on i386
1041DKTPHDRS=		\
1042	altsctr.h	\
1043	bbh.h		\
1044	cm.h		\
1045	cmdev.h		\
1046	cmdk.h		\
1047	cmpkt.h		\
1048	controller.h	\
1049	dadev.h		\
1050	dadk.h		\
1051	dadkio.h	\
1052	fctypes.h	\
1053	fdisk.h		\
1054	flowctrl.h	\
1055	gda.h		\
1056	quetypes.h	\
1057	queue.h		\
1058	tgcom.h		\
1059	tgdk.h
1060
1061# "pc" header files used on i386
1062PCHDRS=			\
1063	avintr.h	\
1064	dma_engine.h	\
1065	i8272A.h	\
1066	pcic_reg.h	\
1067	pcic_var.h	\
1068	pic.h		\
1069	pit.h		\
1070	rtc.h
1071
1072NXGEHDRS=			\
1073	nxge.h			\
1074	nxge_common.h		\
1075	nxge_common_impl.h	\
1076	nxge_defs.h		\
1077	nxge_hw.h		\
1078	nxge_impl.h		\
1079	nxge_ipp.h		\
1080	nxge_ipp_hw.h		\
1081	nxge_mac.h		\
1082	nxge_mac_hw.h		\
1083	nxge_fflp.h		\
1084	nxge_fflp_hw.h		\
1085	nxge_mii.h		\
1086	nxge_rxdma.h		\
1087	nxge_rxdma_hw.h		\
1088	nxge_txc.h		\
1089	nxge_txc_hw.h		\
1090	nxge_txdma.h		\
1091	nxge_txdma_hw.h		\
1092	nxge_virtual.h		\
1093	nxge_espc.h
1094
1095include Makefile.syshdrs
1096
1097dcam/%.check:	dcam/%.h
1098	$(DOT_H_CHECK)
1099
1100CHECKHDRS=						\
1101	$($(MACH)_HDRS:%.h=%.check)			\
1102	$(AUDIOHDRS:%.h=audio/%.check)			\
1103	$(AVHDRS:%.h=av/%.check)			\
1104	$(BSCHDRS:%.h=%.check)				\
1105	$(CHKHDRS:%.h=%.check)				\
1106	$(CPUDRVHDRS:%.h=%.check)			\
1107	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1108	$(DCAMHDRS:%.h=dcam/%.check)			\
1109	$(FC4HDRS:%.h=fc4/%.check)			\
1110	$(FCHDRS:%.h=fibre-channel/%.check)		\
1111	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1112	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1113	$(IBHDRS:%.h=ib/%.check)			\
1114	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1115	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1116	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1117	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1118	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1119	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1120	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1121	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1122	$(IDMHDRS:%.h=idm/%.check)			\
1123	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1124	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1125	$(ISOHDRS:%.h=iso/%.check)			\
1126	$(FMHDRS:%.h=fm/%.check)			\
1127	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1128	$(FMIOHDRS:%.h=fm/io/%.check)			\
1129	$(FSHDRS:%.h=fs/%.check)			\
1130	$(LVMHDRS:%.h=lvm/%.check)			\
1131	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1132	$(SCSIHDRS:%.h=scsi/%.check)			\
1133	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1134	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1135	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1136	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1137	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1138	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1139	$(SATAGENHDRS:%.h=sata/%.check)			\
1140	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1141	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1142	$(CONTRACTHDRS:%.h=contract/%.check)            \
1143	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1144	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1145	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1146	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1147	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1148	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1149	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1150	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1151	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1152	$(USBHDRS:%.h=usb/%.check)                      \
1153	$(UWBHDRS:%.h=uwb/%.check)                      \
1154	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1155	$(I1394HDRS:%.h=1394/%.check)			\
1156	$(RSMHDRS:%.h=rsm/%.check)			\
1157	$(TSOLHDRS:%.h=tsol/%.check)			\
1158	$(NXGEHDRS:%.h=nxge/%.check)
1159
1160
1161.KEEP_STATE:
1162
1163.PARALLEL:			\
1164	$(CHECKHDRS)		\
1165	$(ROOTHDRS)		\
1166	$(ROOTAUDHDRS)		\
1167	$(ROOTAVHDRS)		\
1168	$(ROOTCRYPTOHDRS)	\
1169	$(ROOTDCAMHDRS)		\
1170	$(ROOTISOHDRS)		\
1171	$(ROOTIDMHDRS)		\
1172	$(ROOTISCSIHDRS)	\
1173	$(ROOTISCSITHDRS)	\
1174	$(ROOTFC4HDRS)		\
1175	$(ROOTFCHDRS)		\
1176	$(ROOTFCIMPLHDRS)	\
1177	$(ROOTFCULPHDRS)	\
1178	$(ROOTFMHDRS)		\
1179	$(ROOTFMIOHDRS)		\
1180	$(ROOTFMFSHDRS)		\
1181	$(ROOTFSHDRS)		\
1182	$(ROOTIBDHDRS)		\
1183	$(ROOTIBHDRS)		\
1184	$(ROOTIBTLHDRS)		\
1185	$(ROOTIBTLIMPLHDRS)	\
1186	$(ROOTIBNEXHDRS)	\
1187	$(ROOTIBMGTHDRS)	\
1188	$(ROOTIBMFHDRS)		\
1189	$(ROOTTAVORHDRS)	\
1190	$(ROOTHERMONHDRS)	\
1191	$(ROOTLVMHDRS)		\
1192	$(ROOTPCMCIAHDRS)	\
1193	$(ROOTSCSIHDRS)		\
1194	$(ROOTSCSIADHDRS)	\
1195	$(ROOTSCSICONFHDRS)	\
1196	$(ROOTSCSIISCSIHDRS)	\
1197	$(ROOTSCSIGENHDRS)	\
1198	$(ROOTSCSIIMPLHDRS)	\
1199	$(ROOTSCSIVHCIHDRS)	\
1200	$(ROOTSDCARDHDRS)	\
1201	$(ROOTSYSEVENTHDRS)     \
1202	$(ROOTCONTRACTHDRS)     \
1203	$(ROOTUSBHDRS)		\
1204	$(ROOTUWBHDRS)		\
1205	$(ROOTUWBAHDRS)		\
1206	$(ROOTUSBAUDHDRS)	\
1207	$(ROOTUSBHUBDHDRS)	\
1208	$(ROOTUSBHIDHDRS)	\
1209	$(ROOTUSBHRCHDRS)	\
1210	$(ROOTUSBMSHDRS)	\
1211	$(ROOTUSBPRNHDRS)       \
1212	$(ROOTUSBCDCHDRS)       \
1213	$(ROOTUSBVIDHDRS)       \
1214	$(ROOTUGENHDRS)		\
1215	$(ROOT1394HDRS)         \
1216	$(ROOTHOTPLUGHDRS)	\
1217	$(ROOTHOTPLUGPCIHDRS)	\
1218	$(ROOTRSMHDRS)		\
1219	$(ROOTTSOLHDRS)		\
1220	$($(MACH)_ROOTHDRS)
1221
1222
1223install_h:			\
1224	$(ROOTDIRS)		\
1225	LVMDERIVED_H		\
1226	.WAIT			\
1227	$(ROOTHDRS)		\
1228	$(ROOTAUDHDRS)		\
1229	$(ROOTAVHDRS)		\
1230	$(ROOTCRYPTOHDRS)	\
1231	$(ROOTDCAMHDRS)		\
1232	$(ROOTISOHDRS)		\
1233	$(ROOTIDMHDRS)		\
1234	$(ROOTISCSIHDRS)	\
1235	$(ROOTISCSITHDRS)	\
1236	$(ROOTFC4HDRS)		\
1237	$(ROOTFCHDRS)		\
1238	$(ROOTFCIMPLHDRS)	\
1239	$(ROOTFCULPHDRS)	\
1240	$(ROOTFMHDRS)		\
1241	$(ROOTFMFSHDRS)		\
1242	$(ROOTFMIOHDRS)		\
1243	$(ROOTFSHDRS)		\
1244	$(ROOTIBDHDRS)		\
1245	$(ROOTIBHDRS)		\
1246	$(ROOTIBTLHDRS)		\
1247	$(ROOTIBTLIMPLHDRS)	\
1248	$(ROOTIBNEXHDRS)	\
1249	$(ROOTIBMGTHDRS)	\
1250	$(ROOTIBMFHDRS)		\
1251	$(ROOTTAVORHDRS)	\
1252	$(ROOTHERMONHDRS)	\
1253	$(ROOTLVMHDRS)		\
1254	$(ROOTPCMCIAHDRS)	\
1255	$(ROOTSCSIHDRS)		\
1256	$(ROOTSCSIADHDRS)	\
1257	$(ROOTSCSIISCSIHDRS)	\
1258	$(ROOTSCSICONFHDRS)	\
1259	$(ROOTSCSIGENHDRS)	\
1260	$(ROOTSCSIIMPLHDRS)	\
1261	$(ROOTSCSIVHCIHDRS)     \
1262	$(ROOTSDCARDHDRS)	\
1263	$(ROOTSYSEVENTHDRS)     \
1264	$(ROOTCONTRACTHDRS)     \
1265	$(ROOTUWBHDRS)		\
1266	$(ROOTUWBAHDRS)		\
1267	$(ROOTUSBHDRS)		\
1268	$(ROOTUSBAUDHDRS)	\
1269	$(ROOTUSBHUBDHDRS)	\
1270	$(ROOTUSBHIDHDRS)	\
1271	$(ROOTUSBHRCHDRS)	\
1272	$(ROOTUSBMSHDRS)	\
1273	$(ROOTUSBPRNHDRS)       \
1274	$(ROOTUSBCDCHDRS)       \
1275	$(ROOTUSBVIDHDRS)       \
1276	$(ROOTUGENHDRS)		\
1277	$(ROOT1394HDRS)         \
1278	$(ROOTHOTPLUGHDRS)	\
1279	$(ROOTHOTPLUGPCIHDRS)	\
1280	$(ROOTRSMHDRS)		\
1281	$(ROOTTSOLHDRS)		\
1282	$($(MACH)_ROOTHDRS)
1283
1284all_h: $(GENHDRS)
1285
1286priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1287	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1288
1289priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1290	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1291
1292usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1293	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1294
1295LVMDERIVED_H:
1296	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1297
1298check:	$(CHECKHDRS)
1299
1300FRC:
1301
1302# EXPORT DELETE START
1303EXPORT_SRC:
1304	$(RM) wanboot_impl.h+ Makefile+
1305	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1306		< wanboot_impl.h > wanboot_impl.h+
1307	$(MV) wanboot_impl.h+ wanboot_impl.h
1308	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1309		< Makefile > Makefile+
1310	$(RM) Makefile
1311	$(MV) Makefile+ Makefile
1312	$(CHMOD) 444 Makefile wanboot_impl.h
1313# EXPORT DELETE END
1314