]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use ACPI SPCR on x86
authorcperciva <cperciva@FreeBSD.org>
Thu, 23 May 2019 19:55:53 +0000 (19:55 +0000)
committercperciva <cperciva@FreeBSD.org>
Thu, 23 May 2019 19:55:53 +0000 (19:55 +0000)
commit774c078edd3ff25063e9383a918a4e365b95706e
tree8a98679327f70e84e5f4b0e703e749338f5454e7
parent6fbab7eb4f942eea26206e4570d4073e71cf7205
Use ACPI SPCR on x86

This takes the SPCR code currently in uart_cpu_arm64.c, moves it into
a new uart_cpu_acpi.c (with some associated refactoring), and uses it
from both arm64 and x86.

An SPCR serial port address AccessWidth field value of 0 ("reserved")
is now treated as 1 ("byte access") in order to work around a buggy
SPCR table on Amazon EC2 i3.metal instances.

Reviewed by: manu, Greg V
MFC after: 3 days
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D20357
sys/conf/files
sys/dev/uart/uart_cpu_acpi.c [new file with mode: 0644]
sys/dev/uart/uart_cpu_acpi.h
sys/dev/uart/uart_cpu_arm64.c
sys/dev/uart/uart_cpu_x86.c