RTEMS 6.1-rc5
|
This source file contains definitions of BSP_output_char_function_type and :: BSP_output_char and an implementation of console_initialize(). More...
#include <rtems/bspIo.h>
#include <rtems/console.h>
#include <rtems/sysinit.h>
#include <rtems/termiostypes.h>
#include <bsp/fatal.h>
#include <bsp/fdt.h>
#include <bsp/irq.h>
#include <bsp/riscv.h>
#include <dev/serial/htif.h>
#include <libchip/ns16550.h>
#include <libfdt.h>
#include <string.h>
Functions | |
rtems_status_code | console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg) |
Console initialization entry point. | |
RTEMS_SYSINIT_ITEM (riscv_console_probe, RTEMS_SYSINIT_BSP_START, RTEMS_SYSINIT_ORDER_LAST_BUT_5) | |
Variables | |
BSP_output_char_function_type | BSP_output_char = riscv_output_char_init |
This function pointer references the kernel character output implementation. | |
BSP_polling_getchar_function_type | BSP_poll_char = NULL |
This function pointer may reference the kernel character input implementation. | |
This source file contains definitions of BSP_output_char_function_type and :: BSP_output_char and an implementation of console_initialize().
rtems_status_code console_initialize | ( | rtems_device_major_number | major, |
rtems_device_minor_number | minor, | ||
void * | arg | ||
) |
Console initialization entry point.
This method initializes the console device driver.
[in] | major | is the device driver major number. |
[in] | minor | is the device driver minor number. |
[in] | arg | is the parameters to this call. |
RTEMS_SUCCESSFUL | The device driver is successfully initialized. |
Console initialization entry point.
Initialize all serial drivers specified in driver_context_table
[in] | major | |
[in] | minor | |
[in] | arg |
RTEMS_SUCCESSFUL | Initialization completed |
This routine initializes the console IO driver.
Parameters
major | major number |
minor | minor number |
Output parameters: NONE