554e6778b6
For GEN1 Hyper-V, vmbus is attached to pcib0, which contains the resources for PCI passthrough and SR-IOV. There is no acpi_syscontainer0 on GEN1 Hyper-V. For GEN2 Hyper-V, vmbus is attached to acpi_syscontainer0, which contains the resources for PCI passthrough and SR-IOV. There is no pcib0 on GEN2 Hyper-V. The ACPI VMBUS device now only holds its _CRS, which is empty as of this commit; its existence is mainly for upward compatibility. Device tree structure is suggested by jhb@. Tested-by: dexuan@ Collabrated-wth: dexuan@ MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D10565
36 lines
746 B
Makefile
36 lines
746 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/dev/hyperv/vmbus \
|
|
${SRCTOP}/sys/dev/hyperv/vmbus/${MACHINE_CPUARCH}
|
|
|
|
KMOD= hv_vmbus
|
|
SRCS= hyperv.c \
|
|
hyperv_busdma.c \
|
|
hyperv_machdep.c \
|
|
vmbus.c \
|
|
vmbus_br.c \
|
|
vmbus_chan.c \
|
|
vmbus_et.c \
|
|
vmbus_if.c \
|
|
vmbus_res.c \
|
|
vmbus_xact.c
|
|
SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h
|
|
|
|
# XXX: for assym.s
|
|
SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h opt_compat.h
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
SRCS+= opt_apic.h
|
|
.endif
|
|
|
|
SRCS+= assym.s \
|
|
vmbus_vector.S
|
|
|
|
vmbus_vector.o:
|
|
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
|
|
${.IMPSRC} -o ${.TARGET}
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
|
|
-I${SRCTOP}/sys/dev/hyperv/vmbus
|
|
|
|
.include <bsd.kmod.mk>
|