RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions | Variables
serial.h File Reference

The generic libchip serial driver interface. More...

#include <termios.h>
#include <rtems.h>

Go to the source code of this file.

Data Structures

struct  _console_fns
 
struct  _console_flow
 
struct  _console_tbl
 
struct  _console_data
 

Typedefs

typedef uint8_t(* getRegister_f) (uintptr_t port, uint8_t reg)
 
typedef void(* setRegister_f) (uintptr_t port, uint8_t reg, uint8_t value)
 
typedef uint8_t(* getData_f) (uintptr_t port)
 
typedef void(* setData_f) (uintptr_t port, uint8_t value)
 
typedef struct _console_fns console_fns
 
typedef struct _console_flow console_flow
 
typedef struct _console_tbl console_tbl
 
typedef struct _console_data console_data
 

Enumerations

enum  console_devs {
  SERIAL_MC68681 , SERIAL_NS16550 , SERIAL_NS16550_WITH_FDR , SERIAL_Z85C30 ,
  SERIAL_CUSTOM
}
 

Functions

void bsp_console_select (void)
 Selects the minor number of the console device.
 

Variables

console_tbl ** Console_Port_Tbl
 
unsigned long Console_Port_Count
 
console_tbl Console_Configuration_Ports []
 
unsigned long Console_Configuration_Count
 
console_dataConsole_Port_Data
 
rtems_device_minor_number Console_Port_Minor
 

Detailed Description

The generic libchip serial driver interface.

Typedef Documentation

◆ console_data

typedef struct _console_data console_data

This type defination provides data for the console port.

◆ console_tbl

typedef struct _console_tbl console_tbl

This type defination provides an structure that is used to uniquely identify a specific serial port.

◆ getData_f

getData_f

This type function provides a hook for the bsp specific method that gets data from the specified port.

◆ setData_f

setData_f

This type function provides a hook for the bsp specific method that sets register data from the given port and register to the given value.

This type function provides a hook for the bsp specific method that writes value to the specified port.

Enumeration Type Documentation

◆ console_devs

This type defination provides an enumerated type of all supported libchip console drivers.

Function Documentation

◆ bsp_console_select()

void bsp_console_select ( void  )

Selects the minor number of the console device.

See also
Console_Port_Minor.

Variable Documentation

◆ Console_Configuration_Count

unsigned long Console_Configuration_Count
extern

The number of serial ports defined in Console_Configuration_Ports

◆ Console_Configuration_Ports

console_tbl Console_Configuration_Ports[]
extern

The statically configured serial port information tables which are used to initially populate the dynamic tables.

◆ Console_Port_Count

unsigned long Console_Port_Count
extern

This is the number of serial ports defined in the Console_Port_Tbl.

◆ Console_Port_Data

console_data* Console_Port_Data
extern

This is an array of per port information.

◆ Console_Port_Tbl

console_tbl** Console_Port_Tbl
extern

This is a dynamically sized set of tables containing the serial port information.