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