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