Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
serial_8250.h File Reference
#include <linux/serial_core.h>
#include <linux/platform_device.h>

Go to the source code of this file.

Data Structures

struct  plat_serial8250_port
 
struct  uart_8250_port
 

Macros

#define LSR_SAVE_FLAGS   UART_LSR_BRK_ERROR_BITS
 
#define MSR_SAVE_FLAGS   UART_MSR_ANY_DELTA
 

Enumerations

enum  {
  PLAT8250_DEV_LEGACY = -1, PLAT8250_DEV_PLATFORM, PLAT8250_DEV_PLATFORM1, PLAT8250_DEV_PLATFORM2,
  PLAT8250_DEV_FOURPORT, PLAT8250_DEV_ACCENT, PLAT8250_DEV_BOCA, PLAT8250_DEV_EXAR_ST16C554,
  PLAT8250_DEV_HUB6, PLAT8250_DEV_AU1X00, PLAT8250_DEV_SM501
}
 

Functions

int serial8250_register_8250_port (struct uart_8250_port *)
 
void serial8250_unregister_port (int line)
 
void serial8250_suspend_port (int line)
 
void serial8250_resume_port (int line)
 
int early_serial_setup (struct uart_port *port)
 
int serial8250_find_port (struct uart_port *p)
 
int serial8250_find_port_for_earlycon (void)
 
int setup_early_serial8250_console (char *cmdline)
 
void serial8250_do_set_termios (struct uart_port *port, struct ktermios *termios, struct ktermios *old)
 
void serial8250_do_pm (struct uart_port *port, unsigned int state, unsigned int oldstate)
 
int fsl8250_handle_irq (struct uart_port *port)
 
int serial8250_handle_irq (struct uart_port *port, unsigned int iir)
 
unsigned char serial8250_rx_chars (struct uart_8250_port *up, unsigned char lsr)
 
void serial8250_tx_chars (struct uart_8250_port *up)
 
unsigned int serial8250_modem_status (struct uart_8250_port *up)
 
void serial8250_set_isa_configurator (void(*v)(int port, struct uart_port *up, unsigned short *capabilities))
 

Macro Definition Documentation

#define LSR_SAVE_FLAGS   UART_LSR_BRK_ERROR_BITS

Definition at line 89 of file serial_8250.h.

#define MSR_SAVE_FLAGS   UART_MSR_ANY_DELTA

Definition at line 91 of file serial_8250.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
PLAT8250_DEV_LEGACY 
PLAT8250_DEV_PLATFORM 
PLAT8250_DEV_PLATFORM1 
PLAT8250_DEV_PLATFORM2 
PLAT8250_DEV_FOURPORT 
PLAT8250_DEV_ACCENT 
PLAT8250_DEV_BOCA 
PLAT8250_DEV_EXAR_ST16C554 
PLAT8250_DEV_HUB6 
PLAT8250_DEV_AU1X00 
PLAT8250_DEV_SM501 

Definition at line 48 of file serial_8250.h.

Function Documentation

int early_serial_setup ( struct uart_port port)

Definition at line 2920 of file 8250.c.

int fsl8250_handle_irq ( struct uart_port port)

Definition at line 26 of file 8250_fsl.c.

void serial8250_do_pm ( struct uart_port port,
unsigned int  state,
unsigned int  oldstate 
)

Definition at line 2418 of file 8250.c.

void serial8250_do_set_termios ( struct uart_port port,
struct ktermios termios,
struct ktermios old 
)

Definition at line 2206 of file 8250.c.

int serial8250_find_port ( struct uart_port p)
int serial8250_find_port_for_earlycon ( void  )

Definition at line 264 of file 8250_early.c.

int serial8250_handle_irq ( struct uart_port port,
unsigned int  iir 
)

Definition at line 1484 of file 8250.c.

unsigned int serial8250_modem_status ( struct uart_8250_port up)

Definition at line 1456 of file 8250.c.

int serial8250_register_8250_port ( struct uart_8250_port up)

serial8250_register_8250_port - register a serial port : serial port template

Configure the serial port specified by the request. If the port exists and is in use, it is hung up and unregistered first.

The port is then probed and if necessary the IRQ is autodetected If this fails an error is returned.

On success the port is ready to use and the line number is returned.

Definition at line 3151 of file 8250.c.

void serial8250_resume_port ( int  line)

serial8250_resume_port - resume one serial port serial line number

Resume one serial port.

Definition at line 2973 of file 8250.c.

unsigned char serial8250_rx_chars ( struct uart_8250_port up,
unsigned char  lsr 
)

Definition at line 1342 of file 8250.c.

void serial8250_set_isa_configurator ( void(*)(int port, struct uart_port *up, unsigned short *capabilities v)

Definition at line 2673 of file 8250.c.

void serial8250_suspend_port ( int  line)

serial8250_suspend_port - suspend one serial port serial line number

Suspend one serial port.

Definition at line 2962 of file 8250.c.

void serial8250_tx_chars ( struct uart_8250_port up)

Definition at line 1416 of file 8250.c.

void serial8250_unregister_port ( int  line)

serial8250_unregister_port - remove a 16x50 serial port at runtime serial line number

Remove one serial port. This may not be called from interrupt context. We hand the port back to the our control.

Definition at line 3225 of file 8250.c.

int setup_early_serial8250_console ( char cmdline)

Definition at line 242 of file 8250_early.c.