File: serial8250_uart.h

package info (click to toggle)
optee-os 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,960 kB
  • sloc: ansic: 444,388; asm: 12,922; python: 3,719; makefile: 1,681; sh: 238
file content (22 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2015, Linaro Limited
 */
#ifndef __DRIVERS_SERIAL8250_UART_H
#define __DRIVERS_SERIAL8250_UART_H

#include <types_ext.h>
#include <drivers/serial.h>

#define SERIAL8250_UART_REG_SIZE 0x20

struct serial8250_uart_data {
	struct io_pa_va base;
	struct serial_chip chip;
};

void serial8250_uart_init(struct serial8250_uart_data *pd, paddr_t base,
			  uint32_t uart_clk, uint32_t baud_rate);

#endif /* __DRIVERS_SERIAL8250_UART_H */