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