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