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