forked from Mirrors/opensbi

Instead of having console_putc() and console_getc() callbacks in platform operations, it will be much simpler for console driver to directly register these operations as device to the sbi_console implementation. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Xiang W <wxjstz@126.com>
23 lines
418 B
C
23 lines
418 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2020 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __FDT_SERIAL_H__
|
|
#define __FDT_SERIAL_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
struct fdt_serial {
|
|
const struct fdt_match *match_table;
|
|
int (*init)(void *fdt, int nodeoff, const struct fdt_match *match);
|
|
};
|
|
|
|
int fdt_serial_init(void);
|
|
|
|
#endif
|