Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
68328serial.c File Reference
#include <asm/dbg.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/serial.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/console.h>
#include <linux/reboot.h>
#include <linux/keyboard.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/gfp.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/delay.h>
#include <asm/uaccess.h>
#include <asm/MC68328.h>

Go to the source code of this file.

Data Structures

struct  m68k_serial
 

Macros

#define USE_INTS
 
#define USTCNT_TX_INTR_MASK   (USTCNT_TXEE)
 
#define SERIAL_MAGIC   0x5301
 
#define NR_PORTS   1
 
#define CONSOLE_BAUD_RATE   9600
 
#define DEFAULT_CBAUD   B9600
 

Functions

irqreturn_t rs_interrupt (int irq, void *dev_id)
 
void console_print_68328 (const char *p)
 
void console_printn (const char *b, int count)
 
void rs_hangup (struct tty_struct *tty)
 
int rs_open (struct tty_struct *tty, struct file *filp)
 
 module_init (rs68328_init)
 
int m68328_console_setup (struct console *cp, char *arg)
 
void m68328_console_write (struct console *co, const char *str, unsigned int count)
 
 console_initcall (m68328_console_init)
 

Variables

m68328_uart * uart_addr = (m68328_uart *)USTCNT_ADDR
 
struct tty_driverserial_driver
 
struct {
   int   divisor
 
   int   prescale
 
hw_baud_table [18]
 

Macro Definition Documentation

#define CONSOLE_BAUD_RATE   9600

Definition at line 156 of file 68328serial.c.

#define DEFAULT_CBAUD   B9600

Definition at line 157 of file 68328serial.c.

#define NR_PORTS   1

Definition at line 131 of file 68328serial.c.

#define SERIAL_MAGIC   0x5301

Definition at line 126 of file 68328serial.c.

#define USE_INTS

Definition at line 64 of file 68328serial.c.

#define USTCNT_TX_INTR_MASK   (USTCNT_TXEE)

Definition at line 75 of file 68328serial.c.

Function Documentation

console_initcall ( m68328_console_init  )
void console_print_68328 ( const char p)

Definition at line 597 of file 68328serial.c.

void console_printn ( const char b,
int  count 
)
int m68328_console_setup ( struct console cp,
char arg 
)

Definition at line 1267 of file 68328serial.c.

void m68328_console_write ( struct console co,
const char str,
unsigned int  count 
)

Definition at line 1302 of file 68328serial.c.

module_init ( rs68328_init  )
void rs_hangup ( struct tty_struct tty)

Definition at line 1091 of file 68328serial.c.

irqreturn_t rs_interrupt ( int  irq,
void dev_id 
)

Definition at line 355 of file 68328serial.c.

int rs_open ( struct tty_struct tty,
struct file filp 
)

Definition at line 1112 of file 68328serial.c.

Variable Documentation

int divisor

Definition at line 459 of file 68328serial.c.

struct { ... } hw_baud_table[18]
Initial value:
= {
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{7,0x26},
{6,0x26},
{5,0x26},
{0,0},
{4,0x26},
{3,0x26},
{2,0x26},
{1,0x26},
{0,0x26},
{1,0x38},
{0,0x38},
}
int prescale

Definition at line 459 of file 68328serial.c.

struct tty_driver* serial_driver

Definition at line 140 of file 68328serial.c.

m68328_uart* uart_addr = (m68328_uart *)USTCNT_ADDR

Definition at line 138 of file 68328serial.c.