xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
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	fifonode.h		\
843	hsfs_isospec.h		\
844	hsfs_node.h		\
845	hsfs_rrip.h		\
846	hsfs_spec.h		\
847	hsfs_susp.h		\
848	lofs_info.h		\
849	lofs_node.h		\
850	mntdata.h		\
851	namenode.h		\
852	pc_dir.h		\
853	pc_fs.h			\
854	pc_label.h		\
855	pc_node.h		\
856	pxfs_ki.h		\
857	snode.h			\
858	swapnode.h		\
859	tmp.h			\
860	tmpnode.h		\
861	udf_inode.h		\
862	udf_volume.h		\
863	ufs_acl.h		\
864	ufs_bio.h		\
865	ufs_filio.h		\
866	ufs_fs.h		\
867	ufs_fsdir.h		\
868	ufs_inode.h		\
869	ufs_lockfs.h		\
870	ufs_log.h		\
871	ufs_mount.h		\
872	ufs_panic.h		\
873	ufs_prot.h		\
874	ufs_quota.h		\
875	ufs_snap.h              \
876	ufs_trans.h		\
877	zfs.h			\
878	zut.h
879
880SCSIHDRS=		\
881	scsi.h		\
882	scsi_address.h	\
883	scsi_ctl.h	\
884	scsi_fm.h	\
885	scsi_names.h	\
886	scsi_params.h	\
887	scsi_pkt.h	\
888	scsi_resource.h	\
889	scsi_types.h	\
890	scsi_watch.h
891
892SCSICONFHDRS=		\
893	autoconf.h	\
894	device.h
895
896SCSIGENHDRS=		\
897	commands.h	\
898	dad_mode.h	\
899	inquiry.h	\
900	message.h	\
901	mode.h		\
902	persist.h	\
903	sense.h		\
904	sff_frames.h	\
905	smp_frames.h	\
906	status.h
907
908SCSIIMPLHDRS=		\
909	commands.h	\
910	inquiry.h	\
911	mode.h		\
912	scsi_reset_notify.h \
913	scsi_sas.h	\
914	sense.h		\
915	services.h	\
916	smp_transport.h	\
917	spc3_types.h	\
918	status.h	\
919	transport.h	\
920	types.h		\
921	uscsi.h		\
922	usmp.h
923
924SCSITARGETSHDRS=	\
925	ses.h		\
926	sesio.h		\
927	sgendef.h	\
928	stdef.h		\
929	sddef.h		\
930	smp.h
931
932SCSIADHDRS=
933
934SCSICADHDRS=
935
936SCSIISCSIHDRS=		\
937	iscsi_door.h	\
938	iscsi_if.h
939
940SCSIVHCIHDRS=		\
941	scsi_vhci.h	\
942	mpapi_impl.h	\
943	mpapi_scsi_vhci.h
944
945SDCARDHDRS=		\
946	sda.h		\
947	sda_impl.h	\
948	sda_ioctl.h
949
950FC4HDRS=			\
951	fc_transport.h	\
952	linkapp.h	\
953	fc.h		\
954	fcp.h		\
955	fcal_transport.h \
956	fcal.h		\
957	fcal_linkapp.h	\
958	fcio.h
959
960FCHDRS=			\
961	fc.h		\
962	fcio.h		\
963	fc_types.h	\
964	fc_appif.h
965
966FCIMPLHDRS=		\
967	fc_error.h	\
968	fcph.h
969
970FCULPHDRS=		\
971	fcp_util.h	\
972	fcsm.h
973
974SATAGENHDRS=		\
975	sata_hba.h	\
976	sata_defs.h	\
977	sata_cfgadm.h
978
979SYSEVENTHDRS=		\
980	ap_driver.h     \
981	datalink.h	\
982	dev.h		\
983	domain.h        \
984	dr.h            \
985	env.h           \
986	eventdefs.h	\
987	ipmp.h		\
988	pwrctl.h	\
989	vrrp.h
990
991CONTRACTHDRS=		\
992	process.h	\
993	process_impl.h	\
994	device.h	\
995	device_impl.h
996
997USBHDRS=	\
998	usba.h	\
999	usbai.h
1000
1001USBAUDHDRS=           \
1002	usb_audio.h
1003
1004USBHUBDHDRS=		\
1005	hub.h		\
1006	hubd_impl.h
1007
1008USBHIDHDRS=		\
1009	hid.h
1010
1011USBMSHDRS=		\
1012	usb_bulkonly.h	\
1013	usb_cbi.h
1014
1015USBPRNHDRS=           \
1016	usb_printer.h
1017
1018USBCDCHDRS=		\
1019	usb_cdc.h
1020
1021USBVIDHDRS=           \
1022	usbvc.h
1023
1024USBWCMHDRS=		\
1025	usbwcm.h
1026
1027UGENHDRS=           \
1028	usb_ugen.h
1029
1030USBCCIDHDRS = \
1031	ccid.h \
1032	uccid.h
1033
1034HOTPLUGHDRS=	\
1035	hpcsvc.h	\
1036	hpctrl.h
1037
1038HOTPLUGPCIHDRS=	\
1039	pcicfg.h	\
1040	pcihp.h
1041
1042RSMHDRS= \
1043	rsm.h	\
1044	rsm_common.h	\
1045	rsmapi_common.h \
1046	rsmpi.h	\
1047	rsmpi_driver.h	\
1048	rsmka_path_int.h
1049
1050TSOLHDRS=		\
1051	label.h		\
1052	label_macro.h	\
1053	priv.h		\
1054	tndb.h		\
1055	tsyscall.h
1056
1057I1394HDRS=		\
1058	cmd1394.h	\
1059	id1394.h	\
1060	ieee1212.h	\
1061	ieee1394.h	\
1062	ixl1394.h	\
1063	s1394_impl.h	\
1064	t1394.h
1065
1066# "cmdk" headers used on sparc
1067SDKTPHDRS=		\
1068	dadkio.h	\
1069	fdisk.h
1070
1071# "cmdk" headers used on i386
1072DKTPHDRS=		\
1073	altsctr.h	\
1074	bbh.h		\
1075	cm.h		\
1076	cmdev.h		\
1077	cmdk.h		\
1078	cmpkt.h		\
1079	controller.h	\
1080	dadev.h		\
1081	dadk.h		\
1082	dadkio.h	\
1083	fctypes.h	\
1084	fdisk.h		\
1085	flowctrl.h	\
1086	gda.h		\
1087	quetypes.h	\
1088	queue.h		\
1089	tgcom.h		\
1090	tgdk.h
1091
1092# "pc" header files used on i386
1093PCHDRS=			\
1094	avintr.h	\
1095	dma_engine.h	\
1096	i8272A.h	\
1097	pcic_reg.h	\
1098	pcic_var.h	\
1099	pic.h		\
1100	pit.h		\
1101	rtc.h
1102
1103NXGEHDRS=			\
1104	nxge.h			\
1105	nxge_common.h		\
1106	nxge_common_impl.h	\
1107	nxge_defs.h		\
1108	nxge_hw.h		\
1109	nxge_impl.h		\
1110	nxge_ipp.h		\
1111	nxge_ipp_hw.h		\
1112	nxge_mac.h		\
1113	nxge_mac_hw.h		\
1114	nxge_fflp.h		\
1115	nxge_fflp_hw.h		\
1116	nxge_mii.h		\
1117	nxge_rxdma.h		\
1118	nxge_rxdma_hw.h		\
1119	nxge_txc.h		\
1120	nxge_txc_hw.h		\
1121	nxge_txdma.h		\
1122	nxge_txdma_hw.h		\
1123	nxge_virtual.h		\
1124	nxge_espc.h
1125
1126include Makefile.syshdrs
1127
1128dcam/%.check:	dcam/%.h
1129	$(DOT_H_CHECK)
1130
1131CHECKHDRS=						\
1132	$($(MACH)_HDRS:%.h=%.check)			\
1133	$(AUDIOHDRS:%.h=audio/%.check)			\
1134	$(AVHDRS:%.h=av/%.check)			\
1135	$(LOMHDRS:%.h=%.check)				\
1136	$(CHKHDRS:%.h=%.check)				\
1137	$(CPUDRVHDRS:%.h=%.check)			\
1138	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1139	$(DCAMHDRS:%.h=dcam/%.check)			\
1140	$(FC4HDRS:%.h=fc4/%.check)			\
1141	$(FCHDRS:%.h=fibre-channel/%.check)		\
1142	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1143	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1144	$(IBHDRS:%.h=ib/%.check)			\
1145	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1146	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1147	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1148	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1149	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1150	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1151	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1152	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1153	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1154	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1155	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1156	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1157	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1158	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1159	$(IDMHDRS:%.h=idm/%.check)			\
1160	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1161	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1162	$(ISOHDRS:%.h=iso/%.check)			\
1163	$(FMHDRS:%.h=fm/%.check)			\
1164	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1165	$(FMIOHDRS:%.h=fm/io/%.check)			\
1166	$(FSHDRS:%.h=fs/%.check)			\
1167	$(SCSIHDRS:%.h=scsi/%.check)			\
1168	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1169	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1170	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1171	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1172	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1173	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1174	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1175	$(SATAGENHDRS:%.h=sata/%.check)			\
1176	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1177	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1178	$(CONTRACTHDRS:%.h=contract/%.check)            \
1179	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1180	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1181	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1182	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1183	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1184	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1185	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1186	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1187	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1188	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1189	$(USBHDRS:%.h=usb/%.check)                      \
1190	$(I1394HDRS:%.h=1394/%.check)			\
1191	$(RSMHDRS:%.h=rsm/%.check)			\
1192	$(TSOLHDRS:%.h=tsol/%.check)			\
1193	$(NXGEHDRS:%.h=nxge/%.check)
1194
1195
1196.KEEP_STATE:
1197
1198.PARALLEL:			\
1199	$(CHECKHDRS)		\
1200	$(ROOTHDRS)		\
1201	$(ROOTAUDHDRS)		\
1202	$(ROOTAVHDRS)		\
1203	$(ROOTCRYPTOHDRS)	\
1204	$(ROOTDCAMHDRS)		\
1205	$(ROOTISOHDRS)		\
1206	$(ROOTIDMHDRS)		\
1207	$(ROOTISCSIHDRS)	\
1208	$(ROOTISCSITHDRS)	\
1209	$(ROOTFC4HDRS)		\
1210	$(ROOTFCHDRS)		\
1211	$(ROOTFCIMPLHDRS)	\
1212	$(ROOTFCULPHDRS)	\
1213	$(ROOTFMHDRS)		\
1214	$(ROOTFMIOHDRS)		\
1215	$(ROOTFMFSHDRS)		\
1216	$(ROOTFSHDRS)		\
1217	$(ROOTIBDHDRS)		\
1218	$(ROOTIBHDRS)		\
1219	$(ROOTIBTLHDRS)		\
1220	$(ROOTIBTLIMPLHDRS)	\
1221	$(ROOTIBNEXHDRS)	\
1222	$(ROOTIBMGTHDRS)	\
1223	$(ROOTIBMFHDRS)		\
1224	$(ROOTOFHDRS)		\
1225	$(ROOTRDMAHDRS)		\
1226	$(ROOTSOL_OFSHDRS)	\
1227	$(ROOTSOL_UMADHDRS)	\
1228	$(ROOTSOL_UVERBSHDRS)	\
1229	$(ROOTSOL_UCMAHDRS)	\
1230	$(ROOTTAVORHDRS)	\
1231	$(ROOTHERMONHDRS)	\
1232	$(ROOTMLNXHDRS)		\
1233	$(ROOTSCSIHDRS)		\
1234	$(ROOTSCSIADHDRS)	\
1235	$(ROOTSCSICONFHDRS)	\
1236	$(ROOTSCSIISCSIHDRS)	\
1237	$(ROOTSCSIGENHDRS)	\
1238	$(ROOTSCSIIMPLHDRS)	\
1239	$(ROOTSCSIVHCIHDRS)	\
1240	$(ROOTSDCARDHDRS)	\
1241	$(ROOTSYSEVENTHDRS)     \
1242	$(ROOTCONTRACTHDRS)     \
1243	$(ROOTUSBHDRS)		\
1244	$(ROOTUWBHDRS)		\
1245	$(ROOTUWBAHDRS)		\
1246	$(ROOTUSBAUDHDRS)	\
1247	$(ROOTUSBHUBDHDRS)	\
1248	$(ROOTUSBHIDHDRS)	\
1249	$(ROOTUSBHRCHDRS)	\
1250	$(ROOTUSBMSHDRS)	\
1251	$(ROOTUSBPRNHDRS)       \
1252	$(ROOTUSBCDCHDRS)       \
1253	$(ROOTUSBVIDHDRS)       \
1254	$(ROOTUSBWCMHDRS)	\
1255	$(ROOTUSBCCIDHDRS)	\
1256	$(ROOTUGENHDRS)		\
1257	$(ROOT1394HDRS)         \
1258	$(ROOTHOTPLUGHDRS)	\
1259	$(ROOTHOTPLUGPCIHDRS)	\
1260	$(ROOTRSMHDRS)		\
1261	$(ROOTTSOLHDRS)		\
1262	$($(MACH)_ROOTHDRS)
1263
1264
1265install_h:			\
1266	$(ROOTDIRS)		\
1267	.WAIT			\
1268	$(ROOTHDRS)		\
1269	$(ROOTAUDHDRS)		\
1270	$(ROOTAVHDRS)		\
1271	$(ROOTCRYPTOHDRS)	\
1272	$(ROOTDCAMHDRS)		\
1273	$(ROOTISOHDRS)		\
1274	$(ROOTIDMHDRS)		\
1275	$(ROOTISCSIHDRS)	\
1276	$(ROOTISCSITHDRS)	\
1277	$(ROOTFC4HDRS)		\
1278	$(ROOTFCHDRS)		\
1279	$(ROOTFCIMPLHDRS)	\
1280	$(ROOTFCULPHDRS)	\
1281	$(ROOTFMHDRS)		\
1282	$(ROOTFMFSHDRS)		\
1283	$(ROOTFMIOHDRS)		\
1284	$(ROOTFSHDRS)		\
1285	$(ROOTIBDHDRS)		\
1286	$(ROOTIBHDRS)		\
1287	$(ROOTIBTLHDRS)		\
1288	$(ROOTIBTLIMPLHDRS)	\
1289	$(ROOTIBNEXHDRS)	\
1290	$(ROOTIBMGTHDRS)	\
1291	$(ROOTIBMFHDRS)		\
1292	$(ROOTOFHDRS)		\
1293	$(ROOTRDMAHDRS)		\
1294	$(ROOTSOL_OFSHDRS)	\
1295	$(ROOTSOL_UMADHDRS)	\
1296	$(ROOTSOL_UVERBSHDRS)	\
1297	$(ROOTSOL_UCMAHDRS)	\
1298	$(ROOTTAVORHDRS)	\
1299	$(ROOTHERMONHDRS)	\
1300	$(ROOTMLNXHDRS)		\
1301	$(ROOTSCSIHDRS)		\
1302	$(ROOTSCSIADHDRS)	\
1303	$(ROOTSCSIISCSIHDRS)	\
1304	$(ROOTSCSICONFHDRS)	\
1305	$(ROOTSCSIGENHDRS)	\
1306	$(ROOTSCSIIMPLHDRS)	\
1307	$(ROOTSCSIVHCIHDRS)     \
1308	$(ROOTSDCARDHDRS)	\
1309	$(ROOTSYSEVENTHDRS)     \
1310	$(ROOTCONTRACTHDRS)     \
1311	$(ROOTUWBHDRS)		\
1312	$(ROOTUWBAHDRS)		\
1313	$(ROOTUSBHDRS)		\
1314	$(ROOTUSBCCIDHDRS)	\
1315	$(ROOTUSBAUDHDRS)	\
1316	$(ROOTUSBHUBDHDRS)	\
1317	$(ROOTUSBHIDHDRS)	\
1318	$(ROOTUSBHRCHDRS)	\
1319	$(ROOTUSBMSHDRS)	\
1320	$(ROOTUSBPRNHDRS)       \
1321	$(ROOTUSBCDCHDRS)       \
1322	$(ROOTUSBVIDHDRS)       \
1323	$(ROOTUSBWCMHDRS)	\
1324	$(ROOTUGENHDRS)		\
1325	$(ROOT1394HDRS)         \
1326	$(ROOTHOTPLUGHDRS)	\
1327	$(ROOTHOTPLUGPCIHDRS)	\
1328	$(ROOTRSMHDRS)		\
1329	$(ROOTTSOLHDRS)		\
1330	$($(MACH)_ROOTHDRS)
1331
1332all_h: $(GENHDRS)
1333
1334priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1335	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1336
1337priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1338	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1339
1340usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1341	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1342
1343clean:
1344	$(RM) $(GENHDRS)
1345
1346clobber: clean
1347
1348check:	$(CHECKHDRS)
1349
1350FRC:
1351