xref: /titanic_52/usr/src/uts/common/sys/Makefile (revision ac88567a7a5bb7f01cf22cf366bc9d6203e24d7a)
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	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	mac_stat.h		\
359	machelf.h		\
360	map.h			\
361	md4.h			\
362	md5.h			\
363	md5_consts.h		\
364	mdi_impldefs.h		\
365	mem.h			\
366	mem_config.h		\
367	memlist.h		\
368	mkdev.h			\
369	mhd.h			\
370	mii.h			\
371	miiregs.h		\
372	mixer.h			\
373	mman.h			\
374	mmapobj.h		\
375	mntent.h		\
376	mntio.h			\
377	mnttab.h		\
378	modctl.h		\
379	mode.h			\
380	model.h			\
381	modhash.h		\
382	modhash_impl.h		\
383	mount.h			\
384	mouse.h			\
385	msacct.h		\
386	msg.h			\
387	msg_impl.h		\
388	msio.h			\
389	msreg.h			\
390	mtio.h			\
391	multidata.h		\
392	multidata_impl.h	\
393	mutex.h			\
394	nbmlock.h		\
395	ndifm.h			\
396	ndi_impldefs.h		\
397	net80211.h		\
398	net80211_crypto.h	\
399	net80211_ht.h		\
400	net80211_proto.h	\
401	netconfig.h		\
402	neti.h			\
403	netstack.h		\
404	nexusdefs.h		\
405	note.h			\
406	nvpair.h		\
407	nvpair_impl.h		\
408	objfs.h			\
409	objfs_impl.h		\
410	ontrap.h		\
411	open.h			\
412	openpromio.h		\
413	panic.h			\
414	param.h			\
415	pathconf.h		\
416	pathname.h		\
417	pattr.h			\
418	queue.h			\
419	serializer.h		\
420	pbio.h			\
421	pccard.h		\
422	pci.h			\
423	pcie.h			\
424	pci_impl.h		\
425	pci_tools.h		\
426	pcmcia.h		\
427	pctypes.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
731OFHDRS=			\
732	ofa_solaris.h	\
733	ofed_kernel.h
734
735RDMAHDRS=		\
736	ib_verbs.h 	\
737	ib_user_verbs.h \
738	rdma_cm.h 	\
739	rdma_user_cm.h
740
741SOL_UVERBSHDRS=		\
742	sol_uverbs.h	\
743	sol_uverbs2ucma.h	\
744	sol_uverbs_comp.h	\
745	sol_uverbs_hca.h	\
746	sol_uverbs_qp.h		\
747	sol_uverbs_event.h
748
749SOL_UCMAHDRS=		\
750	sol_ucma.h	\
751	sol_rdma_user_cm.h
752
753SOL_OFSHDRS=		\
754	sol_cma.h	\
755	sol_ib_cma.h	\
756	sol_ofs_common.h
757
758TAVORHDRS=		\
759	tavor_ioctl.h
760
761HERMONHDRS=		\
762	hermon_ioctl.h
763
764IDMHDRS=		\
765	idm.h		\
766	idm_impl.h	\
767	idm_so.h	\
768	idm_text.h	\
769	idm_transport.h	\
770	idm_conn_sm.h
771
772ISCSITHDRS=		\
773	radius_packet.h		\
774	radius_protocol.h	\
775	chap.h			\
776	isns_protocol.h		\
777	iscsi_if.h		\
778	iscsit_common.h
779
780ISOHDRS=			\
781	signal_iso.h
782
783DERIVED_LVMHDRS=	\
784	md_mdiox.h		\
785	md_basic.h		\
786	mdmed.h			\
787	md_mhdx.h		\
788	mdmn_commd.h
789
790LVMHDRS=			\
791	md_convert.h		\
792	md_crc.h		\
793	md_hotspares.h		\
794	md_mddb.h		\
795	md_mirror.h		\
796	md_mirror_shared.h	\
797	md_names.h		\
798	md_notify.h		\
799	md_raid.h		\
800	md_rename.h		\
801	md_sp.h			\
802	md_stripe.h		\
803	md_trans.h		\
804	mdio.h			\
805	mdvar.h
806
807ALL_LVMHDRS=			\
808	$(LVMHDRS)		\
809	$(DERIVED_LVMHDRS)
810
811FMHDRS=				\
812	protocol.h		\
813	util.h
814
815FMFSHDRS=			\
816	zfs.h
817
818FMIOHDRS=			\
819	ddi.h			\
820	disk.h			\
821	pci.h			\
822	scsi.h			\
823	sun4upci.h		\
824	opl_mc_fm.h
825
826FSHDRS=				\
827	autofs.h		\
828	cachefs_dir.h		\
829	cachefs_dlog.h		\
830	cachefs_filegrp.h	\
831	cachefs_fs.h		\
832	cachefs_fscache.h	\
833	cachefs_ioctl.h		\
834	cachefs_log.h		\
835	decomp.h		\
836	dv_node.h		\
837	sdev_impl.h		\
838	fifonode.h		\
839	hsfs_isospec.h		\
840	hsfs_node.h		\
841	hsfs_rrip.h		\
842	hsfs_spec.h		\
843	hsfs_susp.h		\
844	lofs_info.h		\
845	lofs_node.h		\
846	mntdata.h		\
847	namenode.h		\
848	pc_dir.h		\
849	pc_fs.h			\
850	pc_label.h		\
851	pc_node.h		\
852	pxfs_ki.h		\
853	snode.h			\
854	swapnode.h		\
855	tmp.h			\
856	tmpnode.h		\
857	udf_inode.h		\
858	udf_volume.h		\
859	ufs_acl.h		\
860	ufs_bio.h		\
861	ufs_filio.h		\
862	ufs_fs.h		\
863	ufs_fsdir.h		\
864	ufs_inode.h		\
865	ufs_lockfs.h		\
866	ufs_log.h		\
867	ufs_mount.h		\
868	ufs_panic.h		\
869	ufs_prot.h		\
870	ufs_quota.h		\
871	ufs_snap.h              \
872	ufs_trans.h		\
873	zfs.h			\
874	zut.h
875
876PCMCIAHDRS=		\
877	pcata.h		\
878	pcser_conf.h	\
879	pcser_io.h	\
880	pcser_reg.h	\
881	pcser_manuspec.h \
882	pcser_var.h
883
884SCSIHDRS=		\
885	scsi.h		\
886	scsi_address.h	\
887	scsi_ctl.h	\
888	scsi_fm.h	\
889	scsi_params.h	\
890	scsi_pkt.h	\
891	scsi_resource.h	\
892	scsi_types.h	\
893	scsi_watch.h
894
895SCSICONFHDRS=		\
896	autoconf.h	\
897	device.h
898
899SCSIGENHDRS=		\
900	commands.h	\
901	dad_mode.h	\
902	inquiry.h	\
903	message.h	\
904	mode.h		\
905	persist.h	\
906	sense.h		\
907	sff_frames.h	\
908	smp_frames.h	\
909	status.h
910
911SCSIIMPLHDRS=		\
912	commands.h	\
913	inquiry.h	\
914	mode.h		\
915	scsi_reset_notify.h \
916	scsi_sas.h	\
917	sense.h		\
918	services.h	\
919	smp_transport.h	\
920	spc3_types.h	\
921	status.h	\
922	transport.h	\
923	types.h		\
924	uscsi.h		\
925	usmp.h
926
927SCSITARGETSHDRS=	\
928	ses.h		\
929	sesio.h		\
930	sgendef.h	\
931	stdef.h		\
932	sddef.h		\
933	smp.h
934
935SCSIADHDRS=		\
936	blk2scsa.h
937
938SCSICADHDRS=
939
940SCSIISCSIHDRS=		\
941	iscsi_door.h	\
942	iscsi_if.h
943
944SCSIVHCIHDRS=		\
945	scsi_vhci.h	\
946	mpapi_impl.h	\
947	mpapi_scsi_vhci.h
948
949SDCARDHDRS=		\
950	sda.h		\
951	sda_impl.h	\
952	sda_ioctl.h
953
954FC4HDRS=			\
955	fc_transport.h	\
956	linkapp.h	\
957	fc.h		\
958	fcp.h		\
959	fcal_transport.h \
960	fcal.h		\
961	fcal_linkapp.h	\
962	fcio.h
963
964FCHDRS=			\
965	fc.h		\
966	fcio.h		\
967	fc_types.h	\
968	fc_appif.h
969
970FCIMPLHDRS=		\
971	fc_error.h	\
972	fcph.h
973
974FCULPHDRS=		\
975	fcp_util.h	\
976	fcsm.h
977
978SATAGENHDRS=		\
979	sata_hba.h	\
980	sata_defs.h	\
981	sata_cfgadm.h
982
983SYSEVENTHDRS=		\
984	ap_driver.h     \
985	dev.h		\
986	domain.h        \
987	dr.h            \
988	env.h           \
989	eventdefs.h	\
990	ipmp.h		\
991	pwrctl.h	\
992	svm.h		\
993	vrrp.h
994
995CONTRACTHDRS=		\
996	process.h	\
997	process_impl.h	\
998	device.h	\
999	device_impl.h
1000
1001USBHDRS=	\
1002	usba.h	\
1003	usbai.h
1004
1005UWBHDRS=	\
1006	uwb.h	\
1007	uwbai.h
1008
1009UWBAHDRS=	\
1010	uwba.h
1011
1012USBAUDHDRS=           \
1013	usb_audio.h
1014
1015USBHUBDHDRS=		\
1016	hub.h		\
1017	hubd_impl.h
1018
1019USBHIDHDRS=		\
1020	hid.h
1021
1022USBHWARCHDRS=		\
1023	hwarc.h
1024
1025USBMSHDRS=		\
1026	usb_bulkonly.h	\
1027	usb_cbi.h
1028
1029USBPRNHDRS=           \
1030	usb_printer.h
1031
1032USBCDCHDRS=		\
1033	usb_cdc.h
1034
1035USBVIDHDRS=           \
1036	usbvc.h
1037
1038USBWCMHDRS=		\
1039	usbwcm.h
1040
1041UGENHDRS=           \
1042	usb_ugen.h
1043
1044HOTPLUGHDRS=	\
1045	hpcsvc.h	\
1046	hpctrl.h
1047
1048HOTPLUGPCIHDRS=	\
1049	pcicfg.h	\
1050	pcihp.h
1051
1052RSMHDRS= \
1053	rsm.h	\
1054	rsm_common.h	\
1055	rsmapi_common.h \
1056	rsmpi.h	\
1057	rsmpi_driver.h	\
1058	rsmka_path_int.h
1059
1060TSOLHDRS=		\
1061	label.h		\
1062	label_macro.h	\
1063	priv.h		\
1064	tndb.h		\
1065	tsyscall.h
1066
1067I1394HDRS=		\
1068	cmd1394.h	\
1069	id1394.h	\
1070	ieee1212.h	\
1071	ieee1394.h	\
1072	ixl1394.h	\
1073	s1394_impl.h	\
1074	t1394.h
1075
1076# "cmdk" headers used on sparc
1077SDKTPHDRS=		\
1078	dadkio.h	\
1079	fdisk.h
1080
1081# "cmdk" headers used on i386
1082DKTPHDRS=		\
1083	altsctr.h	\
1084	bbh.h		\
1085	cm.h		\
1086	cmdev.h		\
1087	cmdk.h		\
1088	cmpkt.h		\
1089	controller.h	\
1090	dadev.h		\
1091	dadk.h		\
1092	dadkio.h	\
1093	fctypes.h	\
1094	fdisk.h		\
1095	flowctrl.h	\
1096	gda.h		\
1097	quetypes.h	\
1098	queue.h		\
1099	tgcom.h		\
1100	tgdk.h
1101
1102# "pc" header files used on i386
1103PCHDRS=			\
1104	avintr.h	\
1105	dma_engine.h	\
1106	i8272A.h	\
1107	pcic_reg.h	\
1108	pcic_var.h	\
1109	pic.h		\
1110	pit.h		\
1111	rtc.h
1112
1113NXGEHDRS=			\
1114	nxge.h			\
1115	nxge_common.h		\
1116	nxge_common_impl.h	\
1117	nxge_defs.h		\
1118	nxge_hw.h		\
1119	nxge_impl.h		\
1120	nxge_ipp.h		\
1121	nxge_ipp_hw.h		\
1122	nxge_mac.h		\
1123	nxge_mac_hw.h		\
1124	nxge_fflp.h		\
1125	nxge_fflp_hw.h		\
1126	nxge_mii.h		\
1127	nxge_rxdma.h		\
1128	nxge_rxdma_hw.h		\
1129	nxge_txc.h		\
1130	nxge_txc_hw.h		\
1131	nxge_txdma.h		\
1132	nxge_txdma_hw.h		\
1133	nxge_virtual.h		\
1134	nxge_espc.h
1135
1136include Makefile.syshdrs
1137
1138dcam/%.check:	dcam/%.h
1139	$(DOT_H_CHECK)
1140
1141CHECKHDRS=						\
1142	$($(MACH)_HDRS:%.h=%.check)			\
1143	$(AUDIOHDRS:%.h=audio/%.check)			\
1144	$(AVHDRS:%.h=av/%.check)			\
1145	$(BSCHDRS:%.h=%.check)				\
1146	$(CHKHDRS:%.h=%.check)				\
1147	$(CPUDRVHDRS:%.h=%.check)			\
1148	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1149	$(DCAMHDRS:%.h=dcam/%.check)			\
1150	$(FC4HDRS:%.h=fc4/%.check)			\
1151	$(FCHDRS:%.h=fibre-channel/%.check)		\
1152	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1153	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1154	$(IBHDRS:%.h=ib/%.check)			\
1155	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1156	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1157	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1158	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1159	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1160	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1161	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1162	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1163	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1164	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1165	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1166	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1167	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1168	$(IDMHDRS:%.h=idm/%.check)			\
1169	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1170	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1171	$(ISOHDRS:%.h=iso/%.check)			\
1172	$(FMHDRS:%.h=fm/%.check)			\
1173	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1174	$(FMIOHDRS:%.h=fm/io/%.check)			\
1175	$(FSHDRS:%.h=fs/%.check)			\
1176	$(LVMHDRS:%.h=lvm/%.check)			\
1177	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1178	$(SCSIHDRS:%.h=scsi/%.check)			\
1179	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1180	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1181	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1182	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1183	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1184	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1185	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1186	$(SATAGENHDRS:%.h=sata/%.check)			\
1187	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1188	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1189	$(CONTRACTHDRS:%.h=contract/%.check)            \
1190	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1191	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1192	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1193	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1194	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1195	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1196	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1197	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1198	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1199	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1200	$(USBHDRS:%.h=usb/%.check)                      \
1201	$(UWBHDRS:%.h=uwb/%.check)                      \
1202	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1203	$(I1394HDRS:%.h=1394/%.check)			\
1204	$(RSMHDRS:%.h=rsm/%.check)			\
1205	$(TSOLHDRS:%.h=tsol/%.check)			\
1206	$(NXGEHDRS:%.h=nxge/%.check)
1207
1208
1209.KEEP_STATE:
1210
1211.PARALLEL:			\
1212	$(CHECKHDRS)		\
1213	$(ROOTHDRS)		\
1214	$(ROOTAUDHDRS)		\
1215	$(ROOTAVHDRS)		\
1216	$(ROOTCRYPTOHDRS)	\
1217	$(ROOTDCAMHDRS)		\
1218	$(ROOTISOHDRS)		\
1219	$(ROOTIDMHDRS)		\
1220	$(ROOTISCSIHDRS)	\
1221	$(ROOTISCSITHDRS)	\
1222	$(ROOTFC4HDRS)		\
1223	$(ROOTFCHDRS)		\
1224	$(ROOTFCIMPLHDRS)	\
1225	$(ROOTFCULPHDRS)	\
1226	$(ROOTFMHDRS)		\
1227	$(ROOTFMIOHDRS)		\
1228	$(ROOTFMFSHDRS)		\
1229	$(ROOTFSHDRS)		\
1230	$(ROOTIBDHDRS)		\
1231	$(ROOTIBHDRS)		\
1232	$(ROOTIBTLHDRS)		\
1233	$(ROOTIBTLIMPLHDRS)	\
1234	$(ROOTIBNEXHDRS)	\
1235	$(ROOTIBMGTHDRS)	\
1236	$(ROOTIBMFHDRS)		\
1237	$(ROOTOFHDRS)		\
1238	$(ROOTRDMAHDRS)		\
1239	$(ROOTSOL_OFSHDRS)	\
1240	$(ROOTSOL_UVERBSHDRS)	\
1241	$(ROOTSOL_UCMAHDRS)	\
1242	$(ROOTTAVORHDRS)	\
1243	$(ROOTHERMONHDRS)	\
1244	$(ROOTLVMHDRS)		\
1245	$(ROOTPCMCIAHDRS)	\
1246	$(ROOTSCSIHDRS)		\
1247	$(ROOTSCSIADHDRS)	\
1248	$(ROOTSCSICONFHDRS)	\
1249	$(ROOTSCSIISCSIHDRS)	\
1250	$(ROOTSCSIGENHDRS)	\
1251	$(ROOTSCSIIMPLHDRS)	\
1252	$(ROOTSCSIVHCIHDRS)	\
1253	$(ROOTSDCARDHDRS)	\
1254	$(ROOTSYSEVENTHDRS)     \
1255	$(ROOTCONTRACTHDRS)     \
1256	$(ROOTUSBHDRS)		\
1257	$(ROOTUWBHDRS)		\
1258	$(ROOTUWBAHDRS)		\
1259	$(ROOTUSBAUDHDRS)	\
1260	$(ROOTUSBHUBDHDRS)	\
1261	$(ROOTUSBHIDHDRS)	\
1262	$(ROOTUSBHRCHDRS)	\
1263	$(ROOTUSBMSHDRS)	\
1264	$(ROOTUSBPRNHDRS)       \
1265	$(ROOTUSBCDCHDRS)       \
1266	$(ROOTUSBVIDHDRS)       \
1267	$(ROOTUSBWCMHDRS)	\
1268	$(ROOTUGENHDRS)		\
1269	$(ROOT1394HDRS)         \
1270	$(ROOTHOTPLUGHDRS)	\
1271	$(ROOTHOTPLUGPCIHDRS)	\
1272	$(ROOTRSMHDRS)		\
1273	$(ROOTTSOLHDRS)		\
1274	$($(MACH)_ROOTHDRS)
1275
1276
1277install_h:			\
1278	$(ROOTDIRS)		\
1279	LVMDERIVED_H		\
1280	.WAIT			\
1281	$(ROOTHDRS)		\
1282	$(ROOTAUDHDRS)		\
1283	$(ROOTAVHDRS)		\
1284	$(ROOTCRYPTOHDRS)	\
1285	$(ROOTDCAMHDRS)		\
1286	$(ROOTISOHDRS)		\
1287	$(ROOTIDMHDRS)		\
1288	$(ROOTISCSIHDRS)	\
1289	$(ROOTISCSITHDRS)	\
1290	$(ROOTFC4HDRS)		\
1291	$(ROOTFCHDRS)		\
1292	$(ROOTFCIMPLHDRS)	\
1293	$(ROOTFCULPHDRS)	\
1294	$(ROOTFMHDRS)		\
1295	$(ROOTFMFSHDRS)		\
1296	$(ROOTFMIOHDRS)		\
1297	$(ROOTFSHDRS)		\
1298	$(ROOTIBDHDRS)		\
1299	$(ROOTIBHDRS)		\
1300	$(ROOTIBTLHDRS)		\
1301	$(ROOTIBTLIMPLHDRS)	\
1302	$(ROOTIBNEXHDRS)	\
1303	$(ROOTIBMGTHDRS)	\
1304	$(ROOTIBMFHDRS)		\
1305	$(ROOTOFHDRS)		\
1306	$(ROOTRDMAHDRS)		\
1307	$(ROOTSOL_OFSHDRS)	\
1308	$(ROOTSOL_UVERBSHDRS)	\
1309	$(ROOTSOL_UCMAHDRS)	\
1310	$(ROOTTAVORHDRS)	\
1311	$(ROOTHERMONHDRS)	\
1312	$(ROOTLVMHDRS)		\
1313	$(ROOTPCMCIAHDRS)	\
1314	$(ROOTSCSIHDRS)		\
1315	$(ROOTSCSIADHDRS)	\
1316	$(ROOTSCSIISCSIHDRS)	\
1317	$(ROOTSCSICONFHDRS)	\
1318	$(ROOTSCSIGENHDRS)	\
1319	$(ROOTSCSIIMPLHDRS)	\
1320	$(ROOTSCSIVHCIHDRS)     \
1321	$(ROOTSDCARDHDRS)	\
1322	$(ROOTSYSEVENTHDRS)     \
1323	$(ROOTCONTRACTHDRS)     \
1324	$(ROOTUWBHDRS)		\
1325	$(ROOTUWBAHDRS)		\
1326	$(ROOTUSBHDRS)		\
1327	$(ROOTUSBAUDHDRS)	\
1328	$(ROOTUSBHUBDHDRS)	\
1329	$(ROOTUSBHIDHDRS)	\
1330	$(ROOTUSBHRCHDRS)	\
1331	$(ROOTUSBMSHDRS)	\
1332	$(ROOTUSBPRNHDRS)       \
1333	$(ROOTUSBCDCHDRS)       \
1334	$(ROOTUSBVIDHDRS)       \
1335	$(ROOTUSBWCMHDRS)	\
1336	$(ROOTUGENHDRS)		\
1337	$(ROOT1394HDRS)         \
1338	$(ROOTHOTPLUGHDRS)	\
1339	$(ROOTHOTPLUGPCIHDRS)	\
1340	$(ROOTRSMHDRS)		\
1341	$(ROOTTSOLHDRS)		\
1342	$($(MACH)_ROOTHDRS)
1343
1344all_h: $(GENHDRS)
1345
1346priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1347	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1348
1349priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1350	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1351
1352usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1353	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1354
1355LVMDERIVED_H:
1356	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1357
1358clean:
1359	$(RM) $(GENHDRS)
1360
1361clobber:	clean
1362
1363check:	$(CHECKHDRS)
1364
1365FRC:
1366
1367# EXPORT DELETE START
1368EXPORT_SRC:
1369	$(RM) wanboot_impl.h+ Makefile+
1370	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1371		< wanboot_impl.h > wanboot_impl.h+
1372	$(MV) wanboot_impl.h+ wanboot_impl.h
1373	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1374		< Makefile > Makefile+
1375	$(RM) Makefile
1376	$(MV) Makefile+ Makefile
1377	$(CHMOD) 444 Makefile wanboot_impl.h
1378# EXPORT DELETE END
1379