Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/uart/uart_cpu_arm64.c
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | uart_cpu_acpi_probe(struct uart_class **classp, bus_space_tag_t *bst, | ||||
if (err != 0) | if (err != 0) | ||||
goto out; | goto out; | ||||
*classp = cd->cd_class; | *classp = cd->cd_class; | ||||
*rclk = 0; | *rclk = 0; | ||||
*shiftp = spcr->SerialPort.AccessWidth - 1; | *shiftp = spcr->SerialPort.AccessWidth - 1; | ||||
*iowidthp = spcr->SerialPort.BitWidth / 8; | *iowidthp = spcr->SerialPort.BitWidth / 8; | ||||
if ((cd->cd_quirks & UART_F_IGNORE_SPCR_REGSHFT) == | |||||
UART_F_IGNORE_SPCR_REGSHFT) { | |||||
*shiftp = cd->cd_regshft; | |||||
} | |||||
out: | out: | ||||
acpi_unmap_table(spcr); | acpi_unmap_table(spcr); | ||||
return (err); | return (err); | ||||
} | } | ||||
#endif | #endif | ||||
int | int | ||||
uart_cpu_getdev(int devtype, struct uart_devinfo *di) | uart_cpu_getdev(int devtype, struct uart_devinfo *di) | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |