xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision e1086107)
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	bootstat.h		\
100	brand.h			\
101	buf.h			\
102	bufmod.h		\
103	bustypes.h		\
104	byteorder.h		\
105	callb.h			\
106	callo.h			\
107	cap_util.h		\
108	cpucaps.h		\
109	cpucaps_impl.h		\
110	ccompile.h		\
111	cdio.h			\
112	cladm.h			\
113	class.h			\
114	clconf.h		\
115	clock_impl.h		\
116	cmlb.h			\
117	cmn_err.h		\
118	compress.h		\
119	condvar.h		\
120	condvar_impl.h		\
121	conf.h			\
122	consdev.h		\
123	console.h		\
124	consplat.h		\
125	vt.h			\
126	vtdaemon.h		\
127	kd.h			\
128	containerof.h		\
129	contract.h		\
130	contract_impl.h		\
131	copyops.h		\
132	core.h			\
133	corectl.h		\
134	cpc_impl.h		\
135	cpc_pcbe.h		\
136	cpr.h			\
137	cpu_uarray.h		\
138	cpupart.h		\
139	cpuvar.h		\
140	crc32.h			\
141	cred.h			\
142	cred_impl.h		\
143	crtctl.h		\
144	cryptmod.h		\
145	csiioctl.h		\
146	ctf.h			\
147	ctfs.h			\
148	ctfs_impl.h		\
149	ctf_api.h		\
150	ctype.h			\
151	cyclic.h		\
152	cyclic_impl.h		\
153	dacf.h			\
154	dacf_impl.h		\
155	damap.h			\
156	damap_impl.h		\
157	dc_ki.h			\
158	ddi.h			\
159	ddifm.h			\
160	ddifm_impl.h		\
161	ddi_hp.h		\
162	ddi_hp_impl.h		\
163	ddi_intr.h		\
164	ddi_intr_impl.h		\
165	ddi_impldefs.h		\
166	ddi_implfuncs.h		\
167	ddi_obsolete.h		\
168	ddi_periodic.h		\
169	ddi_ufm.h		\
170	ddi_ufm_impl.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	dkioc_free_util.h	\
192	dklabel.h		\
193	dl.h			\
194	dlpi.h			\
195	dld.h			\
196	dld_impl.h		\
197	dld_ioc.h		\
198	dls.h			\
199	dls_mgmt.h		\
200	dls_impl.h		\
201	dma_i8237A.h		\
202	dnlc.h			\
203	door.h			\
204	door_data.h		\
205	door_impl.h		\
206	dtrace.h		\
207	dtrace_impl.h		\
208	dumpadm.h		\
209	dumphdr.h		\
210	ecppsys.h		\
211	ecppio.h		\
212	ecppreg.h		\
213	ecppvar.h		\
214	edonr.h			\
215	efi_partition.h		\
216	elf.h			\
217	elf_386.h		\
218	elf_SPARC.h		\
219	elf_notes.h		\
220	elf_amd64.h		\
221	elftypes.h		\
222	emul64.h		\
223	emul64cmd.h		\
224	emul64var.h		\
225	epm.h			\
226	epoll.h			\
227	errno.h			\
228	errorq.h		\
229	errorq_impl.h		\
230	esunddi.h		\
231	ethernet.h		\
232	euc.h			\
233	eucioctl.h		\
234	eventfd.h		\
235	exacct.h		\
236	exacct_catalog.h	\
237	exacct_impl.h		\
238	exec.h			\
239	exechdr.h		\
240	extdirent.h		\
241	fault.h			\
242	fasttrap.h		\
243	fasttrap_impl.h		\
244	fbio.h			\
245	fbuf.h			\
246	fcntl.h			\
247	fct.h			\
248	fct_defines.h		\
249	fctio.h			\
250	fdbuffer.h		\
251	fdio.h			\
252	feature_tests.h		\
253	fem.h			\
254	file.h			\
255	filio.h			\
256	flock.h			\
257	flock_impl.h		\
258	fork.h			\
259	fss.h			\
260	fsspriocntl.h		\
261	fsid.h			\
262	fssnap.h		\
263	fssnap_if.h		\
264	fstyp.h			\
265	ftrace.h		\
266	fx.h			\
267	fxpriocntl.h		\
268	gfs.h			\
269	gld.h			\
270	gldpriv.h		\
271	group.h			\
272	hdio.h			\
273	hook.h			\
274	hook_event.h		\
275	hook_impl.h		\
276	hwconf.h		\
277	ia.h			\
278	iapriocntl.h		\
279	ibpart.h		\
280	id32.h			\
281	idmap.h			\
282	ieeefp.h		\
283	id_space.h		\
284	instance.h		\
285	int_const.h		\
286	int_fmtio.h		\
287	int_limits.h		\
288	int_types.h		\
289	inttypes.h		\
290	ioccom.h		\
291	ioctl.h			\
292	ipc.h			\
293	ipc_impl.h		\
294	ipc_rctl.h		\
295	ipd.h			\
296	ipmi.h			\
297	isa_defs.h		\
298	iscsi_authclient.h	\
299	iscsi_authclientglue.h	\
300	iscsi_protocol.h	\
301	jioctl.h		\
302	kbd.h			\
303	kbdreg.h		\
304	kbio.h			\
305	kcpc.h			\
306	kdi.h			\
307	kdi_impl.h		\
308	kiconv.h		\
309	kiconv_big5_utf8.h	\
310	kiconv_cck_common.h	\
311	kiconv_cp950hkscs_utf8.h	\
312	kiconv_emea1.h		\
313	kiconv_emea2.h		\
314	kiconv_euckr_utf8.h	\
315	kiconv_euctw_utf8.h	\
316	kiconv_gb18030_utf8.h	\
317	kiconv_gb2312_utf8.h	\
318	kiconv_hkscs_utf8.h	\
319	kiconv_ja.h		\
320	kiconv_ja_jis_to_unicode.h	\
321	kiconv_ja_unicode_to_jis.h	\
322	kiconv_ko.h		\
323	kiconv_latin1.h		\
324	kiconv_sc.h		\
325	kiconv_tc.h		\
326	kiconv_uhc_utf8.h	\
327	kiconv_utf8_big5.h	\
328	kiconv_utf8_cp950hkscs.h	\
329	kiconv_utf8_euckr.h	\
330	kiconv_utf8_euctw.h	\
331	kiconv_utf8_gb18030.h	\
332	kiconv_utf8_gb2312.h	\
333	kiconv_utf8_hkscs.h	\
334	kiconv_utf8_uhc.h	\
335	kidmap.h		\
336	klpd.h			\
337	klwp.h			\
338	kmdb.h			\
339	kmem.h			\
340	kmem_impl.h		\
341	kobj.h			\
342	kobj_impl.h		\
343	ksocket.h		\
344	kstat.h			\
345	kstr.h			\
346	ksyms.h			\
347	ksynch.h		\
348	ldterm.h		\
349	lgrp.h			\
350	lgrp_user.h		\
351	libc_kernel.h		\
352	limits.h		\
353	link.h			\
354	linker_set.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	sensors.h		\
515	ser_sync.h		\
516	session.h		\
517	sha1.h			\
518	sha1_consts.h		\
519	sha2.h			\
520	sha2_consts.h		\
521	share.h			\
522	shm.h			\
523	shm_impl.h		\
524	sid.h			\
525	siginfo.h		\
526	signal.h		\
527	signalfd.h		\
528	skein.h			\
529	sleepq.h		\
530	smbios.h		\
531	smbios_impl.h		\
532	sobject.h		\
533	socket.h		\
534	socket_impl.h		\
535	socket_proto.h		\
536	socketvar.h		\
537	sockfilter.h		\
538	sockio.h		\
539	soundcard.h		\
540	squeue.h		\
541	squeue_impl.h		\
542	srn.h			\
543	sservice.h		\
544	stat.h			\
545	statfs.h		\
546	statvfs.h		\
547	stdbool.h		\
548	stddef.h		\
549	stdint.h		\
550	stermio.h		\
551	stmf.h			\
552	stmf_defines.h		\
553	stmf_ioctl.h		\
554	stmf_sbd_ioctl.h	\
555	stream.h		\
556	strft.h			\
557	strlog.h		\
558	strmdep.h		\
559	stropts.h		\
560	strredir.h		\
561	strstat.h		\
562	strsubr.h		\
563	strsun.h		\
564	strtty.h		\
565	sunddi.h		\
566	sunldi.h		\
567	sunldi_impl.h		\
568	sunmdi.h		\
569	sunndi.h		\
570	sunos_dhcp_class.h	\
571	sunpm.h			\
572	suntpi.h		\
573	suntty.h		\
574	swap.h			\
575	synch.h			\
576	sysdc.h			\
577	sysdc_impl.h		\
578	syscall.h		\
579	sysconf.h		\
580	sysconfig.h		\
581	sysevent.h		\
582	sysevent_impl.h		\
583	sysinfo.h		\
584	syslog.h		\
585	sysmacros.h		\
586	sysmsg_impl.h		\
587	systeminfo.h		\
588	systm.h			\
589	task.h			\
590	taskq.h			\
591	taskq_impl.h		\
592	t_kuser.h		\
593	t_lock.h		\
594	telioctl.h		\
595	termio.h		\
596	termios.h		\
597	termiox.h		\
598	thread.h		\
599	ticlts.h		\
600	ticots.h		\
601	ticotsord.h		\
602	tihdr.h			\
603	time.h			\
604	time_impl.h		\
605	time_std_impl.h		\
606	timeb.h			\
607	timer.h			\
608	timerfd.h		\
609	times.h			\
610	timex.h			\
611	timod.h			\
612	tirdwr.h		\
613	tiuser.h		\
614	tl.h			\
615	tnf.h			\
616	tnf_com.h		\
617	tnf_probe.h		\
618	tnf_writer.h		\
619	todio.h			\
620	tpicommon.h		\
621	ts.h			\
622	tspriocntl.h		\
623	ttcompat.h		\
624	ttold.h			\
625	tty.h			\
626	ttychars.h		\
627	ttydev.h		\
628	tuneable.h		\
629	turnstile.h		\
630	types.h			\
631	types32.h		\
632	tzfile.h		\
633	u8_textprep.h		\
634	u8_textprep_data.h	\
635	uadmin.h		\
636	ucred.h			\
637	uio.h			\
638	ulimit.h		\
639	un.h			\
640	unistd.h		\
641	user.h			\
642	ustat.h			\
643	utime.h			\
644	utsname.h		\
645	utssys.h		\
646	uuid.h			\
647	va_impl.h		\
648	va_list.h		\
649	var.h			\
650	varargs.h		\
651	vfs.h			\
652	vfs_opreg.h		\
653	vfstab.h		\
654	vgareg.h		\
655	videodev2.h		\
656	visual_io.h		\
657	vlan.h			\
658	vm.h			\
659	vm_usage.h		\
660	vmem.h			\
661	vmem_impl.h		\
662	vmsystm.h		\
663	vnic.h			\
664	vnic_impl.h		\
665	vnode.h			\
666	vscan.h			\
667	vtoc.h			\
668	vtrace.h		\
669	vuid_event.h		\
670	vuid_wheel.h		\
671	vuid_queue.h		\
672	vuid_state.h		\
673	vuid_store.h		\
674	wait.h			\
675	waitq.h			\
676	watchpoint.h		\
677	winlockio.h		\
678	zcons.h			\
679	zone.h			\
680	xti_inet.h		\
681	xti_osi.h		\
682	xti_xtiopt.h		\
683	zmod.h
684
685HDRS=				\
686	$(GENHDRS)		\
687	$(CHKHDRS)
688
689AUDIOHDRS=			\
690	ac97.h			\
691	audio_common.h		\
692	audio_driver.h		\
693	audio_oss.h		\
694	g711.h
695
696AVHDRS=				\
697	iec61883.h
698
699LOMHDRS=			\
700	lom_io.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	datalink.h	\
981	dev.h		\
982	domain.h        \
983	dr.h            \
984	env.h           \
985	eventdefs.h	\
986	ipmp.h		\
987	pwrctl.h	\
988	vrrp.h
989
990CONTRACTHDRS=		\
991	process.h	\
992	process_impl.h	\
993	device.h	\
994	device_impl.h
995
996USBHDRS=	\
997	usba.h	\
998	usbai.h
999
1000USBAUDHDRS=           \
1001	usb_audio.h
1002
1003USBHUBDHDRS=		\
1004	hub.h		\
1005	hubd_impl.h
1006
1007USBHIDHDRS=		\
1008	hid.h
1009
1010USBMSHDRS=		\
1011	usb_bulkonly.h	\
1012	usb_cbi.h
1013
1014USBPRNHDRS=           \
1015	usb_printer.h
1016
1017USBCDCHDRS=		\
1018	usb_cdc.h
1019
1020USBVIDHDRS=           \
1021	usbvc.h
1022
1023USBWCMHDRS=		\
1024	usbwcm.h
1025
1026UGENHDRS=           \
1027	usb_ugen.h
1028
1029USBCCIDHDRS = \
1030	ccid.h \
1031	uccid.h
1032
1033HOTPLUGHDRS=	\
1034	hpcsvc.h	\
1035	hpctrl.h
1036
1037HOTPLUGPCIHDRS=	\
1038	pcicfg.h	\
1039	pcihp.h
1040
1041RSMHDRS= \
1042	rsm.h	\
1043	rsm_common.h	\
1044	rsmapi_common.h \
1045	rsmpi.h	\
1046	rsmpi_driver.h	\
1047	rsmka_path_int.h
1048
1049TSOLHDRS=		\
1050	label.h		\
1051	label_macro.h	\
1052	priv.h		\
1053	tndb.h		\
1054	tsyscall.h
1055
1056I1394HDRS=		\
1057	cmd1394.h	\
1058	id1394.h	\
1059	ieee1212.h	\
1060	ieee1394.h	\
1061	ixl1394.h	\
1062	s1394_impl.h	\
1063	t1394.h
1064
1065# "cmdk" headers used on sparc
1066SDKTPHDRS=		\
1067	dadkio.h	\
1068	fdisk.h
1069
1070# "cmdk" headers used on i386
1071DKTPHDRS=		\
1072	altsctr.h	\
1073	bbh.h		\
1074	cm.h		\
1075	cmdev.h		\
1076	cmdk.h		\
1077	cmpkt.h		\
1078	controller.h	\
1079	dadev.h		\
1080	dadk.h		\
1081	dadkio.h	\
1082	fctypes.h	\
1083	fdisk.h		\
1084	flowctrl.h	\
1085	gda.h		\
1086	quetypes.h	\
1087	queue.h		\
1088	tgcom.h		\
1089	tgdk.h
1090
1091# "pc" header files used on i386
1092PCHDRS=			\
1093	avintr.h	\
1094	dma_engine.h	\
1095	i8272A.h	\
1096	pcic_reg.h	\
1097	pcic_var.h	\
1098	pic.h		\
1099	pit.h		\
1100	rtc.h
1101
1102NXGEHDRS=			\
1103	nxge.h			\
1104	nxge_common.h		\
1105	nxge_common_impl.h	\
1106	nxge_defs.h		\
1107	nxge_hw.h		\
1108	nxge_impl.h		\
1109	nxge_ipp.h		\
1110	nxge_ipp_hw.h		\
1111	nxge_mac.h		\
1112	nxge_mac_hw.h		\
1113	nxge_fflp.h		\
1114	nxge_fflp_hw.h		\
1115	nxge_mii.h		\
1116	nxge_rxdma.h		\
1117	nxge_rxdma_hw.h		\
1118	nxge_txc.h		\
1119	nxge_txc_hw.h		\
1120	nxge_txdma.h		\
1121	nxge_txdma_hw.h		\
1122	nxge_virtual.h		\
1123	nxge_espc.h
1124
1125include Makefile.syshdrs
1126
1127dcam/%.check:	dcam/%.h
1128	$(DOT_H_CHECK)
1129
1130CHECKHDRS=						\
1131	$($(MACH)_HDRS:%.h=%.check)			\
1132	$(AUDIOHDRS:%.h=audio/%.check)			\
1133	$(AVHDRS:%.h=av/%.check)			\
1134	$(LOMHDRS:%.h=%.check)				\
1135	$(CHKHDRS:%.h=%.check)				\
1136	$(CPUDRVHDRS:%.h=%.check)			\
1137	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1138	$(DCAMHDRS:%.h=dcam/%.check)			\
1139	$(FC4HDRS:%.h=fc4/%.check)			\
1140	$(FCHDRS:%.h=fibre-channel/%.check)		\
1141	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1142	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1143	$(IBHDRS:%.h=ib/%.check)			\
1144	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1145	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1146	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1147	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1148	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1149	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1150	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1151	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1152	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1153	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1154	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1155	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1156	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1157	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1158	$(IDMHDRS:%.h=idm/%.check)			\
1159	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1160	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1161	$(ISOHDRS:%.h=iso/%.check)			\
1162	$(FMHDRS:%.h=fm/%.check)			\
1163	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1164	$(FMIOHDRS:%.h=fm/io/%.check)			\
1165	$(FSHDRS:%.h=fs/%.check)			\
1166	$(SCSIHDRS:%.h=scsi/%.check)			\
1167	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1168	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1169	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1170	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1171	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1172	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1173	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1174	$(SATAGENHDRS:%.h=sata/%.check)			\
1175	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1176	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1177	$(CONTRACTHDRS:%.h=contract/%.check)            \
1178	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1179	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1180	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1181	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1182	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1183	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1184	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1185	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1186	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1187	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1188	$(USBHDRS:%.h=usb/%.check)                      \
1189	$(I1394HDRS:%.h=1394/%.check)			\
1190	$(RSMHDRS:%.h=rsm/%.check)			\
1191	$(TSOLHDRS:%.h=tsol/%.check)			\
1192	$(NXGEHDRS:%.h=nxge/%.check)
1193
1194
1195.KEEP_STATE:
1196
1197.PARALLEL:			\
1198	$(CHECKHDRS)		\
1199	$(ROOTHDRS)		\
1200	$(ROOTAUDHDRS)		\
1201	$(ROOTAVHDRS)		\
1202	$(ROOTCRYPTOHDRS)	\
1203	$(ROOTDCAMHDRS)		\
1204	$(ROOTISOHDRS)		\
1205	$(ROOTIDMHDRS)		\
1206	$(ROOTISCSIHDRS)	\
1207	$(ROOTISCSITHDRS)	\
1208	$(ROOTFC4HDRS)		\
1209	$(ROOTFCHDRS)		\
1210	$(ROOTFCIMPLHDRS)	\
1211	$(ROOTFCULPHDRS)	\
1212	$(ROOTFMHDRS)		\
1213	$(ROOTFMIOHDRS)		\
1214	$(ROOTFMFSHDRS)		\
1215	$(ROOTFSHDRS)		\
1216	$(ROOTIBDHDRS)		\
1217	$(ROOTIBHDRS)		\
1218	$(ROOTIBTLHDRS)		\
1219	$(ROOTIBTLIMPLHDRS)	\
1220	$(ROOTIBNEXHDRS)	\
1221	$(ROOTIBMGTHDRS)	\
1222	$(ROOTIBMFHDRS)		\
1223	$(ROOTOFHDRS)		\
1224	$(ROOTRDMAHDRS)		\
1225	$(ROOTSOL_OFSHDRS)	\
1226	$(ROOTSOL_UMADHDRS)	\
1227	$(ROOTSOL_UVERBSHDRS)	\
1228	$(ROOTSOL_UCMAHDRS)	\
1229	$(ROOTTAVORHDRS)	\
1230	$(ROOTHERMONHDRS)	\
1231	$(ROOTMLNXHDRS)		\
1232	$(ROOTSCSIHDRS)		\
1233	$(ROOTSCSIADHDRS)	\
1234	$(ROOTSCSICONFHDRS)	\
1235	$(ROOTSCSIISCSIHDRS)	\
1236	$(ROOTSCSIGENHDRS)	\
1237	$(ROOTSCSIIMPLHDRS)	\
1238	$(ROOTSCSIVHCIHDRS)	\
1239	$(ROOTSDCARDHDRS)	\
1240	$(ROOTSYSEVENTHDRS)     \
1241	$(ROOTCONTRACTHDRS)     \
1242	$(ROOTUSBHDRS)		\
1243	$(ROOTUWBHDRS)		\
1244	$(ROOTUWBAHDRS)		\
1245	$(ROOTUSBAUDHDRS)	\
1246	$(ROOTUSBHUBDHDRS)	\
1247	$(ROOTUSBHIDHDRS)	\
1248	$(ROOTUSBHRCHDRS)	\
1249	$(ROOTUSBMSHDRS)	\
1250	$(ROOTUSBPRNHDRS)       \
1251	$(ROOTUSBCDCHDRS)       \
1252	$(ROOTUSBVIDHDRS)       \
1253	$(ROOTUSBWCMHDRS)	\
1254	$(ROOTUSBCCIDHDRS)	\
1255	$(ROOTUGENHDRS)		\
1256	$(ROOT1394HDRS)         \
1257	$(ROOTHOTPLUGHDRS)	\
1258	$(ROOTHOTPLUGPCIHDRS)	\
1259	$(ROOTRSMHDRS)		\
1260	$(ROOTTSOLHDRS)		\
1261	$($(MACH)_ROOTHDRS)
1262
1263
1264install_h:			\
1265	$(ROOTDIRS)		\
1266	.WAIT			\
1267	$(ROOTHDRS)		\
1268	$(ROOTAUDHDRS)		\
1269	$(ROOTAVHDRS)		\
1270	$(ROOTCRYPTOHDRS)	\
1271	$(ROOTDCAMHDRS)		\
1272	$(ROOTISOHDRS)		\
1273	$(ROOTIDMHDRS)		\
1274	$(ROOTISCSIHDRS)	\
1275	$(ROOTISCSITHDRS)	\
1276	$(ROOTFC4HDRS)		\
1277	$(ROOTFCHDRS)		\
1278	$(ROOTFCIMPLHDRS)	\
1279	$(ROOTFCULPHDRS)	\
1280	$(ROOTFMHDRS)		\
1281	$(ROOTFMFSHDRS)		\
1282	$(ROOTFMIOHDRS)		\
1283	$(ROOTFSHDRS)		\
1284	$(ROOTIBDHDRS)		\
1285	$(ROOTIBHDRS)		\
1286	$(ROOTIBTLHDRS)		\
1287	$(ROOTIBTLIMPLHDRS)	\
1288	$(ROOTIBNEXHDRS)	\
1289	$(ROOTIBMGTHDRS)	\
1290	$(ROOTIBMFHDRS)		\
1291	$(ROOTOFHDRS)		\
1292	$(ROOTRDMAHDRS)		\
1293	$(ROOTSOL_OFSHDRS)	\
1294	$(ROOTSOL_UMADHDRS)	\
1295	$(ROOTSOL_UVERBSHDRS)	\
1296	$(ROOTSOL_UCMAHDRS)	\
1297	$(ROOTTAVORHDRS)	\
1298	$(ROOTHERMONHDRS)	\
1299	$(ROOTMLNXHDRS)		\
1300	$(ROOTSCSIHDRS)		\
1301	$(ROOTSCSIADHDRS)	\
1302	$(ROOTSCSIISCSIHDRS)	\
1303	$(ROOTSCSICONFHDRS)	\
1304	$(ROOTSCSIGENHDRS)	\
1305	$(ROOTSCSIIMPLHDRS)	\
1306	$(ROOTSCSIVHCIHDRS)     \
1307	$(ROOTSDCARDHDRS)	\
1308	$(ROOTSYSEVENTHDRS)     \
1309	$(ROOTCONTRACTHDRS)     \
1310	$(ROOTUWBHDRS)		\
1311	$(ROOTUWBAHDRS)		\
1312	$(ROOTUSBHDRS)		\
1313	$(ROOTUSBCCIDHDRS)	\
1314	$(ROOTUSBAUDHDRS)	\
1315	$(ROOTUSBHUBDHDRS)	\
1316	$(ROOTUSBHIDHDRS)	\
1317	$(ROOTUSBHRCHDRS)	\
1318	$(ROOTUSBMSHDRS)	\
1319	$(ROOTUSBPRNHDRS)       \
1320	$(ROOTUSBCDCHDRS)       \
1321	$(ROOTUSBVIDHDRS)       \
1322	$(ROOTUSBWCMHDRS)	\
1323	$(ROOTUGENHDRS)		\
1324	$(ROOT1394HDRS)         \
1325	$(ROOTHOTPLUGHDRS)	\
1326	$(ROOTHOTPLUGPCIHDRS)	\
1327	$(ROOTRSMHDRS)		\
1328	$(ROOTTSOLHDRS)		\
1329	$($(MACH)_ROOTHDRS)
1330
1331all_h: $(GENHDRS)
1332
1333priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1334	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1335
1336priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1337	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1338
1339usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1340	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1341
1342clean:
1343	$(RM) $(GENHDRS)
1344
1345clobber: clean
1346
1347check:	$(CHECKHDRS)
1348
1349FRC:
1350