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