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