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