3 .PATH: ${SRCTOP}/sys/dev/uart
5 .if ${MACHINE_CPUARCH} == "sparc64"
6 uart_bus_ebus= uart_bus_ebus.c
9 .if ${MACHINE_CPUARCH} == "arm"
10 uart_dev_lpc= uart_dev_lpc.c
13 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
14 ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv" || \
15 ${MACHINE_CPUARCH} == "sparc64"
16 ofw_bus_if= ofw_bus_if.h
19 .if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
20 _uart_cpu=uart_cpu_x86.c
22 _uart_cpu=uart_cpu_${MACHINE}.c
24 .if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu})
25 uart_cpu_machine= ${_uart_cpu}
28 .if ${MACHINE} == "arm64"
29 uart_dev_mvebu=uart_dev_mvebu.c
33 SRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
34 uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
35 uart_core.c ${uart_cpu_machine} uart_dbg.c \
36 ${uart_dev_lpc} ${uart_dev_mvebu} uart_dev_ns8250.c uart_dev_quicc.c \
37 uart_dev_sab82532.c uart_dev_z8530.c \
38 uart_if.c uart_if.h uart_subr.c uart_tty.c
40 SRCS+= acpi_if.h bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} \
42 power_if.h pccarddevs.h serdev_if.h
43 SRCS+= opt_platform.h opt_uart.h
45 .include <bsd.kmod.mk>