xref: /titanic_44/usr/src/uts/common/sys/Makefile (revision 81fd181a33bee65d5be7a49c6093bb13b382b172)
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	damap.h		\
146	damap_impl.h		\
147	dc_ki.h			\
148	ddi.h			\
149	ddifm.h			\
150	ddifm_impl.h		\
151	ddi_hp.h		\
152	ddi_hp_impl.h		\
153	ddi_intr.h		\
154	ddi_intr_impl.h		\
155	ddi_impldefs.h		\
156	ddi_implfuncs.h		\
157	ddi_obsolete.h		\
158	ddi_timer.h		\
159	ddidevmap.h		\
160	ddidmareq.h		\
161	ddimapreq.h		\
162	ddipropdefs.h		\
163	dditypes.h		\
164	debug.h			\
165	des.h			\
166	devctl.h		\
167	devcache.h		\
168	devcache_impl.h		\
169	devfm.h			\
170	devid_cache.h		\
171	devinfo_impl.h		\
172	devops.h		\
173	devpolicy.h		\
174	devpoll.h		\
175	dirent.h		\
176	disp.h			\
177	dkbad.h			\
178	dkio.h			\
179	dklabel.h		\
180	dl.h			\
181	dlpi.h			\
182	dld.h			\
183	dld_impl.h		\
184	dld_ioc.h		\
185	dls.h			\
186	dls_mgmt.h		\
187	dls_impl.h		\
188	dma_i8237A.h            \
189	dnlc.h			\
190	door.h			\
191	door_data.h		\
192	door_impl.h		\
193	dtrace.h		\
194	dtrace_impl.h		\
195	dumpadm.h		\
196	dumphdr.h		\
197	ecppsys.h		\
198	ecppio.h                \
199	ecppreg.h               \
200	ecppvar.h               \
201	efi_partition.h		\
202	elf.h			\
203	elf_386.h		\
204	elf_SPARC.h		\
205	elf_notes.h		\
206	elf_amd64.h		\
207	elftypes.h		\
208	emul64.h		\
209	emul64cmd.h		\
210	emul64var.h		\
211	epm.h			\
212	errno.h			\
213	errorq.h		\
214	errorq_impl.h		\
215	esunddi.h		\
216	ethernet.h		\
217	euc.h			\
218	eucioctl.h		\
219	exacct.h		\
220	exacct_catalog.h	\
221	exacct_impl.h		\
222	exec.h			\
223	exechdr.h		\
224	extdirent.h		\
225	fault.h			\
226	fasttrap.h		\
227	fasttrap_impl.h		\
228	fbio.h			\
229	fbuf.h			\
230	fcntl.h			\
231	fct.h			\
232	fct_defines.h		\
233	fctio.h			\
234	fdbuffer.h		\
235	fdio.h			\
236	feature_tests.h		\
237	fem.h			\
238	file.h			\
239	filio.h			\
240	flock.h			\
241	flock_impl.h		\
242	fork.h			\
243	fss.h			\
244	fsspriocntl.h		\
245	fsid.h			\
246	fssnap.h                \
247	fssnap_if.h             \
248	fstyp.h			\
249	ftrace.h		\
250	fx.h			\
251	fxpriocntl.h		\
252	gfs.h			\
253	gld.h			\
254	gldpriv.h		\
255	group.h			\
256	hdio.h			\
257	hook.h			\
258	hook_event.h		\
259	hook_impl.h		\
260	hwconf.h		\
261	ia.h			\
262	iapriocntl.h		\
263	id32.h			\
264	idmap.h 		\
265	ieeefp.h		\
266	id_space.h		\
267	instance.h		\
268	int_const.h		\
269	int_fmtio.h		\
270	int_limits.h		\
271	int_types.h		\
272	inttypes.h		\
273	ioccom.h		\
274	ioctl.h			\
275	ipc.h			\
276	ipc_impl.h		\
277	ipc_rctl.h		\
278	isa_defs.h		\
279	iscsi_authclient.h	\
280	iscsi_authclientglue.h	\
281	iscsi_protocol.h	\
282	jioctl.h		\
283	kbd.h			\
284	kbdreg.h		\
285	kbio.h			\
286	kcpc.h			\
287	kdi.h			\
288	kdi_impl.h		\
289	kiconv.h		\
290	kiconv_big5_utf8.h	\
291	kiconv_cck_common.h	\
292	kiconv_cp950hkscs_utf8.h	\
293	kiconv_emea1.h		\
294	kiconv_emea2.h		\
295	kiconv_euckr_utf8.h	\
296	kiconv_euctw_utf8.h	\
297	kiconv_gb18030_utf8.h	\
298	kiconv_gb2312_utf8.h	\
299	kiconv_hkscs_utf8.h	\
300	kiconv_ja.h		\
301	kiconv_ja_jis_to_unicode.h	\
302	kiconv_ja_unicode_to_jis.h	\
303	kiconv_ko.h		\
304	kiconv_latin1.h		\
305	kiconv_sc.h		\
306	kiconv_tc.h		\
307	kiconv_uhc_utf8.h	\
308	kiconv_utf8_big5.h	\
309	kiconv_utf8_cp950hkscs.h	\
310	kiconv_utf8_euckr.h	\
311	kiconv_utf8_euctw.h	\
312	kiconv_utf8_gb18030.h	\
313	kiconv_utf8_gb2312.h	\
314	kiconv_utf8_hkscs.h	\
315	kiconv_utf8_uhc.h	\
316	kidmap.h		\
317	klpd.h			\
318	klwp.h			\
319	kmdb.h			\
320	kmem.h			\
321	kmem_impl.h		\
322	kobj.h			\
323	kobj_impl.h		\
324	ksocket.h		\
325	kstat.h			\
326	kstr.h			\
327	ksyms.h			\
328	ksynch.h		\
329	ldterm.h		\
330	lgrp.h			\
331	lgrp_user.h		\
332	libc_kernel.h		\
333	link.h			\
334	list.h			\
335	list_impl.h		\
336	llc1.h			\
337	loadavg.h		\
338	lock.h			\
339	lockfs.h		\
340	lockstat.h		\
341	lofi.h			\
342	log.h			\
343	logindmux.h		\
344	logindmux_impl.h	\
345	lwp.h			\
346	lwp_timer_impl.h	\
347	lwp_upimutex_impl.h	\
348	lpif.h			\
349	mac.h			\
350	mac_client.h		\
351	mac_client_impl.h	\
352	mac_flow.h		\
353	mac_flow_impl.h		\
354	mac_impl.h		\
355	mac_provider.h		\
356	mac_soft_ring.h		\
357	machelf.h		\
358	map.h			\
359	md4.h			\
360	md5.h			\
361	md5_consts.h		\
362	mdi_impldefs.h		\
363	mem.h			\
364	mem_config.h		\
365	memlist.h		\
366	mkdev.h			\
367	mhd.h			\
368	mii.h			\
369	miiregs.h		\
370	mixer.h			\
371	mman.h			\
372	mmapobj.h		\
373	mntent.h		\
374	mntio.h			\
375	mnttab.h		\
376	modctl.h		\
377	mode.h			\
378	model.h			\
379	modhash.h		\
380	modhash_impl.h		\
381	mount.h			\
382	mouse.h			\
383	msacct.h		\
384	msg.h			\
385	msg_impl.h		\
386	msio.h			\
387	msreg.h			\
388	mtio.h			\
389	multidata.h		\
390	multidata_impl.h	\
391	mutex.h			\
392	nbmlock.h		\
393	ndifm.h		\
394	ndi_impldefs.h		\
395	net80211.h		\
396	net80211_crypto.h	\
397	net80211_ht.h		\
398	net80211_proto.h	\
399	netconfig.h		\
400	neti.h			\
401	netstack.h		\
402	nexusdefs.h		\
403	note.h			\
404	nvpair.h                \
405	nvpair_impl.h           \
406	objfs.h			\
407	objfs_impl.h		\
408	ontrap.h                \
409	open.h			\
410	openpromio.h		\
411	panic.h			\
412	param.h			\
413	pathconf.h		\
414	pathname.h		\
415	pattr.h			\
416	queue.h			\
417	serializer.h		\
418	pbio.h			\
419	pccard.h		\
420	pci.h			\
421	pcie.h			\
422	pci_impl.h		\
423	pci_tools.h		\
424	pcmcia.h		\
425	pctypes.h		\
426	pem.h			\
427	pfmod.h			\
428	pg.h			\
429	pghw.h			\
430	physmem.h		\
431	pm.h			\
432	policy.h		\
433	poll.h			\
434	poll_impl.h		\
435	pool.h			\
436	pool_impl.h		\
437	pool_pset.h		\
438	port.h			\
439	port_impl.h		\
440	port_kernel.h		\
441	portif.h		\
442	ppmio.h                 \
443	pppt_ic_if.h		\
444	pppt_ioctl.h		\
445	priocntl.h		\
446	priv.h			\
447	priv_impl.h		\
448	prnio.h			\
449	proc.h			\
450	processor.h		\
451	procfs.h		\
452	procset.h		\
453	project.h		\
454	protosw.h		\
455	prsystm.h		\
456	pset.h			\
457	pshot.h			\
458	ptem.h			\
459	ptms.h			\
460	ptyvar.h		\
461	raidioctl.h		\
462	ramdisk.h		\
463	random.h		\
464	rctl.h			\
465	rctl_impl.h		\
466	reboot.h		\
467	refstr.h		\
468	refstr_impl.h		\
469	resource.h		\
470	rlioctl.h		\
471	rt.h			\
472	rtpriocntl.h		\
473	rwlock.h		\
474	rwlock_impl.h		\
475	rwstlock.h		\
476	sad.h			\
477	schedctl.h		\
478	sdt.h			\
479	select.h		\
480	sem.h			\
481	sem_impl.h		\
482	sema_impl.h		\
483	semaphore.h		\
484	sendfile.h		\
485	ser_sync.h		\
486	session.h		\
487	sha1.h			\
488	sha1_consts.h		\
489	sha2.h			\
490	sha2_consts.h		\
491	share.h			\
492	shm.h			\
493	shm_impl.h		\
494	sid.h			\
495	siginfo.h		\
496	signal.h		\
497	sleepq.h		\
498	smbios.h		\
499	smbios_impl.h		\
500	sobject.h		\
501	socket.h		\
502	socket_impl.h		\
503	socket_proto.h		\
504	socketvar.h		\
505	sockio.h		\
506	soundcard.h		\
507	squeue.h		\
508	squeue_impl.h		\
509	srn.h			\
510	sservice.h		\
511	stat.h			\
512	statfs.h		\
513	statvfs.h		\
514	stdbool.h		\
515	stdint.h		\
516	stermio.h		\
517	stmf.h			\
518	stmf_defines.h		\
519	stmf_ioctl.h		\
520	stmf_sbd_ioctl.h	\
521	stream.h		\
522	strft.h			\
523	strlog.h		\
524	strmdep.h		\
525	stropts.h		\
526	strredir.h		\
527	strstat.h		\
528	strsubr.h		\
529	strsun.h		\
530	strtty.h		\
531	sunddi.h		\
532	sunldi.h		\
533	sunldi_impl.h		\
534	sunmdi.h		\
535	sunndi.h		\
536	sunos_dhcp_class.h	\
537	sunpm.h			\
538	suntpi.h		\
539	suntty.h		\
540	swap.h			\
541	synch.h			\
542	syscall.h		\
543	sysconf.h		\
544	sysconfig.h		\
545	sysevent.h		\
546	sysevent_impl.h         \
547	sysinfo.h		\
548	syslog.h		\
549	sysmacros.h		\
550	sysmsg_impl.h		\
551	systeminfo.h		\
552	systm.h			\
553	task.h			\
554	taskq.h			\
555	taskq_impl.h		\
556	t_kuser.h		\
557	t_lock.h		\
558	telioctl.h		\
559	termio.h		\
560	termios.h		\
561	termiox.h		\
562	thread.h		\
563	ticlts.h		\
564	ticots.h		\
565	ticotsord.h		\
566	tihdr.h			\
567	time.h			\
568	time_impl.h		\
569	time_std_impl.h		\
570	timeb.h			\
571	timer.h			\
572	times.h			\
573	timex.h			\
574	timod.h			\
575	tirdwr.h		\
576	tiuser.h		\
577	tl.h			\
578	tnf.h			\
579	tnf_com.h		\
580	tnf_probe.h		\
581	tnf_writer.h		\
582	todio.h			\
583	tpicommon.h		\
584	ts.h			\
585	tspriocntl.h		\
586	ttcompat.h		\
587	ttold.h			\
588	tty.h			\
589	ttychars.h		\
590	ttydev.h		\
591	tuneable.h		\
592	turnstile.h		\
593	types.h			\
594	types32.h		\
595	tzfile.h		\
596	u8_textprep.h		\
597	u8_textprep_data.h	\
598	uadmin.h		\
599	ucred.h			\
600	uio.h			\
601	ulimit.h		\
602	un.h			\
603	unistd.h		\
604	user.h			\
605	ustat.h			\
606	utime.h			\
607	utsname.h		\
608	utssys.h		\
609	uuid.h			\
610	va_impl.h		\
611	va_list.h		\
612	var.h			\
613	varargs.h		\
614	vfs.h			\
615	vfs_opreg.h		\
616	vfstab.h		\
617	vgareg.h		\
618	videodev2.h		\
619	visual_io.h		\
620	vlan.h			\
621	vm.h			\
622	vm_usage.h		\
623	vmem.h			\
624	vmem_impl.h		\
625	vmmeter.h		\
626	vmsystm.h		\
627	vnic.h			\
628	vnic_impl.h		\
629	vnode.h			\
630	vscan.h			\
631	vtoc.h			\
632	vtrace.h		\
633	vuid_event.h		\
634	vuid_wheel.h		\
635	vuid_queue.h		\
636	vuid_state.h		\
637	vuid_store.h		\
638	wait.h			\
639	waitq.h			\
640	wanboot_impl.h		\
641	watchpoint.h		\
642	winlockio.h		\
643	zcons.h			\
644	zone.h			\
645	xti_inet.h		\
646	xti_osi.h		\
647	xti_xtiopt.h		\
648	zmod.h
649
650HDRS=				\
651	$(GENHDRS)		\
652	$(CHKHDRS)
653
654AUDIOHDRS=			\
655	ac97.h			\
656	audio_common.h		\
657	audio_driver.h		\
658	audio_oss.h		\
659	g711.h
660
661AVHDRS=				\
662	iec61883.h
663
664BSCHDRS=			\
665	bscbus.h		\
666	bscv_impl.h		\
667	lom_ebuscodes.h		\
668	lom_io.h		\
669	lom_priv.h		\
670	lombus.h
671
672MDESCHDRS=			\
673	mdesc.h			\
674	mdesc_impl.h
675
676CPUDRVHDRS=			\
677	cpudrv.h
678
679CRYPTOHDRS=			\
680	elfsign.h		\
681	ioctl.h			\
682	ioctladmin.h		\
683	common.h		\
684	impl.h			\
685	spi.h			\
686	api.h			\
687	ops_impl.h		\
688	sched_impl.h
689
690DCAMHDRS=			\
691	dcam1394_io.h
692
693IBHDRS=			\
694	ib_types.h	\
695	ib_pkt_hdrs.h
696
697IBTLHDRS=		\
698	ibtl_types.h	\
699	ibtl_status.h	\
700	ibti.h		\
701	ibti_cm.h	\
702	ibci.h		\
703	ibti_common.h	\
704	ibvti.h		\
705	ibtl_ci_types.h
706
707IBTLIMPLHDRS=		\
708	ibtl_util.h
709
710IBNEXHDRS=		\
711	ibnex_devctl.h
712
713IBMFHDRS=		\
714	ibmf.h		\
715	ibmf_msg.h	\
716	ibmf_saa.h	\
717	ibmf_utils.h
718
719IBMGTHDRS=		\
720	ib_dm_attr.h	\
721	ib_mad.h	\
722	sm_attr.h	\
723	sa_recs.h
724
725IBDHDRS=		\
726	ibd.h
727
728TAVORHDRS=		\
729	tavor_ioctl.h
730
731HERMONHDRS=		\
732	hermon_ioctl.h
733
734IDMHDRS=		\
735	idm.h		\
736	idm_impl.h	\
737	idm_so.h	\
738	idm_text.h	\
739	idm_transport.h \
740	idm_conn_sm.h
741
742ISCSITHDRS=		\
743	radius_packet.h		\
744	radius_protocol.h	\
745	chap.h			\
746	isns_protocol.h		\
747	iscsi_if.h		\
748	iscsit_common.h
749
750ISOHDRS=			\
751	signal_iso.h
752
753DERIVED_LVMHDRS=	\
754	md_mdiox.h		\
755	md_basic.h		\
756	mdmed.h			\
757	md_mhdx.h		\
758	mdmn_commd.h
759
760LVMHDRS=			\
761	md_convert.h		\
762	md_crc.h		\
763	md_hotspares.h		\
764	md_mddb.h		\
765	md_mirror.h		\
766	md_mirror_shared.h	\
767	md_names.h		\
768	md_notify.h		\
769	md_raid.h		\
770	md_rename.h		\
771	md_sp.h			\
772	md_stripe.h		\
773	md_trans.h		\
774	mdio.h			\
775	mdvar.h
776
777ALL_LVMHDRS=			\
778	$(LVMHDRS)		\
779	$(DERIVED_LVMHDRS)
780
781FMHDRS=				\
782	protocol.h		\
783	util.h
784
785FMFSHDRS=			\
786	zfs.h
787
788FMIOHDRS=			\
789	ddi.h			\
790	disk.h			\
791	pci.h			\
792	scsi.h			\
793	sun4upci.h		\
794	opl_mc_fm.h
795
796FSHDRS=				\
797	autofs.h		\
798	cachefs_dir.h		\
799	cachefs_dlog.h		\
800	cachefs_filegrp.h	\
801	cachefs_fs.h		\
802	cachefs_fscache.h	\
803	cachefs_ioctl.h		\
804	cachefs_log.h		\
805	decomp.h		\
806	dv_node.h		\
807	sdev_impl.h		\
808	fifonode.h		\
809	hsfs_isospec.h		\
810	hsfs_node.h		\
811	hsfs_rrip.h		\
812	hsfs_spec.h		\
813	hsfs_susp.h		\
814	lofs_info.h		\
815	lofs_node.h		\
816	mntdata.h		\
817	namenode.h		\
818	pc_dir.h		\
819	pc_fs.h			\
820	pc_label.h		\
821	pc_node.h		\
822	pxfs_ki.h		\
823	snode.h			\
824	swapnode.h		\
825	tmp.h			\
826	tmpnode.h		\
827	udf_inode.h		\
828	udf_volume.h		\
829	ufs_acl.h		\
830	ufs_bio.h		\
831	ufs_filio.h		\
832	ufs_fs.h		\
833	ufs_fsdir.h		\
834	ufs_inode.h		\
835	ufs_lockfs.h		\
836	ufs_log.h		\
837	ufs_mount.h		\
838	ufs_panic.h		\
839	ufs_prot.h		\
840	ufs_quota.h		\
841	ufs_snap.h              \
842	ufs_trans.h		\
843	zfs.h			\
844	zut.h
845
846PCMCIAHDRS=		\
847	pcata.h		\
848	pcgld.h		\
849	pcramio.h	\
850	pcramvar.h	\
851	pcser_conf.h	\
852	pcser_io.h	\
853	pcser_reg.h	\
854	pcser_manuspec.h \
855	pcser_var.h
856
857SCSIHDRS=		\
858	scsi.h		\
859	scsi_address.h	\
860	scsi_ctl.h	\
861	scsi_fm.h	\
862	scsi_params.h	\
863	scsi_pkt.h	\
864	scsi_resource.h	\
865	scsi_types.h	\
866	scsi_watch.h
867
868SCSICONFHDRS=		\
869	autoconf.h	\
870	device.h
871
872SCSIGENHDRS=		\
873	commands.h	\
874	dad_mode.h	\
875	inquiry.h	\
876	message.h	\
877	mode.h		\
878	persist.h	\
879	sense.h		\
880	smp_frames.h	\
881	status.h
882
883SCSIIMPLHDRS=		\
884	commands.h	\
885	inquiry.h	\
886	mode.h		\
887	sas_transport.h	\
888	sense.h		\
889	services.h	\
890	status.h	\
891	transport.h	\
892	scsi_reset_notify.h \
893	spc3_types.h	\
894	types.h		\
895	uscsi.h		\
896	usmp.h
897
898SCSITARGETSHDRS=	\
899	ses.h		\
900	sesio.h		\
901	sgendef.h	\
902	stdef.h		\
903	sddef.h		\
904	smp.h
905
906SCSIADHDRS=		\
907	blk2scsa.h
908
909SCSICADHDRS=
910
911SCSIISCSIHDRS=		\
912	iscsi_door.h	\
913	iscsi_if.h
914
915SCSIVHCIHDRS=		\
916	scsi_vhci.h	\
917	mpapi_impl.h	\
918	mpapi_scsi_vhci.h
919
920SDCARDHDRS=		\
921	sda.h		\
922	sda_impl.h	\
923	sda_ioctl.h
924
925FC4HDRS=			\
926	fc_transport.h	\
927	linkapp.h	\
928	fc.h		\
929	fcp.h		\
930	fcal_transport.h \
931	fcal.h		\
932	fcal_linkapp.h	\
933	fcio.h
934
935FCHDRS=			\
936	fc.h		\
937	fcio.h		\
938	fc_types.h	\
939	fc_appif.h
940
941FCIMPLHDRS=		\
942	fc_error.h	\
943	fcph.h
944
945FCULPHDRS=		\
946	fcp_util.h	\
947	fcsm.h
948
949SATAGENHDRS=		\
950	sata_hba.h	\
951	sata_defs.h	\
952	sata_cfgadm.h
953
954SYSEVENTHDRS=		\
955	ap_driver.h     \
956	dev.h		\
957	domain.h        \
958	dr.h            \
959	env.h           \
960	eventdefs.h	\
961	ipmp.h		\
962	pwrctl.h	\
963	svm.h
964
965CONTRACTHDRS=		\
966	process.h	\
967	process_impl.h	\
968	device.h	\
969	device_impl.h
970
971USBHDRS=	\
972	usba.h	\
973	usbai.h
974
975UWBHDRS=	\
976	uwb.h	\
977	uwbai.h
978
979UWBAHDRS=	\
980	uwba.h
981
982USBAUDHDRS=           \
983	usb_audio.h
984
985USBHUBDHDRS=		\
986	hub.h		\
987	hubd_impl.h
988
989USBHIDHDRS=		\
990	hid.h
991
992USBHWARCHDRS=		\
993	hwarc.h
994
995USBMSHDRS=		\
996	usb_bulkonly.h	\
997	usb_cbi.h
998
999USBPRNHDRS=           \
1000	usb_printer.h
1001
1002USBCDCHDRS=		\
1003	usb_cdc.h
1004
1005USBVIDHDRS=           \
1006	usbvc.h
1007
1008UGENHDRS=           \
1009	usb_ugen.h
1010
1011HOTPLUGHDRS=	\
1012	hpcsvc.h	\
1013	hpctrl.h
1014
1015HOTPLUGPCIHDRS=	\
1016	pcicfg.h	\
1017	pcihp.h
1018
1019RSMHDRS= \
1020	rsm.h	\
1021	rsm_common.h	\
1022	rsmapi_common.h \
1023	rsmpi.h	\
1024	rsmpi_driver.h	\
1025	rsmka_path_int.h
1026
1027TSOLHDRS=		\
1028	label.h		\
1029	label_macro.h	\
1030	priv.h		\
1031	tndb.h		\
1032	tsyscall.h
1033
1034I1394HDRS=		\
1035	cmd1394.h	\
1036	id1394.h	\
1037	ieee1212.h	\
1038	ieee1394.h	\
1039	ixl1394.h	\
1040	s1394_impl.h	\
1041	t1394.h
1042
1043# "cmdk" headers used on sparc
1044SDKTPHDRS=		\
1045	dadkio.h	\
1046	fdisk.h
1047
1048# "cmdk" headers used on i386
1049DKTPHDRS=		\
1050	altsctr.h	\
1051	bbh.h		\
1052	cm.h		\
1053	cmdev.h		\
1054	cmdk.h		\
1055	cmpkt.h		\
1056	controller.h	\
1057	dadev.h		\
1058	dadk.h		\
1059	dadkio.h	\
1060	fctypes.h	\
1061	fdisk.h		\
1062	flowctrl.h	\
1063	gda.h		\
1064	quetypes.h	\
1065	queue.h		\
1066	tgcom.h		\
1067	tgdk.h
1068
1069# "pc" header files used on i386
1070PCHDRS=			\
1071	avintr.h	\
1072	dma_engine.h	\
1073	i8272A.h	\
1074	pcic_reg.h	\
1075	pcic_var.h	\
1076	pic.h		\
1077	pit.h		\
1078	rtc.h
1079
1080NXGEHDRS=			\
1081	nxge.h			\
1082	nxge_common.h		\
1083	nxge_common_impl.h	\
1084	nxge_defs.h		\
1085	nxge_hw.h		\
1086	nxge_impl.h		\
1087	nxge_ipp.h		\
1088	nxge_ipp_hw.h		\
1089	nxge_mac.h		\
1090	nxge_mac_hw.h		\
1091	nxge_fflp.h		\
1092	nxge_fflp_hw.h		\
1093	nxge_mii.h		\
1094	nxge_rxdma.h		\
1095	nxge_rxdma_hw.h		\
1096	nxge_txc.h		\
1097	nxge_txc_hw.h		\
1098	nxge_txdma.h		\
1099	nxge_txdma_hw.h		\
1100	nxge_virtual.h		\
1101	nxge_espc.h
1102
1103include Makefile.syshdrs
1104
1105dcam/%.check:	dcam/%.h
1106	$(DOT_H_CHECK)
1107
1108CHECKHDRS=						\
1109	$($(MACH)_HDRS:%.h=%.check)			\
1110	$(AUDIOHDRS:%.h=audio/%.check)			\
1111	$(AVHDRS:%.h=av/%.check)			\
1112	$(BSCHDRS:%.h=%.check)				\
1113	$(CHKHDRS:%.h=%.check)				\
1114	$(CPUDRVHDRS:%.h=%.check)			\
1115	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1116	$(DCAMHDRS:%.h=dcam/%.check)			\
1117	$(FC4HDRS:%.h=fc4/%.check)			\
1118	$(FCHDRS:%.h=fibre-channel/%.check)		\
1119	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1120	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1121	$(IBHDRS:%.h=ib/%.check)			\
1122	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1123	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1124	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1125	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1126	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1127	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1128	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1129	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1130	$(IDMHDRS:%.h=idm/%.check)			\
1131	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1132	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1133	$(ISOHDRS:%.h=iso/%.check)			\
1134	$(FMHDRS:%.h=fm/%.check)			\
1135	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1136	$(FMIOHDRS:%.h=fm/io/%.check)			\
1137	$(FSHDRS:%.h=fs/%.check)			\
1138	$(LVMHDRS:%.h=lvm/%.check)			\
1139	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1140	$(SCSIHDRS:%.h=scsi/%.check)			\
1141	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1142	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1143	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1144	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1145	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1146	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1147	$(SATAGENHDRS:%.h=sata/%.check)			\
1148	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1149	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1150	$(CONTRACTHDRS:%.h=contract/%.check)            \
1151	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1152	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1153	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1154	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1155	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1156	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1157	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1158	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1159	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1160	$(USBHDRS:%.h=usb/%.check)                      \
1161	$(UWBHDRS:%.h=uwb/%.check)                      \
1162	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1163	$(I1394HDRS:%.h=1394/%.check)			\
1164	$(RSMHDRS:%.h=rsm/%.check)			\
1165	$(TSOLHDRS:%.h=tsol/%.check)			\
1166	$(NXGEHDRS:%.h=nxge/%.check)
1167
1168
1169.KEEP_STATE:
1170
1171.PARALLEL:			\
1172	$(CHECKHDRS)		\
1173	$(ROOTHDRS)		\
1174	$(ROOTAUDHDRS)		\
1175	$(ROOTAVHDRS)		\
1176	$(ROOTCRYPTOHDRS)	\
1177	$(ROOTDCAMHDRS)		\
1178	$(ROOTISOHDRS)		\
1179	$(ROOTIDMHDRS)		\
1180	$(ROOTISCSIHDRS)	\
1181	$(ROOTISCSITHDRS)	\
1182	$(ROOTFC4HDRS)		\
1183	$(ROOTFCHDRS)		\
1184	$(ROOTFCIMPLHDRS)	\
1185	$(ROOTFCULPHDRS)	\
1186	$(ROOTFMHDRS)		\
1187	$(ROOTFMIOHDRS)		\
1188	$(ROOTFMFSHDRS)		\
1189	$(ROOTFSHDRS)		\
1190	$(ROOTIBDHDRS)		\
1191	$(ROOTIBHDRS)		\
1192	$(ROOTIBTLHDRS)		\
1193	$(ROOTIBTLIMPLHDRS)	\
1194	$(ROOTIBNEXHDRS)	\
1195	$(ROOTIBMGTHDRS)	\
1196	$(ROOTIBMFHDRS)		\
1197	$(ROOTTAVORHDRS)	\
1198	$(ROOTHERMONHDRS)	\
1199	$(ROOTLVMHDRS)		\
1200	$(ROOTPCMCIAHDRS)	\
1201	$(ROOTSCSIHDRS)		\
1202	$(ROOTSCSIADHDRS)	\
1203	$(ROOTSCSICONFHDRS)	\
1204	$(ROOTSCSIISCSIHDRS)	\
1205	$(ROOTSCSIGENHDRS)	\
1206	$(ROOTSCSIIMPLHDRS)	\
1207	$(ROOTSCSIVHCIHDRS)	\
1208	$(ROOTSDCARDHDRS)	\
1209	$(ROOTSYSEVENTHDRS)     \
1210	$(ROOTCONTRACTHDRS)     \
1211	$(ROOTUSBHDRS)		\
1212	$(ROOTUWBHDRS)		\
1213	$(ROOTUWBAHDRS)		\
1214	$(ROOTUSBAUDHDRS)	\
1215	$(ROOTUSBHUBDHDRS)	\
1216	$(ROOTUSBHIDHDRS)	\
1217	$(ROOTUSBHRCHDRS)	\
1218	$(ROOTUSBMSHDRS)	\
1219	$(ROOTUSBPRNHDRS)       \
1220	$(ROOTUSBCDCHDRS)       \
1221	$(ROOTUSBVIDHDRS)       \
1222	$(ROOTUGENHDRS)		\
1223	$(ROOT1394HDRS)         \
1224	$(ROOTHOTPLUGHDRS)	\
1225	$(ROOTHOTPLUGPCIHDRS)	\
1226	$(ROOTRSMHDRS)		\
1227	$(ROOTTSOLHDRS)		\
1228	$($(MACH)_ROOTHDRS)
1229
1230
1231install_h:			\
1232	$(ROOTDIRS)		\
1233	LVMDERIVED_H		\
1234	.WAIT			\
1235	$(ROOTHDRS)		\
1236	$(ROOTAUDHDRS)		\
1237	$(ROOTAVHDRS)		\
1238	$(ROOTCRYPTOHDRS)	\
1239	$(ROOTDCAMHDRS)		\
1240	$(ROOTISOHDRS)		\
1241	$(ROOTIDMHDRS)		\
1242	$(ROOTISCSIHDRS)	\
1243	$(ROOTISCSITHDRS)	\
1244	$(ROOTFC4HDRS)		\
1245	$(ROOTFCHDRS)		\
1246	$(ROOTFCIMPLHDRS)	\
1247	$(ROOTFCULPHDRS)	\
1248	$(ROOTFMHDRS)		\
1249	$(ROOTFMFSHDRS)		\
1250	$(ROOTFMIOHDRS)		\
1251	$(ROOTFSHDRS)		\
1252	$(ROOTIBDHDRS)		\
1253	$(ROOTIBHDRS)		\
1254	$(ROOTIBTLHDRS)		\
1255	$(ROOTIBTLIMPLHDRS)	\
1256	$(ROOTIBNEXHDRS)	\
1257	$(ROOTIBMGTHDRS)	\
1258	$(ROOTIBMFHDRS)		\
1259	$(ROOTTAVORHDRS)	\
1260	$(ROOTHERMONHDRS)	\
1261	$(ROOTLVMHDRS)		\
1262	$(ROOTPCMCIAHDRS)	\
1263	$(ROOTSCSIHDRS)		\
1264	$(ROOTSCSIADHDRS)	\
1265	$(ROOTSCSIISCSIHDRS)	\
1266	$(ROOTSCSICONFHDRS)	\
1267	$(ROOTSCSIGENHDRS)	\
1268	$(ROOTSCSIIMPLHDRS)	\
1269	$(ROOTSCSIVHCIHDRS)     \
1270	$(ROOTSDCARDHDRS)	\
1271	$(ROOTSYSEVENTHDRS)     \
1272	$(ROOTCONTRACTHDRS)     \
1273	$(ROOTUWBHDRS)		\
1274	$(ROOTUWBAHDRS)		\
1275	$(ROOTUSBHDRS)		\
1276	$(ROOTUSBAUDHDRS)	\
1277	$(ROOTUSBHUBDHDRS)	\
1278	$(ROOTUSBHIDHDRS)	\
1279	$(ROOTUSBHRCHDRS)	\
1280	$(ROOTUSBMSHDRS)	\
1281	$(ROOTUSBPRNHDRS)       \
1282	$(ROOTUSBCDCHDRS)       \
1283	$(ROOTUSBVIDHDRS)       \
1284	$(ROOTUGENHDRS)		\
1285	$(ROOT1394HDRS)         \
1286	$(ROOTHOTPLUGHDRS)	\
1287	$(ROOTHOTPLUGPCIHDRS)	\
1288	$(ROOTRSMHDRS)		\
1289	$(ROOTTSOLHDRS)		\
1290	$($(MACH)_ROOTHDRS)
1291
1292all_h: $(GENHDRS)
1293
1294priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1295	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1296
1297priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1298	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1299
1300usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1301	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1302
1303LVMDERIVED_H:
1304	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1305
1306clean:
1307	$(RM) $(GENHDRS)
1308
1309clobber:	clean
1310
1311check:	$(CHECKHDRS)
1312
1313FRC:
1314
1315# EXPORT DELETE START
1316EXPORT_SRC:
1317	$(RM) wanboot_impl.h+ Makefile+
1318	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1319		< wanboot_impl.h > wanboot_impl.h+
1320	$(MV) wanboot_impl.h+ wanboot_impl.h
1321	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1322		< Makefile > Makefile+
1323	$(RM) Makefile
1324	$(MV) Makefile+ Makefile
1325	$(CHMOD) 444 Makefile wanboot_impl.h
1326# EXPORT DELETE END
1327