RTEMS CPU Kit with SuperCore  4.11.2
Macros | Functions
console.h File Reference

Console Driver for all Boards. More...

#include <rtems/io.h>
Include dependency graph for console.h:

Go to the source code of this file.

Macros

#define CONSOLE_DEVICE_NAME   "/dev/console"
 This macro defines the standard name for the console device that is available to applications.
 
#define CONSOLE_DRIVER_TABLE_ENTRY
 This macro defines the standard device driver table entry for a console device driver. More...
 

Functions

rtems_device_driver console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console initialization entry point. More...
 
rtems_device_driver console_open (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console open entry point. More...
 
rtems_device_driver console_close (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console close entry point. More...
 
rtems_device_driver console_read (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console read entry point. More...
 
rtems_device_driver console_write (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console write entry point. More...
 
rtems_device_driver console_control (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console IO control entry point. More...
 

Detailed Description

Console Driver for all Boards.

This file describes the Console Device Driver for all boards. This driver provides support for the standard C Library.

Macro Definition Documentation

◆ CONSOLE_DRIVER_TABLE_ENTRY

#define CONSOLE_DRIVER_TABLE_ENTRY
Value:
console_read, console_write, console_control }
rtems_device_driver console_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console IO control entry point.
rtems_device_driver console_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console write entry point.
rtems_device_driver console_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console initialization entry point.
rtems_device_driver console_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console close entry point.
rtems_device_driver console_open(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console open entry point.

This macro defines the standard device driver table entry for a console device driver.

Function Documentation

◆ console_close()

rtems_device_driver console_close ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console close entry point.

This method closes a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device driver is successfully closed.

◆ console_control()

rtems_device_driver console_control ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console IO control entry point.

This method performs an IO Control operation on a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULthe device driver IO control operation is successfully performed.

◆ console_initialize()

rtems_device_driver 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.

Parameters
[in]majoris the device driver major number.
[in]minoris the device driver minor number.
[in]argis the parameters to this call.
Return values
RTEMS_SUCCESSFULThe device driver is successfully initialized.

◆ console_open()

rtems_device_driver console_open ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console open entry point.

This method opens a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device driver is successfully opened.

◆ console_read()

rtems_device_driver console_read ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console read entry point.

This method reads from a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device is successfully read from.

◆ console_write()

rtems_device_driver console_write ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console write entry point.

This method writes to a specific device supported by the console device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Return values
RTEMS_SUCCESSFULThe device is successfully written.