xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 24f5a37652e188ebdcdd6da454511686935025df)
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# Copyright 2013, Joyent, Inc. All rights reserved.
24# Copyright 2013 Garrett D'Amore <garrett@damore.org>
25# Copyright 2013 Saso Kiselkov. All rights reserved.
26#
27
28include $(SRC)/uts/Makefile.uts
29
30FILEMODE=644
31
32#
33#	Note that the following headers are present in the kernel but
34#	neither installed or shipped as part of the product:
35#		cpuid_drv.h:		Private interface for cpuid consumers
36#		unix_bb_info.h:		Private interface to kcov
37#
38
39i386_HDRS=			\
40	agp/agpamd64gart_io.h	\
41	agp/agpdefs.h		\
42	agp/agpgart_impl.h	\
43	agp/agpmaster_io.h	\
44	agp/agptarget_io.h	\
45	agpgart.h		\
46	asy.h			\
47	fd_debug.h		\
48	fdc.h			\
49	fdmedia.h		\
50	mouse.h			\
51	ucode.h
52
53sparc_HDRS= 			\
54	mouse.h			\
55	scsi/targets/ssddef.h	\
56	$(MDESCHDRS)
57
58# Generated headers
59GENHDRS=			\
60	priv_const.h		\
61	priv_names.h		\
62	usb/usbdevs.h
63
64CHKHDRS=			\
65	acpi_drv.h		\
66	acct.h			\
67	acctctl.h		\
68	acl.h			\
69	acl_impl.h		\
70	aggr.h			\
71	aggr_impl.h		\
72	aio.h			\
73	aio_impl.h		\
74	aio_req.h		\
75	aiocb.h			\
76	ascii.h			\
77	asynch.h		\
78	atomic.h		\
79	attr.h			\
80	audio.h			\
81	audioio.h		\
82	autoconf.h		\
83	auxv.h			\
84	auxv_386.h		\
85	auxv_SPARC.h		\
86	avl.h			\
87	avl_impl.h		\
88	bitmap.h		\
89	bitset.h		\
90	bl.h			\
91	blkdev.h		\
92	bofi.h			\
93	bofi_impl.h		\
94	bpp_io.h		\
95	bootstat.h		\
96	brand.h			\
97	buf.h			\
98	bufmod.h		\
99	bustypes.h		\
100	byteorder.h		\
101	callb.h			\
102	callo.h			\
103	cap_util.h		\
104	cpucaps.h		\
105	cpucaps_impl.h		\
106	ccompile.h		\
107	cdio.h			\
108	cladm.h			\
109	class.h			\
110	clconf.h		\
111	clock_impl.h		\
112	cmlb.h			\
113	cmn_err.h		\
114	compress.h		\
115	condvar.h		\
116	condvar_impl.h		\
117	conf.h			\
118	consdev.h		\
119	console.h		\
120	consplat.h		\
121	vt.h			\
122	vtdaemon.h		\
123	kd.h			\
124	contract.h		\
125	contract_impl.h		\
126	copyops.h		\
127	core.h			\
128	corectl.h		\
129	cpc_impl.h		\
130	cpc_pcbe.h		\
131	cpr.h			\
132	cpupart.h		\
133	cpuvar.h		\
134	crc32.h			\
135	cred.h			\
136	cred_impl.h		\
137	crtctl.h		\
138	cryptmod.h		\
139	csiioctl.h		\
140	ctf.h			\
141	ctfs.h			\
142	ctfs_impl.h		\
143	ctf_api.h		\
144	ctype.h			\
145	cyclic.h		\
146	cyclic_impl.h		\
147	dacf.h			\
148	dacf_impl.h		\
149	damap.h			\
150	damap_impl.h		\
151	dc_ki.h			\
152	ddi.h			\
153	ddifm.h			\
154	ddifm_impl.h		\
155	ddi_hp.h		\
156	ddi_hp_impl.h		\
157	ddi_intr.h		\
158	ddi_intr_impl.h		\
159	ddi_impldefs.h		\
160	ddi_implfuncs.h		\
161	ddi_obsolete.h		\
162	ddi_periodic.h		\
163	ddidevmap.h		\
164	ddidmareq.h		\
165	ddimapreq.h		\
166	ddipropdefs.h		\
167	dditypes.h		\
168	debug.h			\
169	des.h			\
170	devctl.h		\
171	devcache.h		\
172	devcache_impl.h		\
173	devfm.h			\
174	devid_cache.h		\
175	devinfo_impl.h		\
176	devops.h		\
177	devpolicy.h		\
178	devpoll.h		\
179	dirent.h		\
180	disp.h			\
181	dkbad.h			\
182	dkio.h			\
183	dklabel.h		\
184	dl.h			\
185	dlpi.h			\
186	dld.h			\
187	dld_impl.h		\
188	dld_ioc.h		\
189	dls.h			\
190	dls_mgmt.h		\
191	dls_impl.h		\
192	dma_i8237A.h		\
193	dnlc.h			\
194	door.h			\
195	door_data.h		\
196	door_impl.h		\
197	dtrace.h		\
198	dtrace_impl.h		\
199	dumpadm.h		\
200	dumphdr.h		\
201	ecppsys.h		\
202	ecppio.h		\
203	ecppreg.h		\
204	ecppvar.h		\
205	edonr.h			\
206	efi_partition.h		\
207	elf.h			\
208	elf_386.h		\
209	elf_SPARC.h		\
210	elf_notes.h		\
211	elf_amd64.h		\
212	elftypes.h		\
213	emul64.h		\
214	emul64cmd.h		\
215	emul64var.h		\
216	epm.h			\
217	errno.h			\
218	errorq.h		\
219	errorq_impl.h		\
220	esunddi.h		\
221	ethernet.h		\
222	euc.h			\
223	eucioctl.h		\
224	eventfd.h		\
225	exacct.h		\
226	exacct_catalog.h	\
227	exacct_impl.h		\
228	exec.h			\
229	exechdr.h		\
230	extdirent.h		\
231	fault.h			\
232	fasttrap.h		\
233	fasttrap_impl.h		\
234	fbio.h			\
235	fbuf.h			\
236	fcntl.h			\
237	fct.h			\
238	fct_defines.h		\
239	fctio.h			\
240	fdbuffer.h		\
241	fdio.h			\
242	feature_tests.h		\
243	fem.h			\
244	file.h			\
245	filio.h			\
246	flock.h			\
247	flock_impl.h		\
248	fork.h			\
249	fss.h			\
250	fsspriocntl.h		\
251	fsid.h			\
252	fssnap.h		\
253	fssnap_if.h		\
254	fstyp.h			\
255	ftrace.h		\
256	fx.h			\
257	fxpriocntl.h		\
258	gfs.h			\
259	gld.h			\
260	gldpriv.h		\
261	group.h			\
262	hdio.h			\
263	hook.h			\
264	hook_event.h		\
265	hook_impl.h		\
266	hwconf.h		\
267	ia.h			\
268	iapriocntl.h		\
269	ibpart.h		\
270	id32.h			\
271	idmap.h 		\
272	ieeefp.h		\
273	id_space.h		\
274	instance.h		\
275	int_const.h		\
276	int_fmtio.h		\
277	int_limits.h		\
278	int_types.h		\
279	inttypes.h		\
280	ioccom.h		\
281	ioctl.h			\
282	ipc.h			\
283	ipc_impl.h		\
284	ipc_rctl.h		\
285	ipd.h			\
286	ipmi.h			\
287	isa_defs.h		\
288	iscsi_authclient.h	\
289	iscsi_authclientglue.h	\
290	iscsi_protocol.h	\
291	jioctl.h		\
292	kbd.h			\
293	kbdreg.h		\
294	kbio.h			\
295	kcpc.h			\
296	kdi.h			\
297	kdi_impl.h		\
298	kiconv.h		\
299	kiconv_big5_utf8.h	\
300	kiconv_cck_common.h	\
301	kiconv_cp950hkscs_utf8.h	\
302	kiconv_emea1.h		\
303	kiconv_emea2.h		\
304	kiconv_euckr_utf8.h	\
305	kiconv_euctw_utf8.h	\
306	kiconv_gb18030_utf8.h	\
307	kiconv_gb2312_utf8.h	\
308	kiconv_hkscs_utf8.h	\
309	kiconv_ja.h		\
310	kiconv_ja_jis_to_unicode.h	\
311	kiconv_ja_unicode_to_jis.h	\
312	kiconv_ko.h		\
313	kiconv_latin1.h		\
314	kiconv_sc.h		\
315	kiconv_tc.h		\
316	kiconv_uhc_utf8.h	\
317	kiconv_utf8_big5.h	\
318	kiconv_utf8_cp950hkscs.h	\
319	kiconv_utf8_euckr.h	\
320	kiconv_utf8_euctw.h	\
321	kiconv_utf8_gb18030.h	\
322	kiconv_utf8_gb2312.h	\
323	kiconv_utf8_hkscs.h	\
324	kiconv_utf8_uhc.h	\
325	kidmap.h		\
326	klpd.h			\
327	klwp.h			\
328	kmdb.h			\
329	kmem.h			\
330	kmem_impl.h		\
331	kobj.h			\
332	kobj_impl.h		\
333	ksocket.h		\
334	kstat.h			\
335	kstr.h			\
336	ksyms.h			\
337	ksynch.h		\
338	ldterm.h		\
339	lgrp.h			\
340	lgrp_user.h		\
341	libc_kernel.h		\
342	link.h			\
343	list.h			\
344	list_impl.h		\
345	llc1.h			\
346	loadavg.h		\
347	lock.h			\
348	lockfs.h		\
349	lockstat.h		\
350	lofi.h			\
351	log.h			\
352	logindmux.h		\
353	logindmux_impl.h	\
354	lwp.h			\
355	lwp_timer_impl.h	\
356	lwp_upimutex_impl.h	\
357	lpif.h			\
358	mac.h			\
359	mac_client.h		\
360	mac_client_impl.h	\
361	mac_ether.h		\
362	mac_flow.h		\
363	mac_flow_impl.h		\
364	mac_impl.h		\
365	mac_provider.h		\
366	mac_soft_ring.h		\
367	mac_stat.h		\
368	machelf.h		\
369	map.h			\
370	md4.h			\
371	md5.h			\
372	md5_consts.h		\
373	mdi_impldefs.h		\
374	mem.h			\
375	mem_config.h		\
376	memlist.h		\
377	mkdev.h			\
378	mhd.h			\
379	mii.h			\
380	miiregs.h		\
381	mixer.h			\
382	mman.h			\
383	mmapobj.h		\
384	mntent.h		\
385	mntio.h			\
386	mnttab.h		\
387	modctl.h		\
388	mode.h			\
389	model.h			\
390	modhash.h		\
391	modhash_impl.h		\
392	mount.h			\
393	mouse.h			\
394	msacct.h		\
395	msg.h			\
396	msg_impl.h		\
397	msio.h			\
398	msreg.h			\
399	mtio.h			\
400	multidata.h		\
401	multidata_impl.h	\
402	mutex.h			\
403	nbmlock.h		\
404	ndifm.h			\
405	ndi_impldefs.h		\
406	net80211.h		\
407	net80211_crypto.h	\
408	net80211_ht.h		\
409	net80211_proto.h	\
410	netconfig.h		\
411	neti.h			\
412	netstack.h		\
413	nexusdefs.h		\
414	note.h			\
415	nvpair.h		\
416	nvpair_impl.h		\
417	objfs.h			\
418	objfs_impl.h		\
419	ontrap.h		\
420	open.h			\
421	openpromio.h		\
422	panic.h			\
423	param.h			\
424	pathconf.h		\
425	pathname.h		\
426	pattr.h			\
427	queue.h			\
428	serializer.h		\
429	pbio.h			\
430	pccard.h		\
431	pci.h			\
432	pcie.h			\
433	pci_impl.h		\
434	pci_tools.h		\
435	pcmcia.h		\
436	pctypes.h		\
437	pfmod.h			\
438	pg.h			\
439	pghw.h			\
440	physmem.h		\
441	pkp_hash.h		\
442	pm.h			\
443	policy.h		\
444	poll.h			\
445	poll_impl.h		\
446	pool.h			\
447	pool_impl.h		\
448	pool_pset.h		\
449	port.h			\
450	port_impl.h		\
451	port_kernel.h		\
452	portif.h		\
453	ppmio.h			\
454	pppt_ic_if.h		\
455	pppt_ioctl.h		\
456	priocntl.h		\
457	priv.h			\
458	priv_impl.h		\
459	prnio.h			\
460	proc.h			\
461	processor.h		\
462	procfs.h		\
463	procset.h		\
464	project.h		\
465	protosw.h		\
466	prsystm.h		\
467	pset.h			\
468	pshot.h			\
469	ptem.h			\
470	ptms.h			\
471	ptyvar.h		\
472	raidioctl.h		\
473	ramdisk.h		\
474	random.h		\
475	rctl.h			\
476	rctl_impl.h		\
477	rds.h			\
478	reboot.h		\
479	refstr.h		\
480	refstr_impl.h		\
481	resource.h		\
482	rlioctl.h		\
483	rt.h			\
484	rtpriocntl.h		\
485	rwlock.h		\
486	rwlock_impl.h		\
487	rwstlock.h		\
488	sad.h			\
489	schedctl.h		\
490	sdt.h			\
491	select.h		\
492	sem.h			\
493	sem_impl.h		\
494	sema_impl.h		\
495	semaphore.h		\
496	sendfile.h		\
497	ser_sync.h		\
498	session.h		\
499	sha1.h			\
500	sha1_consts.h		\
501	sha2.h			\
502	sha2_consts.h		\
503	share.h			\
504	shm.h			\
505	shm_impl.h		\
506	sid.h			\
507	siginfo.h		\
508	signal.h		\
509	skein.h			\
510	sleepq.h		\
511	smbios.h		\
512	smbios_impl.h		\
513	sobject.h		\
514	socket.h		\
515	socket_impl.h		\
516	socket_proto.h		\
517	socketvar.h		\
518	sockfilter.h		\
519	sockio.h		\
520	soundcard.h		\
521	squeue.h		\
522	squeue_impl.h		\
523	srn.h			\
524	sservice.h		\
525	stat.h			\
526	statfs.h		\
527	statvfs.h		\
528	stdbool.h		\
529	stdint.h		\
530	stermio.h		\
531	stmf.h			\
532	stmf_defines.h		\
533	stmf_ioctl.h		\
534	stmf_sbd_ioctl.h	\
535	stream.h		\
536	strft.h			\
537	strlog.h		\
538	strmdep.h		\
539	stropts.h		\
540	strredir.h		\
541	strstat.h		\
542	strsubr.h		\
543	strsun.h		\
544	strtty.h		\
545	sunddi.h		\
546	sunldi.h		\
547	sunldi_impl.h		\
548	sunmdi.h		\
549	sunndi.h		\
550	sunos_dhcp_class.h	\
551	sunpm.h			\
552	suntpi.h		\
553	suntty.h		\
554	swap.h			\
555	synch.h			\
556	sysdc.h			\
557	sysdc_impl.h		\
558	syscall.h		\
559	sysconf.h		\
560	sysconfig.h		\
561	sysevent.h		\
562	sysevent_impl.h		\
563	sysinfo.h		\
564	syslog.h		\
565	sysmacros.h		\
566	sysmsg_impl.h		\
567	systeminfo.h		\
568	systm.h			\
569	task.h			\
570	taskq.h			\
571	taskq_impl.h		\
572	t_kuser.h		\
573	t_lock.h		\
574	telioctl.h		\
575	termio.h		\
576	termios.h		\
577	termiox.h		\
578	thread.h		\
579	ticlts.h		\
580	ticots.h		\
581	ticotsord.h		\
582	tihdr.h			\
583	time.h			\
584	time_impl.h		\
585	time_std_impl.h		\
586	timeb.h			\
587	timer.h			\
588	times.h			\
589	timex.h			\
590	timod.h			\
591	tirdwr.h		\
592	tiuser.h		\
593	tl.h			\
594	tnf.h			\
595	tnf_com.h		\
596	tnf_probe.h		\
597	tnf_writer.h		\
598	todio.h			\
599	tpicommon.h		\
600	ts.h			\
601	tspriocntl.h		\
602	ttcompat.h		\
603	ttold.h			\
604	tty.h			\
605	ttychars.h		\
606	ttydev.h		\
607	tuneable.h		\
608	turnstile.h		\
609	types.h			\
610	types32.h		\
611	tzfile.h		\
612	u8_textprep.h		\
613	u8_textprep_data.h	\
614	uadmin.h		\
615	ucred.h			\
616	uio.h			\
617	ulimit.h		\
618	un.h			\
619	unistd.h		\
620	user.h			\
621	ustat.h			\
622	utime.h			\
623	utsname.h		\
624	utssys.h		\
625	uuid.h			\
626	va_impl.h		\
627	va_list.h		\
628	var.h			\
629	varargs.h		\
630	vfs.h			\
631	vfs_opreg.h		\
632	vfstab.h		\
633	vgareg.h		\
634	videodev2.h		\
635	visual_io.h		\
636	vlan.h			\
637	vm.h			\
638	vm_usage.h		\
639	vmem.h			\
640	vmem_impl.h		\
641	vmsystm.h		\
642	vnic.h			\
643	vnic_impl.h		\
644	vnode.h			\
645	vscan.h			\
646	vtoc.h			\
647	vtrace.h		\
648	vuid_event.h		\
649	vuid_wheel.h		\
650	vuid_queue.h		\
651	vuid_state.h		\
652	vuid_store.h		\
653	wait.h			\
654	waitq.h			\
655	wanboot_impl.h		\
656	watchpoint.h		\
657	winlockio.h		\
658	zcons.h			\
659	zone.h			\
660	xti_inet.h		\
661	xti_osi.h		\
662	xti_xtiopt.h		\
663	zmod.h
664
665HDRS=				\
666	$(GENHDRS)		\
667	$(CHKHDRS)
668
669AUDIOHDRS=			\
670	ac97.h			\
671	audio_common.h		\
672	audio_driver.h		\
673	audio_oss.h		\
674	g711.h
675
676AVHDRS=				\
677	iec61883.h
678
679BSCHDRS=			\
680	bscbus.h		\
681	bscv_impl.h		\
682	lom_ebuscodes.h		\
683	lom_io.h		\
684	lom_priv.h		\
685	lombus.h
686
687MDESCHDRS=			\
688	mdesc.h			\
689	mdesc_impl.h
690
691CPUDRVHDRS=			\
692	cpudrv.h
693
694CRYPTOHDRS=			\
695	elfsign.h		\
696	ioctl.h			\
697	ioctladmin.h		\
698	common.h		\
699	impl.h			\
700	spi.h			\
701	api.h			\
702	ops_impl.h		\
703	sched_impl.h
704
705DCAMHDRS=			\
706	dcam1394_io.h
707
708IBHDRS=			\
709	ib_types.h	\
710	ib_pkt_hdrs.h
711
712IBTLHDRS=		\
713	ibtl_types.h	\
714	ibtl_status.h	\
715	ibti.h		\
716	ibti_cm.h	\
717	ibci.h		\
718	ibti_common.h	\
719	ibvti.h		\
720	ibtl_ci_types.h
721
722IBTLIMPLHDRS=		\
723	ibtl_util.h
724
725IBNEXHDRS=		\
726	ibnex_devctl.h
727
728IBMFHDRS=		\
729	ibmf.h		\
730	ibmf_msg.h	\
731	ibmf_saa.h	\
732	ibmf_utils.h
733
734IBMGTHDRS=		\
735	ib_dm_attr.h	\
736	ib_mad.h	\
737	sm_attr.h	\
738	sa_recs.h
739
740IBDHDRS=		\
741	ibd.h
742
743OFHDRS=			\
744	ofa_solaris.h	\
745	ofed_kernel.h
746
747RDMAHDRS=		\
748	ib_addr.h	\
749	ib_user_mad.h	\
750	ib_user_sa.h	\
751	ib_user_verbs.h \
752	ib_verbs.h 	\
753	rdma_cm.h 	\
754	rdma_user_cm.h
755
756SOL_UVERBSHDRS=		\
757	sol_uverbs.h	\
758	sol_uverbs2ucma.h	\
759	sol_uverbs_comp.h	\
760	sol_uverbs_hca.h	\
761	sol_uverbs_qp.h		\
762	sol_uverbs_event.h
763
764SOL_UMADHDRS=		\
765	sol_umad.h
766
767SOL_UCMAHDRS=		\
768	sol_ucma.h	\
769	sol_rdma_user_cm.h
770
771SOL_OFSHDRS=		\
772	sol_cma.h	\
773	sol_ib_cma.h	\
774	sol_ofs_common.h	\
775	sol_kverb_impl.h
776
777TAVORHDRS=		\
778	tavor_ioctl.h
779
780HERMONHDRS=		\
781	hermon_ioctl.h
782
783MLNXHDRS=		\
784	mlnx_umap.h
785
786IDMHDRS=		\
787	idm.h		\
788	idm_impl.h	\
789	idm_so.h	\
790	idm_text.h	\
791	idm_transport.h	\
792	idm_conn_sm.h
793
794ISCSITHDRS=		\
795	radius_packet.h		\
796	radius_protocol.h	\
797	chap.h			\
798	isns_protocol.h		\
799	iscsi_if.h		\
800	iscsit_common.h
801
802ISOHDRS=			\
803	signal_iso.h
804
805DERIVED_LVMHDRS=	\
806	md_mdiox.h		\
807	md_basic.h		\
808	mdmed.h			\
809	md_mhdx.h		\
810	mdmn_commd.h
811
812LVMHDRS=			\
813	md_convert.h		\
814	md_crc.h		\
815	md_hotspares.h		\
816	md_mddb.h		\
817	md_mirror.h		\
818	md_mirror_shared.h	\
819	md_names.h		\
820	md_notify.h		\
821	md_raid.h		\
822	md_rename.h		\
823	md_sp.h			\
824	md_stripe.h		\
825	md_trans.h		\
826	mdio.h			\
827	mdvar.h
828
829ALL_LVMHDRS=			\
830	$(LVMHDRS)		\
831	$(DERIVED_LVMHDRS)
832
833FMHDRS=				\
834	protocol.h		\
835	util.h
836
837FMFSHDRS=			\
838	zfs.h
839
840FMIOHDRS=			\
841	ddi.h			\
842	disk.h			\
843	pci.h			\
844	scsi.h			\
845	sun4upci.h		\
846	opl_mc_fm.h
847
848FSHDRS=				\
849	autofs.h		\
850	cachefs_dir.h		\
851	cachefs_dlog.h		\
852	cachefs_filegrp.h	\
853	cachefs_fs.h		\
854	cachefs_fscache.h	\
855	cachefs_ioctl.h		\
856	cachefs_log.h		\
857	decomp.h		\
858	dv_node.h		\
859	sdev_impl.h		\
860	fifonode.h		\
861	hsfs_isospec.h		\
862	hsfs_node.h		\
863	hsfs_rrip.h		\
864	hsfs_spec.h		\
865	hsfs_susp.h		\
866	lofs_info.h		\
867	lofs_node.h		\
868	mntdata.h		\
869	namenode.h		\
870	pc_dir.h		\
871	pc_fs.h			\
872	pc_label.h		\
873	pc_node.h		\
874	pxfs_ki.h		\
875	snode.h			\
876	swapnode.h		\
877	tmp.h			\
878	tmpnode.h		\
879	udf_inode.h		\
880	udf_volume.h		\
881	ufs_acl.h		\
882	ufs_bio.h		\
883	ufs_filio.h		\
884	ufs_fs.h		\
885	ufs_fsdir.h		\
886	ufs_inode.h		\
887	ufs_lockfs.h		\
888	ufs_log.h		\
889	ufs_mount.h		\
890	ufs_panic.h		\
891	ufs_prot.h		\
892	ufs_quota.h		\
893	ufs_snap.h              \
894	ufs_trans.h		\
895	zfs.h			\
896	zut.h
897
898SCSIHDRS=		\
899	scsi.h		\
900	scsi_address.h	\
901	scsi_ctl.h	\
902	scsi_fm.h	\
903	scsi_params.h	\
904	scsi_pkt.h	\
905	scsi_resource.h	\
906	scsi_types.h	\
907	scsi_watch.h
908
909SCSICONFHDRS=		\
910	autoconf.h	\
911	device.h
912
913SCSIGENHDRS=		\
914	commands.h	\
915	dad_mode.h	\
916	inquiry.h	\
917	message.h	\
918	mode.h		\
919	persist.h	\
920	sense.h		\
921	sff_frames.h	\
922	smp_frames.h	\
923	status.h
924
925SCSIIMPLHDRS=		\
926	commands.h	\
927	inquiry.h	\
928	mode.h		\
929	scsi_reset_notify.h \
930	scsi_sas.h	\
931	sense.h		\
932	services.h	\
933	smp_transport.h	\
934	spc3_types.h	\
935	status.h	\
936	transport.h	\
937	types.h		\
938	uscsi.h		\
939	usmp.h
940
941SCSITARGETSHDRS=	\
942	ses.h		\
943	sesio.h		\
944	sgendef.h	\
945	stdef.h		\
946	sddef.h		\
947	smp.h
948
949SCSIADHDRS=
950
951SCSICADHDRS=
952
953SCSIISCSIHDRS=		\
954	iscsi_door.h	\
955	iscsi_if.h
956
957SCSIVHCIHDRS=		\
958	scsi_vhci.h	\
959	mpapi_impl.h	\
960	mpapi_scsi_vhci.h
961
962SDCARDHDRS=		\
963	sda.h		\
964	sda_impl.h	\
965	sda_ioctl.h
966
967FC4HDRS=			\
968	fc_transport.h	\
969	linkapp.h	\
970	fc.h		\
971	fcp.h		\
972	fcal_transport.h \
973	fcal.h		\
974	fcal_linkapp.h	\
975	fcio.h
976
977FCHDRS=			\
978	fc.h		\
979	fcio.h		\
980	fc_types.h	\
981	fc_appif.h
982
983FCIMPLHDRS=		\
984	fc_error.h	\
985	fcph.h
986
987FCULPHDRS=		\
988	fcp_util.h	\
989	fcsm.h
990
991SATAGENHDRS=		\
992	sata_hba.h	\
993	sata_defs.h	\
994	sata_cfgadm.h
995
996SYSEVENTHDRS=		\
997	ap_driver.h     \
998	dev.h		\
999	domain.h        \
1000	dr.h            \
1001	env.h           \
1002	eventdefs.h	\
1003	ipmp.h		\
1004	pwrctl.h	\
1005	svm.h		\
1006	vrrp.h
1007
1008CONTRACTHDRS=		\
1009	process.h	\
1010	process_impl.h	\
1011	device.h	\
1012	device_impl.h
1013
1014USBHDRS=	\
1015	usba.h	\
1016	usbai.h
1017
1018USBAUDHDRS=           \
1019	usb_audio.h
1020
1021USBHUBDHDRS=		\
1022	hub.h		\
1023	hubd_impl.h
1024
1025USBHIDHDRS=		\
1026	hid.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	$(MLNXHDRS:%.h=ib/adapters/%.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	$(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	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1197	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1198	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1199	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1200	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1201	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1202	$(USBHDRS:%.h=usb/%.check)                      \
1203	$(I1394HDRS:%.h=1394/%.check)			\
1204	$(RSMHDRS:%.h=rsm/%.check)			\
1205	$(TSOLHDRS:%.h=tsol/%.check)			\
1206	$(NXGEHDRS:%.h=nxge/%.check)
1207
1208
1209.KEEP_STATE:
1210
1211.PARALLEL:			\
1212	$(CHECKHDRS)		\
1213	$(ROOTHDRS)		\
1214	$(ROOTAUDHDRS)		\
1215	$(ROOTAVHDRS)		\
1216	$(ROOTCRYPTOHDRS)	\
1217	$(ROOTDCAMHDRS)		\
1218	$(ROOTISOHDRS)		\
1219	$(ROOTIDMHDRS)		\
1220	$(ROOTISCSIHDRS)	\
1221	$(ROOTISCSITHDRS)	\
1222	$(ROOTFC4HDRS)		\
1223	$(ROOTFCHDRS)		\
1224	$(ROOTFCIMPLHDRS)	\
1225	$(ROOTFCULPHDRS)	\
1226	$(ROOTFMHDRS)		\
1227	$(ROOTFMIOHDRS)		\
1228	$(ROOTFMFSHDRS)		\
1229	$(ROOTFSHDRS)		\
1230	$(ROOTIBDHDRS)		\
1231	$(ROOTIBHDRS)		\
1232	$(ROOTIBTLHDRS)		\
1233	$(ROOTIBTLIMPLHDRS)	\
1234	$(ROOTIBNEXHDRS)	\
1235	$(ROOTIBMGTHDRS)	\
1236	$(ROOTIBMFHDRS)		\
1237	$(ROOTOFHDRS)		\
1238	$(ROOTRDMAHDRS)		\
1239	$(ROOTSOL_OFSHDRS)	\
1240	$(ROOTSOL_UMADHDRS)	\
1241	$(ROOTSOL_UVERBSHDRS)	\
1242	$(ROOTSOL_UCMAHDRS)	\
1243	$(ROOTTAVORHDRS)	\
1244	$(ROOTHERMONHDRS)	\
1245	$(ROOTMLNXHDRS)		\
1246	$(ROOTLVMHDRS)		\
1247	$(ROOTSCSIHDRS)		\
1248	$(ROOTSCSIADHDRS)	\
1249	$(ROOTSCSICONFHDRS)	\
1250	$(ROOTSCSIISCSIHDRS)	\
1251	$(ROOTSCSIGENHDRS)	\
1252	$(ROOTSCSIIMPLHDRS)	\
1253	$(ROOTSCSIVHCIHDRS)	\
1254	$(ROOTSDCARDHDRS)	\
1255	$(ROOTSYSEVENTHDRS)     \
1256	$(ROOTCONTRACTHDRS)     \
1257	$(ROOTUSBHDRS)		\
1258	$(ROOTUWBHDRS)		\
1259	$(ROOTUWBAHDRS)		\
1260	$(ROOTUSBAUDHDRS)	\
1261	$(ROOTUSBHUBDHDRS)	\
1262	$(ROOTUSBHIDHDRS)	\
1263	$(ROOTUSBHRCHDRS)	\
1264	$(ROOTUSBMSHDRS)	\
1265	$(ROOTUSBPRNHDRS)       \
1266	$(ROOTUSBCDCHDRS)       \
1267	$(ROOTUSBVIDHDRS)       \
1268	$(ROOTUSBWCMHDRS)	\
1269	$(ROOTUGENHDRS)		\
1270	$(ROOT1394HDRS)         \
1271	$(ROOTHOTPLUGHDRS)	\
1272	$(ROOTHOTPLUGPCIHDRS)	\
1273	$(ROOTRSMHDRS)		\
1274	$(ROOTTSOLHDRS)		\
1275	$($(MACH)_ROOTHDRS)
1276
1277
1278install_h:			\
1279	$(ROOTDIRS)		\
1280	LVMDERIVED_H		\
1281	.WAIT			\
1282	$(ROOTHDRS)		\
1283	$(ROOTAUDHDRS)		\
1284	$(ROOTAVHDRS)		\
1285	$(ROOTCRYPTOHDRS)	\
1286	$(ROOTDCAMHDRS)		\
1287	$(ROOTISOHDRS)		\
1288	$(ROOTIDMHDRS)		\
1289	$(ROOTISCSIHDRS)	\
1290	$(ROOTISCSITHDRS)	\
1291	$(ROOTFC4HDRS)		\
1292	$(ROOTFCHDRS)		\
1293	$(ROOTFCIMPLHDRS)	\
1294	$(ROOTFCULPHDRS)	\
1295	$(ROOTFMHDRS)		\
1296	$(ROOTFMFSHDRS)		\
1297	$(ROOTFMIOHDRS)		\
1298	$(ROOTFSHDRS)		\
1299	$(ROOTIBDHDRS)		\
1300	$(ROOTIBHDRS)		\
1301	$(ROOTIBTLHDRS)		\
1302	$(ROOTIBTLIMPLHDRS)	\
1303	$(ROOTIBNEXHDRS)	\
1304	$(ROOTIBMGTHDRS)	\
1305	$(ROOTIBMFHDRS)		\
1306	$(ROOTOFHDRS)		\
1307	$(ROOTRDMAHDRS)		\
1308	$(ROOTSOL_OFSHDRS)	\
1309	$(ROOTSOL_UMADHDRS)	\
1310	$(ROOTSOL_UVERBSHDRS)	\
1311	$(ROOTSOL_UCMAHDRS)	\
1312	$(ROOTTAVORHDRS)	\
1313	$(ROOTHERMONHDRS)	\
1314	$(ROOTMLNXHDRS)		\
1315	$(ROOTLVMHDRS)		\
1316	$(ROOTSCSIHDRS)		\
1317	$(ROOTSCSIADHDRS)	\
1318	$(ROOTSCSIISCSIHDRS)	\
1319	$(ROOTSCSICONFHDRS)	\
1320	$(ROOTSCSIGENHDRS)	\
1321	$(ROOTSCSIIMPLHDRS)	\
1322	$(ROOTSCSIVHCIHDRS)     \
1323	$(ROOTSDCARDHDRS)	\
1324	$(ROOTSYSEVENTHDRS)     \
1325	$(ROOTCONTRACTHDRS)     \
1326	$(ROOTUWBHDRS)		\
1327	$(ROOTUWBAHDRS)		\
1328	$(ROOTUSBHDRS)		\
1329	$(ROOTUSBAUDHDRS)	\
1330	$(ROOTUSBHUBDHDRS)	\
1331	$(ROOTUSBHIDHDRS)	\
1332	$(ROOTUSBHRCHDRS)	\
1333	$(ROOTUSBMSHDRS)	\
1334	$(ROOTUSBPRNHDRS)       \
1335	$(ROOTUSBCDCHDRS)       \
1336	$(ROOTUSBVIDHDRS)       \
1337	$(ROOTUSBWCMHDRS)	\
1338	$(ROOTUGENHDRS)		\
1339	$(ROOT1394HDRS)         \
1340	$(ROOTHOTPLUGHDRS)	\
1341	$(ROOTHOTPLUGPCIHDRS)	\
1342	$(ROOTRSMHDRS)		\
1343	$(ROOTTSOLHDRS)		\
1344	$($(MACH)_ROOTHDRS)
1345
1346all_h: $(GENHDRS)
1347
1348priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1349	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1350
1351priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1352	$(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1353
1354usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1355	$(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1356
1357LVMDERIVED_H:
1358	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1359
1360clean:
1361	$(RM) $(GENHDRS)
1362
1363clobber: clean
1364	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1365
1366check:	$(CHECKHDRS)
1367
1368FRC:
1369