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