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