Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_cpu_x86.c
Context not available. | |||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
#include "opt_acpi.h" | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
Context not available. | |||||
#include <dev/uart/uart.h> | #include <dev/uart/uart.h> | ||||
#include <dev/uart/uart_cpu.h> | #include <dev/uart/uart_cpu.h> | ||||
#include <dev/uart/uart_cpu_acpi.h> | |||||
bus_space_tag_t uart_bus_space_io = X86_BUS_SPACE_IO; | bus_space_tag_t uart_bus_space_io = X86_BUS_SPACE_IO; | ||||
bus_space_tag_t uart_bus_space_mem = X86_BUS_SPACE_MEM; | bus_space_tag_t uart_bus_space_mem = X86_BUS_SPACE_MEM; | ||||
Context not available. | |||||
if (uart_getenv(devtype, di, class) == 0) | if (uart_getenv(devtype, di, class) == 0) | ||||
return (0); | return (0); | ||||
#ifdef DEV_ACPI | |||||
/* Check if SPCR can tell us what console to use. */ | |||||
if (uart_cpu_acpi_spcr(devtype, di) == 0) | |||||
return (0); | |||||
#endif | |||||
/* | /* | ||||
* Scan the hints. We only try units 0 to 3 (inclusive). This | * Scan the hints. We only try units 0 to 3 (inclusive). This | ||||
* covers the ISA legacy where 4 UARTs had their resources | * covers the ISA legacy where 4 UARTs had their resources | ||||
Context not available. |