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