xref: /titanic_52/usr/src/uts/common/sys/Makefile (revision 80e2ca8596e3435bc3b76f3c597833ea0a87f85e)
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 (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23#
24
25include $(SRC)/uts/Makefile.uts
26
27FILEMODE=644
28
29#
30#	Note that the following headers are present in the kernel but
31#	neither installed or shipped as part of the product:
32#		cpuid_drv.h:		Private interface for cpuid consumers
33#		unix_bb_info.h:		Private interface to kcov
34#
35
36i386_HDRS=			\
37	agp/agpamd64gart_io.h	\
38	agp/agpdefs.h		\
39	agp/agpgart_impl.h	\
40	agp/agpmaster_io.h	\
41	agp/agptarget_io.h	\
42	agpgart.h		\
43	asy.h			\
44	fd_debug.h		\
45	fdc.h			\
46	fdmedia.h		\
47	mouse.h			\
48	ucode.h
49
50sparc_HDRS= 			\
51	mouse.h			\
52	scsi/targets/ssddef.h	\
53	$(MDESCHDRS)
54
55# Generated headers
56GENHDRS=			\
57	priv_const.h		\
58	priv_names.h		\
59	usb/usbdevs.h
60
61CHKHDRS=			\
62	acpi_drv.h		\
63	acct.h			\
64	acctctl.h		\
65	acl.h			\
66	acl_impl.h		\
67	aggr.h			\
68	aggr_impl.h		\
69	aio.h			\
70	aio_impl.h		\
71	aio_req.h		\
72	aiocb.h			\
73	ascii.h			\
74	asynch.h		\
75	atomic.h		\
76	attr.h			\
77	audio.h			\
78	audioio.h		\
79	autoconf.h		\
80	auxv.h			\
81	auxv_386.h		\
82	auxv_SPARC.h		\
83	avl.h			\
84	avl_impl.h		\
85	bitmap.h		\
86	bitset.h		\
87	bl.h			\
88	bmc_intf.h		\
89	bofi.h			\
90	bofi_impl.h		\
91	bpp_io.h		\
92	bootstat.h		\
93	brand.h			\
94	buf.h			\
95	bufmod.h		\
96	bustypes.h		\
97	byteorder.h		\
98	callb.h			\
99	callo.h			\
100	cap_util.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	ibpart.h		\
265	id32.h			\
266	idmap.h 		\
267	ieeefp.h		\
268	id_space.h		\
269	instance.h		\
270	int_const.h		\
271	int_fmtio.h		\
272	int_limits.h		\
273	int_types.h		\
274	inttypes.h		\
275	ioccom.h		\
276	ioctl.h			\
277	ipc.h			\
278	ipc_impl.h		\
279	ipc_rctl.h		\
280	isa_defs.h		\
281	iscsi_authclient.h	\
282	iscsi_authclientglue.h	\
283	iscsi_protocol.h	\
284	jioctl.h		\
285	kbd.h			\
286	kbdreg.h		\
287	kbio.h			\
288	kcpc.h			\
289	kdi.h			\
290	kdi_impl.h		\
291	kiconv.h		\
292	kiconv_big5_utf8.h	\
293	kiconv_cck_common.h	\
294	kiconv_cp950hkscs_utf8.h	\
295	kiconv_emea1.h		\
296	kiconv_emea2.h		\
297	kiconv_euckr_utf8.h	\
298	kiconv_euctw_utf8.h	\
299	kiconv_gb18030_utf8.h	\
300	kiconv_gb2312_utf8.h	\
301	kiconv_hkscs_utf8.h	\
302	kiconv_ja.h		\
303	kiconv_ja_jis_to_unicode.h	\
304	kiconv_ja_unicode_to_jis.h	\
305	kiconv_ko.h		\
306	kiconv_latin1.h		\
307	kiconv_sc.h		\
308	kiconv_tc.h		\
309	kiconv_uhc_utf8.h	\
310	kiconv_utf8_big5.h	\
311	kiconv_utf8_cp950hkscs.h	\
312	kiconv_utf8_euckr.h	\
313	kiconv_utf8_euctw.h	\
314	kiconv_utf8_gb18030.h	\
315	kiconv_utf8_gb2312.h	\
316	kiconv_utf8_hkscs.h	\
317	kiconv_utf8_uhc.h	\
318	kidmap.h		\
319	klpd.h			\
320	klwp.h			\
321	kmdb.h			\
322	kmem.h			\
323	kmem_impl.h		\
324	kobj.h			\
325	kobj_impl.h		\
326	ksocket.h		\
327	kstat.h			\
328	kstr.h			\
329	ksyms.h			\
330	ksynch.h		\
331	ldterm.h		\
332	lgrp.h			\
333	lgrp_user.h		\
334	libc_kernel.h		\
335	link.h			\
336	list.h			\
337	list_impl.h		\
338	llc1.h			\
339	loadavg.h		\
340	lock.h			\
341	lockfs.h		\
342	lockstat.h		\
343	lofi.h			\
344	log.h			\
345	logindmux.h		\
346	logindmux_impl.h	\
347	lwp.h			\
348	lwp_timer_impl.h	\
349	lwp_upimutex_impl.h	\
350	lpif.h			\
351	mac.h			\
352	mac_client.h		\
353	mac_client_impl.h	\
354	mac_flow.h		\
355	mac_flow_impl.h		\
356	mac_impl.h		\
357	mac_provider.h		\
358	mac_soft_ring.h		\
359	mac_stat.h		\
360	machelf.h		\
361	map.h			\
362	md4.h			\
363	md5.h			\
364	md5_consts.h		\
365	mdi_impldefs.h		\
366	mem.h			\
367	mem_config.h		\
368	memlist.h		\
369	mkdev.h			\
370	mhd.h			\
371	mii.h			\
372	miiregs.h		\
373	mixer.h			\
374	mman.h			\
375	mmapobj.h		\
376	mntent.h		\
377	mntio.h			\
378	mnttab.h		\
379	modctl.h		\
380	mode.h			\
381	model.h			\
382	modhash.h		\
383	modhash_impl.h		\
384	mount.h			\
385	mouse.h			\
386	msacct.h		\
387	msg.h			\
388	msg_impl.h		\
389	msio.h			\
390	msreg.h			\
391	mtio.h			\
392	multidata.h		\
393	multidata_impl.h	\
394	mutex.h			\
395	nbmlock.h		\
396	ndifm.h			\
397	ndi_impldefs.h		\
398	net80211.h		\
399	net80211_crypto.h	\
400	net80211_ht.h		\
401	net80211_proto.h	\
402	netconfig.h		\
403	neti.h			\
404	netstack.h		\
405	nexusdefs.h		\
406	note.h			\
407	nvpair.h		\
408	nvpair_impl.h		\
409	objfs.h			\
410	objfs_impl.h		\
411	ontrap.h		\
412	open.h			\
413	openpromio.h		\
414	panic.h			\
415	param.h			\
416	pathconf.h		\
417	pathname.h		\
418	pattr.h			\
419	queue.h			\
420	serializer.h		\
421	pbio.h			\
422	pccard.h		\
423	pci.h			\
424	pcie.h			\
425	pci_impl.h		\
426	pci_tools.h		\
427	pcmcia.h		\
428	pctypes.h		\
429	pfmod.h			\
430	pg.h			\
431	pghw.h			\
432	physmem.h		\
433	pm.h			\
434	policy.h		\
435	poll.h			\
436	poll_impl.h		\
437	pool.h			\
438	pool_impl.h		\
439	pool_pset.h		\
440	port.h			\
441	port_impl.h		\
442	port_kernel.h		\
443	portif.h		\
444	ppmio.h			\
445	pppt_ic_if.h		\
446	pppt_ioctl.h		\
447	priocntl.h		\
448	priv.h			\
449	priv_impl.h		\
450	prnio.h			\
451	proc.h			\
452	processor.h		\
453	procfs.h		\
454	procset.h		\
455	project.h		\
456	protosw.h		\
457	prsystm.h		\
458	pset.h			\
459	pshot.h			\
460	ptem.h			\
461	ptms.h			\
462	ptyvar.h		\
463	raidioctl.h		\
464	ramdisk.h		\
465	random.h		\
466	rctl.h			\
467	rctl_impl.h		\
468	rds.h			\
469	reboot.h		\
470	refstr.h		\
471	refstr_impl.h		\
472	resource.h		\
473	rlioctl.h		\
474	rt.h			\
475	rtpriocntl.h		\
476	rwlock.h		\
477	rwlock_impl.h		\
478	rwstlock.h		\
479	sad.h			\
480	schedctl.h		\
481	sdt.h			\
482	select.h		\
483	sem.h			\
484	sem_impl.h		\
485	sema_impl.h		\
486	semaphore.h		\
487	sendfile.h		\
488	ser_sync.h		\
489	session.h		\
490	sha1.h			\
491	sha1_consts.h		\
492	sha2.h			\
493	sha2_consts.h		\
494	share.h			\
495	shm.h			\
496	shm_impl.h		\
497	sid.h			\
498	siginfo.h		\
499	signal.h		\
500	sleepq.h		\
501	smbios.h		\
502	smbios_impl.h		\
503	sobject.h		\
504	socket.h		\
505	socket_impl.h		\
506	socket_proto.h		\
507	socketvar.h		\
508	sockio.h		\
509	soundcard.h		\
510	squeue.h		\
511	squeue_impl.h		\
512	srn.h			\
513	sservice.h		\
514	stat.h			\
515	statfs.h		\
516	statvfs.h		\
517	stdbool.h		\
518	stdint.h		\
519	stermio.h		\
520	stmf.h			\
521	stmf_defines.h		\
522	stmf_ioctl.h		\
523	stmf_sbd_ioctl.h	\
524	stream.h		\
525	strft.h			\
526	strlog.h		\
527	strmdep.h		\
528	stropts.h		\
529	strredir.h		\
530	strstat.h		\
531	strsubr.h		\
532	strsun.h		\
533	strtty.h		\
534	sunddi.h		\
535	sunldi.h		\
536	sunldi_impl.h		\
537	sunmdi.h		\
538	sunndi.h		\
539	sunos_dhcp_class.h	\
540	sunpm.h			\
541	suntpi.h		\
542	suntty.h		\
543	swap.h			\
544	synch.h			\
545	sysdc.h			\
546	sysdc_impl.h		\
547	syscall.h		\
548	sysconf.h		\
549	sysconfig.h		\
550	sysevent.h		\
551	sysevent_impl.h		\
552	sysinfo.h		\
553	syslog.h		\
554	sysmacros.h		\
555	sysmsg_impl.h		\
556	systeminfo.h		\
557	systm.h			\
558	task.h			\
559	taskq.h			\
560	taskq_impl.h		\
561	t_kuser.h		\
562	t_lock.h		\
563	telioctl.h		\
564	termio.h		\
565	termios.h		\
566	termiox.h		\
567	thread.h		\
568	ticlts.h		\
569	ticots.h		\
570	ticotsord.h		\
571	tihdr.h			\
572	time.h			\
573	time_impl.h		\
574	time_std_impl.h		\
575	timeb.h			\
576	timer.h			\
577	times.h			\
578	timex.h			\
579	timod.h			\
580	tirdwr.h		\
581	tiuser.h		\
582	tl.h			\
583	tnf.h			\
584	tnf_com.h		\
585	tnf_probe.h		\
586	tnf_writer.h		\
587	todio.h			\
588	tpicommon.h		\
589	ts.h			\
590	tspriocntl.h		\
591	ttcompat.h		\
592	ttold.h			\
593	tty.h			\
594	ttychars.h		\
595	ttydev.h		\
596	tuneable.h		\
597	turnstile.h		\
598	types.h			\
599	types32.h		\
600	tzfile.h		\
601	u8_textprep.h		\
602	u8_textprep_data.h	\
603	uadmin.h		\
604	ucred.h			\
605	uio.h			\
606	ulimit.h		\
607	un.h			\
608	unistd.h		\
609	user.h			\
610	ustat.h			\
611	utime.h			\
612	utsname.h		\
613	utssys.h		\
614	uuid.h			\
615	va_impl.h		\
616	va_list.h		\
617	var.h			\
618	varargs.h		\
619	vfs.h			\
620	vfs_opreg.h		\
621	vfstab.h		\
622	vgareg.h		\
623	videodev2.h		\
624	visual_io.h		\
625	vlan.h			\
626	vm.h			\
627	vm_usage.h		\
628	vmem.h			\
629	vmem_impl.h		\
630	vmmeter.h		\
631	vmsystm.h		\
632	vnic.h			\
633	vnic_impl.h		\
634	vnode.h			\
635	vscan.h			\
636	vtoc.h			\
637	vtrace.h		\
638	vuid_event.h		\
639	vuid_wheel.h		\
640	vuid_queue.h		\
641	vuid_state.h		\
642	vuid_store.h		\
643	wait.h			\
644	waitq.h			\
645	wanboot_impl.h		\
646	watchpoint.h		\
647	winlockio.h		\
648	zcons.h			\
649	zone.h			\
650	xti_inet.h		\
651	xti_osi.h		\
652	xti_xtiopt.h		\
653	zmod.h
654
655HDRS=				\
656	$(GENHDRS)		\
657	$(CHKHDRS)
658
659AUDIOHDRS=			\
660	ac97.h			\
661	audio_common.h		\
662	audio_driver.h		\
663	audio_oss.h		\
664	g711.h
665
666AVHDRS=				\
667	iec61883.h
668
669BSCHDRS=			\
670	bscbus.h		\
671	bscv_impl.h		\
672	lom_ebuscodes.h		\
673	lom_io.h		\
674	lom_priv.h		\
675	lombus.h
676
677MDESCHDRS=			\
678	mdesc.h			\
679	mdesc_impl.h
680
681CPUDRVHDRS=			\
682	cpudrv.h
683
684CRYPTOHDRS=			\
685	elfsign.h		\
686	ioctl.h			\
687	ioctladmin.h		\
688	common.h		\
689	impl.h			\
690	spi.h			\
691	api.h			\
692	ops_impl.h		\
693	sched_impl.h
694
695DCAMHDRS=			\
696	dcam1394_io.h
697
698IBHDRS=			\
699	ib_types.h	\
700	ib_pkt_hdrs.h
701
702IBTLHDRS=		\
703	ibtl_types.h	\
704	ibtl_status.h	\
705	ibti.h		\
706	ibti_cm.h	\
707	ibci.h		\
708	ibti_common.h	\
709	ibvti.h		\
710	ibtl_ci_types.h
711
712IBTLIMPLHDRS=		\
713	ibtl_util.h
714
715IBNEXHDRS=		\
716	ibnex_devctl.h
717
718IBMFHDRS=		\
719	ibmf.h		\
720	ibmf_msg.h	\
721	ibmf_saa.h	\
722	ibmf_utils.h
723
724IBMGTHDRS=		\
725	ib_dm_attr.h	\
726	ib_mad.h	\
727	sm_attr.h	\
728	sa_recs.h
729
730IBDHDRS=		\
731	ibd.h
732
733OFHDRS=			\
734	ofa_solaris.h	\
735	ofed_kernel.h
736
737RDMAHDRS=		\
738	ib_verbs.h 	\
739	ib_user_verbs.h \
740	rdma_cm.h 	\
741	rdma_user_cm.h
742
743SOL_UVERBSHDRS=		\
744	sol_uverbs.h	\
745	sol_uverbs2ucma.h	\
746	sol_uverbs_comp.h	\
747	sol_uverbs_hca.h	\
748	sol_uverbs_qp.h		\
749	sol_uverbs_event.h
750
751SOL_UCMAHDRS=		\
752	sol_ucma.h	\
753	sol_rdma_user_cm.h
754
755SOL_OFSHDRS=		\
756	sol_cma.h	\
757	sol_ib_cma.h	\
758	sol_ofs_common.h	\
759	sol_kverb_impl.h
760
761TAVORHDRS=		\
762	tavor_ioctl.h
763
764HERMONHDRS=		\
765	hermon_ioctl.h
766
767IDMHDRS=		\
768	idm.h		\
769	idm_impl.h	\
770	idm_so.h	\
771	idm_text.h	\
772	idm_transport.h	\
773	idm_conn_sm.h
774
775ISCSITHDRS=		\
776	radius_packet.h		\
777	radius_protocol.h	\
778	chap.h			\
779	isns_protocol.h		\
780	iscsi_if.h		\
781	iscsit_common.h
782
783ISOHDRS=			\
784	signal_iso.h
785
786DERIVED_LVMHDRS=	\
787	md_mdiox.h		\
788	md_basic.h		\
789	mdmed.h			\
790	md_mhdx.h		\
791	mdmn_commd.h
792
793LVMHDRS=			\
794	md_convert.h		\
795	md_crc.h		\
796	md_hotspares.h		\
797	md_mddb.h		\
798	md_mirror.h		\
799	md_mirror_shared.h	\
800	md_names.h		\
801	md_notify.h		\
802	md_raid.h		\
803	md_rename.h		\
804	md_sp.h			\
805	md_stripe.h		\
806	md_trans.h		\
807	mdio.h			\
808	mdvar.h
809
810ALL_LVMHDRS=			\
811	$(LVMHDRS)		\
812	$(DERIVED_LVMHDRS)
813
814FMHDRS=				\
815	protocol.h		\
816	util.h
817
818FMFSHDRS=			\
819	zfs.h
820
821FMIOHDRS=			\
822	ddi.h			\
823	disk.h			\
824	pci.h			\
825	scsi.h			\
826	sun4upci.h		\
827	opl_mc_fm.h
828
829FSHDRS=				\
830	autofs.h		\
831	cachefs_dir.h		\
832	cachefs_dlog.h		\
833	cachefs_filegrp.h	\
834	cachefs_fs.h		\
835	cachefs_fscache.h	\
836	cachefs_ioctl.h		\
837	cachefs_log.h		\
838	decomp.h		\
839	dv_node.h		\
840	sdev_impl.h		\
841	fifonode.h		\
842	hsfs_isospec.h		\
843	hsfs_node.h		\
844	hsfs_rrip.h		\
845	hsfs_spec.h		\
846	hsfs_susp.h		\
847	lofs_info.h		\
848	lofs_node.h		\
849	mntdata.h		\
850	namenode.h		\
851	pc_dir.h		\
852	pc_fs.h			\
853	pc_label.h		\
854	pc_node.h		\
855	pxfs_ki.h		\
856	snode.h			\
857	swapnode.h		\
858	tmp.h			\
859	tmpnode.h		\
860	udf_inode.h		\
861	udf_volume.h		\
862	ufs_acl.h		\
863	ufs_bio.h		\
864	ufs_filio.h		\
865	ufs_fs.h		\
866	ufs_fsdir.h		\
867	ufs_inode.h		\
868	ufs_lockfs.h		\
869	ufs_log.h		\
870	ufs_mount.h		\
871	ufs_panic.h		\
872	ufs_prot.h		\
873	ufs_quota.h		\
874	ufs_snap.h              \
875	ufs_trans.h		\
876	zfs.h			\
877	zut.h
878
879PCMCIAHDRS=		\
880	pcata.h		\
881	pcser_conf.h	\
882	pcser_io.h	\
883	pcser_reg.h	\
884	pcser_manuspec.h \
885	pcser_var.h
886
887SCSIHDRS=		\
888	scsi.h		\
889	scsi_address.h	\
890	scsi_ctl.h	\
891	scsi_fm.h	\
892	scsi_params.h	\
893	scsi_pkt.h	\
894	scsi_resource.h	\
895	scsi_types.h	\
896	scsi_watch.h
897
898SCSICONFHDRS=		\
899	autoconf.h	\
900	device.h
901
902SCSIGENHDRS=		\
903	commands.h	\
904	dad_mode.h	\
905	inquiry.h	\
906	message.h	\
907	mode.h		\
908	persist.h	\
909	sense.h		\
910	sff_frames.h	\
911	smp_frames.h	\
912	status.h
913
914SCSIIMPLHDRS=		\
915	commands.h	\
916	inquiry.h	\
917	mode.h		\
918	scsi_reset_notify.h \
919	scsi_sas.h	\
920	sense.h		\
921	services.h	\
922	smp_transport.h	\
923	spc3_types.h	\
924	status.h	\
925	transport.h	\
926	types.h		\
927	uscsi.h		\
928	usmp.h
929
930SCSITARGETSHDRS=	\
931	ses.h		\
932	sesio.h		\
933	sgendef.h	\
934	stdef.h		\
935	sddef.h		\
936	smp.h
937
938SCSIADHDRS=		\
939	blk2scsa.h
940
941SCSICADHDRS=
942
943SCSIISCSIHDRS=		\
944	iscsi_door.h	\
945	iscsi_if.h
946
947SCSIVHCIHDRS=		\
948	scsi_vhci.h	\
949	mpapi_impl.h	\
950	mpapi_scsi_vhci.h
951
952SDCARDHDRS=		\
953	sda.h		\
954	sda_impl.h	\
955	sda_ioctl.h
956
957FC4HDRS=			\
958	fc_transport.h	\
959	linkapp.h	\
960	fc.h		\
961	fcp.h		\
962	fcal_transport.h \
963	fcal.h		\
964	fcal_linkapp.h	\
965	fcio.h
966
967FCHDRS=			\
968	fc.h		\
969	fcio.h		\
970	fc_types.h	\
971	fc_appif.h
972
973FCIMPLHDRS=		\
974	fc_error.h	\
975	fcph.h
976
977FCULPHDRS=		\
978	fcp_util.h	\
979	fcsm.h
980
981SATAGENHDRS=		\
982	sata_hba.h	\
983	sata_defs.h	\
984	sata_cfgadm.h
985
986SYSEVENTHDRS=		\
987	ap_driver.h     \
988	dev.h		\
989	domain.h        \
990	dr.h            \
991	env.h           \
992	eventdefs.h	\
993	ipmp.h		\
994	pwrctl.h	\
995	svm.h		\
996	vrrp.h
997
998CONTRACTHDRS=		\
999	process.h	\
1000	process_impl.h	\
1001	device.h	\
1002	device_impl.h
1003
1004USBHDRS=	\
1005	usba.h	\
1006	usbai.h
1007
1008UWBHDRS=	\
1009	uwb.h	\
1010	uwbai.h
1011
1012UWBAHDRS=	\
1013	uwba.h
1014
1015USBAUDHDRS=           \
1016	usb_audio.h
1017
1018USBHUBDHDRS=		\
1019	hub.h		\
1020	hubd_impl.h
1021
1022USBHIDHDRS=		\
1023	hid.h
1024
1025USBHWARCHDRS=		\
1026	hwarc.h
1027
1028USBMSHDRS=		\
1029	usb_bulkonly.h	\
1030	usb_cbi.h
1031
1032USBPRNHDRS=           \
1033	usb_printer.h
1034
1035USBCDCHDRS=		\
1036	usb_cdc.h
1037
1038USBVIDHDRS=           \
1039	usbvc.h
1040
1041USBWCMHDRS=		\
1042	usbwcm.h
1043
1044UGENHDRS=           \
1045	usb_ugen.h
1046
1047HOTPLUGHDRS=	\
1048	hpcsvc.h	\
1049	hpctrl.h
1050
1051HOTPLUGPCIHDRS=	\
1052	pcicfg.h	\
1053	pcihp.h
1054
1055RSMHDRS= \
1056	rsm.h	\
1057	rsm_common.h	\
1058	rsmapi_common.h \
1059	rsmpi.h	\
1060	rsmpi_driver.h	\
1061	rsmka_path_int.h
1062
1063TSOLHDRS=		\
1064	label.h		\
1065	label_macro.h	\
1066	priv.h		\
1067	tndb.h		\
1068	tsyscall.h
1069
1070I1394HDRS=		\
1071	cmd1394.h	\
1072	id1394.h	\
1073	ieee1212.h	\
1074	ieee1394.h	\
1075	ixl1394.h	\
1076	s1394_impl.h	\
1077	t1394.h
1078
1079# "cmdk" headers used on sparc
1080SDKTPHDRS=		\
1081	dadkio.h	\
1082	fdisk.h
1083
1084# "cmdk" headers used on i386
1085DKTPHDRS=		\
1086	altsctr.h	\
1087	bbh.h		\
1088	cm.h		\
1089	cmdev.h		\
1090	cmdk.h		\
1091	cmpkt.h		\
1092	controller.h	\
1093	dadev.h		\
1094	dadk.h		\
1095	dadkio.h	\
1096	fctypes.h	\
1097	fdisk.h		\
1098	flowctrl.h	\
1099	gda.h		\
1100	quetypes.h	\
1101	queue.h		\
1102	tgcom.h		\
1103	tgdk.h
1104
1105# "pc" header files used on i386
1106PCHDRS=			\
1107	avintr.h	\
1108	dma_engine.h	\
1109	i8272A.h	\
1110	pcic_reg.h	\
1111	pcic_var.h	\
1112	pic.h		\
1113	pit.h		\
1114	rtc.h
1115
1116NXGEHDRS=			\
1117	nxge.h			\
1118	nxge_common.h		\
1119	nxge_common_impl.h	\
1120	nxge_defs.h		\
1121	nxge_hw.h		\
1122	nxge_impl.h		\
1123	nxge_ipp.h		\
1124	nxge_ipp_hw.h		\
1125	nxge_mac.h		\
1126	nxge_mac_hw.h		\
1127	nxge_fflp.h		\
1128	nxge_fflp_hw.h		\
1129	nxge_mii.h		\
1130	nxge_rxdma.h		\
1131	nxge_rxdma_hw.h		\
1132	nxge_txc.h		\
1133	nxge_txc_hw.h		\
1134	nxge_txdma.h		\
1135	nxge_txdma_hw.h		\
1136	nxge_virtual.h		\
1137	nxge_espc.h
1138
1139include Makefile.syshdrs
1140
1141dcam/%.check:	dcam/%.h
1142	$(DOT_H_CHECK)
1143
1144CHECKHDRS=						\
1145	$($(MACH)_HDRS:%.h=%.check)			\
1146	$(AUDIOHDRS:%.h=audio/%.check)			\
1147	$(AVHDRS:%.h=av/%.check)			\
1148	$(BSCHDRS:%.h=%.check)				\
1149	$(CHKHDRS:%.h=%.check)				\
1150	$(CPUDRVHDRS:%.h=%.check)			\
1151	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1152	$(DCAMHDRS:%.h=dcam/%.check)			\
1153	$(FC4HDRS:%.h=fc4/%.check)			\
1154	$(FCHDRS:%.h=fibre-channel/%.check)		\
1155	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1156	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1157	$(IBHDRS:%.h=ib/%.check)			\
1158	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1159	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1160	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1161	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1162	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1163	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1164	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1165	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1166	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1167	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1168	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1169	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1170	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1171	$(IDMHDRS:%.h=idm/%.check)			\
1172	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1173	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1174	$(ISOHDRS:%.h=iso/%.check)			\
1175	$(FMHDRS:%.h=fm/%.check)			\
1176	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1177	$(FMIOHDRS:%.h=fm/io/%.check)			\
1178	$(FSHDRS:%.h=fs/%.check)			\
1179	$(LVMHDRS:%.h=lvm/%.check)			\
1180	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1181	$(SCSIHDRS:%.h=scsi/%.check)			\
1182	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1183	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1184	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1185	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1186	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1187	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1188	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1189	$(SATAGENHDRS:%.h=sata/%.check)			\
1190	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1191	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1192	$(CONTRACTHDRS:%.h=contract/%.check)            \
1193	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1194	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1195	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1196	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1197	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1198	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1199	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1200	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1201	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1202	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1203	$(USBHDRS:%.h=usb/%.check)                      \
1204	$(UWBHDRS:%.h=uwb/%.check)                      \
1205	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1206	$(I1394HDRS:%.h=1394/%.check)			\
1207	$(RSMHDRS:%.h=rsm/%.check)			\
1208	$(TSOLHDRS:%.h=tsol/%.check)			\
1209	$(NXGEHDRS:%.h=nxge/%.check)
1210
1211
1212.KEEP_STATE:
1213
1214.PARALLEL:			\
1215	$(CHECKHDRS)		\
1216	$(ROOTHDRS)		\
1217	$(ROOTAUDHDRS)		\
1218	$(ROOTAVHDRS)		\
1219	$(ROOTCRYPTOHDRS)	\
1220	$(ROOTDCAMHDRS)		\
1221	$(ROOTISOHDRS)		\
1222	$(ROOTIDMHDRS)		\
1223	$(ROOTISCSIHDRS)	\
1224	$(ROOTISCSITHDRS)	\
1225	$(ROOTFC4HDRS)		\
1226	$(ROOTFCHDRS)		\
1227	$(ROOTFCIMPLHDRS)	\
1228	$(ROOTFCULPHDRS)	\
1229	$(ROOTFMHDRS)		\
1230	$(ROOTFMIOHDRS)		\
1231	$(ROOTFMFSHDRS)		\
1232	$(ROOTFSHDRS)		\
1233	$(ROOTIBDHDRS)		\
1234	$(ROOTIBHDRS)		\
1235	$(ROOTIBTLHDRS)		\
1236	$(ROOTIBTLIMPLHDRS)	\
1237	$(ROOTIBNEXHDRS)	\
1238	$(ROOTIBMGTHDRS)	\
1239	$(ROOTIBMFHDRS)		\
1240	$(ROOTOFHDRS)		\
1241	$(ROOTRDMAHDRS)		\
1242	$(ROOTSOL_OFSHDRS)	\
1243	$(ROOTSOL_UVERBSHDRS)	\
1244	$(ROOTSOL_UCMAHDRS)	\
1245	$(ROOTTAVORHDRS)	\
1246	$(ROOTHERMONHDRS)	\
1247	$(ROOTLVMHDRS)		\
1248	$(ROOTPCMCIAHDRS)	\
1249	$(ROOTSCSIHDRS)		\
1250	$(ROOTSCSIADHDRS)	\
1251	$(ROOTSCSICONFHDRS)	\
1252	$(ROOTSCSIISCSIHDRS)	\
1253	$(ROOTSCSIGENHDRS)	\
1254	$(ROOTSCSIIMPLHDRS)	\
1255	$(ROOTSCSIVHCIHDRS)	\
1256	$(ROOTSDCARDHDRS)	\
1257	$(ROOTSYSEVENTHDRS)     \
1258	$(ROOTCONTRACTHDRS)     \
1259	$(ROOTUSBHDRS)		\
1260	$(ROOTUWBHDRS)		\
1261	$(ROOTUWBAHDRS)		\
1262	$(ROOTUSBAUDHDRS)	\
1263	$(ROOTUSBHUBDHDRS)	\
1264	$(ROOTUSBHIDHDRS)	\
1265	$(ROOTUSBHRCHDRS)	\
1266	$(ROOTUSBMSHDRS)	\
1267	$(ROOTUSBPRNHDRS)       \
1268	$(ROOTUSBCDCHDRS)       \
1269	$(ROOTUSBVIDHDRS)       \
1270	$(ROOTUSBWCMHDRS)	\
1271	$(ROOTUGENHDRS)		\
1272	$(ROOT1394HDRS)         \
1273	$(ROOTHOTPLUGHDRS)	\
1274	$(ROOTHOTPLUGPCIHDRS)	\
1275	$(ROOTRSMHDRS)		\
1276	$(ROOTTSOLHDRS)		\
1277	$($(MACH)_ROOTHDRS)
1278
1279
1280install_h:			\
1281	$(ROOTDIRS)		\
1282	LVMDERIVED_H		\
1283	.WAIT			\
1284	$(ROOTHDRS)		\
1285	$(ROOTAUDHDRS)		\
1286	$(ROOTAVHDRS)		\
1287	$(ROOTCRYPTOHDRS)	\
1288	$(ROOTDCAMHDRS)		\
1289	$(ROOTISOHDRS)		\
1290	$(ROOTIDMHDRS)		\
1291	$(ROOTISCSIHDRS)	\
1292	$(ROOTISCSITHDRS)	\
1293	$(ROOTFC4HDRS)		\
1294	$(ROOTFCHDRS)		\
1295	$(ROOTFCIMPLHDRS)	\
1296	$(ROOTFCULPHDRS)	\
1297	$(ROOTFMHDRS)		\
1298	$(ROOTFMFSHDRS)		\
1299	$(ROOTFMIOHDRS)		\
1300	$(ROOTFSHDRS)		\
1301	$(ROOTIBDHDRS)		\
1302	$(ROOTIBHDRS)		\
1303	$(ROOTIBTLHDRS)		\
1304	$(ROOTIBTLIMPLHDRS)	\
1305	$(ROOTIBNEXHDRS)	\
1306	$(ROOTIBMGTHDRS)	\
1307	$(ROOTIBMFHDRS)		\
1308	$(ROOTOFHDRS)		\
1309	$(ROOTRDMAHDRS)		\
1310	$(ROOTSOL_OFSHDRS)	\
1311	$(ROOTSOL_UVERBSHDRS)	\
1312	$(ROOTSOL_UCMAHDRS)	\
1313	$(ROOTTAVORHDRS)	\
1314	$(ROOTHERMONHDRS)	\
1315	$(ROOTLVMHDRS)		\
1316	$(ROOTPCMCIAHDRS)	\
1317	$(ROOTSCSIHDRS)		\
1318	$(ROOTSCSIADHDRS)	\
1319	$(ROOTSCSIISCSIHDRS)	\
1320	$(ROOTSCSICONFHDRS)	\
1321	$(ROOTSCSIGENHDRS)	\
1322	$(ROOTSCSIIMPLHDRS)	\
1323	$(ROOTSCSIVHCIHDRS)     \
1324	$(ROOTSDCARDHDRS)	\
1325	$(ROOTSYSEVENTHDRS)     \
1326	$(ROOTCONTRACTHDRS)     \
1327	$(ROOTUWBHDRS)		\
1328	$(ROOTUWBAHDRS)		\
1329	$(ROOTUSBHDRS)		\
1330	$(ROOTUSBAUDHDRS)	\
1331	$(ROOTUSBHUBDHDRS)	\
1332	$(ROOTUSBHIDHDRS)	\
1333	$(ROOTUSBHRCHDRS)	\
1334	$(ROOTUSBMSHDRS)	\
1335	$(ROOTUSBPRNHDRS)       \
1336	$(ROOTUSBCDCHDRS)       \
1337	$(ROOTUSBVIDHDRS)       \
1338	$(ROOTUSBWCMHDRS)	\
1339	$(ROOTUGENHDRS)		\
1340	$(ROOT1394HDRS)         \
1341	$(ROOTHOTPLUGHDRS)	\
1342	$(ROOTHOTPLUGPCIHDRS)	\
1343	$(ROOTRSMHDRS)		\
1344	$(ROOTTSOLHDRS)		\
1345	$($(MACH)_ROOTHDRS)
1346
1347all_h: $(GENHDRS)
1348
1349priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1350	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1351
1352priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1353	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1354
1355usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1356	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1357
1358LVMDERIVED_H:
1359	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1360
1361clean:
1362	$(RM) $(GENHDRS)
1363
1364clobber:	clean
1365
1366check:	$(CHECKHDRS)
1367
1368FRC:
1369
1370# EXPORT DELETE START
1371EXPORT_SRC:
1372	$(RM) wanboot_impl.h+ Makefile+
1373	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1374		< wanboot_impl.h > wanboot_impl.h+
1375	$(MV) wanboot_impl.h+ wanboot_impl.h
1376	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1377		< Makefile > Makefile+
1378	$(RM) Makefile
1379	$(MV) Makefile+ Makefile
1380	$(CHMOD) 444 Makefile wanboot_impl.h
1381# EXPORT DELETE END
1382