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