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