xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision 23a9f846c20554daf41a34c0f67d0184f9bb792f)
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	fifonode.h		\
802	hsfs_isospec.h		\
803	hsfs_node.h		\
804	hsfs_rrip.h		\
805	hsfs_spec.h		\
806	hsfs_susp.h		\
807	lofs_info.h		\
808	lofs_node.h		\
809	mntdata.h		\
810	namenode.h		\
811	pc_dir.h		\
812	pc_fs.h			\
813	pc_label.h		\
814	pc_node.h		\
815	pxfs_ki.h		\
816	snode.h			\
817	swapnode.h		\
818	tmp.h			\
819	tmpnode.h		\
820	udf_inode.h		\
821	udf_volume.h		\
822	ufs_acl.h		\
823	ufs_bio.h		\
824	ufs_filio.h		\
825	ufs_fs.h		\
826	ufs_fsdir.h		\
827	ufs_inode.h		\
828	ufs_lockfs.h		\
829	ufs_log.h		\
830	ufs_mount.h		\
831	ufs_panic.h		\
832	ufs_prot.h		\
833	ufs_quota.h		\
834	ufs_snap.h              \
835	ufs_trans.h		\
836	zfs.h			\
837	zut.h
838
839PCMCIAHDRS=		\
840	pcata.h		\
841	pcgld.h		\
842	pcramio.h	\
843	pcramvar.h	\
844	pcser_conf.h	\
845	pcser_io.h	\
846	pcser_reg.h	\
847	pcser_manuspec.h \
848	pcser_var.h
849
850SCSIHDRS=		\
851	scsi.h		\
852	scsi_address.h	\
853	scsi_ctl.h	\
854	scsi_fm.h	\
855	scsi_params.h	\
856	scsi_pkt.h	\
857	scsi_resource.h	\
858	scsi_types.h	\
859	scsi_watch.h
860
861SCSICONFHDRS=		\
862	autoconf.h	\
863	device.h
864
865SCSIGENHDRS=		\
866	commands.h	\
867	dad_mode.h	\
868	inquiry.h	\
869	message.h	\
870	mode.h		\
871	persist.h	\
872	sense.h		\
873	smp_frames.h	\
874	status.h
875
876SCSIIMPLHDRS=		\
877	commands.h	\
878	inquiry.h	\
879	mode.h		\
880	sas_transport.h	\
881	sense.h		\
882	services.h	\
883	status.h	\
884	transport.h	\
885	scsi_reset_notify.h \
886	spc3_types.h	\
887	types.h		\
888	uscsi.h		\
889	usmp.h
890
891SCSITARGETSHDRS=	\
892	ses.h		\
893	sesio.h		\
894	sgendef.h	\
895	stdef.h		\
896	sddef.h		\
897	smp.h
898
899SCSIADHDRS=		\
900	blk2scsa.h
901
902SCSICADHDRS=
903
904SCSIISCSIHDRS=		\
905	iscsi_door.h	\
906	iscsi_if.h
907
908SCSIVHCIHDRS=		\
909	scsi_vhci.h	\
910	mpapi_impl.h	\
911	mpapi_scsi_vhci.h
912
913SDCARDHDRS=		\
914	sda.h		\
915	sda_impl.h	\
916	sda_ioctl.h
917
918FC4HDRS=			\
919	fc_transport.h	\
920	linkapp.h	\
921	fc.h		\
922	fcp.h		\
923	fcal_transport.h \
924	fcal.h		\
925	fcal_linkapp.h	\
926	fcio.h
927
928FCHDRS=			\
929	fc.h		\
930	fcio.h		\
931	fc_types.h	\
932	fc_appif.h
933
934FCIMPLHDRS=		\
935	fc_error.h	\
936	fcph.h
937
938FCULPHDRS=		\
939	fcp_util.h	\
940	fcsm.h
941
942SATAGENHDRS=		\
943	sata_hba.h	\
944	sata_defs.h	\
945	sata_cfgadm.h
946
947SYSEVENTHDRS=		\
948	ap_driver.h     \
949	dev.h		\
950	domain.h        \
951	dr.h            \
952	env.h           \
953	eventdefs.h	\
954	ipmp.h		\
955	pwrctl.h	\
956	svm.h
957
958CONTRACTHDRS=		\
959	process.h	\
960	process_impl.h	\
961	device.h	\
962	device_impl.h
963
964USBHDRS=	\
965	usba.h	\
966	usbai.h
967
968UWBHDRS=	\
969	uwb.h	\
970	uwbai.h
971
972UWBAHDRS=	\
973	uwba.h
974
975USBAUDHDRS=           \
976	usb_audio.h
977
978USBHUBDHDRS=		\
979	hub.h		\
980	hubd_impl.h
981
982USBHIDHDRS=		\
983	hid.h
984
985USBHWARCHDRS=		\
986	hwarc.h
987
988USBMSHDRS=		\
989	usb_bulkonly.h	\
990	usb_cbi.h
991
992USBPRNHDRS=           \
993	usb_printer.h
994
995USBCDCHDRS=		\
996	usb_cdc.h
997
998USBVIDHDRS=           \
999	usbvc.h
1000
1001UGENHDRS=           \
1002	usb_ugen.h
1003
1004HOTPLUGHDRS=	\
1005	hpcsvc.h	\
1006	hpctrl.h
1007
1008HOTPLUGPCIHDRS=	\
1009	pcicfg.h	\
1010	pcihp.h
1011
1012RSMHDRS= \
1013	rsm.h	\
1014	rsm_common.h	\
1015	rsmapi_common.h \
1016	rsmpi.h	\
1017	rsmpi_driver.h	\
1018	rsmka_path_int.h
1019
1020TSOLHDRS=		\
1021	label.h		\
1022	label_macro.h	\
1023	priv.h		\
1024	tndb.h		\
1025	tsyscall.h
1026
1027I1394HDRS=		\
1028	cmd1394.h	\
1029	id1394.h	\
1030	ieee1212.h	\
1031	ieee1394.h	\
1032	ixl1394.h	\
1033	s1394_impl.h	\
1034	t1394.h
1035
1036# "cmdk" headers used on sparc
1037SDKTPHDRS=		\
1038	dadkio.h	\
1039	fdisk.h
1040
1041# "cmdk" headers used on i386
1042DKTPHDRS=		\
1043	altsctr.h	\
1044	bbh.h		\
1045	cm.h		\
1046	cmdev.h		\
1047	cmdk.h		\
1048	cmpkt.h		\
1049	controller.h	\
1050	dadev.h		\
1051	dadk.h		\
1052	dadkio.h	\
1053	fctypes.h	\
1054	fdisk.h		\
1055	flowctrl.h	\
1056	gda.h		\
1057	quetypes.h	\
1058	queue.h		\
1059	tgcom.h		\
1060	tgdk.h
1061
1062# "pc" header files used on i386
1063PCHDRS=			\
1064	avintr.h	\
1065	dma_engine.h	\
1066	i8272A.h	\
1067	pcic_reg.h	\
1068	pcic_var.h	\
1069	pic.h		\
1070	pit.h		\
1071	rtc.h
1072
1073NXGEHDRS=			\
1074	nxge.h			\
1075	nxge_common.h		\
1076	nxge_common_impl.h	\
1077	nxge_defs.h		\
1078	nxge_hw.h		\
1079	nxge_impl.h		\
1080	nxge_ipp.h		\
1081	nxge_ipp_hw.h		\
1082	nxge_mac.h		\
1083	nxge_mac_hw.h		\
1084	nxge_fflp.h		\
1085	nxge_fflp_hw.h		\
1086	nxge_mii.h		\
1087	nxge_rxdma.h		\
1088	nxge_rxdma_hw.h		\
1089	nxge_txc.h		\
1090	nxge_txc_hw.h		\
1091	nxge_txdma.h		\
1092	nxge_txdma_hw.h		\
1093	nxge_virtual.h		\
1094	nxge_espc.h
1095
1096include Makefile.syshdrs
1097
1098dcam/%.check:	dcam/%.h
1099	$(DOT_H_CHECK)
1100
1101CHECKHDRS=						\
1102	$($(MACH)_HDRS:%.h=%.check)			\
1103	$(AUDIOHDRS:%.h=audio/%.check)			\
1104	$(AVHDRS:%.h=av/%.check)			\
1105	$(BSCHDRS:%.h=%.check)				\
1106	$(CHKHDRS:%.h=%.check)				\
1107	$(CPUDRVHDRS:%.h=%.check)			\
1108	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1109	$(DCAMHDRS:%.h=dcam/%.check)			\
1110	$(FC4HDRS:%.h=fc4/%.check)			\
1111	$(FCHDRS:%.h=fibre-channel/%.check)		\
1112	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1113	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1114	$(IBHDRS:%.h=ib/%.check)			\
1115	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1116	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1117	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1118	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1119	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1120	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1121	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1122	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1123	$(IDMHDRS:%.h=idm/%.check)			\
1124	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1125	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1126	$(ISOHDRS:%.h=iso/%.check)			\
1127	$(FMHDRS:%.h=fm/%.check)			\
1128	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1129	$(FMIOHDRS:%.h=fm/io/%.check)			\
1130	$(FSHDRS:%.h=fs/%.check)			\
1131	$(LVMHDRS:%.h=lvm/%.check)			\
1132	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1133	$(SCSIHDRS:%.h=scsi/%.check)			\
1134	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1135	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1136	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1137	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1138	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1139	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1140	$(SATAGENHDRS:%.h=sata/%.check)			\
1141	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1142	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1143	$(CONTRACTHDRS:%.h=contract/%.check)            \
1144	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1145	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1146	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1147	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1148	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1149	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1150	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1151	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1152	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1153	$(USBHDRS:%.h=usb/%.check)                      \
1154	$(UWBHDRS:%.h=uwb/%.check)                      \
1155	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1156	$(I1394HDRS:%.h=1394/%.check)			\
1157	$(RSMHDRS:%.h=rsm/%.check)			\
1158	$(TSOLHDRS:%.h=tsol/%.check)			\
1159	$(NXGEHDRS:%.h=nxge/%.check)
1160
1161
1162.KEEP_STATE:
1163
1164.PARALLEL:			\
1165	$(CHECKHDRS)		\
1166	$(ROOTHDRS)		\
1167	$(ROOTAUDHDRS)		\
1168	$(ROOTAVHDRS)		\
1169	$(ROOTCRYPTOHDRS)	\
1170	$(ROOTDCAMHDRS)		\
1171	$(ROOTISOHDRS)		\
1172	$(ROOTIDMHDRS)		\
1173	$(ROOTISCSIHDRS)	\
1174	$(ROOTISCSITHDRS)	\
1175	$(ROOTFC4HDRS)		\
1176	$(ROOTFCHDRS)		\
1177	$(ROOTFCIMPLHDRS)	\
1178	$(ROOTFCULPHDRS)	\
1179	$(ROOTFMHDRS)		\
1180	$(ROOTFMIOHDRS)		\
1181	$(ROOTFMFSHDRS)		\
1182	$(ROOTFSHDRS)		\
1183	$(ROOTIBDHDRS)		\
1184	$(ROOTIBHDRS)		\
1185	$(ROOTIBTLHDRS)		\
1186	$(ROOTIBTLIMPLHDRS)	\
1187	$(ROOTIBNEXHDRS)	\
1188	$(ROOTIBMGTHDRS)	\
1189	$(ROOTIBMFHDRS)		\
1190	$(ROOTTAVORHDRS)	\
1191	$(ROOTHERMONHDRS)	\
1192	$(ROOTLVMHDRS)		\
1193	$(ROOTPCMCIAHDRS)	\
1194	$(ROOTSCSIHDRS)		\
1195	$(ROOTSCSIADHDRS)	\
1196	$(ROOTSCSICONFHDRS)	\
1197	$(ROOTSCSIISCSIHDRS)	\
1198	$(ROOTSCSIGENHDRS)	\
1199	$(ROOTSCSIIMPLHDRS)	\
1200	$(ROOTSCSIVHCIHDRS)	\
1201	$(ROOTSDCARDHDRS)	\
1202	$(ROOTSYSEVENTHDRS)     \
1203	$(ROOTCONTRACTHDRS)     \
1204	$(ROOTUSBHDRS)		\
1205	$(ROOTUWBHDRS)		\
1206	$(ROOTUWBAHDRS)		\
1207	$(ROOTUSBAUDHDRS)	\
1208	$(ROOTUSBHUBDHDRS)	\
1209	$(ROOTUSBHIDHDRS)	\
1210	$(ROOTUSBHRCHDRS)	\
1211	$(ROOTUSBMSHDRS)	\
1212	$(ROOTUSBPRNHDRS)       \
1213	$(ROOTUSBCDCHDRS)       \
1214	$(ROOTUSBVIDHDRS)       \
1215	$(ROOTUGENHDRS)		\
1216	$(ROOT1394HDRS)         \
1217	$(ROOTHOTPLUGHDRS)	\
1218	$(ROOTHOTPLUGPCIHDRS)	\
1219	$(ROOTRSMHDRS)		\
1220	$(ROOTTSOLHDRS)		\
1221	$($(MACH)_ROOTHDRS)
1222
1223
1224install_h:			\
1225	$(ROOTDIRS)		\
1226	LVMDERIVED_H		\
1227	.WAIT			\
1228	$(ROOTHDRS)		\
1229	$(ROOTAUDHDRS)		\
1230	$(ROOTAVHDRS)		\
1231	$(ROOTCRYPTOHDRS)	\
1232	$(ROOTDCAMHDRS)		\
1233	$(ROOTISOHDRS)		\
1234	$(ROOTIDMHDRS)		\
1235	$(ROOTISCSIHDRS)	\
1236	$(ROOTISCSITHDRS)	\
1237	$(ROOTFC4HDRS)		\
1238	$(ROOTFCHDRS)		\
1239	$(ROOTFCIMPLHDRS)	\
1240	$(ROOTFCULPHDRS)	\
1241	$(ROOTFMHDRS)		\
1242	$(ROOTFMFSHDRS)		\
1243	$(ROOTFMIOHDRS)		\
1244	$(ROOTFSHDRS)		\
1245	$(ROOTIBDHDRS)		\
1246	$(ROOTIBHDRS)		\
1247	$(ROOTIBTLHDRS)		\
1248	$(ROOTIBTLIMPLHDRS)	\
1249	$(ROOTIBNEXHDRS)	\
1250	$(ROOTIBMGTHDRS)	\
1251	$(ROOTIBMFHDRS)		\
1252	$(ROOTTAVORHDRS)	\
1253	$(ROOTHERMONHDRS)	\
1254	$(ROOTLVMHDRS)		\
1255	$(ROOTPCMCIAHDRS)	\
1256	$(ROOTSCSIHDRS)		\
1257	$(ROOTSCSIADHDRS)	\
1258	$(ROOTSCSIISCSIHDRS)	\
1259	$(ROOTSCSICONFHDRS)	\
1260	$(ROOTSCSIGENHDRS)	\
1261	$(ROOTSCSIIMPLHDRS)	\
1262	$(ROOTSCSIVHCIHDRS)     \
1263	$(ROOTSDCARDHDRS)	\
1264	$(ROOTSYSEVENTHDRS)     \
1265	$(ROOTCONTRACTHDRS)     \
1266	$(ROOTUWBHDRS)		\
1267	$(ROOTUWBAHDRS)		\
1268	$(ROOTUSBHDRS)		\
1269	$(ROOTUSBAUDHDRS)	\
1270	$(ROOTUSBHUBDHDRS)	\
1271	$(ROOTUSBHIDHDRS)	\
1272	$(ROOTUSBHRCHDRS)	\
1273	$(ROOTUSBMSHDRS)	\
1274	$(ROOTUSBPRNHDRS)       \
1275	$(ROOTUSBCDCHDRS)       \
1276	$(ROOTUSBVIDHDRS)       \
1277	$(ROOTUGENHDRS)		\
1278	$(ROOT1394HDRS)         \
1279	$(ROOTHOTPLUGHDRS)	\
1280	$(ROOTHOTPLUGPCIHDRS)	\
1281	$(ROOTRSMHDRS)		\
1282	$(ROOTTSOLHDRS)		\
1283	$($(MACH)_ROOTHDRS)
1284
1285all_h: $(GENHDRS)
1286
1287priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1288	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1289
1290priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1291	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1292
1293usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1294	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1295
1296LVMDERIVED_H:
1297	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1298
1299check:	$(CHECKHDRS)
1300
1301FRC:
1302
1303# EXPORT DELETE START
1304EXPORT_SRC:
1305	$(RM) wanboot_impl.h+ Makefile+
1306	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1307		< wanboot_impl.h > wanboot_impl.h+
1308	$(MV) wanboot_impl.h+ wanboot_impl.h
1309	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1310		< Makefile > Makefile+
1311	$(RM) Makefile
1312	$(MV) Makefile+ Makefile
1313	$(CHMOD) 444 Makefile wanboot_impl.h
1314# EXPORT DELETE END
1315