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