Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/pci.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <asm/io.h>
Go to the source code of this file.
Data Structures | |
struct | uart_txx9_port |
Macros | |
#define | PASS_LIMIT 256 |
#define | TXX9_TTY_NAME "ttyTX" |
#define | TXX9_TTY_MINOR_START 196 |
#define | TXX9_TTY_MAJOR 204 |
#define | UPF_TXX9_HAVE_CTS_LINE UPF_BUGGY_UART |
#define | UPF_TXX9_USE_SCLK UPF_MAGIC_MULTIPLIER |
#define | UART_NR CONFIG_SERIAL_TXX9_NR_UARTS |
#define | TXX9_REGION_SIZE 0x24 |
#define | TXX9_SILCR 0x00 |
#define | TXX9_SIDICR 0x04 |
#define | TXX9_SIDISR 0x08 |
#define | TXX9_SICISR 0x0c |
#define | TXX9_SIFCR 0x10 |
#define | TXX9_SIFLCR 0x14 |
#define | TXX9_SIBGR 0x18 |
#define | TXX9_SITFIFO 0x1c |
#define | TXX9_SIRFIFO 0x20 |
#define | TXX9_SILCR_SCS_MASK 0x00000060 |
#define | TXX9_SILCR_SCS_IMCLK 0x00000000 |
#define | TXX9_SILCR_SCS_IMCLK_BG 0x00000020 |
#define | TXX9_SILCR_SCS_SCLK 0x00000040 |
#define | TXX9_SILCR_SCS_SCLK_BG 0x00000060 |
#define | TXX9_SILCR_UEPS 0x00000010 |
#define | TXX9_SILCR_UPEN 0x00000008 |
#define | TXX9_SILCR_USBL_MASK 0x00000004 |
#define | TXX9_SILCR_USBL_1BIT 0x00000000 |
#define | TXX9_SILCR_USBL_2BIT 0x00000004 |
#define | TXX9_SILCR_UMODE_MASK 0x00000003 |
#define | TXX9_SILCR_UMODE_8BIT 0x00000000 |
#define | TXX9_SILCR_UMODE_7BIT 0x00000001 |
#define | TXX9_SIDICR_TDE 0x00008000 |
#define | TXX9_SIDICR_RDE 0x00004000 |
#define | TXX9_SIDICR_TIE 0x00002000 |
#define | TXX9_SIDICR_RIE 0x00001000 |
#define | TXX9_SIDICR_SPIE 0x00000800 |
#define | TXX9_SIDICR_CTSAC 0x00000600 |
#define | TXX9_SIDICR_STIE_MASK 0x0000003f |
#define | TXX9_SIDICR_STIE_OERS 0x00000020 |
#define | TXX9_SIDICR_STIE_CTSS 0x00000010 |
#define | TXX9_SIDICR_STIE_RBRKD 0x00000008 |
#define | TXX9_SIDICR_STIE_TRDY 0x00000004 |
#define | TXX9_SIDICR_STIE_TXALS 0x00000002 |
#define | TXX9_SIDICR_STIE_UBRKD 0x00000001 |
#define | TXX9_SIDISR_UBRK 0x00008000 |
#define | TXX9_SIDISR_UVALID 0x00004000 |
#define | TXX9_SIDISR_UFER 0x00002000 |
#define | TXX9_SIDISR_UPER 0x00001000 |
#define | TXX9_SIDISR_UOER 0x00000800 |
#define | TXX9_SIDISR_ERI 0x00000400 |
#define | TXX9_SIDISR_TOUT 0x00000200 |
#define | TXX9_SIDISR_TDIS 0x00000100 |
#define | TXX9_SIDISR_RDIS 0x00000080 |
#define | TXX9_SIDISR_STIS 0x00000040 |
#define | TXX9_SIDISR_RFDN_MASK 0x0000001f |
#define | TXX9_SICISR_OERS 0x00000020 |
#define | TXX9_SICISR_CTSS 0x00000010 |
#define | TXX9_SICISR_RBRKD 0x00000008 |
#define | TXX9_SICISR_TRDY 0x00000004 |
#define | TXX9_SICISR_TXALS 0x00000002 |
#define | TXX9_SICISR_UBRKD 0x00000001 |
#define | TXX9_SIFCR_SWRST 0x00008000 |
#define | TXX9_SIFCR_RDIL_MASK 0x00000180 |
#define | TXX9_SIFCR_RDIL_1 0x00000000 |
#define | TXX9_SIFCR_RDIL_4 0x00000080 |
#define | TXX9_SIFCR_RDIL_8 0x00000100 |
#define | TXX9_SIFCR_RDIL_12 0x00000180 |
#define | TXX9_SIFCR_RDIL_MAX 0x00000180 |
#define | TXX9_SIFCR_TDIL_MASK 0x00000018 |
#define | TXX9_SIFCR_TDIL_MASK 0x00000018 |
#define | TXX9_SIFCR_TDIL_1 0x00000000 |
#define | TXX9_SIFCR_TDIL_4 0x00000001 |
#define | TXX9_SIFCR_TDIL_8 0x00000010 |
#define | TXX9_SIFCR_TDIL_MAX 0x00000010 |
#define | TXX9_SIFCR_TFRST 0x00000004 |
#define | TXX9_SIFCR_RFRST 0x00000002 |
#define | TXX9_SIFCR_FRSTE 0x00000001 |
#define | TXX9_SIO_TX_FIFO 8 |
#define | TXX9_SIO_RX_FIFO 16 |
#define | TXX9_SIFLCR_RCS 0x00001000 |
#define | TXX9_SIFLCR_TES 0x00000800 |
#define | TXX9_SIFLCR_RTSSC 0x00000200 |
#define | TXX9_SIFLCR_RSDE 0x00000100 |
#define | TXX9_SIFLCR_TSDE 0x00000080 |
#define | TXX9_SIFLCR_RTSTL_MASK 0x0000001e |
#define | TXX9_SIFLCR_RTSTL_MAX 0x0000001e |
#define | TXX9_SIFLCR_TBRK 0x00000001 |
#define | TXX9_SIBGR_BCLK_MASK 0x00000300 |
#define | TXX9_SIBGR_BCLK_T0 0x00000000 |
#define | TXX9_SIBGR_BCLK_T2 0x00000100 |
#define | TXX9_SIBGR_BCLK_T4 0x00000200 |
#define | TXX9_SIBGR_BCLK_T6 0x00000300 |
#define | TXX9_SIBGR_BRD_MASK 0x000000ff |
#define | SERIAL_TXX9_CONSOLE NULL |
Functions | |
int __init | early_serial_txx9_setup (struct uart_port *port) |
module_init (serial_txx9_init) | |
module_exit (serial_txx9_exit) | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("TX39/49 serial driver") | |
MODULE_ALIAS_CHARDEV_MAJOR (TXX9_TTY_MAJOR) | |
#define PASS_LIMIT 256 |
Definition at line 39 of file serial_txx9.c.
#define SERIAL_TXX9_CONSOLE NULL |
Definition at line 995 of file serial_txx9.c.
#define TXX9_REGION_SIZE 0x24 |
Definition at line 72 of file serial_txx9.c.
#define TXX9_SIBGR 0x18 |
Definition at line 81 of file serial_txx9.c.
#define TXX9_SIBGR_BCLK_MASK 0x00000300 |
Definition at line 167 of file serial_txx9.c.
#define TXX9_SIBGR_BCLK_T0 0x00000000 |
Definition at line 168 of file serial_txx9.c.
#define TXX9_SIBGR_BCLK_T2 0x00000100 |
Definition at line 169 of file serial_txx9.c.
#define TXX9_SIBGR_BCLK_T4 0x00000200 |
Definition at line 170 of file serial_txx9.c.
#define TXX9_SIBGR_BCLK_T6 0x00000300 |
Definition at line 171 of file serial_txx9.c.
#define TXX9_SIBGR_BRD_MASK 0x000000ff |
Definition at line 172 of file serial_txx9.c.
#define TXX9_SICISR 0x0c |
Definition at line 78 of file serial_txx9.c.
#define TXX9_SICISR_CTSS 0x00000010 |
Definition at line 130 of file serial_txx9.c.
#define TXX9_SICISR_OERS 0x00000020 |
Definition at line 129 of file serial_txx9.c.
#define TXX9_SICISR_RBRKD 0x00000008 |
Definition at line 131 of file serial_txx9.c.
#define TXX9_SICISR_TRDY 0x00000004 |
Definition at line 132 of file serial_txx9.c.
#define TXX9_SICISR_TXALS 0x00000002 |
Definition at line 133 of file serial_txx9.c.
#define TXX9_SICISR_UBRKD 0x00000001 |
Definition at line 134 of file serial_txx9.c.
#define TXX9_SIDICR 0x04 |
Definition at line 76 of file serial_txx9.c.
#define TXX9_SIDICR_CTSAC 0x00000600 |
Definition at line 106 of file serial_txx9.c.
#define TXX9_SIDICR_RDE 0x00004000 |
Definition at line 102 of file serial_txx9.c.
#define TXX9_SIDICR_RIE 0x00001000 |
Definition at line 104 of file serial_txx9.c.
#define TXX9_SIDICR_SPIE 0x00000800 |
Definition at line 105 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_CTSS 0x00000010 |
Definition at line 109 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_MASK 0x0000003f |
Definition at line 107 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_OERS 0x00000020 |
Definition at line 108 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_RBRKD 0x00000008 |
Definition at line 110 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_TRDY 0x00000004 |
Definition at line 111 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_TXALS 0x00000002 |
Definition at line 112 of file serial_txx9.c.
#define TXX9_SIDICR_STIE_UBRKD 0x00000001 |
Definition at line 113 of file serial_txx9.c.
#define TXX9_SIDICR_TDE 0x00008000 |
Definition at line 101 of file serial_txx9.c.
#define TXX9_SIDICR_TIE 0x00002000 |
Definition at line 103 of file serial_txx9.c.
#define TXX9_SIDISR 0x08 |
Definition at line 77 of file serial_txx9.c.
#define TXX9_SIDISR_ERI 0x00000400 |
Definition at line 121 of file serial_txx9.c.
#define TXX9_SIDISR_RDIS 0x00000080 |
Definition at line 124 of file serial_txx9.c.
#define TXX9_SIDISR_RFDN_MASK 0x0000001f |
Definition at line 126 of file serial_txx9.c.
#define TXX9_SIDISR_STIS 0x00000040 |
Definition at line 125 of file serial_txx9.c.
#define TXX9_SIDISR_TDIS 0x00000100 |
Definition at line 123 of file serial_txx9.c.
#define TXX9_SIDISR_TOUT 0x00000200 |
Definition at line 122 of file serial_txx9.c.
#define TXX9_SIDISR_UBRK 0x00008000 |
Definition at line 116 of file serial_txx9.c.
#define TXX9_SIDISR_UFER 0x00002000 |
Definition at line 118 of file serial_txx9.c.
#define TXX9_SIDISR_UOER 0x00000800 |
Definition at line 120 of file serial_txx9.c.
#define TXX9_SIDISR_UPER 0x00001000 |
Definition at line 119 of file serial_txx9.c.
#define TXX9_SIDISR_UVALID 0x00004000 |
Definition at line 117 of file serial_txx9.c.
#define TXX9_SIFCR 0x10 |
Definition at line 79 of file serial_txx9.c.
#define TXX9_SIFCR_FRSTE 0x00000001 |
Definition at line 152 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_1 0x00000000 |
Definition at line 139 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_12 0x00000180 |
Definition at line 142 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_4 0x00000080 |
Definition at line 140 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_8 0x00000100 |
Definition at line 141 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_MASK 0x00000180 |
Definition at line 138 of file serial_txx9.c.
#define TXX9_SIFCR_RDIL_MAX 0x00000180 |
Definition at line 143 of file serial_txx9.c.
#define TXX9_SIFCR_RFRST 0x00000002 |
Definition at line 151 of file serial_txx9.c.
#define TXX9_SIFCR_SWRST 0x00008000 |
Definition at line 137 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_1 0x00000000 |
Definition at line 146 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_4 0x00000001 |
Definition at line 147 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_8 0x00000010 |
Definition at line 148 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_MASK 0x00000018 |
Definition at line 145 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_MASK 0x00000018 |
Definition at line 145 of file serial_txx9.c.
#define TXX9_SIFCR_TDIL_MAX 0x00000010 |
Definition at line 149 of file serial_txx9.c.
#define TXX9_SIFCR_TFRST 0x00000004 |
Definition at line 150 of file serial_txx9.c.
#define TXX9_SIFLCR 0x14 |
Definition at line 80 of file serial_txx9.c.
#define TXX9_SIFLCR_RCS 0x00001000 |
Definition at line 157 of file serial_txx9.c.
#define TXX9_SIFLCR_RSDE 0x00000100 |
Definition at line 160 of file serial_txx9.c.
#define TXX9_SIFLCR_RTSSC 0x00000200 |
Definition at line 159 of file serial_txx9.c.
#define TXX9_SIFLCR_RTSTL_MASK 0x0000001e |
Definition at line 162 of file serial_txx9.c.
#define TXX9_SIFLCR_RTSTL_MAX 0x0000001e |
Definition at line 163 of file serial_txx9.c.
#define TXX9_SIFLCR_TBRK 0x00000001 |
Definition at line 164 of file serial_txx9.c.
#define TXX9_SIFLCR_TES 0x00000800 |
Definition at line 158 of file serial_txx9.c.
#define TXX9_SIFLCR_TSDE 0x00000080 |
Definition at line 161 of file serial_txx9.c.
#define TXX9_SILCR 0x00 |
Definition at line 75 of file serial_txx9.c.
#define TXX9_SILCR_SCS_IMCLK 0x00000000 |
Definition at line 87 of file serial_txx9.c.
#define TXX9_SILCR_SCS_IMCLK_BG 0x00000020 |
Definition at line 88 of file serial_txx9.c.
#define TXX9_SILCR_SCS_MASK 0x00000060 |
Definition at line 86 of file serial_txx9.c.
#define TXX9_SILCR_SCS_SCLK 0x00000040 |
Definition at line 89 of file serial_txx9.c.
#define TXX9_SILCR_SCS_SCLK_BG 0x00000060 |
Definition at line 90 of file serial_txx9.c.
#define TXX9_SILCR_UEPS 0x00000010 |
Definition at line 91 of file serial_txx9.c.
#define TXX9_SILCR_UMODE_7BIT 0x00000001 |
Definition at line 98 of file serial_txx9.c.
#define TXX9_SILCR_UMODE_8BIT 0x00000000 |
Definition at line 97 of file serial_txx9.c.
#define TXX9_SILCR_UMODE_MASK 0x00000003 |
Definition at line 96 of file serial_txx9.c.
#define TXX9_SILCR_UPEN 0x00000008 |
Definition at line 92 of file serial_txx9.c.
#define TXX9_SILCR_USBL_1BIT 0x00000000 |
Definition at line 94 of file serial_txx9.c.
#define TXX9_SILCR_USBL_2BIT 0x00000004 |
Definition at line 95 of file serial_txx9.c.
#define TXX9_SILCR_USBL_MASK 0x00000004 |
Definition at line 93 of file serial_txx9.c.
#define TXX9_SIO_RX_FIFO 16 |
Definition at line 154 of file serial_txx9.c.
#define TXX9_SIO_TX_FIFO 8 |
Definition at line 153 of file serial_txx9.c.
#define TXX9_SIRFIFO 0x20 |
Definition at line 83 of file serial_txx9.c.
#define TXX9_SITFIFO 0x1c |
Definition at line 82 of file serial_txx9.c.
#define TXX9_TTY_MAJOR 204 |
Definition at line 45 of file serial_txx9.c.
#define TXX9_TTY_MINOR_START 196 |
Definition at line 44 of file serial_txx9.c.
#define TXX9_TTY_NAME "ttyTX" |
Definition at line 43 of file serial_txx9.c.
#define UART_NR CONFIG_SERIAL_TXX9_NR_UARTS |
Definition at line 65 of file serial_txx9.c.
#define UPF_TXX9_HAVE_CTS_LINE UPF_BUGGY_UART |
Definition at line 54 of file serial_txx9.c.
#define UPF_TXX9_USE_SCLK UPF_MAGIC_MULTIPLIER |
Definition at line 55 of file serial_txx9.c.
Definition at line 1008 of file serial_txx9.c.
MODULE_ALIAS_CHARDEV_MAJOR | ( | TXX9_TTY_MAJOR | ) |
module_exit | ( | serial_txx9_exit | ) |
module_init | ( | serial_txx9_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |