xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision f154fbfe3b88e1aff7a84e2f07fac78682e7e480)
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	miiregs.h		\
366	mixer.h			\
367	mman.h			\
368	mmapobj.h		\
369	mntent.h		\
370	mntio.h			\
371	mnttab.h		\
372	modctl.h		\
373	mode.h			\
374	model.h			\
375	modhash.h		\
376	modhash_impl.h		\
377	mount.h			\
378	mouse.h			\
379	msacct.h		\
380	msg.h			\
381	msg_impl.h		\
382	msio.h			\
383	msreg.h			\
384	mtio.h			\
385	multidata.h		\
386	multidata_impl.h	\
387	mutex.h			\
388	nbmlock.h		\
389	ndifm.h		\
390	ndi_impldefs.h		\
391	net80211.h		\
392	net80211_crypto.h	\
393	net80211_proto.h	\
394	netconfig.h		\
395	neti.h			\
396	netstack.h		\
397	nexusdefs.h		\
398	note.h			\
399	nvpair.h                \
400	nvpair_impl.h           \
401	objfs.h			\
402	objfs_impl.h		\
403	ontrap.h                \
404	open.h			\
405	openpromio.h		\
406	panic.h			\
407	param.h			\
408	pathconf.h		\
409	pathname.h		\
410	pattr.h			\
411	queue.h			\
412	serializer.h		\
413	pbio.h			\
414	pccard.h		\
415	pci.h			\
416	pcie.h			\
417	pci_impl.h		\
418	pci_tools.h		\
419	pcmcia.h		\
420	pctypes.h		\
421	pem.h			\
422	pfmod.h			\
423	pg.h			\
424	pghw.h			\
425	physmem.h		\
426	pm.h			\
427	policy.h		\
428	poll.h			\
429	poll_impl.h		\
430	pool.h			\
431	pool_impl.h		\
432	pool_pset.h		\
433	port.h			\
434	port_impl.h		\
435	port_kernel.h		\
436	portif.h		\
437	ppmio.h                 \
438	priocntl.h		\
439	priv.h			\
440	priv_impl.h		\
441	prnio.h			\
442	proc.h			\
443	processor.h		\
444	procfs.h		\
445	procset.h		\
446	project.h		\
447	protosw.h		\
448	prsystm.h		\
449	pset.h			\
450	pshot.h			\
451	ptem.h			\
452	ptms.h			\
453	ptyvar.h		\
454	raidioctl.h		\
455	ramdisk.h		\
456	random.h		\
457	rctl.h			\
458	rctl_impl.h		\
459	reboot.h		\
460	refstr.h		\
461	refstr_impl.h		\
462	resource.h		\
463	rlioctl.h		\
464	rt.h			\
465	rtpriocntl.h		\
466	rwlock.h		\
467	rwlock_impl.h		\
468	rwstlock.h		\
469	sad.h			\
470	schedctl.h		\
471	sdt.h			\
472	select.h		\
473	sem.h			\
474	sem_impl.h		\
475	sema_impl.h		\
476	semaphore.h		\
477	sendfile.h		\
478	ser_sync.h		\
479	session.h		\
480	sha1.h			\
481	sha1_consts.h		\
482	sha2.h			\
483	sha2_consts.h		\
484	share.h			\
485	shm.h			\
486	shm_impl.h		\
487	sid.h			\
488	siginfo.h		\
489	signal.h		\
490	sleepq.h		\
491	smbios.h		\
492	smbios_impl.h		\
493	sobject.h		\
494	socket.h		\
495	socket_impl.h		\
496	socket_proto.h		\
497	socketvar.h		\
498	sockio.h		\
499	soundcard.h		\
500	squeue.h		\
501	squeue_impl.h		\
502	srn.h			\
503	sservice.h		\
504	stat.h			\
505	statfs.h		\
506	statvfs.h		\
507	stdint.h		\
508	stermio.h		\
509	stmf.h			\
510	stmf_defines.h		\
511	stmf_ioctl.h		\
512	stmf_sbd_ioctl.h	\
513	stream.h		\
514	strft.h			\
515	strlog.h		\
516	strmdep.h		\
517	stropts.h		\
518	strredir.h		\
519	strstat.h		\
520	strsubr.h		\
521	strsun.h		\
522	strtty.h		\
523	sunddi.h		\
524	sunldi.h		\
525	sunldi_impl.h		\
526	sunmdi.h		\
527	sunndi.h		\
528	sunos_dhcp_class.h	\
529	sunpm.h			\
530	suntpi.h		\
531	suntty.h		\
532	swap.h			\
533	synch.h			\
534	syscall.h		\
535	sysconf.h		\
536	sysconfig.h		\
537	sysevent.h		\
538	sysevent_impl.h         \
539	sysinfo.h		\
540	syslog.h		\
541	sysmacros.h		\
542	sysmsg_impl.h		\
543	systeminfo.h		\
544	systm.h			\
545	task.h			\
546	taskq.h			\
547	taskq_impl.h		\
548	t_kuser.h		\
549	t_lock.h		\
550	telioctl.h		\
551	termio.h		\
552	termios.h		\
553	termiox.h		\
554	thread.h		\
555	ticlts.h		\
556	ticots.h		\
557	ticotsord.h		\
558	tihdr.h			\
559	time.h			\
560	time_impl.h		\
561	time_std_impl.h		\
562	timeb.h			\
563	timer.h			\
564	times.h			\
565	timex.h			\
566	timod.h			\
567	tirdwr.h		\
568	tiuser.h		\
569	tl.h			\
570	tnf.h			\
571	tnf_com.h		\
572	tnf_probe.h		\
573	tnf_writer.h		\
574	todio.h			\
575	tpicommon.h		\
576	ts.h			\
577	tspriocntl.h		\
578	ttcompat.h		\
579	ttold.h			\
580	tty.h			\
581	ttychars.h		\
582	ttydev.h		\
583	tuneable.h		\
584	turnstile.h		\
585	types.h			\
586	types32.h		\
587	tzfile.h		\
588	u8_textprep.h		\
589	u8_textprep_data.h	\
590	uadmin.h		\
591	ucred.h			\
592	uio.h			\
593	ulimit.h		\
594	un.h			\
595	unistd.h		\
596	user.h			\
597	ustat.h			\
598	utime.h			\
599	utsname.h		\
600	utssys.h		\
601	uuid.h			\
602	va_impl.h		\
603	va_list.h		\
604	var.h			\
605	varargs.h		\
606	vfs.h			\
607	vfs_opreg.h		\
608	vfstab.h		\
609	vgareg.h		\
610	videodev2.h		\
611	visual_io.h		\
612	vlan.h			\
613	vm.h			\
614	vm_usage.h		\
615	vmem.h			\
616	vmem_impl.h		\
617	vmmeter.h		\
618	vmsystm.h		\
619	vnic.h			\
620	vnic_impl.h		\
621	vnode.h			\
622	vscan.h			\
623	vtoc.h			\
624	vtrace.h		\
625	vuid_event.h		\
626	vuid_wheel.h		\
627	vuid_queue.h		\
628	vuid_state.h		\
629	vuid_store.h		\
630	wait.h			\
631	waitq.h			\
632	wanboot_impl.h		\
633	watchpoint.h		\
634	winlockio.h		\
635	zcons.h			\
636	zone.h			\
637	xti_inet.h		\
638	xti_osi.h		\
639	xti_xtiopt.h		\
640	zmod.h
641
642HDRS=				\
643	$(GENHDRS)		\
644	$(CHKHDRS)
645
646AUDIOHDRS=			\
647	ac97.h			\
648	audio_common.h		\
649	audio_driver.h		\
650	audio_oss.h		\
651	g711.h
652
653AVHDRS=				\
654	iec61883.h
655
656BSCHDRS=			\
657	bscbus.h		\
658	bscv_impl.h		\
659	lom_ebuscodes.h		\
660	lom_io.h		\
661	lom_priv.h		\
662	lombus.h
663
664MDESCHDRS=			\
665	mdesc.h			\
666	mdesc_impl.h
667
668CPUDRVHDRS=			\
669	cpudrv.h
670
671CRYPTOHDRS=			\
672	elfsign.h		\
673	ioctl.h			\
674	ioctladmin.h		\
675	common.h		\
676	impl.h			\
677	spi.h			\
678	api.h			\
679	ops_impl.h		\
680	sched_impl.h
681
682DCAMHDRS=			\
683	dcam1394_io.h
684
685IBHDRS=			\
686	ib_types.h	\
687	ib_pkt_hdrs.h
688
689IBTLHDRS=		\
690	ibtl_types.h	\
691	ibtl_status.h	\
692	ibti.h		\
693	ibti_cm.h	\
694	ibci.h		\
695	ibti_common.h	\
696	ibvti.h		\
697	ibtl_ci_types.h
698
699IBTLIMPLHDRS=		\
700	ibtl_util.h
701
702IBNEXHDRS=		\
703	ibnex_devctl.h
704
705IBMFHDRS=		\
706	ibmf.h		\
707	ibmf_msg.h	\
708	ibmf_saa.h	\
709	ibmf_utils.h
710
711IBMGTHDRS=		\
712	ib_dm_attr.h	\
713	ib_mad.h	\
714	sm_attr.h	\
715	sa_recs.h
716
717IBDHDRS=		\
718	ibd.h
719
720TAVORHDRS=		\
721	tavor_ioctl.h
722
723HERMONHDRS=		\
724	hermon_ioctl.h
725
726IDMHDRS=		\
727	idm.h		\
728	idm_impl.h	\
729	idm_so.h	\
730	idm_text.h	\
731	idm_transport.h \
732	idm_conn_sm.h
733
734ISCSITHDRS=		\
735	radius_packet.h		\
736	radius_protocol.h	\
737	chap.h			\
738	isns_protocol.h		\
739	iscsi_if.h		\
740	iscsit_common.h
741
742ISOHDRS=			\
743	signal_iso.h
744
745DERIVED_LVMHDRS=	\
746	md_mdiox.h		\
747	md_basic.h		\
748	mdmed.h			\
749	md_mhdx.h		\
750	mdmn_commd.h
751
752LVMHDRS=			\
753	md_convert.h		\
754	md_crc.h		\
755	md_hotspares.h		\
756	md_mddb.h		\
757	md_mirror.h		\
758	md_mirror_shared.h	\
759	md_names.h		\
760	md_notify.h		\
761	md_raid.h		\
762	md_rename.h		\
763	md_sp.h			\
764	md_stripe.h		\
765	md_trans.h		\
766	mdio.h			\
767	mdvar.h
768
769ALL_LVMHDRS=			\
770	$(LVMHDRS)		\
771	$(DERIVED_LVMHDRS)
772
773FMHDRS=				\
774	protocol.h		\
775	util.h
776
777FMFSHDRS=			\
778	zfs.h
779
780FMIOHDRS=			\
781	ddi.h			\
782	disk.h			\
783	pci.h			\
784	scsi.h			\
785	sun4upci.h		\
786	opl_mc_fm.h
787
788FSHDRS=				\
789	autofs.h		\
790	cachefs_dir.h		\
791	cachefs_dlog.h		\
792	cachefs_filegrp.h	\
793	cachefs_fs.h		\
794	cachefs_fscache.h	\
795	cachefs_ioctl.h		\
796	cachefs_log.h		\
797	decomp.h		\
798	dv_node.h		\
799	sdev_impl.h		\
800	sdev_node.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