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