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