xref: /titanic_51/usr/src/uts/common/sys/Makefile (revision 356f72340a69936724c69f2f87fffa6f5887f885)
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	stdint.h		\
538	stermio.h		\
539	stmf.h			\
540	stmf_defines.h		\
541	stmf_ioctl.h		\
542	stmf_sbd_ioctl.h	\
543	stream.h		\
544	strft.h			\
545	strlog.h		\
546	strmdep.h		\
547	stropts.h		\
548	strredir.h		\
549	strstat.h		\
550	strsubr.h		\
551	strsun.h		\
552	strtty.h		\
553	sunddi.h		\
554	sunldi.h		\
555	sunldi_impl.h		\
556	sunmdi.h		\
557	sunndi.h		\
558	sunos_dhcp_class.h	\
559	sunpm.h			\
560	suntpi.h		\
561	suntty.h		\
562	swap.h			\
563	synch.h			\
564	sysdc.h			\
565	sysdc_impl.h		\
566	syscall.h		\
567	sysconf.h		\
568	sysconfig.h		\
569	sysevent.h		\
570	sysevent_impl.h		\
571	sysinfo.h		\
572	syslog.h		\
573	sysmacros.h		\
574	sysmsg_impl.h		\
575	systeminfo.h		\
576	systm.h			\
577	task.h			\
578	taskq.h			\
579	taskq_impl.h		\
580	t_kuser.h		\
581	t_lock.h		\
582	telioctl.h		\
583	termio.h		\
584	termios.h		\
585	termiox.h		\
586	thread.h		\
587	ticlts.h		\
588	ticots.h		\
589	ticotsord.h		\
590	tihdr.h			\
591	time.h			\
592	time_impl.h		\
593	time_std_impl.h		\
594	timeb.h			\
595	timer.h			\
596	timerfd.h		\
597	times.h			\
598	timex.h			\
599	timod.h			\
600	tirdwr.h		\
601	tiuser.h		\
602	tl.h			\
603	tnf.h			\
604	tnf_com.h		\
605	tnf_probe.h		\
606	tnf_writer.h		\
607	todio.h			\
608	tpicommon.h		\
609	ts.h			\
610	tspriocntl.h		\
611	ttcompat.h		\
612	ttold.h			\
613	tty.h			\
614	ttychars.h		\
615	ttydev.h		\
616	tuneable.h		\
617	turnstile.h		\
618	types.h			\
619	types32.h		\
620	tzfile.h		\
621	u8_textprep.h		\
622	u8_textprep_data.h	\
623	uadmin.h		\
624	ucred.h			\
625	uio.h			\
626	ulimit.h		\
627	un.h			\
628	unistd.h		\
629	user.h			\
630	ustat.h			\
631	utime.h			\
632	utsname.h		\
633	utssys.h		\
634	uuid.h			\
635	va_impl.h		\
636	va_list.h		\
637	var.h			\
638	varargs.h		\
639	vfs.h			\
640	vfs_opreg.h		\
641	vfstab.h		\
642	vgareg.h		\
643	videodev2.h		\
644	visual_io.h		\
645	vlan.h			\
646	vm.h			\
647	vm_usage.h		\
648	vmem.h			\
649	vmem_impl.h		\
650	vmsystm.h		\
651	vnic.h			\
652	vnic_impl.h		\
653	vnode.h			\
654	vscan.h			\
655	vtoc.h			\
656	vtrace.h		\
657	vuid_event.h		\
658	vuid_wheel.h		\
659	vuid_queue.h		\
660	vuid_state.h		\
661	vuid_store.h		\
662	wait.h			\
663	waitq.h			\
664	wanboot_impl.h		\
665	watchpoint.h		\
666	winlockio.h		\
667	zcons.h			\
668	zone.h			\
669	xti_inet.h		\
670	xti_osi.h		\
671	xti_xtiopt.h		\
672	zmod.h
673
674HDRS=				\
675	$(GENHDRS)		\
676	$(CHKHDRS)
677
678AUDIOHDRS=			\
679	ac97.h			\
680	audio_common.h		\
681	audio_driver.h		\
682	audio_oss.h		\
683	g711.h
684
685AVHDRS=				\
686	iec61883.h
687
688BSCHDRS=			\
689	bscbus.h		\
690	bscv_impl.h		\
691	lom_ebuscodes.h		\
692	lom_io.h		\
693	lom_priv.h		\
694	lombus.h
695
696MDESCHDRS=			\
697	mdesc.h			\
698	mdesc_impl.h
699
700CPUDRVHDRS=			\
701	cpudrv.h
702
703CRYPTOHDRS=			\
704	elfsign.h		\
705	ioctl.h			\
706	ioctladmin.h		\
707	common.h		\
708	impl.h			\
709	spi.h			\
710	api.h			\
711	ops_impl.h		\
712	sched_impl.h
713
714DCAMHDRS=			\
715	dcam1394_io.h
716
717IBHDRS=			\
718	ib_types.h	\
719	ib_pkt_hdrs.h
720
721IBTLHDRS=		\
722	ibtl_types.h	\
723	ibtl_status.h	\
724	ibti.h		\
725	ibti_cm.h	\
726	ibci.h		\
727	ibti_common.h	\
728	ibvti.h		\
729	ibtl_ci_types.h
730
731IBTLIMPLHDRS=		\
732	ibtl_util.h
733
734IBNEXHDRS=		\
735	ibnex_devctl.h
736
737IBMFHDRS=		\
738	ibmf.h		\
739	ibmf_msg.h	\
740	ibmf_saa.h	\
741	ibmf_utils.h
742
743IBMGTHDRS=		\
744	ib_dm_attr.h	\
745	ib_mad.h	\
746	sm_attr.h	\
747	sa_recs.h
748
749IBDHDRS=		\
750	ibd.h
751
752OFHDRS=			\
753	ofa_solaris.h	\
754	ofed_kernel.h
755
756RDMAHDRS=		\
757	ib_addr.h	\
758	ib_user_mad.h	\
759	ib_user_sa.h	\
760	ib_user_verbs.h \
761	ib_verbs.h 	\
762	rdma_cm.h 	\
763	rdma_user_cm.h
764
765SOL_UVERBSHDRS=		\
766	sol_uverbs.h	\
767	sol_uverbs2ucma.h	\
768	sol_uverbs_comp.h	\
769	sol_uverbs_hca.h	\
770	sol_uverbs_qp.h		\
771	sol_uverbs_event.h
772
773SOL_UMADHDRS=		\
774	sol_umad.h
775
776SOL_UCMAHDRS=		\
777	sol_ucma.h	\
778	sol_rdma_user_cm.h
779
780SOL_OFSHDRS=		\
781	sol_cma.h	\
782	sol_ib_cma.h	\
783	sol_ofs_common.h	\
784	sol_kverb_impl.h
785
786TAVORHDRS=		\
787	tavor_ioctl.h
788
789HERMONHDRS=		\
790	hermon_ioctl.h
791
792MLNXHDRS=		\
793	mlnx_umap.h
794
795IDMHDRS=		\
796	idm.h		\
797	idm_impl.h	\
798	idm_so.h	\
799	idm_text.h	\
800	idm_transport.h	\
801	idm_conn_sm.h
802
803ISCSITHDRS=		\
804	radius_packet.h		\
805	radius_protocol.h	\
806	chap.h			\
807	isns_protocol.h		\
808	iscsi_if.h		\
809	iscsit_common.h
810
811ISOHDRS=			\
812	signal_iso.h
813
814FMHDRS=				\
815	protocol.h		\
816	util.h
817
818FMFSHDRS=			\
819	zfs.h
820
821FMIOHDRS=			\
822	ddi.h			\
823	disk.h			\
824	pci.h			\
825	scsi.h			\
826	sun4upci.h		\
827	opl_mc_fm.h
828
829FSHDRS=				\
830	autofs.h		\
831	decomp.h		\
832	dv_node.h		\
833	sdev_impl.h		\
834	fifonode.h		\
835	hsfs_isospec.h		\
836	hsfs_node.h		\
837	hsfs_rrip.h		\
838	hsfs_spec.h		\
839	hsfs_susp.h		\
840	lofs_info.h		\
841	lofs_node.h		\
842	mntdata.h		\
843	namenode.h		\
844	pc_dir.h		\
845	pc_fs.h			\
846	pc_label.h		\
847	pc_node.h		\
848	pxfs_ki.h		\
849	snode.h			\
850	swapnode.h		\
851	tmp.h			\
852	tmpnode.h		\
853	udf_inode.h		\
854	udf_volume.h		\
855	ufs_acl.h		\
856	ufs_bio.h		\
857	ufs_filio.h		\
858	ufs_fs.h		\
859	ufs_fsdir.h		\
860	ufs_inode.h		\
861	ufs_lockfs.h		\
862	ufs_log.h		\
863	ufs_mount.h		\
864	ufs_panic.h		\
865	ufs_prot.h		\
866	ufs_quota.h		\
867	ufs_snap.h              \
868	ufs_trans.h		\
869	zfs.h			\
870	zut.h
871
872SCSIHDRS=		\
873	scsi.h		\
874	scsi_address.h	\
875	scsi_ctl.h	\
876	scsi_fm.h	\
877	scsi_params.h	\
878	scsi_pkt.h	\
879	scsi_resource.h	\
880	scsi_types.h	\
881	scsi_watch.h
882
883SCSICONFHDRS=		\
884	autoconf.h	\
885	device.h
886
887SCSIGENHDRS=		\
888	commands.h	\
889	dad_mode.h	\
890	inquiry.h	\
891	message.h	\
892	mode.h		\
893	persist.h	\
894	sense.h		\
895	sff_frames.h	\
896	smp_frames.h	\
897	status.h
898
899SCSIIMPLHDRS=		\
900	commands.h	\
901	inquiry.h	\
902	mode.h		\
903	scsi_reset_notify.h \
904	scsi_sas.h	\
905	sense.h		\
906	services.h	\
907	smp_transport.h	\
908	spc3_types.h	\
909	status.h	\
910	transport.h	\
911	types.h		\
912	uscsi.h		\
913	usmp.h
914
915SCSITARGETSHDRS=	\
916	ses.h		\
917	sesio.h		\
918	sgendef.h	\
919	stdef.h		\
920	sddef.h		\
921	smp.h
922
923SCSIADHDRS=
924
925SCSICADHDRS=
926
927SCSIISCSIHDRS=		\
928	iscsi_door.h	\
929	iscsi_if.h
930
931SCSIVHCIHDRS=		\
932	scsi_vhci.h	\
933	mpapi_impl.h	\
934	mpapi_scsi_vhci.h
935
936SDCARDHDRS=		\
937	sda.h		\
938	sda_impl.h	\
939	sda_ioctl.h
940
941FC4HDRS=			\
942	fc_transport.h	\
943	linkapp.h	\
944	fc.h		\
945	fcp.h		\
946	fcal_transport.h \
947	fcal.h		\
948	fcal_linkapp.h	\
949	fcio.h
950
951FCHDRS=			\
952	fc.h		\
953	fcio.h		\
954	fc_types.h	\
955	fc_appif.h
956
957FCIMPLHDRS=		\
958	fc_error.h	\
959	fcph.h
960
961FCULPHDRS=		\
962	fcp_util.h	\
963	fcsm.h
964
965SATAGENHDRS=		\
966	sata_hba.h	\
967	sata_defs.h	\
968	sata_cfgadm.h
969
970SYSEVENTHDRS=		\
971	ap_driver.h     \
972	dev.h		\
973	domain.h        \
974	dr.h            \
975	env.h           \
976	eventdefs.h	\
977	ipmp.h		\
978	pwrctl.h	\
979	vrrp.h
980
981CONTRACTHDRS=		\
982	process.h	\
983	process_impl.h	\
984	device.h	\
985	device_impl.h
986
987USBHDRS=	\
988	usba.h	\
989	usbai.h
990
991USBAUDHDRS=           \
992	usb_audio.h
993
994USBHUBDHDRS=		\
995	hub.h		\
996	hubd_impl.h
997
998USBHIDHDRS=		\
999	hid.h
1000
1001USBMSHDRS=		\
1002	usb_bulkonly.h	\
1003	usb_cbi.h
1004
1005USBPRNHDRS=           \
1006	usb_printer.h
1007
1008USBCDCHDRS=		\
1009	usb_cdc.h
1010
1011USBVIDHDRS=           \
1012	usbvc.h
1013
1014USBWCMHDRS=		\
1015	usbwcm.h
1016
1017UGENHDRS=           \
1018	usb_ugen.h
1019
1020HOTPLUGHDRS=	\
1021	hpcsvc.h	\
1022	hpctrl.h
1023
1024HOTPLUGPCIHDRS=	\
1025	pcicfg.h	\
1026	pcihp.h
1027
1028RSMHDRS= \
1029	rsm.h	\
1030	rsm_common.h	\
1031	rsmapi_common.h \
1032	rsmpi.h	\
1033	rsmpi_driver.h	\
1034	rsmka_path_int.h
1035
1036TSOLHDRS=		\
1037	label.h		\
1038	label_macro.h	\
1039	priv.h		\
1040	tndb.h		\
1041	tsyscall.h
1042
1043I1394HDRS=		\
1044	cmd1394.h	\
1045	id1394.h	\
1046	ieee1212.h	\
1047	ieee1394.h	\
1048	ixl1394.h	\
1049	s1394_impl.h	\
1050	t1394.h
1051
1052# "cmdk" headers used on sparc
1053SDKTPHDRS=		\
1054	dadkio.h	\
1055	fdisk.h
1056
1057# "cmdk" headers used on i386
1058DKTPHDRS=		\
1059	altsctr.h	\
1060	bbh.h		\
1061	cm.h		\
1062	cmdev.h		\
1063	cmdk.h		\
1064	cmpkt.h		\
1065	controller.h	\
1066	dadev.h		\
1067	dadk.h		\
1068	dadkio.h	\
1069	fctypes.h	\
1070	fdisk.h		\
1071	flowctrl.h	\
1072	gda.h		\
1073	quetypes.h	\
1074	queue.h		\
1075	tgcom.h		\
1076	tgdk.h
1077
1078# "pc" header files used on i386
1079PCHDRS=			\
1080	avintr.h	\
1081	dma_engine.h	\
1082	i8272A.h	\
1083	pcic_reg.h	\
1084	pcic_var.h	\
1085	pic.h		\
1086	pit.h		\
1087	rtc.h
1088
1089NXGEHDRS=			\
1090	nxge.h			\
1091	nxge_common.h		\
1092	nxge_common_impl.h	\
1093	nxge_defs.h		\
1094	nxge_hw.h		\
1095	nxge_impl.h		\
1096	nxge_ipp.h		\
1097	nxge_ipp_hw.h		\
1098	nxge_mac.h		\
1099	nxge_mac_hw.h		\
1100	nxge_fflp.h		\
1101	nxge_fflp_hw.h		\
1102	nxge_mii.h		\
1103	nxge_rxdma.h		\
1104	nxge_rxdma_hw.h		\
1105	nxge_txc.h		\
1106	nxge_txc_hw.h		\
1107	nxge_txdma.h		\
1108	nxge_txdma_hw.h		\
1109	nxge_virtual.h		\
1110	nxge_espc.h
1111
1112include Makefile.syshdrs
1113
1114dcam/%.check:	dcam/%.h
1115	$(DOT_H_CHECK)
1116
1117CHECKHDRS=						\
1118	$($(MACH)_HDRS:%.h=%.check)			\
1119	$(AUDIOHDRS:%.h=audio/%.check)			\
1120	$(AVHDRS:%.h=av/%.check)			\
1121	$(BSCHDRS:%.h=%.check)				\
1122	$(CHKHDRS:%.h=%.check)				\
1123	$(CPUDRVHDRS:%.h=%.check)			\
1124	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1125	$(DCAMHDRS:%.h=dcam/%.check)			\
1126	$(FC4HDRS:%.h=fc4/%.check)			\
1127	$(FCHDRS:%.h=fibre-channel/%.check)		\
1128	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1129	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1130	$(IBHDRS:%.h=ib/%.check)			\
1131	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1132	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1133	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1134	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1135	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1136	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1137	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1138	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1139	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1140	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1141	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1142	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1143	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1144	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1145	$(IDMHDRS:%.h=idm/%.check)			\
1146	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1147	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1148	$(ISOHDRS:%.h=iso/%.check)			\
1149	$(FMHDRS:%.h=fm/%.check)			\
1150	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1151	$(FMIOHDRS:%.h=fm/io/%.check)			\
1152	$(FSHDRS:%.h=fs/%.check)			\
1153	$(SCSIHDRS:%.h=scsi/%.check)			\
1154	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1155	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1156	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1157	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1158	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1159	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1160	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1161	$(SATAGENHDRS:%.h=sata/%.check)			\
1162	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1163	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1164	$(CONTRACTHDRS:%.h=contract/%.check)            \
1165	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1166	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1167	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1168	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1169	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1170	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1171	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1172	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1173	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1174	$(USBHDRS:%.h=usb/%.check)                      \
1175	$(I1394HDRS:%.h=1394/%.check)			\
1176	$(RSMHDRS:%.h=rsm/%.check)			\
1177	$(TSOLHDRS:%.h=tsol/%.check)			\
1178	$(NXGEHDRS:%.h=nxge/%.check)
1179
1180
1181.KEEP_STATE:
1182
1183.PARALLEL:			\
1184	$(CHECKHDRS)		\
1185	$(ROOTHDRS)		\
1186	$(ROOTAUDHDRS)		\
1187	$(ROOTAVHDRS)		\
1188	$(ROOTCRYPTOHDRS)	\
1189	$(ROOTDCAMHDRS)		\
1190	$(ROOTISOHDRS)		\
1191	$(ROOTIDMHDRS)		\
1192	$(ROOTISCSIHDRS)	\
1193	$(ROOTISCSITHDRS)	\
1194	$(ROOTFC4HDRS)		\
1195	$(ROOTFCHDRS)		\
1196	$(ROOTFCIMPLHDRS)	\
1197	$(ROOTFCULPHDRS)	\
1198	$(ROOTFMHDRS)		\
1199	$(ROOTFMIOHDRS)		\
1200	$(ROOTFMFSHDRS)		\
1201	$(ROOTFSHDRS)		\
1202	$(ROOTIBDHDRS)		\
1203	$(ROOTIBHDRS)		\
1204	$(ROOTIBTLHDRS)		\
1205	$(ROOTIBTLIMPLHDRS)	\
1206	$(ROOTIBNEXHDRS)	\
1207	$(ROOTIBMGTHDRS)	\
1208	$(ROOTIBMFHDRS)		\
1209	$(ROOTOFHDRS)		\
1210	$(ROOTRDMAHDRS)		\
1211	$(ROOTSOL_OFSHDRS)	\
1212	$(ROOTSOL_UMADHDRS)	\
1213	$(ROOTSOL_UVERBSHDRS)	\
1214	$(ROOTSOL_UCMAHDRS)	\
1215	$(ROOTTAVORHDRS)	\
1216	$(ROOTHERMONHDRS)	\
1217	$(ROOTMLNXHDRS)		\
1218	$(ROOTSCSIHDRS)		\
1219	$(ROOTSCSIADHDRS)	\
1220	$(ROOTSCSICONFHDRS)	\
1221	$(ROOTSCSIISCSIHDRS)	\
1222	$(ROOTSCSIGENHDRS)	\
1223	$(ROOTSCSIIMPLHDRS)	\
1224	$(ROOTSCSIVHCIHDRS)	\
1225	$(ROOTSDCARDHDRS)	\
1226	$(ROOTSYSEVENTHDRS)     \
1227	$(ROOTCONTRACTHDRS)     \
1228	$(ROOTUSBHDRS)		\
1229	$(ROOTUWBHDRS)		\
1230	$(ROOTUWBAHDRS)		\
1231	$(ROOTUSBAUDHDRS)	\
1232	$(ROOTUSBHUBDHDRS)	\
1233	$(ROOTUSBHIDHDRS)	\
1234	$(ROOTUSBHRCHDRS)	\
1235	$(ROOTUSBMSHDRS)	\
1236	$(ROOTUSBPRNHDRS)       \
1237	$(ROOTUSBCDCHDRS)       \
1238	$(ROOTUSBVIDHDRS)       \
1239	$(ROOTUSBWCMHDRS)	\
1240	$(ROOTUGENHDRS)		\
1241	$(ROOT1394HDRS)         \
1242	$(ROOTHOTPLUGHDRS)	\
1243	$(ROOTHOTPLUGPCIHDRS)	\
1244	$(ROOTRSMHDRS)		\
1245	$(ROOTTSOLHDRS)		\
1246	$($(MACH)_ROOTHDRS)
1247
1248
1249install_h:			\
1250	$(ROOTDIRS)		\
1251	.WAIT			\
1252	$(ROOTHDRS)		\
1253	$(ROOTAUDHDRS)		\
1254	$(ROOTAVHDRS)		\
1255	$(ROOTCRYPTOHDRS)	\
1256	$(ROOTDCAMHDRS)		\
1257	$(ROOTISOHDRS)		\
1258	$(ROOTIDMHDRS)		\
1259	$(ROOTISCSIHDRS)	\
1260	$(ROOTISCSITHDRS)	\
1261	$(ROOTFC4HDRS)		\
1262	$(ROOTFCHDRS)		\
1263	$(ROOTFCIMPLHDRS)	\
1264	$(ROOTFCULPHDRS)	\
1265	$(ROOTFMHDRS)		\
1266	$(ROOTFMFSHDRS)		\
1267	$(ROOTFMIOHDRS)		\
1268	$(ROOTFSHDRS)		\
1269	$(ROOTIBDHDRS)		\
1270	$(ROOTIBHDRS)		\
1271	$(ROOTIBTLHDRS)		\
1272	$(ROOTIBTLIMPLHDRS)	\
1273	$(ROOTIBNEXHDRS)	\
1274	$(ROOTIBMGTHDRS)	\
1275	$(ROOTIBMFHDRS)		\
1276	$(ROOTOFHDRS)		\
1277	$(ROOTRDMAHDRS)		\
1278	$(ROOTSOL_OFSHDRS)	\
1279	$(ROOTSOL_UMADHDRS)	\
1280	$(ROOTSOL_UVERBSHDRS)	\
1281	$(ROOTSOL_UCMAHDRS)	\
1282	$(ROOTTAVORHDRS)	\
1283	$(ROOTHERMONHDRS)	\
1284	$(ROOTMLNXHDRS)		\
1285	$(ROOTSCSIHDRS)		\
1286	$(ROOTSCSIADHDRS)	\
1287	$(ROOTSCSIISCSIHDRS)	\
1288	$(ROOTSCSICONFHDRS)	\
1289	$(ROOTSCSIGENHDRS)	\
1290	$(ROOTSCSIIMPLHDRS)	\
1291	$(ROOTSCSIVHCIHDRS)     \
1292	$(ROOTSDCARDHDRS)	\
1293	$(ROOTSYSEVENTHDRS)     \
1294	$(ROOTCONTRACTHDRS)     \
1295	$(ROOTUWBHDRS)		\
1296	$(ROOTUWBAHDRS)		\
1297	$(ROOTUSBHDRS)		\
1298	$(ROOTUSBAUDHDRS)	\
1299	$(ROOTUSBHUBDHDRS)	\
1300	$(ROOTUSBHIDHDRS)	\
1301	$(ROOTUSBHRCHDRS)	\
1302	$(ROOTUSBMSHDRS)	\
1303	$(ROOTUSBPRNHDRS)       \
1304	$(ROOTUSBCDCHDRS)       \
1305	$(ROOTUSBVIDHDRS)       \
1306	$(ROOTUSBWCMHDRS)	\
1307	$(ROOTUGENHDRS)		\
1308	$(ROOT1394HDRS)         \
1309	$(ROOTHOTPLUGHDRS)	\
1310	$(ROOTHOTPLUGPCIHDRS)	\
1311	$(ROOTRSMHDRS)		\
1312	$(ROOTTSOLHDRS)		\
1313	$($(MACH)_ROOTHDRS)
1314
1315all_h: $(GENHDRS)
1316
1317priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1318	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1319
1320priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1321	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1322
1323usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1324	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1325
1326clean:
1327	$(RM) $(GENHDRS)
1328
1329clobber: clean
1330
1331check:	$(CHECKHDRS)
1332
1333FRC:
1334