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