xref: /illumos-gate/usr/src/uts/common/sys/Makefile (revision 89fbfe0d2fbdaef52447ae1ca77634c69a3cf220)
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	vxlan.h			\
676	wait.h			\
677	waitq.h			\
678	watchpoint.h		\
679	winlockio.h		\
680	zcons.h			\
681	zone.h			\
682	xti_inet.h		\
683	xti_osi.h		\
684	xti_xtiopt.h		\
685	zmod.h
686
687HDRS=				\
688	$(GENHDRS)		\
689	$(CHKHDRS)
690
691AUDIOHDRS=			\
692	ac97.h			\
693	audio_common.h		\
694	audio_driver.h		\
695	audio_oss.h		\
696	g711.h
697
698AVHDRS=				\
699	iec61883.h
700
701LOMHDRS=			\
702	lom_io.h		\
703	lombus.h
704
705MDESCHDRS=			\
706	mdesc.h			\
707	mdesc_impl.h
708
709CPUDRVHDRS=			\
710	cpudrv.h
711
712CRYPTOHDRS=			\
713	elfsign.h		\
714	ioctl.h			\
715	ioctladmin.h		\
716	common.h		\
717	impl.h			\
718	spi.h			\
719	api.h			\
720	ops_impl.h		\
721	sched_impl.h
722
723DCAMHDRS=			\
724	dcam1394_io.h
725
726IBHDRS=			\
727	ib_types.h	\
728	ib_pkt_hdrs.h
729
730IBTLHDRS=		\
731	ibtl_types.h	\
732	ibtl_status.h	\
733	ibti.h		\
734	ibti_cm.h	\
735	ibci.h		\
736	ibti_common.h	\
737	ibvti.h		\
738	ibtl_ci_types.h
739
740IBTLIMPLHDRS=		\
741	ibtl_util.h
742
743IBNEXHDRS=		\
744	ibnex_devctl.h
745
746IBMFHDRS=		\
747	ibmf.h		\
748	ibmf_msg.h	\
749	ibmf_saa.h	\
750	ibmf_utils.h
751
752IBMGTHDRS=		\
753	ib_dm_attr.h	\
754	ib_mad.h	\
755	sm_attr.h	\
756	sa_recs.h
757
758IBDHDRS=		\
759	ibd.h
760
761OFHDRS=			\
762	ofa_solaris.h	\
763	ofed_kernel.h
764
765RDMAHDRS=		\
766	ib_addr.h	\
767	ib_user_mad.h	\
768	ib_user_sa.h	\
769	ib_user_verbs.h \
770	ib_verbs.h	\
771	rdma_cm.h	\
772	rdma_user_cm.h
773
774SOL_UVERBSHDRS=		\
775	sol_uverbs.h	\
776	sol_uverbs2ucma.h	\
777	sol_uverbs_comp.h	\
778	sol_uverbs_hca.h	\
779	sol_uverbs_qp.h		\
780	sol_uverbs_event.h
781
782SOL_UMADHDRS=		\
783	sol_umad.h
784
785SOL_UCMAHDRS=		\
786	sol_ucma.h	\
787	sol_rdma_user_cm.h
788
789SOL_OFSHDRS=		\
790	sol_cma.h	\
791	sol_ib_cma.h	\
792	sol_ofs_common.h	\
793	sol_kverb_impl.h
794
795TAVORHDRS=		\
796	tavor_ioctl.h
797
798HERMONHDRS=		\
799	hermon_ioctl.h
800
801MLNXHDRS=		\
802	mlnx_umap.h
803
804IDMHDRS=		\
805	idm.h		\
806	idm_impl.h	\
807	idm_so.h	\
808	idm_text.h	\
809	idm_transport.h	\
810	idm_conn_sm.h
811
812ISCSITHDRS=		\
813	radius_packet.h		\
814	radius_protocol.h	\
815	chap.h			\
816	isns_protocol.h		\
817	iscsi_if.h		\
818	iscsit_common.h
819
820ISOHDRS=			\
821	signal_iso.h
822
823FMHDRS=				\
824	protocol.h		\
825	util.h
826
827FMFSHDRS=			\
828	zfs.h
829
830FMIOHDRS=			\
831	ddi.h			\
832	disk.h			\
833	pci.h			\
834	scsi.h			\
835	sun4upci.h		\
836	opl_mc_fm.h
837
838FSHDRS=				\
839	autofs.h		\
840	decomp.h		\
841	dv_node.h		\
842	sdev_impl.h		\
843	sdev_plugin.h		\
844	fifonode.h		\
845	hsfs_isospec.h		\
846	hsfs_node.h		\
847	hsfs_rrip.h		\
848	hsfs_spec.h		\
849	hsfs_susp.h		\
850	lofs_info.h		\
851	lofs_node.h		\
852	mntdata.h		\
853	namenode.h		\
854	pc_dir.h		\
855	pc_fs.h			\
856	pc_label.h		\
857	pc_node.h		\
858	pxfs_ki.h		\
859	snode.h			\
860	swapnode.h		\
861	tmp.h			\
862	tmpnode.h		\
863	udf_inode.h		\
864	udf_volume.h		\
865	ufs_acl.h		\
866	ufs_bio.h		\
867	ufs_filio.h		\
868	ufs_fs.h		\
869	ufs_fsdir.h		\
870	ufs_inode.h		\
871	ufs_lockfs.h		\
872	ufs_log.h		\
873	ufs_mount.h		\
874	ufs_panic.h		\
875	ufs_prot.h		\
876	ufs_quota.h		\
877	ufs_snap.h              \
878	ufs_trans.h		\
879	zfs.h			\
880	zut.h
881
882SCSIHDRS=		\
883	scsi.h		\
884	scsi_address.h	\
885	scsi_ctl.h	\
886	scsi_fm.h	\
887	scsi_names.h	\
888	scsi_params.h	\
889	scsi_pkt.h	\
890	scsi_resource.h	\
891	scsi_types.h	\
892	scsi_watch.h
893
894SCSICONFHDRS=		\
895	autoconf.h	\
896	device.h
897
898SCSIGENHDRS=		\
899	commands.h	\
900	dad_mode.h	\
901	inquiry.h	\
902	message.h	\
903	mode.h		\
904	persist.h	\
905	sense.h		\
906	sff_frames.h	\
907	smp_frames.h	\
908	status.h
909
910SCSIIMPLHDRS=		\
911	commands.h	\
912	inquiry.h	\
913	mode.h		\
914	scsi_reset_notify.h \
915	scsi_sas.h	\
916	sense.h		\
917	services.h	\
918	smp_transport.h	\
919	spc3_types.h	\
920	status.h	\
921	transport.h	\
922	types.h		\
923	uscsi.h		\
924	usmp.h
925
926SCSITARGETSHDRS=	\
927	ses.h		\
928	sesio.h		\
929	sgendef.h	\
930	stdef.h		\
931	sddef.h		\
932	smp.h
933
934SCSIADHDRS=
935
936SCSICADHDRS=
937
938SCSIISCSIHDRS=		\
939	iscsi_door.h	\
940	iscsi_if.h
941
942SCSIVHCIHDRS=		\
943	scsi_vhci.h	\
944	mpapi_impl.h	\
945	mpapi_scsi_vhci.h
946
947SDCARDHDRS=		\
948	sda.h		\
949	sda_impl.h	\
950	sda_ioctl.h
951
952FC4HDRS=			\
953	fc_transport.h	\
954	linkapp.h	\
955	fc.h		\
956	fcp.h		\
957	fcal_transport.h \
958	fcal.h		\
959	fcal_linkapp.h	\
960	fcio.h
961
962FCHDRS=			\
963	fc.h		\
964	fcio.h		\
965	fc_types.h	\
966	fc_appif.h
967
968FCIMPLHDRS=		\
969	fc_error.h	\
970	fcph.h
971
972FCULPHDRS=		\
973	fcp_util.h	\
974	fcsm.h
975
976SATAGENHDRS=		\
977	sata_hba.h	\
978	sata_defs.h	\
979	sata_cfgadm.h
980
981SYSEVENTHDRS=		\
982	ap_driver.h     \
983	datalink.h	\
984	dev.h		\
985	domain.h        \
986	dr.h            \
987	env.h           \
988	eventdefs.h	\
989	ipmp.h		\
990	pwrctl.h	\
991	vrrp.h
992
993CONTRACTHDRS=		\
994	process.h	\
995	process_impl.h	\
996	device.h	\
997	device_impl.h
998
999USBHDRS=	\
1000	usba.h	\
1001	usbai.h
1002
1003USBAUDHDRS=           \
1004	usb_audio.h
1005
1006USBHUBDHDRS=		\
1007	hub.h		\
1008	hubd_impl.h
1009
1010USBHIDHDRS=		\
1011	hid.h
1012
1013USBMSHDRS=		\
1014	usb_bulkonly.h	\
1015	usb_cbi.h
1016
1017USBPRNHDRS=           \
1018	usb_printer.h
1019
1020USBCDCHDRS=		\
1021	usb_cdc.h
1022
1023USBVIDHDRS=           \
1024	usbvc.h
1025
1026USBWCMHDRS=		\
1027	usbwcm.h
1028
1029UGENHDRS=           \
1030	usb_ugen.h
1031
1032USBCCIDHDRS = \
1033	ccid.h \
1034	uccid.h
1035
1036HOTPLUGHDRS=	\
1037	hpcsvc.h	\
1038	hpctrl.h
1039
1040HOTPLUGPCIHDRS=	\
1041	pcicfg.h	\
1042	pcihp.h
1043
1044RSMHDRS= \
1045	rsm.h	\
1046	rsm_common.h	\
1047	rsmapi_common.h \
1048	rsmpi.h	\
1049	rsmpi_driver.h	\
1050	rsmka_path_int.h
1051
1052TSOLHDRS=		\
1053	label.h		\
1054	label_macro.h	\
1055	priv.h		\
1056	tndb.h		\
1057	tsyscall.h
1058
1059I1394HDRS=		\
1060	cmd1394.h	\
1061	id1394.h	\
1062	ieee1212.h	\
1063	ieee1394.h	\
1064	ixl1394.h	\
1065	s1394_impl.h	\
1066	t1394.h
1067
1068# "cmdk" headers used on sparc
1069SDKTPHDRS=		\
1070	dadkio.h	\
1071	fdisk.h
1072
1073# "cmdk" headers used on i386
1074DKTPHDRS=		\
1075	altsctr.h	\
1076	bbh.h		\
1077	cm.h		\
1078	cmdev.h		\
1079	cmdk.h		\
1080	cmpkt.h		\
1081	controller.h	\
1082	dadev.h		\
1083	dadk.h		\
1084	dadkio.h	\
1085	fctypes.h	\
1086	fdisk.h		\
1087	flowctrl.h	\
1088	gda.h		\
1089	quetypes.h	\
1090	queue.h		\
1091	tgcom.h		\
1092	tgdk.h
1093
1094# "pc" header files used on i386
1095PCHDRS=			\
1096	avintr.h	\
1097	dma_engine.h	\
1098	i8272A.h	\
1099	pcic_reg.h	\
1100	pcic_var.h	\
1101	pic.h		\
1102	pit.h		\
1103	rtc.h
1104
1105NXGEHDRS=			\
1106	nxge.h			\
1107	nxge_common.h		\
1108	nxge_common_impl.h	\
1109	nxge_defs.h		\
1110	nxge_hw.h		\
1111	nxge_impl.h		\
1112	nxge_ipp.h		\
1113	nxge_ipp_hw.h		\
1114	nxge_mac.h		\
1115	nxge_mac_hw.h		\
1116	nxge_fflp.h		\
1117	nxge_fflp_hw.h		\
1118	nxge_mii.h		\
1119	nxge_rxdma.h		\
1120	nxge_rxdma_hw.h		\
1121	nxge_txc.h		\
1122	nxge_txc_hw.h		\
1123	nxge_txdma.h		\
1124	nxge_txdma_hw.h		\
1125	nxge_virtual.h		\
1126	nxge_espc.h
1127
1128include Makefile.syshdrs
1129
1130dcam/%.check:	dcam/%.h
1131	$(DOT_H_CHECK)
1132
1133CHECKHDRS=						\
1134	$($(MACH)_HDRS:%.h=%.check)			\
1135	$(AUDIOHDRS:%.h=audio/%.check)			\
1136	$(AVHDRS:%.h=av/%.check)			\
1137	$(LOMHDRS:%.h=%.check)				\
1138	$(CHKHDRS:%.h=%.check)				\
1139	$(CPUDRVHDRS:%.h=%.check)			\
1140	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1141	$(DCAMHDRS:%.h=dcam/%.check)			\
1142	$(FC4HDRS:%.h=fc4/%.check)			\
1143	$(FCHDRS:%.h=fibre-channel/%.check)		\
1144	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1145	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1146	$(IBHDRS:%.h=ib/%.check)			\
1147	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1148	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1149	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1150	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1151	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1152	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1153	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1154	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1155	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1156	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1157	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1158	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1159	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1160	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1161	$(IDMHDRS:%.h=idm/%.check)			\
1162	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1163	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1164	$(ISOHDRS:%.h=iso/%.check)			\
1165	$(FMHDRS:%.h=fm/%.check)			\
1166	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1167	$(FMIOHDRS:%.h=fm/io/%.check)			\
1168	$(FSHDRS:%.h=fs/%.check)			\
1169	$(SCSIHDRS:%.h=scsi/%.check)			\
1170	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1171	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1172	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1173	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1174	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1175	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1176	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1177	$(SATAGENHDRS:%.h=sata/%.check)			\
1178	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1179	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1180	$(CONTRACTHDRS:%.h=contract/%.check)            \
1181	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1182	$(USBCCIDHDRS:%.h=usb/clients/ccid/%.check)	\
1183	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1184	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1185	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1186	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1187	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1188	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1189	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1190	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1191	$(USBHDRS:%.h=usb/%.check)                      \
1192	$(I1394HDRS:%.h=1394/%.check)			\
1193	$(RSMHDRS:%.h=rsm/%.check)			\
1194	$(TSOLHDRS:%.h=tsol/%.check)			\
1195	$(NXGEHDRS:%.h=nxge/%.check)
1196
1197
1198.KEEP_STATE:
1199
1200.PARALLEL:			\
1201	$(CHECKHDRS)		\
1202	$(ROOTHDRS)		\
1203	$(ROOTAUDHDRS)		\
1204	$(ROOTAVHDRS)		\
1205	$(ROOTCRYPTOHDRS)	\
1206	$(ROOTDCAMHDRS)		\
1207	$(ROOTISOHDRS)		\
1208	$(ROOTIDMHDRS)		\
1209	$(ROOTISCSIHDRS)	\
1210	$(ROOTISCSITHDRS)	\
1211	$(ROOTFC4HDRS)		\
1212	$(ROOTFCHDRS)		\
1213	$(ROOTFCIMPLHDRS)	\
1214	$(ROOTFCULPHDRS)	\
1215	$(ROOTFMHDRS)		\
1216	$(ROOTFMIOHDRS)		\
1217	$(ROOTFMFSHDRS)		\
1218	$(ROOTFSHDRS)		\
1219	$(ROOTIBDHDRS)		\
1220	$(ROOTIBHDRS)		\
1221	$(ROOTIBTLHDRS)		\
1222	$(ROOTIBTLIMPLHDRS)	\
1223	$(ROOTIBNEXHDRS)	\
1224	$(ROOTIBMGTHDRS)	\
1225	$(ROOTIBMFHDRS)		\
1226	$(ROOTOFHDRS)		\
1227	$(ROOTRDMAHDRS)		\
1228	$(ROOTSOL_OFSHDRS)	\
1229	$(ROOTSOL_UMADHDRS)	\
1230	$(ROOTSOL_UVERBSHDRS)	\
1231	$(ROOTSOL_UCMAHDRS)	\
1232	$(ROOTTAVORHDRS)	\
1233	$(ROOTHERMONHDRS)	\
1234	$(ROOTMLNXHDRS)		\
1235	$(ROOTSCSIHDRS)		\
1236	$(ROOTSCSIADHDRS)	\
1237	$(ROOTSCSICONFHDRS)	\
1238	$(ROOTSCSIISCSIHDRS)	\
1239	$(ROOTSCSIGENHDRS)	\
1240	$(ROOTSCSIIMPLHDRS)	\
1241	$(ROOTSCSIVHCIHDRS)	\
1242	$(ROOTSDCARDHDRS)	\
1243	$(ROOTSYSEVENTHDRS)     \
1244	$(ROOTCONTRACTHDRS)     \
1245	$(ROOTUSBHDRS)		\
1246	$(ROOTUWBHDRS)		\
1247	$(ROOTUWBAHDRS)		\
1248	$(ROOTUSBAUDHDRS)	\
1249	$(ROOTUSBHUBDHDRS)	\
1250	$(ROOTUSBHIDHDRS)	\
1251	$(ROOTUSBHRCHDRS)	\
1252	$(ROOTUSBMSHDRS)	\
1253	$(ROOTUSBPRNHDRS)       \
1254	$(ROOTUSBCDCHDRS)       \
1255	$(ROOTUSBVIDHDRS)       \
1256	$(ROOTUSBWCMHDRS)	\
1257	$(ROOTUSBCCIDHDRS)	\
1258	$(ROOTUGENHDRS)		\
1259	$(ROOT1394HDRS)         \
1260	$(ROOTHOTPLUGHDRS)	\
1261	$(ROOTHOTPLUGPCIHDRS)	\
1262	$(ROOTRSMHDRS)		\
1263	$(ROOTTSOLHDRS)		\
1264	$($(MACH)_ROOTHDRS)
1265
1266
1267install_h:			\
1268	$(ROOTDIRS)		\
1269	.WAIT			\
1270	$(ROOTHDRS)		\
1271	$(ROOTAUDHDRS)		\
1272	$(ROOTAVHDRS)		\
1273	$(ROOTCRYPTOHDRS)	\
1274	$(ROOTDCAMHDRS)		\
1275	$(ROOTISOHDRS)		\
1276	$(ROOTIDMHDRS)		\
1277	$(ROOTISCSIHDRS)	\
1278	$(ROOTISCSITHDRS)	\
1279	$(ROOTFC4HDRS)		\
1280	$(ROOTFCHDRS)		\
1281	$(ROOTFCIMPLHDRS)	\
1282	$(ROOTFCULPHDRS)	\
1283	$(ROOTFMHDRS)		\
1284	$(ROOTFMFSHDRS)		\
1285	$(ROOTFMIOHDRS)		\
1286	$(ROOTFSHDRS)		\
1287	$(ROOTIBDHDRS)		\
1288	$(ROOTIBHDRS)		\
1289	$(ROOTIBTLHDRS)		\
1290	$(ROOTIBTLIMPLHDRS)	\
1291	$(ROOTIBNEXHDRS)	\
1292	$(ROOTIBMGTHDRS)	\
1293	$(ROOTIBMFHDRS)		\
1294	$(ROOTOFHDRS)		\
1295	$(ROOTRDMAHDRS)		\
1296	$(ROOTSOL_OFSHDRS)	\
1297	$(ROOTSOL_UMADHDRS)	\
1298	$(ROOTSOL_UVERBSHDRS)	\
1299	$(ROOTSOL_UCMAHDRS)	\
1300	$(ROOTTAVORHDRS)	\
1301	$(ROOTHERMONHDRS)	\
1302	$(ROOTMLNXHDRS)		\
1303	$(ROOTSCSIHDRS)		\
1304	$(ROOTSCSIADHDRS)	\
1305	$(ROOTSCSIISCSIHDRS)	\
1306	$(ROOTSCSICONFHDRS)	\
1307	$(ROOTSCSIGENHDRS)	\
1308	$(ROOTSCSIIMPLHDRS)	\
1309	$(ROOTSCSIVHCIHDRS)     \
1310	$(ROOTSDCARDHDRS)	\
1311	$(ROOTSYSEVENTHDRS)     \
1312	$(ROOTCONTRACTHDRS)     \
1313	$(ROOTUWBHDRS)		\
1314	$(ROOTUWBAHDRS)		\
1315	$(ROOTUSBHDRS)		\
1316	$(ROOTUSBCCIDHDRS)	\
1317	$(ROOTUSBAUDHDRS)	\
1318	$(ROOTUSBHUBDHDRS)	\
1319	$(ROOTUSBHIDHDRS)	\
1320	$(ROOTUSBHRCHDRS)	\
1321	$(ROOTUSBMSHDRS)	\
1322	$(ROOTUSBPRNHDRS)       \
1323	$(ROOTUSBCDCHDRS)       \
1324	$(ROOTUSBVIDHDRS)       \
1325	$(ROOTUSBWCMHDRS)	\
1326	$(ROOTUGENHDRS)		\
1327	$(ROOT1394HDRS)         \
1328	$(ROOTHOTPLUGHDRS)	\
1329	$(ROOTHOTPLUGPCIHDRS)	\
1330	$(ROOTRSMHDRS)		\
1331	$(ROOTTSOLHDRS)		\
1332	$($(MACH)_ROOTHDRS)
1333
1334all_h: $(GENHDRS)
1335
1336priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1337	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1338
1339priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1340	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1341
1342usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1343	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1344
1345clean:
1346	$(RM) $(GENHDRS)
1347
1348clobber: clean
1349
1350check:	$(CHECKHDRS)
1351
1352FRC:
1353