MCPcopy Create free account
hub / github.com/F-Stack/f-stack / uart_cpu_init

Function uart_cpu_init

freebsd/mips/broadcom/uart_cpu_chipc.c:69–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static int
70uart_cpu_init(struct uart_devinfo *di, u_int uart, int baudrate)
71{
72 if (uart >= CHIPC_UART_MAX)
73 return (EINVAL);
74
75 di->ops = uart_getops(chipc_uart_class);
76 di->bas.chan = 0;
77 di->bas.bst = uart_bus_space_mem;
78 di->bas.bsh = (bus_space_handle_t) BCM_CORE_ADDR(bcm_get_platform(),
79 cc_addr, CHIPC_UART(uart));
80 di->bas.regshft = 0;
81 di->bas.rclk = bcm_get_uart_rclk(bcm_get_platform());
82 di->baudrate = baudrate;
83 di->databits = 8;
84 di->stopbits = 1;
85 di->parity = UART_PARITY_NONE;
86
87 return (0);
88}
89
90#ifdef CFE
91static int

Callers 2

uart_getenv_cfeFunction · 0.85
uart_cpu_getdevFunction · 0.85

Calls 2

bcm_get_platformFunction · 0.85
bcm_get_uart_rclkFunction · 0.85

Tested by

no test coverage detected