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