xref: /titanic_41/usr/src/uts/common/sys/Makefile (revision 5819f75e225cf93d9c11f52e04ee71c2dcd0eca9)
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	smp_frames.h	\
908	status.h
909
910SCSIIMPLHDRS=		\
911	commands.h	\
912	inquiry.h	\
913	mode.h		\
914	scsi_reset_notify.h \
915	scsi_sas.h	\
916	sense.h		\
917	services.h	\
918	smp_transport.h	\
919	spc3_types.h	\
920	status.h	\
921	transport.h	\
922	types.h		\
923	uscsi.h		\
924	usmp.h
925
926SCSITARGETSHDRS=	\
927	ses.h		\
928	sesio.h		\
929	sgendef.h	\
930	stdef.h		\
931	sddef.h		\
932	smp.h
933
934SCSIADHDRS=		\
935	blk2scsa.h
936
937SCSICADHDRS=
938
939SCSIISCSIHDRS=		\
940	iscsi_door.h	\
941	iscsi_if.h
942
943SCSIVHCIHDRS=		\
944	scsi_vhci.h	\
945	mpapi_impl.h	\
946	mpapi_scsi_vhci.h
947
948SDCARDHDRS=		\
949	sda.h		\
950	sda_impl.h	\
951	sda_ioctl.h
952
953FC4HDRS=			\
954	fc_transport.h	\
955	linkapp.h	\
956	fc.h		\
957	fcp.h		\
958	fcal_transport.h \
959	fcal.h		\
960	fcal_linkapp.h	\
961	fcio.h
962
963FCHDRS=			\
964	fc.h		\
965	fcio.h		\
966	fc_types.h	\
967	fc_appif.h
968
969FCIMPLHDRS=		\
970	fc_error.h	\
971	fcph.h
972
973FCULPHDRS=		\
974	fcp_util.h	\
975	fcsm.h
976
977SATAGENHDRS=		\
978	sata_hba.h	\
979	sata_defs.h	\
980	sata_cfgadm.h
981
982SYSEVENTHDRS=		\
983	ap_driver.h     \
984	dev.h		\
985	domain.h        \
986	dr.h            \
987	env.h           \
988	eventdefs.h	\
989	ipmp.h		\
990	pwrctl.h	\
991	svm.h		\
992	vrrp.h
993
994CONTRACTHDRS=		\
995	process.h	\
996	process_impl.h	\
997	device.h	\
998	device_impl.h
999
1000USBHDRS=	\
1001	usba.h	\
1002	usbai.h
1003
1004UWBHDRS=	\
1005	uwb.h	\
1006	uwbai.h
1007
1008UWBAHDRS=	\
1009	uwba.h
1010
1011USBAUDHDRS=           \
1012	usb_audio.h
1013
1014USBHUBDHDRS=		\
1015	hub.h		\
1016	hubd_impl.h
1017
1018USBHIDHDRS=		\
1019	hid.h
1020
1021USBHWARCHDRS=		\
1022	hwarc.h
1023
1024USBMSHDRS=		\
1025	usb_bulkonly.h	\
1026	usb_cbi.h
1027
1028USBPRNHDRS=           \
1029	usb_printer.h
1030
1031USBCDCHDRS=		\
1032	usb_cdc.h
1033
1034USBVIDHDRS=           \
1035	usbvc.h
1036
1037USBWCMHDRS=		\
1038	usbwcm.h
1039
1040UGENHDRS=           \
1041	usb_ugen.h
1042
1043HOTPLUGHDRS=	\
1044	hpcsvc.h	\
1045	hpctrl.h
1046
1047HOTPLUGPCIHDRS=	\
1048	pcicfg.h	\
1049	pcihp.h
1050
1051RSMHDRS= \
1052	rsm.h	\
1053	rsm_common.h	\
1054	rsmapi_common.h \
1055	rsmpi.h	\
1056	rsmpi_driver.h	\
1057	rsmka_path_int.h
1058
1059TSOLHDRS=		\
1060	label.h		\
1061	label_macro.h	\
1062	priv.h		\
1063	tndb.h		\
1064	tsyscall.h
1065
1066I1394HDRS=		\
1067	cmd1394.h	\
1068	id1394.h	\
1069	ieee1212.h	\
1070	ieee1394.h	\
1071	ixl1394.h	\
1072	s1394_impl.h	\
1073	t1394.h
1074
1075# "cmdk" headers used on sparc
1076SDKTPHDRS=		\
1077	dadkio.h	\
1078	fdisk.h
1079
1080# "cmdk" headers used on i386
1081DKTPHDRS=		\
1082	altsctr.h	\
1083	bbh.h		\
1084	cm.h		\
1085	cmdev.h		\
1086	cmdk.h		\
1087	cmpkt.h		\
1088	controller.h	\
1089	dadev.h		\
1090	dadk.h		\
1091	dadkio.h	\
1092	fctypes.h	\
1093	fdisk.h		\
1094	flowctrl.h	\
1095	gda.h		\
1096	quetypes.h	\
1097	queue.h		\
1098	tgcom.h		\
1099	tgdk.h
1100
1101# "pc" header files used on i386
1102PCHDRS=			\
1103	avintr.h	\
1104	dma_engine.h	\
1105	i8272A.h	\
1106	pcic_reg.h	\
1107	pcic_var.h	\
1108	pic.h		\
1109	pit.h		\
1110	rtc.h
1111
1112NXGEHDRS=			\
1113	nxge.h			\
1114	nxge_common.h		\
1115	nxge_common_impl.h	\
1116	nxge_defs.h		\
1117	nxge_hw.h		\
1118	nxge_impl.h		\
1119	nxge_ipp.h		\
1120	nxge_ipp_hw.h		\
1121	nxge_mac.h		\
1122	nxge_mac_hw.h		\
1123	nxge_fflp.h		\
1124	nxge_fflp_hw.h		\
1125	nxge_mii.h		\
1126	nxge_rxdma.h		\
1127	nxge_rxdma_hw.h		\
1128	nxge_txc.h		\
1129	nxge_txc_hw.h		\
1130	nxge_txdma.h		\
1131	nxge_txdma_hw.h		\
1132	nxge_virtual.h		\
1133	nxge_espc.h
1134
1135include Makefile.syshdrs
1136
1137dcam/%.check:	dcam/%.h
1138	$(DOT_H_CHECK)
1139
1140CHECKHDRS=						\
1141	$($(MACH)_HDRS:%.h=%.check)			\
1142	$(AUDIOHDRS:%.h=audio/%.check)			\
1143	$(AVHDRS:%.h=av/%.check)			\
1144	$(BSCHDRS:%.h=%.check)				\
1145	$(CHKHDRS:%.h=%.check)				\
1146	$(CPUDRVHDRS:%.h=%.check)			\
1147	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1148	$(DCAMHDRS:%.h=dcam/%.check)			\
1149	$(FC4HDRS:%.h=fc4/%.check)			\
1150	$(FCHDRS:%.h=fibre-channel/%.check)		\
1151	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1152	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1153	$(IBHDRS:%.h=ib/%.check)			\
1154	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1155	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1156	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1157	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1158	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1159	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1160	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1161	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1162	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1163	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1164	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1165	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1166	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1167	$(IDMHDRS:%.h=idm/%.check)			\
1168	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1169	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1170	$(ISOHDRS:%.h=iso/%.check)			\
1171	$(FMHDRS:%.h=fm/%.check)			\
1172	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1173	$(FMIOHDRS:%.h=fm/io/%.check)			\
1174	$(FSHDRS:%.h=fs/%.check)			\
1175	$(LVMHDRS:%.h=lvm/%.check)			\
1176	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1177	$(SCSIHDRS:%.h=scsi/%.check)			\
1178	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1179	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1180	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1181	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1182	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1183	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1184	$(SATAGENHDRS:%.h=sata/%.check)			\
1185	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1186	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1187	$(CONTRACTHDRS:%.h=contract/%.check)            \
1188	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1189	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1190	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1191	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1192	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1193	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1194	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1195	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1196	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1197	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1198	$(USBHDRS:%.h=usb/%.check)                      \
1199	$(UWBHDRS:%.h=uwb/%.check)                      \
1200	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1201	$(I1394HDRS:%.h=1394/%.check)			\
1202	$(RSMHDRS:%.h=rsm/%.check)			\
1203	$(TSOLHDRS:%.h=tsol/%.check)			\
1204	$(NXGEHDRS:%.h=nxge/%.check)
1205
1206
1207.KEEP_STATE:
1208
1209.PARALLEL:			\
1210	$(CHECKHDRS)		\
1211	$(ROOTHDRS)		\
1212	$(ROOTAUDHDRS)		\
1213	$(ROOTAVHDRS)		\
1214	$(ROOTCRYPTOHDRS)	\
1215	$(ROOTDCAMHDRS)		\
1216	$(ROOTISOHDRS)		\
1217	$(ROOTIDMHDRS)		\
1218	$(ROOTISCSIHDRS)	\
1219	$(ROOTISCSITHDRS)	\
1220	$(ROOTFC4HDRS)		\
1221	$(ROOTFCHDRS)		\
1222	$(ROOTFCIMPLHDRS)	\
1223	$(ROOTFCULPHDRS)	\
1224	$(ROOTFMHDRS)		\
1225	$(ROOTFMIOHDRS)		\
1226	$(ROOTFMFSHDRS)		\
1227	$(ROOTFSHDRS)		\
1228	$(ROOTIBDHDRS)		\
1229	$(ROOTIBHDRS)		\
1230	$(ROOTIBTLHDRS)		\
1231	$(ROOTIBTLIMPLHDRS)	\
1232	$(ROOTIBNEXHDRS)	\
1233	$(ROOTIBMGTHDRS)	\
1234	$(ROOTIBMFHDRS)		\
1235	$(ROOTOFHDRS)		\
1236	$(ROOTRDMAHDRS)		\
1237	$(ROOTSOL_OFSHDRS)	\
1238	$(ROOTSOL_UVERBSHDRS)	\
1239	$(ROOTSOL_UCMAHDRS)	\
1240	$(ROOTTAVORHDRS)	\
1241	$(ROOTHERMONHDRS)	\
1242	$(ROOTLVMHDRS)		\
1243	$(ROOTPCMCIAHDRS)	\
1244	$(ROOTSCSIHDRS)		\
1245	$(ROOTSCSIADHDRS)	\
1246	$(ROOTSCSICONFHDRS)	\
1247	$(ROOTSCSIISCSIHDRS)	\
1248	$(ROOTSCSIGENHDRS)	\
1249	$(ROOTSCSIIMPLHDRS)	\
1250	$(ROOTSCSIVHCIHDRS)	\
1251	$(ROOTSDCARDHDRS)	\
1252	$(ROOTSYSEVENTHDRS)     \
1253	$(ROOTCONTRACTHDRS)     \
1254	$(ROOTUSBHDRS)		\
1255	$(ROOTUWBHDRS)		\
1256	$(ROOTUWBAHDRS)		\
1257	$(ROOTUSBAUDHDRS)	\
1258	$(ROOTUSBHUBDHDRS)	\
1259	$(ROOTUSBHIDHDRS)	\
1260	$(ROOTUSBHRCHDRS)	\
1261	$(ROOTUSBMSHDRS)	\
1262	$(ROOTUSBPRNHDRS)       \
1263	$(ROOTUSBCDCHDRS)       \
1264	$(ROOTUSBVIDHDRS)       \
1265	$(ROOTUSBWCMHDRS)	\
1266	$(ROOTUGENHDRS)		\
1267	$(ROOT1394HDRS)         \
1268	$(ROOTHOTPLUGHDRS)	\
1269	$(ROOTHOTPLUGPCIHDRS)	\
1270	$(ROOTRSMHDRS)		\
1271	$(ROOTTSOLHDRS)		\
1272	$($(MACH)_ROOTHDRS)
1273
1274
1275install_h:			\
1276	$(ROOTDIRS)		\
1277	LVMDERIVED_H		\
1278	.WAIT			\
1279	$(ROOTHDRS)		\
1280	$(ROOTAUDHDRS)		\
1281	$(ROOTAVHDRS)		\
1282	$(ROOTCRYPTOHDRS)	\
1283	$(ROOTDCAMHDRS)		\
1284	$(ROOTISOHDRS)		\
1285	$(ROOTIDMHDRS)		\
1286	$(ROOTISCSIHDRS)	\
1287	$(ROOTISCSITHDRS)	\
1288	$(ROOTFC4HDRS)		\
1289	$(ROOTFCHDRS)		\
1290	$(ROOTFCIMPLHDRS)	\
1291	$(ROOTFCULPHDRS)	\
1292	$(ROOTFMHDRS)		\
1293	$(ROOTFMFSHDRS)		\
1294	$(ROOTFMIOHDRS)		\
1295	$(ROOTFSHDRS)		\
1296	$(ROOTIBDHDRS)		\
1297	$(ROOTIBHDRS)		\
1298	$(ROOTIBTLHDRS)		\
1299	$(ROOTIBTLIMPLHDRS)	\
1300	$(ROOTIBNEXHDRS)	\
1301	$(ROOTIBMGTHDRS)	\
1302	$(ROOTIBMFHDRS)		\
1303	$(ROOTOFHDRS)		\
1304	$(ROOTRDMAHDRS)		\
1305	$(ROOTSOL_OFSHDRS)	\
1306	$(ROOTSOL_UVERBSHDRS)	\
1307	$(ROOTSOL_UCMAHDRS)	\
1308	$(ROOTTAVORHDRS)	\
1309	$(ROOTHERMONHDRS)	\
1310	$(ROOTLVMHDRS)		\
1311	$(ROOTPCMCIAHDRS)	\
1312	$(ROOTSCSIHDRS)		\
1313	$(ROOTSCSIADHDRS)	\
1314	$(ROOTSCSIISCSIHDRS)	\
1315	$(ROOTSCSICONFHDRS)	\
1316	$(ROOTSCSIGENHDRS)	\
1317	$(ROOTSCSIIMPLHDRS)	\
1318	$(ROOTSCSIVHCIHDRS)     \
1319	$(ROOTSDCARDHDRS)	\
1320	$(ROOTSYSEVENTHDRS)     \
1321	$(ROOTCONTRACTHDRS)     \
1322	$(ROOTUWBHDRS)		\
1323	$(ROOTUWBAHDRS)		\
1324	$(ROOTUSBHDRS)		\
1325	$(ROOTUSBAUDHDRS)	\
1326	$(ROOTUSBHUBDHDRS)	\
1327	$(ROOTUSBHIDHDRS)	\
1328	$(ROOTUSBHRCHDRS)	\
1329	$(ROOTUSBMSHDRS)	\
1330	$(ROOTUSBPRNHDRS)       \
1331	$(ROOTUSBCDCHDRS)       \
1332	$(ROOTUSBVIDHDRS)       \
1333	$(ROOTUSBWCMHDRS)	\
1334	$(ROOTUGENHDRS)		\
1335	$(ROOT1394HDRS)         \
1336	$(ROOTHOTPLUGHDRS)	\
1337	$(ROOTHOTPLUGPCIHDRS)	\
1338	$(ROOTRSMHDRS)		\
1339	$(ROOTTSOLHDRS)		\
1340	$($(MACH)_ROOTHDRS)
1341
1342all_h: $(GENHDRS)
1343
1344priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1345	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1346
1347priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1348	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1349
1350usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1351	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1352
1353LVMDERIVED_H:
1354	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1355
1356clean:
1357	$(RM) $(GENHDRS)
1358
1359clobber:	clean
1360
1361check:	$(CHECKHDRS)
1362
1363FRC:
1364
1365# EXPORT DELETE START
1366EXPORT_SRC:
1367	$(RM) wanboot_impl.h+ Makefile+
1368	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1369		< wanboot_impl.h > wanboot_impl.h+
1370	$(MV) wanboot_impl.h+ wanboot_impl.h
1371	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1372		< Makefile > Makefile+
1373	$(RM) Makefile
1374	$(MV) Makefile+ Makefile
1375	$(CHMOD) 444 Makefile wanboot_impl.h
1376# EXPORT DELETE END
1377