9805 i40e should read SFP data when firmware supports it
[unleashed.git] / usr / src / uts / i86xpv / Makefile.files
bloba576b2f0a8ec53367a1a61e997c7fdc18e943570
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
25 # Copyright 2018 Joyent, Inc.
28 #       This Makefile defines file modules in the directory uts/i86xpv
29 #       and its children. These are the source files which are i86xpv
30 #       "implementation architecture" dependent.
34 #       object lists
36 CORE_OBJS +=                    \
37         acpi_stubs.o            \
38         balloon.o               \
39         biosdisk.o              \
40         cbe.o                   \
41         cmi.o                   \
42         cmi_hw.o                \
43         cms.o                   \
44         confunix.o              \
45         cpuid.o                 \
46         cpuid_subr.o            \
47         cpupm.o                 \
48         cpupm_mach.o            \
49         dis_tables.o            \
50         ddi_impl.o              \
51         dtrace_subr.o           \
52         dvma.o                  \
53         fakebop.o               \
54         fpu_subr.o              \
55         fastboot.o              \
56         fb_swtch.o              \
57         graphics.o              \
58         hardclk.o               \
59         hat_i86.o               \
60         hat_kdi.o               \
61         hment.o                 \
62         hold_page.o             \
63         hrtimers.o              \
64         htable.o                \
65         i86_mmu.o               \
66         ibft.o                  \
67         instr_size.o            \
68         intr.o                  \
69         kboot_mmu.o             \
70         kdi_idt.o               \
71         kdi_idthdl.o            \
72         kdi_asm.o               \
73         lgrpplat.o              \
74         mach_kdi.o              \
75         mach_sysconfig.o        \
76         machdep.o               \
77         mem_config_stubs.o      \
78         memnode.o               \
79         microcode.o             \
80         mlsetup.o               \
81         mp_call.o               \
82         mp_implfuncs.o          \
83         mp_machdep.o            \
84         mp_startup.o            \
85         memscrub.o              \
86         notes.o                 \
87         pci_bios.o              \
88         pci_cfgacc.o            \
89         pci_cfgacc_x86.o        \
90         pci_cfgspace.o          \
91         pci_mech1.o             \
92         pci_mech2.o             \
93         pci_neptune.o           \
94         pci_orion.o             \
95         pmem.o                  \
96         ppage.o                 \
97         startup.o               \
98         ssp.o                   \
99         xpv_timestamp.o         \
100         todpc_subr.o            \
101         trap.o                  \
102         vm_machdep.o            \
103         x_call.o
106 #       Add the SMBIOS subsystem object files directly to the list of objects
107 #       built into unix itself; this is all common code except for smb_dev.c.
109 CORE_OBJS += $(SMBIOS_OBJS)
112 # These get compiled twice:
113 # - once in the dboot (direct boot) identity mapped code 
114 # - once for use during early startup in unix
116 BOOT_DRIVER_OBJS =              \
117         boot_console.o          \
118         boot_keyboard.o         \
119         boot_keyboard_table.o   \
120         boot_mmu.o              \
121         boot_vga.o              \
122         boot_xconsole.o         \
123         dboot_multiboot2.o      \
124         $(FONT_OBJS)
126 CORE_OBJS += $(BOOT_DRIVER_OBJS)
129 # Extra XEN files separated out for now.
131 CORE_OBJS +=                    \
132         cpr_driver.o            \
133         evtchn.o                \
134         gnttab.o                \
135         hypercall.o             \
136         hyperevent.o            \
137         hypersubr.o             \
138         mp_xen.o                \
139         panic_asm.o             \
140         xenguest.o              \
141         xenbus_client.o         \
142         xenbus_comms.o          \
143         xenbus_probe.o          \
144         xenbus_xs.o             \
145         xen_machdep.o           \
146         xen_mmu.o               \
147         xpv_panic.o             \
148         xvdi.o
151 #       locore.o is special. It must be the first file relocated so that it
152 #       it is relocated just where its name implies.
154 SPECIAL_OBJS_32 +=              \
155         locore.o                \
156         fast_trap_asm.o         \
157         interrupt.o             \
158         syscall_asm.o
160 SPECIAL_OBJS_64 +=              \
161         locore.o                \
162         fast_trap_asm.o         \
163         interrupt.o             \
164         syscall_asm_amd64.o     \
165         kpti_trampolines.o
167 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
170 # object files used to boot into full kernel
172 DBOOT_OBJS_32 = muldiv.o
174 DBOOT_OBJS_64 =
176 DBOOT_OBJS +=                   \
177         dboot_asm.o             \
178         dboot_printf.o          \
179         dboot_startkern.o       \
180         dboot_xen.o             \
181         hypercall.o             \
182         hypersubr.o             \
183         memcpy.o                \
184         memset.o                \
185         string.o                \
186         $(BOOT_DRIVER_OBJS)     \
187         $(DBOOT_OBJS_$(CLASS))
190 #                       driver & misc modules
192 BALLOON_OBJS += balloon_drv.o
193 DOMCAPS_OBJS += domcaps.o
194 EVTCHN_OBJS += evtchn_dev.o
195 GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
196                     gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
197 IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
198 ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
199 PCI_E_NEXUS_OBJS += npe.o npe_misc.o
200 PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
201 PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
202 PRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
203 ROOTNEX_OBJS += rootnex.o
204 XPVTOD_OBJS += xpvtod.o
205 XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
206 XPV_PSM_OBJS += xpv_psm.o mp_platform_common.o mp_platform_xpv.o \
207                 apic_regops.o psm_common.o xpv_intr.o
208 XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
209 XENBUS_OBJS += xenbus_dev.o
210 XENCONS_OBJS += xencons.o
211 XPVD_OBJS += xpvd.o
212 XPVTAP_OBJS += xpvtap.o blk_common.o seg_mf.o
213 XNB_OBJS += xnb.o
214 XNBE_OBJS += xnbe.o
215 XNBO_OBJS += xnbo.o
216 XNBU_OBJS += xnbu.o
217 XNF_OBJS += xnf.o
218 XSVC_OBJS += xsvc.o
219 XDF_OBJS += xdf.o
220 XDB_OBJS += xdb.o
221 XDT_OBJS += xdt.o
224 #       Build up defines and paths.
226 INC_PATH        += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
227         -I$(UTSBASE)/common/xen
230 # Since the assym files are derived, the dependencies must be explicit for
231 # all files including this file. (This is only actually required in the
232 # instance when the .nse_depinfo file does not exist.) It may seem that
233 # the lint targets should also have a similar dependency, but they don't
234 # since only C headers are included when #defined(__lint) is true.
237 ASSYM_DEPS      +=              \
238         copy.o                  \
239         desctbls_asm.o          \
240         ddi_i86_asm.o           \
241         exception.o             \
242         fast_trap_asm.o         \
243         float.o                 \
244         hyperevent.o            \
245         i86_subr.o              \
246         kdi_asm.o               \
247         interrupt.o             \
248         lock_prim.o             \
249         locore.o                \
250         panic_asm.o             \
251         sseblk.o                \
252         swtch.o                 \
253         syscall_asm.o           \
254         syscall_asm_amd64.o
256 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h