xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision aedf2b3bb56b025fcaf87b49ec6c8aeea07f16d7)
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	pem.h			\
428	pfmod.h			\
429	pg.h			\
430	pghw.h			\
431	physmem.h		\
432	pm.h			\
433	policy.h		\
434	poll.h			\
435	poll_impl.h		\
436	pool.h			\
437	pool_impl.h		\
438	pool_pset.h		\
439	port.h			\
440	port_impl.h		\
441	port_kernel.h		\
442	portif.h		\
443	ppmio.h                 \
444	pppt_ic_if.h		\
445	pppt_ioctl.h		\
446	priocntl.h		\
447	priv.h			\
448	priv_impl.h		\
449	prnio.h			\
450	proc.h			\
451	processor.h		\
452	procfs.h		\
453	procset.h		\
454	project.h		\
455	protosw.h		\
456	prsystm.h		\
457	pset.h			\
458	pshot.h			\
459	ptem.h			\
460	ptms.h			\
461	ptyvar.h		\
462	raidioctl.h		\
463	ramdisk.h		\
464	random.h		\
465	rctl.h			\
466	rctl_impl.h		\
467	reboot.h		\
468	refstr.h		\
469	refstr_impl.h		\
470	resource.h		\
471	rlioctl.h		\
472	rt.h			\
473	rtpriocntl.h		\
474	rwlock.h		\
475	rwlock_impl.h		\
476	rwstlock.h		\
477	sad.h			\
478	schedctl.h		\
479	sdt.h			\
480	select.h		\
481	sem.h			\
482	sem_impl.h		\
483	sema_impl.h		\
484	semaphore.h		\
485	sendfile.h		\
486	ser_sync.h		\
487	session.h		\
488	sha1.h			\
489	sha1_consts.h		\
490	sha2.h			\
491	sha2_consts.h		\
492	share.h			\
493	shm.h			\
494	shm_impl.h		\
495	sid.h			\
496	siginfo.h		\
497	signal.h		\
498	sleepq.h		\
499	smbios.h		\
500	smbios_impl.h		\
501	sobject.h		\
502	socket.h		\
503	socket_impl.h		\
504	socket_proto.h		\
505	socketvar.h		\
506	sockio.h		\
507	soundcard.h		\
508	squeue.h		\
509	squeue_impl.h		\
510	srn.h			\
511	sservice.h		\
512	stat.h			\
513	statfs.h		\
514	statvfs.h		\
515	stdbool.h		\
516	stdint.h		\
517	stermio.h		\
518	stmf.h			\
519	stmf_defines.h		\
520	stmf_ioctl.h		\
521	stmf_sbd_ioctl.h	\
522	stream.h		\
523	strft.h			\
524	strlog.h		\
525	strmdep.h		\
526	stropts.h		\
527	strredir.h		\
528	strstat.h		\
529	strsubr.h		\
530	strsun.h		\
531	strtty.h		\
532	sunddi.h		\
533	sunldi.h		\
534	sunldi_impl.h		\
535	sunmdi.h		\
536	sunndi.h		\
537	sunos_dhcp_class.h	\
538	sunpm.h			\
539	suntpi.h		\
540	suntty.h		\
541	swap.h			\
542	synch.h			\
543	syscall.h		\
544	sysconf.h		\
545	sysconfig.h		\
546	sysevent.h		\
547	sysevent_impl.h         \
548	sysinfo.h		\
549	syslog.h		\
550	sysmacros.h		\
551	sysmsg_impl.h		\
552	systeminfo.h		\
553	systm.h			\
554	task.h			\
555	taskq.h			\
556	taskq_impl.h		\
557	t_kuser.h		\
558	t_lock.h		\
559	telioctl.h		\
560	termio.h		\
561	termios.h		\
562	termiox.h		\
563	thread.h		\
564	ticlts.h		\
565	ticots.h		\
566	ticotsord.h		\
567	tihdr.h			\
568	time.h			\
569	time_impl.h		\
570	time_std_impl.h		\
571	timeb.h			\
572	timer.h			\
573	times.h			\
574	timex.h			\
575	timod.h			\
576	tirdwr.h		\
577	tiuser.h		\
578	tl.h			\
579	tnf.h			\
580	tnf_com.h		\
581	tnf_probe.h		\
582	tnf_writer.h		\
583	todio.h			\
584	tpicommon.h		\
585	ts.h			\
586	tspriocntl.h		\
587	ttcompat.h		\
588	ttold.h			\
589	tty.h			\
590	ttychars.h		\
591	ttydev.h		\
592	tuneable.h		\
593	turnstile.h		\
594	types.h			\
595	types32.h		\
596	tzfile.h		\
597	u8_textprep.h		\
598	u8_textprep_data.h	\
599	uadmin.h		\
600	ucred.h			\
601	uio.h			\
602	ulimit.h		\
603	un.h			\
604	unistd.h		\
605	user.h			\
606	ustat.h			\
607	utime.h			\
608	utsname.h		\
609	utssys.h		\
610	uuid.h			\
611	va_impl.h		\
612	va_list.h		\
613	var.h			\
614	varargs.h		\
615	vfs.h			\
616	vfs_opreg.h		\
617	vfstab.h		\
618	vgareg.h		\
619	videodev2.h		\
620	visual_io.h		\
621	vlan.h			\
622	vm.h			\
623	vm_usage.h		\
624	vmem.h			\
625	vmem_impl.h		\
626	vmmeter.h		\
627	vmsystm.h		\
628	vnic.h			\
629	vnic_impl.h		\
630	vnode.h			\
631	vscan.h			\
632	vtoc.h			\
633	vtrace.h		\
634	vuid_event.h		\
635	vuid_wheel.h		\
636	vuid_queue.h		\
637	vuid_state.h		\
638	vuid_store.h		\
639	wait.h			\
640	waitq.h			\
641	wanboot_impl.h		\
642	watchpoint.h		\
643	winlockio.h		\
644	zcons.h			\
645	zone.h			\
646	xti_inet.h		\
647	xti_osi.h		\
648	xti_xtiopt.h		\
649	zmod.h
650
651HDRS=				\
652	$(GENHDRS)		\
653	$(CHKHDRS)
654
655AUDIOHDRS=			\
656	ac97.h			\
657	audio_common.h		\
658	audio_driver.h		\
659	audio_oss.h		\
660	g711.h
661
662AVHDRS=				\
663	iec61883.h
664
665BSCHDRS=			\
666	bscbus.h		\
667	bscv_impl.h		\
668	lom_ebuscodes.h		\
669	lom_io.h		\
670	lom_priv.h		\
671	lombus.h
672
673MDESCHDRS=			\
674	mdesc.h			\
675	mdesc_impl.h
676
677CPUDRVHDRS=			\
678	cpudrv.h
679
680CRYPTOHDRS=			\
681	elfsign.h		\
682	ioctl.h			\
683	ioctladmin.h		\
684	common.h		\
685	impl.h			\
686	spi.h			\
687	api.h			\
688	ops_impl.h		\
689	sched_impl.h
690
691DCAMHDRS=			\
692	dcam1394_io.h
693
694IBHDRS=			\
695	ib_types.h	\
696	ib_pkt_hdrs.h
697
698IBTLHDRS=		\
699	ibtl_types.h	\
700	ibtl_status.h	\
701	ibti.h		\
702	ibti_cm.h	\
703	ibci.h		\
704	ibti_common.h	\
705	ibvti.h		\
706	ibtl_ci_types.h
707
708IBTLIMPLHDRS=		\
709	ibtl_util.h
710
711IBNEXHDRS=		\
712	ibnex_devctl.h
713
714IBMFHDRS=		\
715	ibmf.h		\
716	ibmf_msg.h	\
717	ibmf_saa.h	\
718	ibmf_utils.h
719
720IBMGTHDRS=		\
721	ib_dm_attr.h	\
722	ib_mad.h	\
723	sm_attr.h	\
724	sa_recs.h
725
726IBDHDRS=		\
727	ibd.h
728
729TAVORHDRS=		\
730	tavor_ioctl.h
731
732HERMONHDRS=		\
733	hermon_ioctl.h
734
735IDMHDRS=		\
736	idm.h		\
737	idm_impl.h	\
738	idm_so.h	\
739	idm_text.h	\
740	idm_transport.h \
741	idm_conn_sm.h
742
743ISCSITHDRS=		\
744	radius_packet.h		\
745	radius_protocol.h	\
746	chap.h			\
747	isns_protocol.h		\
748	iscsi_if.h		\
749	iscsit_common.h
750
751ISOHDRS=			\
752	signal_iso.h
753
754DERIVED_LVMHDRS=	\
755	md_mdiox.h		\
756	md_basic.h		\
757	mdmed.h			\
758	md_mhdx.h		\
759	mdmn_commd.h
760
761LVMHDRS=			\
762	md_convert.h		\
763	md_crc.h		\
764	md_hotspares.h		\
765	md_mddb.h		\
766	md_mirror.h		\
767	md_mirror_shared.h	\
768	md_names.h		\
769	md_notify.h		\
770	md_raid.h		\
771	md_rename.h		\
772	md_sp.h			\
773	md_stripe.h		\
774	md_trans.h		\
775	mdio.h			\
776	mdvar.h
777
778ALL_LVMHDRS=			\
779	$(LVMHDRS)		\
780	$(DERIVED_LVMHDRS)
781
782FMHDRS=				\
783	protocol.h		\
784	util.h
785
786FMFSHDRS=			\
787	zfs.h
788
789FMIOHDRS=			\
790	ddi.h			\
791	disk.h			\
792	pci.h			\
793	scsi.h			\
794	sun4upci.h		\
795	opl_mc_fm.h
796
797FSHDRS=				\
798	autofs.h		\
799	cachefs_dir.h		\
800	cachefs_dlog.h		\
801	cachefs_filegrp.h	\
802	cachefs_fs.h		\
803	cachefs_fscache.h	\
804	cachefs_ioctl.h		\
805	cachefs_log.h		\
806	decomp.h		\
807	dv_node.h		\
808	sdev_impl.h		\
809	fifonode.h		\
810	hsfs_isospec.h		\
811	hsfs_node.h		\
812	hsfs_rrip.h		\
813	hsfs_spec.h		\
814	hsfs_susp.h		\
815	lofs_info.h		\
816	lofs_node.h		\
817	mntdata.h		\
818	namenode.h		\
819	pc_dir.h		\
820	pc_fs.h			\
821	pc_label.h		\
822	pc_node.h		\
823	pxfs_ki.h		\
824	snode.h			\
825	swapnode.h		\
826	tmp.h			\
827	tmpnode.h		\
828	udf_inode.h		\
829	udf_volume.h		\
830	ufs_acl.h		\
831	ufs_bio.h		\
832	ufs_filio.h		\
833	ufs_fs.h		\
834	ufs_fsdir.h		\
835	ufs_inode.h		\
836	ufs_lockfs.h		\
837	ufs_log.h		\
838	ufs_mount.h		\
839	ufs_panic.h		\
840	ufs_prot.h		\
841	ufs_quota.h		\
842	ufs_snap.h              \
843	ufs_trans.h		\
844	zfs.h			\
845	zut.h
846
847PCMCIAHDRS=		\
848	pcata.h		\
849	pcgld.h		\
850	pcramio.h	\
851	pcramvar.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
1011UGENHDRS=           \
1012	usb_ugen.h
1013
1014HOTPLUGHDRS=	\
1015	hpcsvc.h	\
1016	hpctrl.h
1017
1018HOTPLUGPCIHDRS=	\
1019	pcicfg.h	\
1020	pcihp.h
1021
1022RSMHDRS= \
1023	rsm.h	\
1024	rsm_common.h	\
1025	rsmapi_common.h \
1026	rsmpi.h	\
1027	rsmpi_driver.h	\
1028	rsmka_path_int.h
1029
1030TSOLHDRS=		\
1031	label.h		\
1032	label_macro.h	\
1033	priv.h		\
1034	tndb.h		\
1035	tsyscall.h
1036
1037I1394HDRS=		\
1038	cmd1394.h	\
1039	id1394.h	\
1040	ieee1212.h	\
1041	ieee1394.h	\
1042	ixl1394.h	\
1043	s1394_impl.h	\
1044	t1394.h
1045
1046# "cmdk" headers used on sparc
1047SDKTPHDRS=		\
1048	dadkio.h	\
1049	fdisk.h
1050
1051# "cmdk" headers used on i386
1052DKTPHDRS=		\
1053	altsctr.h	\
1054	bbh.h		\
1055	cm.h		\
1056	cmdev.h		\
1057	cmdk.h		\
1058	cmpkt.h		\
1059	controller.h	\
1060	dadev.h		\
1061	dadk.h		\
1062	dadkio.h	\
1063	fctypes.h	\
1064	fdisk.h		\
1065	flowctrl.h	\
1066	gda.h		\
1067	quetypes.h	\
1068	queue.h		\
1069	tgcom.h		\
1070	tgdk.h
1071
1072# "pc" header files used on i386
1073PCHDRS=			\
1074	avintr.h	\
1075	dma_engine.h	\
1076	i8272A.h	\
1077	pcic_reg.h	\
1078	pcic_var.h	\
1079	pic.h		\
1080	pit.h		\
1081	rtc.h
1082
1083NXGEHDRS=			\
1084	nxge.h			\
1085	nxge_common.h		\
1086	nxge_common_impl.h	\
1087	nxge_defs.h		\
1088	nxge_hw.h		\
1089	nxge_impl.h		\
1090	nxge_ipp.h		\
1091	nxge_ipp_hw.h		\
1092	nxge_mac.h		\
1093	nxge_mac_hw.h		\
1094	nxge_fflp.h		\
1095	nxge_fflp_hw.h		\
1096	nxge_mii.h		\
1097	nxge_rxdma.h		\
1098	nxge_rxdma_hw.h		\
1099	nxge_txc.h		\
1100	nxge_txc_hw.h		\
1101	nxge_txdma.h		\
1102	nxge_txdma_hw.h		\
1103	nxge_virtual.h		\
1104	nxge_espc.h
1105
1106include Makefile.syshdrs
1107
1108dcam/%.check:	dcam/%.h
1109	$(DOT_H_CHECK)
1110
1111CHECKHDRS=						\
1112	$($(MACH)_HDRS:%.h=%.check)			\
1113	$(AUDIOHDRS:%.h=audio/%.check)			\
1114	$(AVHDRS:%.h=av/%.check)			\
1115	$(BSCHDRS:%.h=%.check)				\
1116	$(CHKHDRS:%.h=%.check)				\
1117	$(CPUDRVHDRS:%.h=%.check)			\
1118	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1119	$(DCAMHDRS:%.h=dcam/%.check)			\
1120	$(FC4HDRS:%.h=fc4/%.check)			\
1121	$(FCHDRS:%.h=fibre-channel/%.check)		\
1122	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1123	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1124	$(IBHDRS:%.h=ib/%.check)			\
1125	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1126	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1127	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1128	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1129	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1130	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1131	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1132	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1133	$(IDMHDRS:%.h=idm/%.check)			\
1134	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1135	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1136	$(ISOHDRS:%.h=iso/%.check)			\
1137	$(FMHDRS:%.h=fm/%.check)			\
1138	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1139	$(FMIOHDRS:%.h=fm/io/%.check)			\
1140	$(FSHDRS:%.h=fs/%.check)			\
1141	$(LVMHDRS:%.h=lvm/%.check)			\
1142	$(PCMCIAHDRS:%.h=pcmcia/%.check)		\
1143	$(SCSIHDRS:%.h=scsi/%.check)			\
1144	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1145	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1146	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1147	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1148	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1149	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1150	$(SATAGENHDRS:%.h=sata/%.check)			\
1151	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1152	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1153	$(CONTRACTHDRS:%.h=contract/%.check)            \
1154	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1155	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1156	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1157	$(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)	\
1158	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1159	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1160	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1161	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1162	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1163	$(USBHDRS:%.h=usb/%.check)                      \
1164	$(UWBHDRS:%.h=uwb/%.check)                      \
1165	$(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1166	$(I1394HDRS:%.h=1394/%.check)			\
1167	$(RSMHDRS:%.h=rsm/%.check)			\
1168	$(TSOLHDRS:%.h=tsol/%.check)			\
1169	$(NXGEHDRS:%.h=nxge/%.check)
1170
1171
1172.KEEP_STATE:
1173
1174.PARALLEL:			\
1175	$(CHECKHDRS)		\
1176	$(ROOTHDRS)		\
1177	$(ROOTAUDHDRS)		\
1178	$(ROOTAVHDRS)		\
1179	$(ROOTCRYPTOHDRS)	\
1180	$(ROOTDCAMHDRS)		\
1181	$(ROOTISOHDRS)		\
1182	$(ROOTIDMHDRS)		\
1183	$(ROOTISCSIHDRS)	\
1184	$(ROOTISCSITHDRS)	\
1185	$(ROOTFC4HDRS)		\
1186	$(ROOTFCHDRS)		\
1187	$(ROOTFCIMPLHDRS)	\
1188	$(ROOTFCULPHDRS)	\
1189	$(ROOTFMHDRS)		\
1190	$(ROOTFMIOHDRS)		\
1191	$(ROOTFMFSHDRS)		\
1192	$(ROOTFSHDRS)		\
1193	$(ROOTIBDHDRS)		\
1194	$(ROOTIBHDRS)		\
1195	$(ROOTIBTLHDRS)		\
1196	$(ROOTIBTLIMPLHDRS)	\
1197	$(ROOTIBNEXHDRS)	\
1198	$(ROOTIBMGTHDRS)	\
1199	$(ROOTIBMFHDRS)		\
1200	$(ROOTTAVORHDRS)	\
1201	$(ROOTHERMONHDRS)	\
1202	$(ROOTLVMHDRS)		\
1203	$(ROOTPCMCIAHDRS)	\
1204	$(ROOTSCSIHDRS)		\
1205	$(ROOTSCSIADHDRS)	\
1206	$(ROOTSCSICONFHDRS)	\
1207	$(ROOTSCSIISCSIHDRS)	\
1208	$(ROOTSCSIGENHDRS)	\
1209	$(ROOTSCSIIMPLHDRS)	\
1210	$(ROOTSCSIVHCIHDRS)	\
1211	$(ROOTSDCARDHDRS)	\
1212	$(ROOTSYSEVENTHDRS)     \
1213	$(ROOTCONTRACTHDRS)     \
1214	$(ROOTUSBHDRS)		\
1215	$(ROOTUWBHDRS)		\
1216	$(ROOTUWBAHDRS)		\
1217	$(ROOTUSBAUDHDRS)	\
1218	$(ROOTUSBHUBDHDRS)	\
1219	$(ROOTUSBHIDHDRS)	\
1220	$(ROOTUSBHRCHDRS)	\
1221	$(ROOTUSBMSHDRS)	\
1222	$(ROOTUSBPRNHDRS)       \
1223	$(ROOTUSBCDCHDRS)       \
1224	$(ROOTUSBVIDHDRS)       \
1225	$(ROOTUGENHDRS)		\
1226	$(ROOT1394HDRS)         \
1227	$(ROOTHOTPLUGHDRS)	\
1228	$(ROOTHOTPLUGPCIHDRS)	\
1229	$(ROOTRSMHDRS)		\
1230	$(ROOTTSOLHDRS)		\
1231	$($(MACH)_ROOTHDRS)
1232
1233
1234install_h:			\
1235	$(ROOTDIRS)		\
1236	LVMDERIVED_H		\
1237	.WAIT			\
1238	$(ROOTHDRS)		\
1239	$(ROOTAUDHDRS)		\
1240	$(ROOTAVHDRS)		\
1241	$(ROOTCRYPTOHDRS)	\
1242	$(ROOTDCAMHDRS)		\
1243	$(ROOTISOHDRS)		\
1244	$(ROOTIDMHDRS)		\
1245	$(ROOTISCSIHDRS)	\
1246	$(ROOTISCSITHDRS)	\
1247	$(ROOTFC4HDRS)		\
1248	$(ROOTFCHDRS)		\
1249	$(ROOTFCIMPLHDRS)	\
1250	$(ROOTFCULPHDRS)	\
1251	$(ROOTFMHDRS)		\
1252	$(ROOTFMFSHDRS)		\
1253	$(ROOTFMIOHDRS)		\
1254	$(ROOTFSHDRS)		\
1255	$(ROOTIBDHDRS)		\
1256	$(ROOTIBHDRS)		\
1257	$(ROOTIBTLHDRS)		\
1258	$(ROOTIBTLIMPLHDRS)	\
1259	$(ROOTIBNEXHDRS)	\
1260	$(ROOTIBMGTHDRS)	\
1261	$(ROOTIBMFHDRS)		\
1262	$(ROOTTAVORHDRS)	\
1263	$(ROOTHERMONHDRS)	\
1264	$(ROOTLVMHDRS)		\
1265	$(ROOTPCMCIAHDRS)	\
1266	$(ROOTSCSIHDRS)		\
1267	$(ROOTSCSIADHDRS)	\
1268	$(ROOTSCSIISCSIHDRS)	\
1269	$(ROOTSCSICONFHDRS)	\
1270	$(ROOTSCSIGENHDRS)	\
1271	$(ROOTSCSIIMPLHDRS)	\
1272	$(ROOTSCSIVHCIHDRS)     \
1273	$(ROOTSDCARDHDRS)	\
1274	$(ROOTSYSEVENTHDRS)     \
1275	$(ROOTCONTRACTHDRS)     \
1276	$(ROOTUWBHDRS)		\
1277	$(ROOTUWBAHDRS)		\
1278	$(ROOTUSBHDRS)		\
1279	$(ROOTUSBAUDHDRS)	\
1280	$(ROOTUSBHUBDHDRS)	\
1281	$(ROOTUSBHIDHDRS)	\
1282	$(ROOTUSBHRCHDRS)	\
1283	$(ROOTUSBMSHDRS)	\
1284	$(ROOTUSBPRNHDRS)       \
1285	$(ROOTUSBCDCHDRS)       \
1286	$(ROOTUSBVIDHDRS)       \
1287	$(ROOTUGENHDRS)		\
1288	$(ROOT1394HDRS)         \
1289	$(ROOTHOTPLUGHDRS)	\
1290	$(ROOTHOTPLUGPCIHDRS)	\
1291	$(ROOTRSMHDRS)		\
1292	$(ROOTTSOLHDRS)		\
1293	$($(MACH)_ROOTHDRS)
1294
1295all_h: $(GENHDRS)
1296
1297priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1298	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1299
1300priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1301	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1302
1303usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1304	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1305
1306LVMDERIVED_H:
1307	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1308
1309clean:
1310	$(RM) $(GENHDRS)
1311
1312clobber:	clean
1313
1314check:	$(CHECKHDRS)
1315
1316FRC:
1317
1318# EXPORT DELETE START
1319EXPORT_SRC:
1320	$(RM) wanboot_impl.h+ Makefile+
1321	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1322		< wanboot_impl.h > wanboot_impl.h+
1323	$(MV) wanboot_impl.h+ wanboot_impl.h
1324	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1325		< Makefile > Makefile+
1326	$(RM) Makefile
1327	$(MV) Makefile+ Makefile
1328	$(CHMOD) 444 Makefile wanboot_impl.h
1329# EXPORT DELETE END
1330