xref: /titanic_41/usr/src/uts/common/sys/Makefile (revision b509e89b2befbaa42939abad9da1d7f5a8c6aaae)
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	zut.h
840
841PCMCIAHDRS=		\
842	pcata.h		\
843	pcgld.h		\
844	pcramio.h	\
845	pcramvar.h	\
846	pcser_conf.h	\
847	pcser_io.h	\
848	pcser_reg.h	\
849	pcser_manuspec.h \
850	pcser_var.h
851
852SCSIHDRS=		\
853	scsi.h		\
854	scsi_address.h	\
855	scsi_ctl.h	\
856	scsi_fm.h	\
857	scsi_params.h	\
858	scsi_pkt.h	\
859	scsi_resource.h	\
860	scsi_types.h	\
861	scsi_watch.h
862
863SCSICONFHDRS=		\
864	autoconf.h	\
865	device.h
866
867SCSIGENHDRS=		\
868	commands.h	\
869	dad_mode.h	\
870	inquiry.h	\
871	message.h	\
872	mode.h		\
873	persist.h	\
874	sense.h		\
875	smp_frames.h	\
876	status.h
877
878SCSIIMPLHDRS=		\
879	commands.h	\
880	inquiry.h	\
881	mode.h		\
882	sas_transport.h	\
883	sense.h		\
884	services.h	\
885	status.h	\
886	transport.h	\
887	scsi_reset_notify.h \
888	spc3_types.h	\
889	types.h		\
890	uscsi.h		\
891	usmp.h
892
893SCSITARGETSHDRS=	\
894	ses.h		\
895	sesio.h		\
896	sgendef.h	\
897	stdef.h		\
898	sddef.h		\
899	smp.h
900
901SCSIADHDRS=		\
902	blk2scsa.h
903
904SCSICADHDRS=
905
906SCSIISCSIHDRS=		\
907	iscsi_door.h	\
908	iscsi_if.h
909
910SCSIVHCIHDRS=		\
911	scsi_vhci.h	\
912	mpapi_impl.h	\
913	mpapi_scsi_vhci.h
914
915SDCARDHDRS=		\
916	sda.h		\
917	sda_impl.h	\
918	sda_ioctl.h
919
920FC4HDRS=			\
921	fc_transport.h	\
922	linkapp.h	\
923	fc.h		\
924	fcp.h		\
925	fcal_transport.h \
926	fcal.h		\
927	fcal_linkapp.h	\
928	fcio.h
929
930FCHDRS=			\
931	fc.h		\
932	fcio.h		\
933	fc_types.h	\
934	fc_appif.h
935
936FCIMPLHDRS=		\
937	fc_error.h	\
938	fcph.h
939
940FCULPHDRS=		\
941	fcp_util.h	\
942	fcsm.h
943
944SATAGENHDRS=		\
945	sata_hba.h	\
946	sata_defs.h	\
947	sata_cfgadm.h
948
949SYSEVENTHDRS=		\
950	ap_driver.h     \
951	dev.h		\
952	domain.h        \
953	dr.h            \
954	env.h           \
955	eventdefs.h	\
956	ipmp.h		\
957	pwrctl.h	\
958	svm.h
959
960CONTRACTHDRS=		\
961	process.h	\
962	process_impl.h	\
963	device.h	\
964	device_impl.h
965
966USBHDRS=	\
967	usba.h	\
968	usbai.h
969
970UWBHDRS=	\
971	uwb.h	\
972	uwbai.h
973
974UWBAHDRS=	\
975	uwba.h
976
977USBAUDHDRS=           \
978	usb_audio.h
979
980USBHUBDHDRS=		\
981	hub.h		\
982	hubd_impl.h
983
984USBHIDHDRS=		\
985	hid.h
986
987USBHWARCHDRS=		\
988	hwarc.h
989
990USBMSHDRS=		\
991	usb_bulkonly.h	\
992	usb_cbi.h
993
994USBPRNHDRS=           \
995	usb_printer.h
996
997USBCDCHDRS=		\
998	usb_cdc.h
999
1000USBVIDHDRS=           \
1001	usbvc.h
1002
1003UGENHDRS=           \
1004	usb_ugen.h
1005
1006HOTPLUGHDRS=	\
1007	hpcsvc.h	\
1008	hpctrl.h
1009
1010HOTPLUGPCIHDRS=	\
1011	pcicfg.h	\
1012	pcihp.h
1013
1014RSMHDRS= \
1015	rsm.h	\
1016	rsm_common.h	\
1017	rsmapi_common.h \
1018	rsmpi.h	\
1019	rsmpi_driver.h	\
1020	rsmka_path_int.h
1021
1022TSOLHDRS=		\
1023	label.h		\
1024	label_macro.h	\
1025	priv.h		\
1026	tndb.h		\
1027	tsyscall.h
1028
1029I1394HDRS=		\
1030	cmd1394.h	\
1031	id1394.h	\
1032	ieee1212.h	\
1033	ieee1394.h	\
1034	ixl1394.h	\
1035	s1394_impl.h	\
1036	t1394.h
1037
1038# "cmdk" headers used on sparc
1039SDKTPHDRS=		\
1040	dadkio.h	\
1041	fdisk.h
1042
1043# "cmdk" headers used on i386
1044DKTPHDRS=		\
1045	altsctr.h	\
1046	bbh.h		\
1047	cm.h		\
1048	cmdev.h		\
1049	cmdk.h		\
1050	cmpkt.h		\
1051	controller.h	\
1052	dadev.h		\
1053	dadk.h		\
1054	dadkio.h	\
1055	fctypes.h	\
1056	fdisk.h		\
1057	flowctrl.h	\
1058	gda.h		\
1059	quetypes.h	\
1060	queue.h		\
1061	tgcom.h		\
1062	tgdk.h
1063
1064# "pc" header files used on i386
1065PCHDRS=			\
1066	avintr.h	\
1067	dma_engine.h	\
1068	i8272A.h	\
1069	pcic_reg.h	\
1070	pcic_var.h	\
1071	pic.h		\
1072	pit.h		\
1073	rtc.h
1074
1075NXGEHDRS=			\
1076	nxge.h			\
1077	nxge_common.h		\
1078	nxge_common_impl.h	\
1079	nxge_defs.h		\
1080	nxge_hw.h		\
1081	nxge_impl.h		\
1082	nxge_ipp.h		\
1083	nxge_ipp_hw.h		\
1084	nxge_mac.h		\
1085	nxge_mac_hw.h		\
1086	nxge_fflp.h		\
1087	nxge_fflp_hw.h		\
1088	nxge_mii.h		\
1089	nxge_rxdma.h		\
1090	nxge_rxdma_hw.h		\
1091	nxge_txc.h		\
1092	nxge_txc_hw.h		\
1093	nxge_txdma.h		\
1094	nxge_txdma_hw.h		\
1095	nxge_virtual.h		\
1096	nxge_espc.h
1097
1098include Makefile.syshdrs
1099
1100dcam/%.check:	dcam/%.h
1101	$(DOT_H_CHECK)
1102
1103CHECKHDRS=						\
1104	$($(MACH)_HDRS:%.h=%.check)			\
1105	$(AUDIOHDRS:%.h=audio/%.check)			\
1106	$(AVHDRS:%.h=av/%.check)			\
1107	$(BSCHDRS:%.h=%.check)				\
1108	$(CHKHDRS:%.h=%.check)				\
1109	$(CPUDRVHDRS:%.h=%.check)			\
1110	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1111	$(DCAMHDRS:%.h=dcam/%.check)			\
1112	$(FC4HDRS:%.h=fc4/%.check)			\
1113	$(FCHDRS:%.h=fibre-channel/%.check)		\
1114	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1115	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1116	$(IBHDRS:%.h=ib/%.check)			\
1117	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1118	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1119	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1120	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1121	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1122	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1123	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1124	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1125	$(IDMHDRS:%.h=idm/%.check)			\
1126	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1127	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1128	$(ISOHDRS:%.h=iso/%.check)			\
1129	$(FMHDRS:%.h=fm/%.check)			\
1130	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1131	$(FMIOHDRS:%.h=fm/io/%.check)			\
1132	$(FSHDRS:%.h=fs/%.check)			\
1133	$(LVMHDRS:%.h=lvm/%.check)			\
1134	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1135	$(SCSIHDRS:%.h=scsi/%.check)			\
1136	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1137	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1138	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1139	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1140	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1141	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1142	$(SATAGENHDRS:%.h=sata/%.check)			\
1143	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1144	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1145	$(CONTRACTHDRS:%.h=contract/%.check)            \
1146	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1147	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1148	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1149	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1150	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1151	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1152	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1153	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1154	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1155	$(USBHDRS:%.h=usb/%.check)                      \
1156	$(UWBHDRS:%.h=uwb/%.check)                      \
1157	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1158	$(I1394HDRS:%.h=1394/%.check)			\
1159	$(RSMHDRS:%.h=rsm/%.check)			\
1160	$(TSOLHDRS:%.h=tsol/%.check)			\
1161	$(NXGEHDRS:%.h=nxge/%.check)
1162
1163
1164.KEEP_STATE:
1165
1166.PARALLEL:			\
1167	$(CHECKHDRS)		\
1168	$(ROOTHDRS)		\
1169	$(ROOTAUDHDRS)		\
1170	$(ROOTAVHDRS)		\
1171	$(ROOTCRYPTOHDRS)	\
1172	$(ROOTDCAMHDRS)		\
1173	$(ROOTISOHDRS)		\
1174	$(ROOTIDMHDRS)		\
1175	$(ROOTISCSIHDRS)	\
1176	$(ROOTISCSITHDRS)	\
1177	$(ROOTFC4HDRS)		\
1178	$(ROOTFCHDRS)		\
1179	$(ROOTFCIMPLHDRS)	\
1180	$(ROOTFCULPHDRS)	\
1181	$(ROOTFMHDRS)		\
1182	$(ROOTFMIOHDRS)		\
1183	$(ROOTFMFSHDRS)		\
1184	$(ROOTFSHDRS)		\
1185	$(ROOTIBDHDRS)		\
1186	$(ROOTIBHDRS)		\
1187	$(ROOTIBTLHDRS)		\
1188	$(ROOTIBTLIMPLHDRS)	\
1189	$(ROOTIBNEXHDRS)	\
1190	$(ROOTIBMGTHDRS)	\
1191	$(ROOTIBMFHDRS)		\
1192	$(ROOTTAVORHDRS)	\
1193	$(ROOTHERMONHDRS)	\
1194	$(ROOTLVMHDRS)		\
1195	$(ROOTPCMCIAHDRS)	\
1196	$(ROOTSCSIHDRS)		\
1197	$(ROOTSCSIADHDRS)	\
1198	$(ROOTSCSICONFHDRS)	\
1199	$(ROOTSCSIISCSIHDRS)	\
1200	$(ROOTSCSIGENHDRS)	\
1201	$(ROOTSCSIIMPLHDRS)	\
1202	$(ROOTSCSIVHCIHDRS)	\
1203	$(ROOTSDCARDHDRS)	\
1204	$(ROOTSYSEVENTHDRS)     \
1205	$(ROOTCONTRACTHDRS)     \
1206	$(ROOTUSBHDRS)		\
1207	$(ROOTUWBHDRS)		\
1208	$(ROOTUWBAHDRS)		\
1209	$(ROOTUSBAUDHDRS)	\
1210	$(ROOTUSBHUBDHDRS)	\
1211	$(ROOTUSBHIDHDRS)	\
1212	$(ROOTUSBHRCHDRS)	\
1213	$(ROOTUSBMSHDRS)	\
1214	$(ROOTUSBPRNHDRS)       \
1215	$(ROOTUSBCDCHDRS)       \
1216	$(ROOTUSBVIDHDRS)       \
1217	$(ROOTUGENHDRS)		\
1218	$(ROOT1394HDRS)         \
1219	$(ROOTHOTPLUGHDRS)	\
1220	$(ROOTHOTPLUGPCIHDRS)	\
1221	$(ROOTRSMHDRS)		\
1222	$(ROOTTSOLHDRS)		\
1223	$($(MACH)_ROOTHDRS)
1224
1225
1226install_h:			\
1227	$(ROOTDIRS)		\
1228	LVMDERIVED_H		\
1229	.WAIT			\
1230	$(ROOTHDRS)		\
1231	$(ROOTAUDHDRS)		\
1232	$(ROOTAVHDRS)		\
1233	$(ROOTCRYPTOHDRS)	\
1234	$(ROOTDCAMHDRS)		\
1235	$(ROOTISOHDRS)		\
1236	$(ROOTIDMHDRS)		\
1237	$(ROOTISCSIHDRS)	\
1238	$(ROOTISCSITHDRS)	\
1239	$(ROOTFC4HDRS)		\
1240	$(ROOTFCHDRS)		\
1241	$(ROOTFCIMPLHDRS)	\
1242	$(ROOTFCULPHDRS)	\
1243	$(ROOTFMHDRS)		\
1244	$(ROOTFMFSHDRS)		\
1245	$(ROOTFMIOHDRS)		\
1246	$(ROOTFSHDRS)		\
1247	$(ROOTIBDHDRS)		\
1248	$(ROOTIBHDRS)		\
1249	$(ROOTIBTLHDRS)		\
1250	$(ROOTIBTLIMPLHDRS)	\
1251	$(ROOTIBNEXHDRS)	\
1252	$(ROOTIBMGTHDRS)	\
1253	$(ROOTIBMFHDRS)		\
1254	$(ROOTTAVORHDRS)	\
1255	$(ROOTHERMONHDRS)	\
1256	$(ROOTLVMHDRS)		\
1257	$(ROOTPCMCIAHDRS)	\
1258	$(ROOTSCSIHDRS)		\
1259	$(ROOTSCSIADHDRS)	\
1260	$(ROOTSCSIISCSIHDRS)	\
1261	$(ROOTSCSICONFHDRS)	\
1262	$(ROOTSCSIGENHDRS)	\
1263	$(ROOTSCSIIMPLHDRS)	\
1264	$(ROOTSCSIVHCIHDRS)     \
1265	$(ROOTSDCARDHDRS)	\
1266	$(ROOTSYSEVENTHDRS)     \
1267	$(ROOTCONTRACTHDRS)     \
1268	$(ROOTUWBHDRS)		\
1269	$(ROOTUWBAHDRS)		\
1270	$(ROOTUSBHDRS)		\
1271	$(ROOTUSBAUDHDRS)	\
1272	$(ROOTUSBHUBDHDRS)	\
1273	$(ROOTUSBHIDHDRS)	\
1274	$(ROOTUSBHRCHDRS)	\
1275	$(ROOTUSBMSHDRS)	\
1276	$(ROOTUSBPRNHDRS)       \
1277	$(ROOTUSBCDCHDRS)       \
1278	$(ROOTUSBVIDHDRS)       \
1279	$(ROOTUGENHDRS)		\
1280	$(ROOT1394HDRS)         \
1281	$(ROOTHOTPLUGHDRS)	\
1282	$(ROOTHOTPLUGPCIHDRS)	\
1283	$(ROOTRSMHDRS)		\
1284	$(ROOTTSOLHDRS)		\
1285	$($(MACH)_ROOTHDRS)
1286
1287all_h: $(GENHDRS)
1288
1289priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1290	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1291
1292priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1293	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1294
1295usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1296	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1297
1298LVMDERIVED_H:
1299	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1300
1301check:	$(CHECKHDRS)
1302
1303FRC:
1304
1305# EXPORT DELETE START
1306EXPORT_SRC:
1307	$(RM) wanboot_impl.h+ Makefile+
1308	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1309		< wanboot_impl.h > wanboot_impl.h+
1310	$(MV) wanboot_impl.h+ wanboot_impl.h
1311	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1312		< Makefile > Makefile+
1313	$(RM) Makefile
1314	$(MV) Makefile+ Makefile
1315	$(CHMOD) 444 Makefile wanboot_impl.h
1316# EXPORT DELETE END
1317