Minor formatting changes. Also, elimiante a couple of unused variables.
This commit is contained in:
parent
c839424d34
commit
72bd8c62f6
@ -53,10 +53,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/uart/uart_bus.h>
|
||||
#include <dev/uart/uart_cpu.h>
|
||||
|
||||
/*
|
||||
* XXXMIPS:
|
||||
*/
|
||||
#include <mips/octeon1/octeonreg.h>
|
||||
|
||||
#include "uart_if.h"
|
||||
|
||||
extern struct uart_class uart_oct16550_class;
|
||||
|
||||
|
||||
static int uart_octeon_probe(device_t dev);
|
||||
static void octeon_uart_identify(driver_t * drv, device_t parent);
|
||||
|
||||
@ -77,7 +83,8 @@ static driver_t uart_octeon_driver = {
|
||||
sizeof(struct uart_softc),
|
||||
};
|
||||
|
||||
extern SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs;
|
||||
extern
|
||||
SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs;
|
||||
static int
|
||||
uart_octeon_probe(device_t dev)
|
||||
{
|
||||
@ -113,4 +120,3 @@ octeon_uart_identify (driver_t *drv, device_t parent)
|
||||
|
||||
|
||||
DRIVER_MODULE(uart, obio, uart_octeon_driver, uart_devclass, 0, 0);
|
||||
|
||||
|
@ -50,9 +50,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <mips/octeon1/octeonreg.h>
|
||||
|
||||
bus_space_tag_t uart_bus_space_io;
|
||||
bus_space_tag_t uart_bus_space_mem;
|
||||
|
||||
extern struct uart_class uart_oct16550_class;
|
||||
extern struct uart_ops octeon_usart_ops;
|
||||
extern struct bus_space octeon_bs_tag;
|
||||
|
||||
@ -66,18 +64,21 @@ uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
|
||||
int
|
||||
uart_cpu_getdev(int devtype, struct uart_devinfo *di)
|
||||
{
|
||||
di->ops = uart_getops(&uart_oct16550_class);
|
||||
di->bas.chan = 0;
|
||||
struct uart_class *class;
|
||||
|
||||
class = &uart_oct16550_class;
|
||||
di->ops = uart_getops(class);
|
||||
di->bas.bst = 0;
|
||||
di->bas.regshft = 3; /* Each UART reg is 8 byte addresss apart. 1 << 3 */
|
||||
di->bas.chan = 0;
|
||||
di->bas.regshft = 3; /* Each UART reg is 8 byte addresss apart. 1
|
||||
* << 3 */
|
||||
di->bas.rclk = 0;
|
||||
di->baudrate = 115200;
|
||||
di->databits = 8;
|
||||
di->stopbits = 1;
|
||||
di->parity = UART_PARITY_NONE;
|
||||
|
||||
uart_bus_space_io = MIPS_PHYS_TO_KSEG1(OCTEON_UART0ADR);
|
||||
uart_bus_space_mem = MIPS_PHYS_TO_KSEG1(OCTEON_UART0ADR);
|
||||
di->bas.bsh = OCTEON_UART0ADR;
|
||||
uart_getenv(devtype, di, class);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user