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