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