xref: /titanic_50/usr/src/uts/common/sys/Makefile (revision eab227978ccdaa5a7cc9fd92ace768915dae3a2b)
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
814DERIVED_LVMHDRS=	\
815	md_mdiox.h		\
816	md_basic.h		\
817	mdmed.h			\
818	md_mhdx.h		\
819	mdmn_commd.h
820
821LVMHDRS=			\
822	md_convert.h		\
823	md_crc.h		\
824	md_hotspares.h		\
825	md_mddb.h		\
826	md_mirror.h		\
827	md_mirror_shared.h	\
828	md_names.h		\
829	md_notify.h		\
830	md_raid.h		\
831	md_rename.h		\
832	md_sp.h			\
833	md_stripe.h		\
834	md_trans.h		\
835	mdio.h			\
836	mdvar.h
837
838ALL_LVMHDRS=			\
839	$(LVMHDRS)		\
840	$(DERIVED_LVMHDRS)
841
842FMHDRS=				\
843	protocol.h		\
844	util.h
845
846FMFSHDRS=			\
847	zfs.h
848
849FMIOHDRS=			\
850	ddi.h			\
851	disk.h			\
852	pci.h			\
853	scsi.h			\
854	sun4upci.h		\
855	opl_mc_fm.h
856
857FSHDRS=				\
858	autofs.h		\
859	decomp.h		\
860	dv_node.h		\
861	sdev_impl.h		\
862	fifonode.h		\
863	hsfs_isospec.h		\
864	hsfs_node.h		\
865	hsfs_rrip.h		\
866	hsfs_spec.h		\
867	hsfs_susp.h		\
868	lofs_info.h		\
869	lofs_node.h		\
870	mntdata.h		\
871	namenode.h		\
872	pc_dir.h		\
873	pc_fs.h			\
874	pc_label.h		\
875	pc_node.h		\
876	pxfs_ki.h		\
877	snode.h			\
878	swapnode.h		\
879	tmp.h			\
880	tmpnode.h		\
881	udf_inode.h		\
882	udf_volume.h		\
883	ufs_acl.h		\
884	ufs_bio.h		\
885	ufs_filio.h		\
886	ufs_fs.h		\
887	ufs_fsdir.h		\
888	ufs_inode.h		\
889	ufs_lockfs.h		\
890	ufs_log.h		\
891	ufs_mount.h		\
892	ufs_panic.h		\
893	ufs_prot.h		\
894	ufs_quota.h		\
895	ufs_snap.h              \
896	ufs_trans.h		\
897	zfs.h			\
898	zut.h
899
900SCSIHDRS=		\
901	scsi.h		\
902	scsi_address.h	\
903	scsi_ctl.h	\
904	scsi_fm.h	\
905	scsi_params.h	\
906	scsi_pkt.h	\
907	scsi_resource.h	\
908	scsi_types.h	\
909	scsi_watch.h
910
911SCSICONFHDRS=		\
912	autoconf.h	\
913	device.h
914
915SCSIGENHDRS=		\
916	commands.h	\
917	dad_mode.h	\
918	inquiry.h	\
919	message.h	\
920	mode.h		\
921	persist.h	\
922	sense.h		\
923	sff_frames.h	\
924	smp_frames.h	\
925	status.h
926
927SCSIIMPLHDRS=		\
928	commands.h	\
929	inquiry.h	\
930	mode.h		\
931	scsi_reset_notify.h \
932	scsi_sas.h	\
933	sense.h		\
934	services.h	\
935	smp_transport.h	\
936	spc3_types.h	\
937	status.h	\
938	transport.h	\
939	types.h		\
940	uscsi.h		\
941	usmp.h
942
943SCSITARGETSHDRS=	\
944	ses.h		\
945	sesio.h		\
946	sgendef.h	\
947	stdef.h		\
948	sddef.h		\
949	smp.h
950
951SCSIADHDRS=
952
953SCSICADHDRS=
954
955SCSIISCSIHDRS=		\
956	iscsi_door.h	\
957	iscsi_if.h
958
959SCSIVHCIHDRS=		\
960	scsi_vhci.h	\
961	mpapi_impl.h	\
962	mpapi_scsi_vhci.h
963
964SDCARDHDRS=		\
965	sda.h		\
966	sda_impl.h	\
967	sda_ioctl.h
968
969FC4HDRS=			\
970	fc_transport.h	\
971	linkapp.h	\
972	fc.h		\
973	fcp.h		\
974	fcal_transport.h \
975	fcal.h		\
976	fcal_linkapp.h	\
977	fcio.h
978
979FCHDRS=			\
980	fc.h		\
981	fcio.h		\
982	fc_types.h	\
983	fc_appif.h
984
985FCIMPLHDRS=		\
986	fc_error.h	\
987	fcph.h
988
989FCULPHDRS=		\
990	fcp_util.h	\
991	fcsm.h
992
993SATAGENHDRS=		\
994	sata_hba.h	\
995	sata_defs.h	\
996	sata_cfgadm.h
997
998SYSEVENTHDRS=		\
999	ap_driver.h     \
1000	dev.h		\
1001	domain.h        \
1002	dr.h            \
1003	env.h           \
1004	eventdefs.h	\
1005	ipmp.h		\
1006	pwrctl.h	\
1007	svm.h		\
1008	vrrp.h
1009
1010CONTRACTHDRS=		\
1011	process.h	\
1012	process_impl.h	\
1013	device.h	\
1014	device_impl.h
1015
1016USBHDRS=	\
1017	usba.h	\
1018	usbai.h
1019
1020USBAUDHDRS=           \
1021	usb_audio.h
1022
1023USBHUBDHDRS=		\
1024	hub.h		\
1025	hubd_impl.h
1026
1027USBHIDHDRS=		\
1028	hid.h
1029
1030USBMSHDRS=		\
1031	usb_bulkonly.h	\
1032	usb_cbi.h
1033
1034USBPRNHDRS=           \
1035	usb_printer.h
1036
1037USBCDCHDRS=		\
1038	usb_cdc.h
1039
1040USBVIDHDRS=           \
1041	usbvc.h
1042
1043USBWCMHDRS=		\
1044	usbwcm.h
1045
1046UGENHDRS=           \
1047	usb_ugen.h
1048
1049HOTPLUGHDRS=	\
1050	hpcsvc.h	\
1051	hpctrl.h
1052
1053HOTPLUGPCIHDRS=	\
1054	pcicfg.h	\
1055	pcihp.h
1056
1057RSMHDRS= \
1058	rsm.h	\
1059	rsm_common.h	\
1060	rsmapi_common.h \
1061	rsmpi.h	\
1062	rsmpi_driver.h	\
1063	rsmka_path_int.h
1064
1065TSOLHDRS=		\
1066	label.h		\
1067	label_macro.h	\
1068	priv.h		\
1069	tndb.h		\
1070	tsyscall.h
1071
1072I1394HDRS=		\
1073	cmd1394.h	\
1074	id1394.h	\
1075	ieee1212.h	\
1076	ieee1394.h	\
1077	ixl1394.h	\
1078	s1394_impl.h	\
1079	t1394.h
1080
1081# "cmdk" headers used on sparc
1082SDKTPHDRS=		\
1083	dadkio.h	\
1084	fdisk.h
1085
1086# "cmdk" headers used on i386
1087DKTPHDRS=		\
1088	altsctr.h	\
1089	bbh.h		\
1090	cm.h		\
1091	cmdev.h		\
1092	cmdk.h		\
1093	cmpkt.h		\
1094	controller.h	\
1095	dadev.h		\
1096	dadk.h		\
1097	dadkio.h	\
1098	fctypes.h	\
1099	fdisk.h		\
1100	flowctrl.h	\
1101	gda.h		\
1102	quetypes.h	\
1103	queue.h		\
1104	tgcom.h		\
1105	tgdk.h
1106
1107# "pc" header files used on i386
1108PCHDRS=			\
1109	avintr.h	\
1110	dma_engine.h	\
1111	i8272A.h	\
1112	pcic_reg.h	\
1113	pcic_var.h	\
1114	pic.h		\
1115	pit.h		\
1116	rtc.h
1117
1118NXGEHDRS=			\
1119	nxge.h			\
1120	nxge_common.h		\
1121	nxge_common_impl.h	\
1122	nxge_defs.h		\
1123	nxge_hw.h		\
1124	nxge_impl.h		\
1125	nxge_ipp.h		\
1126	nxge_ipp_hw.h		\
1127	nxge_mac.h		\
1128	nxge_mac_hw.h		\
1129	nxge_fflp.h		\
1130	nxge_fflp_hw.h		\
1131	nxge_mii.h		\
1132	nxge_rxdma.h		\
1133	nxge_rxdma_hw.h		\
1134	nxge_txc.h		\
1135	nxge_txc_hw.h		\
1136	nxge_txdma.h		\
1137	nxge_txdma_hw.h		\
1138	nxge_virtual.h		\
1139	nxge_espc.h
1140
1141include Makefile.syshdrs
1142
1143dcam/%.check:	dcam/%.h
1144	$(DOT_H_CHECK)
1145
1146CHECKHDRS=						\
1147	$($(MACH)_HDRS:%.h=%.check)			\
1148	$(AUDIOHDRS:%.h=audio/%.check)			\
1149	$(AVHDRS:%.h=av/%.check)			\
1150	$(BSCHDRS:%.h=%.check)				\
1151	$(CHKHDRS:%.h=%.check)				\
1152	$(CPUDRVHDRS:%.h=%.check)			\
1153	$(CRYPTOHDRS:%.h=crypto/%.check)		\
1154	$(DCAMHDRS:%.h=dcam/%.check)			\
1155	$(FC4HDRS:%.h=fc4/%.check)			\
1156	$(FCHDRS:%.h=fibre-channel/%.check)		\
1157	$(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)	\
1158	$(FCULPHDRS:%.h=fibre-channel/ulp/%.check)	\
1159	$(IBHDRS:%.h=ib/%.check)			\
1160	$(IBDHDRS:%.h=ib/clients/ibd/%.check)		\
1161	$(IBTLHDRS:%.h=ib/ibtl/%.check)			\
1162	$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)	\
1163	$(IBNEXHDRS:%.h=ib/ibnex/%.check)	\
1164	$(IBMGTHDRS:%.h=ib/mgt/%.check)			\
1165	$(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)		\
1166	$(OFHDRS:%.h=ib/clients/of/%.check)			\
1167	$(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)		\
1168	$(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)	\
1169	$(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)	\
1170	$(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)	\
1171	$(TAVORHDRS:%.h=ib/adapters/tavor/%.check)	\
1172	$(HERMONHDRS:%.h=ib/adapters/hermon/%.check)	\
1173	$(MLNXHDRS:%.h=ib/adapters/%.check)		\
1174	$(IDMHDRS:%.h=idm/%.check)			\
1175	$(ISCSIHDRS:%.h=iscsi/%.check)			\
1176	$(ISCSITHDRS:%.h=iscsit/%.check)			\
1177	$(ISOHDRS:%.h=iso/%.check)			\
1178	$(FMHDRS:%.h=fm/%.check)			\
1179	$(FMFSHDRS:%.h=fm/fs/%.check)			\
1180	$(FMIOHDRS:%.h=fm/io/%.check)			\
1181	$(FSHDRS:%.h=fs/%.check)			\
1182	$(LVMHDRS:%.h=lvm/%.check)			\
1183	$(SCSIHDRS:%.h=scsi/%.check)			\
1184	$(SCSIADHDRS:%.h=scsi/adapters/%.check)		\
1185	$(SCSICONFHDRS:%.h=scsi/conf/%.check)		\
1186	$(SCSIIMPLHDRS:%.h=scsi/impl/%.check)		\
1187	$(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)	\
1188	$(SCSIGENHDRS:%.h=scsi/generic/%.check)		\
1189	$(SCSITARGETSHDRS:%.h=scsi/targets/%.check)	\
1190	$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)	\
1191	$(SATAGENHDRS:%.h=sata/%.check)			\
1192	$(SDCARDHDRS:%.h=sdcard/%.check)		\
1193	$(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1194	$(CONTRACTHDRS:%.h=contract/%.check)            \
1195	$(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1196	$(USBHUBDHDRS:%.h=usb/hubd/%.check)		\
1197	$(USBHIDHDRS:%.h=usb/clients/hid/%.check)	\
1198	$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)	\
1199	$(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1200	$(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)	\
1201	$(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1202	$(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)	\
1203	$(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1204	$(USBHDRS:%.h=usb/%.check)                      \
1205	$(I1394HDRS:%.h=1394/%.check)			\
1206	$(RSMHDRS:%.h=rsm/%.check)			\
1207	$(TSOLHDRS:%.h=tsol/%.check)			\
1208	$(NXGEHDRS:%.h=nxge/%.check)
1209
1210
1211.KEEP_STATE:
1212
1213.PARALLEL:			\
1214	$(CHECKHDRS)		\
1215	$(ROOTHDRS)		\
1216	$(ROOTAUDHDRS)		\
1217	$(ROOTAVHDRS)		\
1218	$(ROOTCRYPTOHDRS)	\
1219	$(ROOTDCAMHDRS)		\
1220	$(ROOTISOHDRS)		\
1221	$(ROOTIDMHDRS)		\
1222	$(ROOTISCSIHDRS)	\
1223	$(ROOTISCSITHDRS)	\
1224	$(ROOTFC4HDRS)		\
1225	$(ROOTFCHDRS)		\
1226	$(ROOTFCIMPLHDRS)	\
1227	$(ROOTFCULPHDRS)	\
1228	$(ROOTFMHDRS)		\
1229	$(ROOTFMIOHDRS)		\
1230	$(ROOTFMFSHDRS)		\
1231	$(ROOTFSHDRS)		\
1232	$(ROOTIBDHDRS)		\
1233	$(ROOTIBHDRS)		\
1234	$(ROOTIBTLHDRS)		\
1235	$(ROOTIBTLIMPLHDRS)	\
1236	$(ROOTIBNEXHDRS)	\
1237	$(ROOTIBMGTHDRS)	\
1238	$(ROOTIBMFHDRS)		\
1239	$(ROOTOFHDRS)		\
1240	$(ROOTRDMAHDRS)		\
1241	$(ROOTSOL_OFSHDRS)	\
1242	$(ROOTSOL_UMADHDRS)	\
1243	$(ROOTSOL_UVERBSHDRS)	\
1244	$(ROOTSOL_UCMAHDRS)	\
1245	$(ROOTTAVORHDRS)	\
1246	$(ROOTHERMONHDRS)	\
1247	$(ROOTMLNXHDRS)		\
1248	$(ROOTLVMHDRS)		\
1249	$(ROOTSCSIHDRS)		\
1250	$(ROOTSCSIADHDRS)	\
1251	$(ROOTSCSICONFHDRS)	\
1252	$(ROOTSCSIISCSIHDRS)	\
1253	$(ROOTSCSIGENHDRS)	\
1254	$(ROOTSCSIIMPLHDRS)	\
1255	$(ROOTSCSIVHCIHDRS)	\
1256	$(ROOTSDCARDHDRS)	\
1257	$(ROOTSYSEVENTHDRS)     \
1258	$(ROOTCONTRACTHDRS)     \
1259	$(ROOTUSBHDRS)		\
1260	$(ROOTUWBHDRS)		\
1261	$(ROOTUWBAHDRS)		\
1262	$(ROOTUSBAUDHDRS)	\
1263	$(ROOTUSBHUBDHDRS)	\
1264	$(ROOTUSBHIDHDRS)	\
1265	$(ROOTUSBHRCHDRS)	\
1266	$(ROOTUSBMSHDRS)	\
1267	$(ROOTUSBPRNHDRS)       \
1268	$(ROOTUSBCDCHDRS)       \
1269	$(ROOTUSBVIDHDRS)       \
1270	$(ROOTUSBWCMHDRS)	\
1271	$(ROOTUGENHDRS)		\
1272	$(ROOT1394HDRS)         \
1273	$(ROOTHOTPLUGHDRS)	\
1274	$(ROOTHOTPLUGPCIHDRS)	\
1275	$(ROOTRSMHDRS)		\
1276	$(ROOTTSOLHDRS)		\
1277	$($(MACH)_ROOTHDRS)
1278
1279
1280install_h:			\
1281	$(ROOTDIRS)		\
1282	LVMDERIVED_H		\
1283	.WAIT			\
1284	$(ROOTHDRS)		\
1285	$(ROOTAUDHDRS)		\
1286	$(ROOTAVHDRS)		\
1287	$(ROOTCRYPTOHDRS)	\
1288	$(ROOTDCAMHDRS)		\
1289	$(ROOTISOHDRS)		\
1290	$(ROOTIDMHDRS)		\
1291	$(ROOTISCSIHDRS)	\
1292	$(ROOTISCSITHDRS)	\
1293	$(ROOTFC4HDRS)		\
1294	$(ROOTFCHDRS)		\
1295	$(ROOTFCIMPLHDRS)	\
1296	$(ROOTFCULPHDRS)	\
1297	$(ROOTFMHDRS)		\
1298	$(ROOTFMFSHDRS)		\
1299	$(ROOTFMIOHDRS)		\
1300	$(ROOTFSHDRS)		\
1301	$(ROOTIBDHDRS)		\
1302	$(ROOTIBHDRS)		\
1303	$(ROOTIBTLHDRS)		\
1304	$(ROOTIBTLIMPLHDRS)	\
1305	$(ROOTIBNEXHDRS)	\
1306	$(ROOTIBMGTHDRS)	\
1307	$(ROOTIBMFHDRS)		\
1308	$(ROOTOFHDRS)		\
1309	$(ROOTRDMAHDRS)		\
1310	$(ROOTSOL_OFSHDRS)	\
1311	$(ROOTSOL_UMADHDRS)	\
1312	$(ROOTSOL_UVERBSHDRS)	\
1313	$(ROOTSOL_UCMAHDRS)	\
1314	$(ROOTTAVORHDRS)	\
1315	$(ROOTHERMONHDRS)	\
1316	$(ROOTMLNXHDRS)		\
1317	$(ROOTLVMHDRS)		\
1318	$(ROOTSCSIHDRS)		\
1319	$(ROOTSCSIADHDRS)	\
1320	$(ROOTSCSIISCSIHDRS)	\
1321	$(ROOTSCSICONFHDRS)	\
1322	$(ROOTSCSIGENHDRS)	\
1323	$(ROOTSCSIIMPLHDRS)	\
1324	$(ROOTSCSIVHCIHDRS)     \
1325	$(ROOTSDCARDHDRS)	\
1326	$(ROOTSYSEVENTHDRS)     \
1327	$(ROOTCONTRACTHDRS)     \
1328	$(ROOTUWBHDRS)		\
1329	$(ROOTUWBAHDRS)		\
1330	$(ROOTUSBHDRS)		\
1331	$(ROOTUSBAUDHDRS)	\
1332	$(ROOTUSBHUBDHDRS)	\
1333	$(ROOTUSBHIDHDRS)	\
1334	$(ROOTUSBHRCHDRS)	\
1335	$(ROOTUSBMSHDRS)	\
1336	$(ROOTUSBPRNHDRS)       \
1337	$(ROOTUSBCDCHDRS)       \
1338	$(ROOTUSBVIDHDRS)       \
1339	$(ROOTUSBWCMHDRS)	\
1340	$(ROOTUGENHDRS)		\
1341	$(ROOT1394HDRS)         \
1342	$(ROOTHOTPLUGHDRS)	\
1343	$(ROOTHOTPLUGPCIHDRS)	\
1344	$(ROOTRSMHDRS)		\
1345	$(ROOTTSOLHDRS)		\
1346	$($(MACH)_ROOTHDRS)
1347
1348all_h: $(GENHDRS)
1349
1350priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1351	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1352
1353priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1354	$(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1355
1356usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1357	$(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1358
1359LVMDERIVED_H:
1360	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1361
1362clean:
1363	$(RM) $(GENHDRS)
1364
1365clobber: clean
1366	cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1367
1368check:	$(CHECKHDRS)
1369
1370FRC:
1371