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