28c28
< __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_pc98.c 153363 2005-12-12 21:00:58Z imp $");
---
> __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_pc98.c 168281 2007-04-02 22:00:22Z marcel $");
51a52
> struct uart_class *class;
53a55,58
> class = &uart_ns8250_class;
> if (class == NULL)
> return (ENXIO);
>
55,56c60
< di->ops = uart_ns8250_ops;
< if (uart_getenv(devtype, di) == 0)
---
> if (uart_getenv(devtype, di, class) == 0)
84c88
< di->ops = uart_ns8250_ops;
---
> di->ops = uart_getops(class);
87c91,92
< if (bus_space_map(di->bas.bst, ivar, 8, 0, &di->bas.bsh) != 0)
---
> if (bus_space_map(di->bas.bst, ivar, uart_getrange(class), 0,
> &di->bas.bsh) != 0)
< __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_pc98.c 153363 2005-12-12 21:00:58Z imp $");
---
> __FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_pc98.c 168281 2007-04-02 22:00:22Z marcel $");
51a52
> struct uart_class *class;
53a55,58
> class = &uart_ns8250_class;
> if (class == NULL)
> return (ENXIO);
>
55,56c60
< di->ops = uart_ns8250_ops;
< if (uart_getenv(devtype, di) == 0)
---
> if (uart_getenv(devtype, di, class) == 0)
84c88
< di->ops = uart_ns8250_ops;
---
> di->ops = uart_getops(class);
87c91,92
< if (bus_space_map(di->bas.bst, ivar, 8, 0, &di->bas.bsh) != 0)
---
> if (bus_space_map(di->bas.bst, ivar, uart_getrange(class), 0,
> &di->bas.bsh) != 0)