xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision d9c3e05c2d8261e3f133b5e96a300b4fa6c0f1b7)
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	panic.h			\
440	param.h			\
441	pathconf.h		\
442	pathname.h		\
443	pattr.h			\
444	queue.h			\
445	serializer.h		\
446	pbio.h			\
447	pccard.h		\
448	pci.h			\
449	pcie.h			\
450	pci_impl.h		\
451	pci_tools.h		\
452	pcmcia.h		\
453	pctypes.h		\
454	pfmod.h			\
455	pg.h			\
456	pghw.h			\
457	physmem.h		\
458	pkp_hash.h		\
459	pm.h			\
460	policy.h		\
461	poll.h			\
462	poll_impl.h		\
463	pool.h			\
464	pool_impl.h		\
465	pool_pset.h		\
466	port.h			\
467	port_impl.h		\
468	port_kernel.h		\
469	portif.h		\
470	ppmio.h			\
471	pppt_ic_if.h		\
472	pppt_ioctl.h		\
473	priocntl.h		\
474	priv.h			\
475	priv_impl.h		\
476	prnio.h			\
477	proc.h			\
478	processor.h		\
479	procfs.h		\
480	procset.h		\
481	project.h		\
482	protosw.h		\
483	prsystm.h		\
484	pset.h			\
485	pshot.h			\
486	ptem.h			\
487	ptms.h			\
488	ptyvar.h		\
489	raidioctl.h		\
490	ramdisk.h		\
491	random.h		\
492	rctl.h			\
493	rctl_impl.h		\
494	rds.h			\
495	reboot.h		\
496	refstr.h		\
497	refstr_impl.h		\
498	resource.h		\
499	rlioctl.h		\
500	rt.h			\
501	rtpriocntl.h		\
502	rwlock.h		\
503	rwlock_impl.h		\
504	rwstlock.h		\
505	sad.h			\
506	schedctl.h		\
507	sdt.h			\
508	secflags.h		\
509	select.h		\
510	sem.h			\
511	sem_impl.h		\
512	sema_impl.h		\
513	semaphore.h		\
514	sendfile.h		\
515	sensors.h		\
516	ser_sync.h		\
517	session.h		\
518	sha1.h			\
519	sha1_consts.h		\
520	sha2.h			\
521	sha2_consts.h		\
522	share.h			\
523	shm.h			\
524	shm_impl.h		\
525	sid.h			\
526	siginfo.h		\
527	signal.h		\
528	signalfd.h		\
529	skein.h			\
530	sleepq.h		\
531	smbios.h		\
532	smbios_impl.h		\
533	sobject.h		\
534	socket.h		\
535	socket_impl.h		\
536	socket_proto.h		\
537	socketvar.h		\
538	sockfilter.h		\
539	sockio.h		\
540	soundcard.h		\
541	squeue.h		\
542	squeue_impl.h		\
543	srn.h			\
544	sservice.h		\
545	stat.h			\
546	statfs.h		\
547	statvfs.h		\
548	stdbool.h		\
549	stddef.h		\
550	stdint.h		\
551	stermio.h		\
552	stmf.h			\
553	stmf_defines.h		\
554	stmf_ioctl.h		\
555	stmf_sbd_ioctl.h	\
556	stream.h		\
557	strft.h			\
558	strlog.h		\
559	strmdep.h		\
560	stropts.h		\
561	strredir.h		\
562	strstat.h		\
563	strsubr.h		\
564	strsun.h		\
565	strtty.h		\
566	sunddi.h		\
567	sunldi.h		\
568	sunldi_impl.h		\
569	sunmdi.h		\
570	sunndi.h		\
571	sunos_dhcp_class.h	\
572	sunpm.h			\
573	suntpi.h		\
574	suntty.h		\
575	swap.h			\
576	synch.h			\
577	sysdc.h			\
578	sysdc_impl.h		\
579	syscall.h		\
580	sysconf.h		\
581	sysconfig.h		\
582	sysevent.h		\
583	sysevent_impl.h		\
584	sysinfo.h		\
585	syslog.h		\
586	sysmacros.h		\
587	sysmsg_impl.h		\
588	systeminfo.h		\
589	systm.h			\
590	task.h			\
591	taskq.h			\
592	taskq_impl.h		\
593	t_kuser.h		\
594	t_lock.h		\
595	telioctl.h		\
596	termio.h		\
597	termios.h		\
598	termiox.h		\
599	thread.h		\
600	ticlts.h		\
601	ticots.h		\
602	ticotsord.h		\
603	tihdr.h			\
604	time.h			\
605	time_impl.h		\
606	time_std_impl.h		\
607	timeb.h			\
608	timer.h			\
609	timerfd.h		\
610	times.h			\
611	timex.h			\
612	timod.h			\
613	tirdwr.h		\
614	tiuser.h		\
615	tl.h			\
616	tnf.h			\
617	tnf_com.h		\
618	tnf_probe.h		\
619	tnf_writer.h		\
620	todio.h			\
621	tpicommon.h		\
622	ts.h			\
623	tspriocntl.h		\
624	ttcompat.h		\
625	ttold.h			\
626	tty.h			\
627	ttychars.h		\
628	ttydev.h		\
629	tuneable.h		\
630	turnstile.h		\
631	types.h			\
632	types32.h		\
633	tzfile.h		\
634	u8_textprep.h		\
635	u8_textprep_data.h	\
636	uadmin.h		\
637	ucred.h			\
638	uio.h			\
639	ulimit.h		\
640	un.h			\
641	unistd.h		\
642	user.h			\
643	ustat.h			\
644	utime.h			\
645	utsname.h		\
646	utssys.h		\
647	uuid.h			\
648	va_impl.h		\
649	va_list.h		\
650	var.h			\
651	varargs.h		\
652	vfs.h			\
653	vfs_opreg.h		\
654	vfstab.h		\
655	vgareg.h		\
656	videodev2.h		\
657	visual_io.h		\
658	vlan.h			\
659	vm.h			\
660	vm_usage.h		\
661	vmem.h			\
662	vmem_impl.h		\
663	vmsystm.h		\
664	vnic.h			\
665	vnic_impl.h		\
666	vnode.h			\
667	vscan.h			\
668	vtoc.h			\
669	vtrace.h		\
670	vuid_event.h		\
671	vuid_wheel.h		\
672	vuid_queue.h		\
673	vuid_state.h		\
674	vuid_store.h		\
675	wait.h			\
676	waitq.h			\
677	watchpoint.h		\
678	winlockio.h		\
679	zcons.h			\
680	zone.h			\
681	xti_inet.h		\
682	xti_osi.h		\
683	xti_xtiopt.h		\
684	zmod.h
685
686HDRS=				\
687	$(GENHDRS)		\
688	$(CHKHDRS)
689
690AUDIOHDRS=			\
691	ac97.h			\
692	audio_common.h		\
693	audio_driver.h		\
694	audio_oss.h		\
695	g711.h
696
697AVHDRS=				\
698	iec61883.h
699
700LOMHDRS=			\
701	lom_io.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	sdev_plugin.h		\
843	fifonode.h		\
844	hsfs_isospec.h		\
845	hsfs_node.h		\
846	hsfs_rrip.h		\
847	hsfs_spec.h		\
848	hsfs_susp.h		\
849	lofs_info.h		\
850	lofs_node.h		\
851	mntdata.h		\
852	namenode.h		\
853	pc_dir.h		\
854	pc_fs.h			\
855	pc_label.h		\
856	pc_node.h		\
857	pxfs_ki.h		\
858	snode.h			\
859	swapnode.h		\
860	tmp.h			\
861	tmpnode.h		\
862	udf_inode.h		\
863	udf_volume.h		\
864	ufs_acl.h		\
865	ufs_bio.h		\
866	ufs_filio.h		\
867	ufs_fs.h		\
868	ufs_fsdir.h		\
869	ufs_inode.h		\
870	ufs_lockfs.h		\
871	ufs_log.h		\
872	ufs_mount.h		\
873	ufs_panic.h		\
874	ufs_prot.h		\
875	ufs_quota.h		\
876	ufs_snap.h              \
877	ufs_trans.h		\
878	zfs.h			\
879	zut.h
880
881SCSIHDRS=		\
882	scsi.h		\
883	scsi_address.h	\
884	scsi_ctl.h	\
885	scsi_fm.h	\
886	scsi_names.h	\
887	scsi_params.h	\
888	scsi_pkt.h	\
889	scsi_resource.h	\
890	scsi_types.h	\
891	scsi_watch.h
892
893SCSICONFHDRS=		\
894	autoconf.h	\
895	device.h
896
897SCSIGENHDRS=		\
898	commands.h	\
899	dad_mode.h	\
900	inquiry.h	\
901	message.h	\
902	mode.h		\
903	persist.h	\
904	sense.h		\
905	sff_frames.h	\
906	smp_frames.h	\
907	status.h
908
909SCSIIMPLHDRS=		\
910	commands.h	\
911	inquiry.h	\
912	mode.h		\
913	scsi_reset_notify.h \
914	scsi_sas.h	\
915	sense.h		\
916	services.h	\
917	smp_transport.h	\
918	spc3_types.h	\
919	status.h	\
920	transport.h	\
921	types.h		\
922	uscsi.h		\
923	usmp.h
924
925SCSITARGETSHDRS=	\
926	ses.h		\
927	sesio.h		\
928	sgendef.h	\
929	stdef.h		\
930	sddef.h		\
931	smp.h
932
933SCSIADHDRS=
934
935SCSICADHDRS=
936
937SCSIISCSIHDRS=		\
938	iscsi_door.h	\
939	iscsi_if.h
940
941SCSIVHCIHDRS=		\
942	scsi_vhci.h	\
943	mpapi_impl.h	\
944	mpapi_scsi_vhci.h
945
946SDCARDHDRS=		\
947	sda.h		\
948	sda_impl.h	\
949	sda_ioctl.h
950
951FC4HDRS=			\
952	fc_transport.h	\
953	linkapp.h	\
954	fc.h		\
955	fcp.h		\
956	fcal_transport.h \
957	fcal.h		\
958	fcal_linkapp.h	\
959	fcio.h
960
961FCHDRS=			\
962	fc.h		\
963	fcio.h		\
964	fc_types.h	\
965	fc_appif.h
966
967FCIMPLHDRS=		\
968	fc_error.h	\
969	fcph.h
970
971FCULPHDRS=		\
972	fcp_util.h	\
973	fcsm.h
974
975SATAGENHDRS=		\
976	sata_hba.h	\
977	sata_defs.h	\
978	sata_cfgadm.h
979
980SYSEVENTHDRS=		\
981	ap_driver.h     \
982	datalink.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
1031USBCCIDHDRS = \
1032	ccid.h \
1033	uccid.h
1034
1035HOTPLUGHDRS=	\
1036	hpcsvc.h	\
1037	hpctrl.h
1038
1039HOTPLUGPCIHDRS=	\
1040	pcicfg.h	\
1041	pcihp.h
1042
1043RSMHDRS= \
1044	rsm.h	\
1045	rsm_common.h	\
1046	rsmapi_common.h \
1047	rsmpi.h	\
1048	rsmpi_driver.h	\
1049	rsmka_path_int.h
1050
1051TSOLHDRS=		\
1052	label.h		\
1053	label_macro.h	\
1054	priv.h		\
1055	tndb.h		\
1056	tsyscall.h
1057
1058I1394HDRS=		\
1059	cmd1394.h	\
1060	id1394.h	\
1061	ieee1212.h	\
1062	ieee1394.h	\
1063	ixl1394.h	\
1064	s1394_impl.h	\
1065	t1394.h
1066
1067# "cmdk" headers used on sparc
1068SDKTPHDRS=		\
1069	dadkio.h	\
1070	fdisk.h
1071
1072# "cmdk" headers used on i386
1073DKTPHDRS=		\
1074	altsctr.h	\
1075	bbh.h		\
1076	cm.h		\
1077	cmdev.h		\
1078	cmdk.h		\
1079	cmpkt.h		\
1080	controller.h	\
1081	dadev.h		\
1082	dadk.h		\
1083	dadkio.h	\
1084	fctypes.h	\
1085	fdisk.h		\
1086	flowctrl.h	\
1087	gda.h		\
1088	quetypes.h	\
1089	queue.h		\
1090	tgcom.h		\
1091	tgdk.h
1092
1093# "pc" header files used on i386
1094PCHDRS=			\
1095	avintr.h	\
1096	dma_engine.h	\
1097	i8272A.h	\
1098	pcic_reg.h	\
1099	pcic_var.h	\
1100	pic.h		\
1101	pit.h		\
1102	rtc.h
1103
1104NXGEHDRS=			\
1105	nxge.h			\
1106	nxge_common.h		\
1107	nxge_common_impl.h	\
1108	nxge_defs.h		\
1109	nxge_hw.h		\
1110	nxge_impl.h		\
1111	nxge_ipp.h		\
1112	nxge_ipp_hw.h		\
1113	nxge_mac.h		\
1114	nxge_mac_hw.h		\
1115	nxge_fflp.h		\
1116	nxge_fflp_hw.h		\
1117	nxge_mii.h		\
1118	nxge_rxdma.h		\
1119	nxge_rxdma_hw.h		\
1120	nxge_txc.h		\
1121	nxge_txc_hw.h		\
1122	nxge_txdma.h		\
1123	nxge_txdma_hw.h		\
1124	nxge_virtual.h		\
1125	nxge_espc.h
1126
1127include Makefile.syshdrs
1128
1129dcam/%.check:	dcam/%.h
1130	$(DOT_H_CHECK)
1131
1132CHECKHDRS=						\
1133	$($(MACH)_HDRS:%.h=%.check)			\
1134	$(AUDIOHDRS:%.h=audio/%.check)			\
1135	$(AVHDRS:%.h=av/%.check)			\
1136	$(LOMHDRS:%.h=%.check)				\
1137	$(CHKHDRS:%.h=%.check)				\
1138	$(CPUDRVHDRS:%.h=%.check)			\
1139	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1140	$(DCAMHDRS:%.h=dcam/%.check)			\
1141	$(FC4HDRS:%.h=fc4/%.check)			\
1142	$(FCHDRS:%.h=fibre-channel/%.check)		\
1143	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1144	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1145	$(IBHDRS:%.h=ib/%.check)			\
1146	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1147	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1148	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1149	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1150	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1151	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1152	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1153	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1154	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1155	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1156	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1157	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1158	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1159	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1160	$(IDMHDRS:%.h=idm/%.check)			\
1161	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1162	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1163	$(ISOHDRS:%.h=iso/%.check)			\
1164	$(FMHDRS:%.h=fm/%.check)			\
1165	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1166	$(FMIOHDRS:%.h=fm/io/%.check)			\
1167	$(FSHDRS:%.h=fs/%.check)			\
1168	$(SCSIHDRS:%.h=scsi/%.check)			\
1169	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1170	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1171	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1172	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1173	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1174	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1175	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1176	$(SATAGENHDRS:%.h=sata/%.check)			\
1177	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1178	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1179	$(CONTRACTHDRS:%.h=contract/%.check)            \
1180	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1181	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1182	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1183	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1184	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1185	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1186	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1187	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1188	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1189	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1190	$(USBHDRS:%.h=usb/%.check)                      \
1191	$(I1394HDRS:%.h=1394/%.check)			\
1192	$(RSMHDRS:%.h=rsm/%.check)			\
1193	$(TSOLHDRS:%.h=tsol/%.check)			\
1194	$(NXGEHDRS:%.h=nxge/%.check)
1195
1196
1197.KEEP_STATE:
1198
1199.PARALLEL:			\
1200	$(CHECKHDRS)		\
1201	$(ROOTHDRS)		\
1202	$(ROOTAUDHDRS)		\
1203	$(ROOTAVHDRS)		\
1204	$(ROOTCRYPTOHDRS)	\
1205	$(ROOTDCAMHDRS)		\
1206	$(ROOTISOHDRS)		\
1207	$(ROOTIDMHDRS)		\
1208	$(ROOTISCSIHDRS)	\
1209	$(ROOTISCSITHDRS)	\
1210	$(ROOTFC4HDRS)		\
1211	$(ROOTFCHDRS)		\
1212	$(ROOTFCIMPLHDRS)	\
1213	$(ROOTFCULPHDRS)	\
1214	$(ROOTFMHDRS)		\
1215	$(ROOTFMIOHDRS)		\
1216	$(ROOTFMFSHDRS)		\
1217	$(ROOTFSHDRS)		\
1218	$(ROOTIBDHDRS)		\
1219	$(ROOTIBHDRS)		\
1220	$(ROOTIBTLHDRS)		\
1221	$(ROOTIBTLIMPLHDRS)	\
1222	$(ROOTIBNEXHDRS)	\
1223	$(ROOTIBMGTHDRS)	\
1224	$(ROOTIBMFHDRS)		\
1225	$(ROOTOFHDRS)		\
1226	$(ROOTRDMAHDRS)		\
1227	$(ROOTSOL_OFSHDRS)	\
1228	$(ROOTSOL_UMADHDRS)	\
1229	$(ROOTSOL_UVERBSHDRS)	\
1230	$(ROOTSOL_UCMAHDRS)	\
1231	$(ROOTTAVORHDRS)	\
1232	$(ROOTHERMONHDRS)	\
1233	$(ROOTMLNXHDRS)		\
1234	$(ROOTSCSIHDRS)		\
1235	$(ROOTSCSIADHDRS)	\
1236	$(ROOTSCSICONFHDRS)	\
1237	$(ROOTSCSIISCSIHDRS)	\
1238	$(ROOTSCSIGENHDRS)	\
1239	$(ROOTSCSIIMPLHDRS)	\
1240	$(ROOTSCSIVHCIHDRS)	\
1241	$(ROOTSDCARDHDRS)	\
1242	$(ROOTSYSEVENTHDRS)     \
1243	$(ROOTCONTRACTHDRS)     \
1244	$(ROOTUSBHDRS)		\
1245	$(ROOTUWBHDRS)		\
1246	$(ROOTUWBAHDRS)		\
1247	$(ROOTUSBAUDHDRS)	\
1248	$(ROOTUSBHUBDHDRS)	\
1249	$(ROOTUSBHIDHDRS)	\
1250	$(ROOTUSBHRCHDRS)	\
1251	$(ROOTUSBMSHDRS)	\
1252	$(ROOTUSBPRNHDRS)       \
1253	$(ROOTUSBCDCHDRS)       \
1254	$(ROOTUSBVIDHDRS)       \
1255	$(ROOTUSBWCMHDRS)	\
1256	$(ROOTUSBCCIDHDRS)	\
1257	$(ROOTUGENHDRS)		\
1258	$(ROOT1394HDRS)         \
1259	$(ROOTHOTPLUGHDRS)	\
1260	$(ROOTHOTPLUGPCIHDRS)	\
1261	$(ROOTRSMHDRS)		\
1262	$(ROOTTSOLHDRS)		\
1263	$($(MACH)_ROOTHDRS)
1264
1265
1266install_h:			\
1267	$(ROOTDIRS)		\
1268	.WAIT			\
1269	$(ROOTHDRS)		\
1270	$(ROOTAUDHDRS)		\
1271	$(ROOTAVHDRS)		\
1272	$(ROOTCRYPTOHDRS)	\
1273	$(ROOTDCAMHDRS)		\
1274	$(ROOTISOHDRS)		\
1275	$(ROOTIDMHDRS)		\
1276	$(ROOTISCSIHDRS)	\
1277	$(ROOTISCSITHDRS)	\
1278	$(ROOTFC4HDRS)		\
1279	$(ROOTFCHDRS)		\
1280	$(ROOTFCIMPLHDRS)	\
1281	$(ROOTFCULPHDRS)	\
1282	$(ROOTFMHDRS)		\
1283	$(ROOTFMFSHDRS)		\
1284	$(ROOTFMIOHDRS)		\
1285	$(ROOTFSHDRS)		\
1286	$(ROOTIBDHDRS)		\
1287	$(ROOTIBHDRS)		\
1288	$(ROOTIBTLHDRS)		\
1289	$(ROOTIBTLIMPLHDRS)	\
1290	$(ROOTIBNEXHDRS)	\
1291	$(ROOTIBMGTHDRS)	\
1292	$(ROOTIBMFHDRS)		\
1293	$(ROOTOFHDRS)		\
1294	$(ROOTRDMAHDRS)		\
1295	$(ROOTSOL_OFSHDRS)	\
1296	$(ROOTSOL_UMADHDRS)	\
1297	$(ROOTSOL_UVERBSHDRS)	\
1298	$(ROOTSOL_UCMAHDRS)	\
1299	$(ROOTTAVORHDRS)	\
1300	$(ROOTHERMONHDRS)	\
1301	$(ROOTMLNXHDRS)		\
1302	$(ROOTSCSIHDRS)		\
1303	$(ROOTSCSIADHDRS)	\
1304	$(ROOTSCSIISCSIHDRS)	\
1305	$(ROOTSCSICONFHDRS)	\
1306	$(ROOTSCSIGENHDRS)	\
1307	$(ROOTSCSIIMPLHDRS)	\
1308	$(ROOTSCSIVHCIHDRS)     \
1309	$(ROOTSDCARDHDRS)	\
1310	$(ROOTSYSEVENTHDRS)     \
1311	$(ROOTCONTRACTHDRS)     \
1312	$(ROOTUWBHDRS)		\
1313	$(ROOTUWBAHDRS)		\
1314	$(ROOTUSBHDRS)		\
1315	$(ROOTUSBCCIDHDRS)	\
1316	$(ROOTUSBAUDHDRS)	\
1317	$(ROOTUSBHUBDHDRS)	\
1318	$(ROOTUSBHIDHDRS)	\
1319	$(ROOTUSBHRCHDRS)	\
1320	$(ROOTUSBMSHDRS)	\
1321	$(ROOTUSBPRNHDRS)       \
1322	$(ROOTUSBCDCHDRS)       \
1323	$(ROOTUSBVIDHDRS)       \
1324	$(ROOTUSBWCMHDRS)	\
1325	$(ROOTUGENHDRS)		\
1326	$(ROOT1394HDRS)         \
1327	$(ROOTHOTPLUGHDRS)	\
1328	$(ROOTHOTPLUGPCIHDRS)	\
1329	$(ROOTRSMHDRS)		\
1330	$(ROOTTSOLHDRS)		\
1331	$($(MACH)_ROOTHDRS)
1332
1333all_h: $(GENHDRS)
1334
1335priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1336	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1337
1338priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1339	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1340
1341usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1342	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1343
1344clean:
1345	$(RM) $(GENHDRS)
1346
1347clobber: clean
1348
1349check:	$(CHECKHDRS)
1350
1351FRC:
1352