Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sn_console.c File Reference
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial.h>
#include <linux/console.h>
#include <linux/module.h>
#include <linux/sysrq.h>
#include <linux/circ_buf.h>
#include <linux/serial_reg.h>
#include <linux/delay.h>
#include <linux/miscdevice.h>
#include <linux/serial_core.h>
#include <asm/io.h>
#include <asm/sn/simulator.h>
#include <asm/sn/sn_sal.h>

Go to the source code of this file.

Data Structures

struct  sn_cons_port
 
struct  sn_cons_port::sn_sal_ops
 

Macros

#define SN_SAL_MAX_CHARS   120
 
#define SN_SAL_BUFFER_SIZE   (64 * (1 << 10))
 
#define SN_SAL_UART_FIFO_DEPTH   16
 
#define SN_SAL_UART_FIFO_SPEED_CPS   (9600/10)
 
#define TRANSMIT_BUFFERED   0
 
#define TRANSMIT_RAW   1
 
#define USE_DYNAMIC_MINOR   0 /* Don't rely on misc_register dynamic minor */
 
#define DEVICE_NAME   "ttySG"
 
#define DEVICE_NAME_DYNAMIC   "ttySG0" /* need full name for misc_register */
 
#define DEVICE_MAJOR   204
 
#define DEVICE_MINOR   40
 
#define DPRINTF(x...)   do { } while (0)
 
#define SAL_CONSOLE   &sal_console
 

Functions

void early_sn_setup (void)
 
struct tty_driveruart_console_device (struct console *, int *)
 
 module_init (sn_sal_module_init)
 
 module_exit (sn_sal_module_exit)
 
int __init sn_serial_console_early_setup (void)
 
 console_initcall (sn_sal_serial_console_init)
 

Macro Definition Documentation

#define DEVICE_MAJOR   204

Definition at line 80 of file sn_console.c.

#define DEVICE_MINOR   40

Definition at line 81 of file sn_console.c.

#define DEVICE_NAME   "ttySG"

Definition at line 77 of file sn_console.c.

#define DEVICE_NAME_DYNAMIC   "ttySG0" /* need full name for misc_register */

Definition at line 78 of file sn_console.c.

#define DPRINTF (   x...)    do { } while (0)

Definition at line 119 of file sn_console.c.

#define SAL_CONSOLE   &sal_console

Definition at line 777 of file sn_console.c.

#define SN_SAL_BUFFER_SIZE   (64 * (1 << 10))

Definition at line 62 of file sn_console.c.

#define SN_SAL_MAX_CHARS   120

Definition at line 58 of file sn_console.c.

#define SN_SAL_UART_FIFO_DEPTH   16

Definition at line 64 of file sn_console.c.

#define SN_SAL_UART_FIFO_SPEED_CPS   (9600/10)

Definition at line 65 of file sn_console.c.

#define TRANSMIT_BUFFERED   0

Definition at line 68 of file sn_console.c.

#define TRANSMIT_RAW   1

Definition at line 69 of file sn_console.c.

#define USE_DYNAMIC_MINOR   0 /* Don't rely on misc_register dynamic minor */

Definition at line 74 of file sn_console.c.

Function Documentation

console_initcall ( sn_sal_serial_console_init  )
void early_sn_setup ( void  )

early_sn_setup - early setup routine for SN platforms

Sets up an initial console to aid debugging. Intended primarily for bringup. See start_kernel() in init/main.c.

Definition at line 154 of file setup.c.

module_exit ( sn_sal_module_exit  )
module_init ( sn_sal_module_init  )
int __init sn_serial_console_early_setup ( void  )

sn_serial_console_early_setup - Sets up early console output support

Register a console early on... This is for output before even sn_sal_serial_cosnole_init is called. This function is called from setup.c. This allows us to do really early polled writes. When sn_sal_serial_console_init is called, this console is unregistered and a new one registered.

Definition at line 1051 of file sn_console.c.

struct tty_driver* uart_console_device ( struct console ,
int  
)
read

Definition at line 2322 of file serial_core.c.