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