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