Deleted Added
full compact
2c2
< * Copyright (c) 2003 Marcel Moolenaar
---
> * Copyright (c) 2003, 2004 Marcel Moolenaar
28c28
< __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_ia64.c 120452 2003-09-26 05:14:56Z marcel $");
---
> __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_ia64.c 127215 2004-03-20 02:14:02Z marcel $");
41a42,44
> bus_space_tag_t uart_bus_space_io = IA64_BUS_SPACE_IO;
> bus_space_tag_t uart_bus_space_mem = IA64_BUS_SPACE_MEM;
>
60c63
< unsigned int i, ivar;
---
> unsigned int i;
83c86
< ? IA64_BUS_SPACE_MEM : IA64_BUS_SPACE_IO;
---
> ? uart_bus_space_mem : uart_bus_space_io;
101,143c104,105
< /*
< * Scan the hints for backward compatibility. We only try units
< * 0 to 3 (inclusive). This covers the ISA legacy where 4 UARTs
< * had their resources predefined.
< */
< for (i = 0; i < 4; i++) {
< if (resource_int_value("uart", i, "flags", &ivar))
< continue;
< if (devtype == UART_DEV_CONSOLE && !UART_FLAGS_CONSOLE(ivar))
< continue;
< if (devtype == UART_DEV_DBGPORT && !UART_FLAGS_DBGPORT(ivar))
< continue;
< /*
< * We have a possible device. Make sure it's enabled and
< * that we have an I/O port.
< */
< if (resource_int_value("uart", i, "disabled", &ivar) == 0 &&
< ivar != 0)
< continue;
< if (resource_int_value("uart", i, "port", &ivar) != 0 ||
< ivar == 0)
< continue;
< /*
< * Got it. Fill in the instance and return it. We only have
< * ns8250 and successors on i386.
< */
< di->ops = uart_ns8250_ops;
< di->bas.chan = 0;
< di->bas.bst = IA64_BUS_SPACE_IO;
< if (bus_space_map(di->bas.bst, ivar, 8, 0, &di->bas.bsh) != 0)
< continue;
< di->bas.regshft = 0;
< di->bas.rclk = 0;
< if (resource_int_value("uart", i, "baud", &ivar) != 0)
< ivar = 0;
< di->baudrate = ivar;
< di->databits = 8;
< di->stopbits = 1;
< di->parity = UART_PARITY_NONE;
< return (0);
< }
<
< return (ENXIO);
---
> /* Check the environment. */
> return (uart_getenv(devtype, di));