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