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