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