xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 2c5ec7a875dcd76853e6618614e990f1e8cdd56d)
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	watchpoint.h		\
673	winlockio.h		\
674	zcons.h			\
675	zone.h			\
676	xti_inet.h		\
677	xti_osi.h		\
678	xti_xtiopt.h		\
679	zmod.h
680
681HDRS=				\
682	$(GENHDRS)		\
683	$(CHKHDRS)
684
685AUDIOHDRS=			\
686	ac97.h			\
687	audio_common.h		\
688	audio_driver.h		\
689	audio_oss.h		\
690	g711.h
691
692AVHDRS=				\
693	iec61883.h
694
695BSCHDRS=			\
696	bscbus.h		\
697	bscv_impl.h		\
698	lom_ebuscodes.h		\
699	lom_io.h		\
700	lom_priv.h		\
701	lombus.h
702
703MDESCHDRS=			\
704	mdesc.h			\
705	mdesc_impl.h
706
707CPUDRVHDRS=			\
708	cpudrv.h
709
710CRYPTOHDRS=			\
711	elfsign.h		\
712	ioctl.h			\
713	ioctladmin.h		\
714	common.h		\
715	impl.h			\
716	spi.h			\
717	api.h			\
718	ops_impl.h		\
719	sched_impl.h
720
721DCAMHDRS=			\
722	dcam1394_io.h
723
724IBHDRS=			\
725	ib_types.h	\
726	ib_pkt_hdrs.h
727
728IBTLHDRS=		\
729	ibtl_types.h	\
730	ibtl_status.h	\
731	ibti.h		\
732	ibti_cm.h	\
733	ibci.h		\
734	ibti_common.h	\
735	ibvti.h		\
736	ibtl_ci_types.h
737
738IBTLIMPLHDRS=		\
739	ibtl_util.h
740
741IBNEXHDRS=		\
742	ibnex_devctl.h
743
744IBMFHDRS=		\
745	ibmf.h		\
746	ibmf_msg.h	\
747	ibmf_saa.h	\
748	ibmf_utils.h
749
750IBMGTHDRS=		\
751	ib_dm_attr.h	\
752	ib_mad.h	\
753	sm_attr.h	\
754	sa_recs.h
755
756IBDHDRS=		\
757	ibd.h
758
759OFHDRS=			\
760	ofa_solaris.h	\
761	ofed_kernel.h
762
763RDMAHDRS=		\
764	ib_addr.h	\
765	ib_user_mad.h	\
766	ib_user_sa.h	\
767	ib_user_verbs.h \
768	ib_verbs.h 	\
769	rdma_cm.h 	\
770	rdma_user_cm.h
771
772SOL_UVERBSHDRS=		\
773	sol_uverbs.h	\
774	sol_uverbs2ucma.h	\
775	sol_uverbs_comp.h	\
776	sol_uverbs_hca.h	\
777	sol_uverbs_qp.h		\
778	sol_uverbs_event.h
779
780SOL_UMADHDRS=		\
781	sol_umad.h
782
783SOL_UCMAHDRS=		\
784	sol_ucma.h	\
785	sol_rdma_user_cm.h
786
787SOL_OFSHDRS=		\
788	sol_cma.h	\
789	sol_ib_cma.h	\
790	sol_ofs_common.h	\
791	sol_kverb_impl.h
792
793TAVORHDRS=		\
794	tavor_ioctl.h
795
796HERMONHDRS=		\
797	hermon_ioctl.h
798
799MLNXHDRS=		\
800	mlnx_umap.h
801
802IDMHDRS=		\
803	idm.h		\
804	idm_impl.h	\
805	idm_so.h	\
806	idm_text.h	\
807	idm_transport.h	\
808	idm_conn_sm.h
809
810ISCSITHDRS=		\
811	radius_packet.h		\
812	radius_protocol.h	\
813	chap.h			\
814	isns_protocol.h		\
815	iscsi_if.h		\
816	iscsit_common.h
817
818ISOHDRS=			\
819	signal_iso.h
820
821FMHDRS=				\
822	protocol.h		\
823	util.h
824
825FMFSHDRS=			\
826	zfs.h
827
828FMIOHDRS=			\
829	ddi.h			\
830	disk.h			\
831	pci.h			\
832	scsi.h			\
833	sun4upci.h		\
834	opl_mc_fm.h
835
836FSHDRS=				\
837	autofs.h		\
838	decomp.h		\
839	dv_node.h		\
840	sdev_impl.h		\
841	fifonode.h		\
842	hsfs_isospec.h		\
843	hsfs_node.h		\
844	hsfs_rrip.h		\
845	hsfs_spec.h		\
846	hsfs_susp.h		\
847	lofs_info.h		\
848	lofs_node.h		\
849	mntdata.h		\
850	namenode.h		\
851	pc_dir.h		\
852	pc_fs.h			\
853	pc_label.h		\
854	pc_node.h		\
855	pxfs_ki.h		\
856	snode.h			\
857	swapnode.h		\
858	tmp.h			\
859	tmpnode.h		\
860	udf_inode.h		\
861	udf_volume.h		\
862	ufs_acl.h		\
863	ufs_bio.h		\
864	ufs_filio.h		\
865	ufs_fs.h		\
866	ufs_fsdir.h		\
867	ufs_inode.h		\
868	ufs_lockfs.h		\
869	ufs_log.h		\
870	ufs_mount.h		\
871	ufs_panic.h		\
872	ufs_prot.h		\
873	ufs_quota.h		\
874	ufs_snap.h              \
875	ufs_trans.h		\
876	zfs.h			\
877	zut.h
878
879SCSIHDRS=		\
880	scsi.h		\
881	scsi_address.h	\
882	scsi_ctl.h	\
883	scsi_fm.h	\
884	scsi_names.h	\
885	scsi_params.h	\
886	scsi_pkt.h	\
887	scsi_resource.h	\
888	scsi_types.h	\
889	scsi_watch.h
890
891SCSICONFHDRS=		\
892	autoconf.h	\
893	device.h
894
895SCSIGENHDRS=		\
896	commands.h	\
897	dad_mode.h	\
898	inquiry.h	\
899	message.h	\
900	mode.h		\
901	persist.h	\
902	sense.h		\
903	sff_frames.h	\
904	smp_frames.h	\
905	status.h
906
907SCSIIMPLHDRS=		\
908	commands.h	\
909	inquiry.h	\
910	mode.h		\
911	scsi_reset_notify.h \
912	scsi_sas.h	\
913	sense.h		\
914	services.h	\
915	smp_transport.h	\
916	spc3_types.h	\
917	status.h	\
918	transport.h	\
919	types.h		\
920	uscsi.h		\
921	usmp.h
922
923SCSITARGETSHDRS=	\
924	ses.h		\
925	sesio.h		\
926	sgendef.h	\
927	stdef.h		\
928	sddef.h		\
929	smp.h
930
931SCSIADHDRS=
932
933SCSICADHDRS=
934
935SCSIISCSIHDRS=		\
936	iscsi_door.h	\
937	iscsi_if.h
938
939SCSIVHCIHDRS=		\
940	scsi_vhci.h	\
941	mpapi_impl.h	\
942	mpapi_scsi_vhci.h
943
944SDCARDHDRS=		\
945	sda.h		\
946	sda_impl.h	\
947	sda_ioctl.h
948
949FC4HDRS=			\
950	fc_transport.h	\
951	linkapp.h	\
952	fc.h		\
953	fcp.h		\
954	fcal_transport.h \
955	fcal.h		\
956	fcal_linkapp.h	\
957	fcio.h
958
959FCHDRS=			\
960	fc.h		\
961	fcio.h		\
962	fc_types.h	\
963	fc_appif.h
964
965FCIMPLHDRS=		\
966	fc_error.h	\
967	fcph.h
968
969FCULPHDRS=		\
970	fcp_util.h	\
971	fcsm.h
972
973SATAGENHDRS=		\
974	sata_hba.h	\
975	sata_defs.h	\
976	sata_cfgadm.h
977
978SYSEVENTHDRS=		\
979	ap_driver.h     \
980	dev.h		\
981	domain.h        \
982	dr.h            \
983	env.h           \
984	eventdefs.h	\
985	ipmp.h		\
986	pwrctl.h	\
987	vrrp.h
988
989CONTRACTHDRS=		\
990	process.h	\
991	process_impl.h	\
992	device.h	\
993	device_impl.h
994
995USBHDRS=	\
996	usba.h	\
997	usbai.h
998
999USBAUDHDRS=           \
1000	usb_audio.h
1001
1002USBHUBDHDRS=		\
1003	hub.h		\
1004	hubd_impl.h
1005
1006USBHIDHDRS=		\
1007	hid.h
1008
1009USBMSHDRS=		\
1010	usb_bulkonly.h	\
1011	usb_cbi.h
1012
1013USBPRNHDRS=           \
1014	usb_printer.h
1015
1016USBCDCHDRS=		\
1017	usb_cdc.h
1018
1019USBVIDHDRS=           \
1020	usbvc.h
1021
1022USBWCMHDRS=		\
1023	usbwcm.h
1024
1025UGENHDRS=           \
1026	usb_ugen.h
1027
1028HOTPLUGHDRS=	\
1029	hpcsvc.h	\
1030	hpctrl.h
1031
1032HOTPLUGPCIHDRS=	\
1033	pcicfg.h	\
1034	pcihp.h
1035
1036RSMHDRS= \
1037	rsm.h	\
1038	rsm_common.h	\
1039	rsmapi_common.h \
1040	rsmpi.h	\
1041	rsmpi_driver.h	\
1042	rsmka_path_int.h
1043
1044TSOLHDRS=		\
1045	label.h		\
1046	label_macro.h	\
1047	priv.h		\
1048	tndb.h		\
1049	tsyscall.h
1050
1051I1394HDRS=		\
1052	cmd1394.h	\
1053	id1394.h	\
1054	ieee1212.h	\
1055	ieee1394.h	\
1056	ixl1394.h	\
1057	s1394_impl.h	\
1058	t1394.h
1059
1060# "cmdk" headers used on sparc
1061SDKTPHDRS=		\
1062	dadkio.h	\
1063	fdisk.h
1064
1065# "cmdk" headers used on i386
1066DKTPHDRS=		\
1067	altsctr.h	\
1068	bbh.h		\
1069	cm.h		\
1070	cmdev.h		\
1071	cmdk.h		\
1072	cmpkt.h		\
1073	controller.h	\
1074	dadev.h		\
1075	dadk.h		\
1076	dadkio.h	\
1077	fctypes.h	\
1078	fdisk.h		\
1079	flowctrl.h	\
1080	gda.h		\
1081	quetypes.h	\
1082	queue.h		\
1083	tgcom.h		\
1084	tgdk.h
1085
1086# "pc" header files used on i386
1087PCHDRS=			\
1088	avintr.h	\
1089	dma_engine.h	\
1090	i8272A.h	\
1091	pcic_reg.h	\
1092	pcic_var.h	\
1093	pic.h		\
1094	pit.h		\
1095	rtc.h
1096
1097NXGEHDRS=			\
1098	nxge.h			\
1099	nxge_common.h		\
1100	nxge_common_impl.h	\
1101	nxge_defs.h		\
1102	nxge_hw.h		\
1103	nxge_impl.h		\
1104	nxge_ipp.h		\
1105	nxge_ipp_hw.h		\
1106	nxge_mac.h		\
1107	nxge_mac_hw.h		\
1108	nxge_fflp.h		\
1109	nxge_fflp_hw.h		\
1110	nxge_mii.h		\
1111	nxge_rxdma.h		\
1112	nxge_rxdma_hw.h		\
1113	nxge_txc.h		\
1114	nxge_txc_hw.h		\
1115	nxge_txdma.h		\
1116	nxge_txdma_hw.h		\
1117	nxge_virtual.h		\
1118	nxge_espc.h
1119
1120include Makefile.syshdrs
1121
1122dcam/%.check:	dcam/%.h
1123	$(DOT_H_CHECK)
1124
1125CHECKHDRS=						\
1126	$($(MACH)_HDRS:%.h=%.check)			\
1127	$(AUDIOHDRS:%.h=audio/%.check)			\
1128	$(AVHDRS:%.h=av/%.check)			\
1129	$(BSCHDRS:%.h=%.check)				\
1130	$(CHKHDRS:%.h=%.check)				\
1131	$(CPUDRVHDRS:%.h=%.check)			\
1132	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1133	$(DCAMHDRS:%.h=dcam/%.check)			\
1134	$(FC4HDRS:%.h=fc4/%.check)			\
1135	$(FCHDRS:%.h=fibre-channel/%.check)		\
1136	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1137	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1138	$(IBHDRS:%.h=ib/%.check)			\
1139	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1140	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1141	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1142	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1143	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1144	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1145	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1146	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1147	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1148	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1149	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1150	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1151	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1152	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1153	$(IDMHDRS:%.h=idm/%.check)			\
1154	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1155	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1156	$(ISOHDRS:%.h=iso/%.check)			\
1157	$(FMHDRS:%.h=fm/%.check)			\
1158	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1159	$(FMIOHDRS:%.h=fm/io/%.check)			\
1160	$(FSHDRS:%.h=fs/%.check)			\
1161	$(SCSIHDRS:%.h=scsi/%.check)			\
1162	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1163	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1164	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1165	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1166	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1167	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1168	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1169	$(SATAGENHDRS:%.h=sata/%.check)			\
1170	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1171	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1172	$(CONTRACTHDRS:%.h=contract/%.check)            \
1173	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1174	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1175	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1176	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1177	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1178	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1179	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1180	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1181	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1182	$(USBHDRS:%.h=usb/%.check)                      \
1183	$(I1394HDRS:%.h=1394/%.check)			\
1184	$(RSMHDRS:%.h=rsm/%.check)			\
1185	$(TSOLHDRS:%.h=tsol/%.check)			\
1186	$(NXGEHDRS:%.h=nxge/%.check)
1187
1188
1189.KEEP_STATE:
1190
1191.PARALLEL:			\
1192	$(CHECKHDRS)		\
1193	$(ROOTHDRS)		\
1194	$(ROOTAUDHDRS)		\
1195	$(ROOTAVHDRS)		\
1196	$(ROOTCRYPTOHDRS)	\
1197	$(ROOTDCAMHDRS)		\
1198	$(ROOTISOHDRS)		\
1199	$(ROOTIDMHDRS)		\
1200	$(ROOTISCSIHDRS)	\
1201	$(ROOTISCSITHDRS)	\
1202	$(ROOTFC4HDRS)		\
1203	$(ROOTFCHDRS)		\
1204	$(ROOTFCIMPLHDRS)	\
1205	$(ROOTFCULPHDRS)	\
1206	$(ROOTFMHDRS)		\
1207	$(ROOTFMIOHDRS)		\
1208	$(ROOTFMFSHDRS)		\
1209	$(ROOTFSHDRS)		\
1210	$(ROOTIBDHDRS)		\
1211	$(ROOTIBHDRS)		\
1212	$(ROOTIBTLHDRS)		\
1213	$(ROOTIBTLIMPLHDRS)	\
1214	$(ROOTIBNEXHDRS)	\
1215	$(ROOTIBMGTHDRS)	\
1216	$(ROOTIBMFHDRS)		\
1217	$(ROOTOFHDRS)		\
1218	$(ROOTRDMAHDRS)		\
1219	$(ROOTSOL_OFSHDRS)	\
1220	$(ROOTSOL_UMADHDRS)	\
1221	$(ROOTSOL_UVERBSHDRS)	\
1222	$(ROOTSOL_UCMAHDRS)	\
1223	$(ROOTTAVORHDRS)	\
1224	$(ROOTHERMONHDRS)	\
1225	$(ROOTMLNXHDRS)		\
1226	$(ROOTSCSIHDRS)		\
1227	$(ROOTSCSIADHDRS)	\
1228	$(ROOTSCSICONFHDRS)	\
1229	$(ROOTSCSIISCSIHDRS)	\
1230	$(ROOTSCSIGENHDRS)	\
1231	$(ROOTSCSIIMPLHDRS)	\
1232	$(ROOTSCSIVHCIHDRS)	\
1233	$(ROOTSDCARDHDRS)	\
1234	$(ROOTSYSEVENTHDRS)     \
1235	$(ROOTCONTRACTHDRS)     \
1236	$(ROOTUSBHDRS)		\
1237	$(ROOTUWBHDRS)		\
1238	$(ROOTUWBAHDRS)		\
1239	$(ROOTUSBAUDHDRS)	\
1240	$(ROOTUSBHUBDHDRS)	\
1241	$(ROOTUSBHIDHDRS)	\
1242	$(ROOTUSBHRCHDRS)	\
1243	$(ROOTUSBMSHDRS)	\
1244	$(ROOTUSBPRNHDRS)       \
1245	$(ROOTUSBCDCHDRS)       \
1246	$(ROOTUSBVIDHDRS)       \
1247	$(ROOTUSBWCMHDRS)	\
1248	$(ROOTUGENHDRS)		\
1249	$(ROOT1394HDRS)         \
1250	$(ROOTHOTPLUGHDRS)	\
1251	$(ROOTHOTPLUGPCIHDRS)	\
1252	$(ROOTRSMHDRS)		\
1253	$(ROOTTSOLHDRS)		\
1254	$($(MACH)_ROOTHDRS)
1255
1256
1257install_h:			\
1258	$(ROOTDIRS)		\
1259	.WAIT			\
1260	$(ROOTHDRS)		\
1261	$(ROOTAUDHDRS)		\
1262	$(ROOTAVHDRS)		\
1263	$(ROOTCRYPTOHDRS)	\
1264	$(ROOTDCAMHDRS)		\
1265	$(ROOTISOHDRS)		\
1266	$(ROOTIDMHDRS)		\
1267	$(ROOTISCSIHDRS)	\
1268	$(ROOTISCSITHDRS)	\
1269	$(ROOTFC4HDRS)		\
1270	$(ROOTFCHDRS)		\
1271	$(ROOTFCIMPLHDRS)	\
1272	$(ROOTFCULPHDRS)	\
1273	$(ROOTFMHDRS)		\
1274	$(ROOTFMFSHDRS)		\
1275	$(ROOTFMIOHDRS)		\
1276	$(ROOTFSHDRS)		\
1277	$(ROOTIBDHDRS)		\
1278	$(ROOTIBHDRS)		\
1279	$(ROOTIBTLHDRS)		\
1280	$(ROOTIBTLIMPLHDRS)	\
1281	$(ROOTIBNEXHDRS)	\
1282	$(ROOTIBMGTHDRS)	\
1283	$(ROOTIBMFHDRS)		\
1284	$(ROOTOFHDRS)		\
1285	$(ROOTRDMAHDRS)		\
1286	$(ROOTSOL_OFSHDRS)	\
1287	$(ROOTSOL_UMADHDRS)	\
1288	$(ROOTSOL_UVERBSHDRS)	\
1289	$(ROOTSOL_UCMAHDRS)	\
1290	$(ROOTTAVORHDRS)	\
1291	$(ROOTHERMONHDRS)	\
1292	$(ROOTMLNXHDRS)		\
1293	$(ROOTSCSIHDRS)		\
1294	$(ROOTSCSIADHDRS)	\
1295	$(ROOTSCSIISCSIHDRS)	\
1296	$(ROOTSCSICONFHDRS)	\
1297	$(ROOTSCSIGENHDRS)	\
1298	$(ROOTSCSIIMPLHDRS)	\
1299	$(ROOTSCSIVHCIHDRS)     \
1300	$(ROOTSDCARDHDRS)	\
1301	$(ROOTSYSEVENTHDRS)     \
1302	$(ROOTCONTRACTHDRS)     \
1303	$(ROOTUWBHDRS)		\
1304	$(ROOTUWBAHDRS)		\
1305	$(ROOTUSBHDRS)		\
1306	$(ROOTUSBAUDHDRS)	\
1307	$(ROOTUSBHUBDHDRS)	\
1308	$(ROOTUSBHIDHDRS)	\
1309	$(ROOTUSBHRCHDRS)	\
1310	$(ROOTUSBMSHDRS)	\
1311	$(ROOTUSBPRNHDRS)       \
1312	$(ROOTUSBCDCHDRS)       \
1313	$(ROOTUSBVIDHDRS)       \
1314	$(ROOTUSBWCMHDRS)	\
1315	$(ROOTUGENHDRS)		\
1316	$(ROOT1394HDRS)         \
1317	$(ROOTHOTPLUGHDRS)	\
1318	$(ROOTHOTPLUGPCIHDRS)	\
1319	$(ROOTRSMHDRS)		\
1320	$(ROOTTSOLHDRS)		\
1321	$($(MACH)_ROOTHDRS)
1322
1323all_h: $(GENHDRS)
1324
1325priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1326	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1327
1328priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1329	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1330
1331usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1332	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1333
1334clean:
1335	$(RM) $(GENHDRS)
1336
1337clobber: clean
1338
1339check:	$(CHECKHDRS)
1340
1341FRC:
1342