uart8250.h 426 B

12345678910111213141516171819202122
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2019 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __SERIAL_UART8250_H__
  10. #define __SERIAL_UART8250_H__
  11. #include <sbi/sbi_types.h>
  12. void uart8250_putc(char ch);
  13. int uart8250_getc(void);
  14. int uart8250_init(unsigned long base, u32 in_freq, u32 baudrate, u32 reg_shift,
  15. u32 reg_width);
  16. #endif