#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/sched.h>
#include <linux/serial.h>
#include <linux/interrupt.h>
#include <linux/kmod.h>
#include <linux/init.h>
#include <linux/kfifo.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <linux/delay.h>
Go to the source code of this file.
|
#define | DEBUG |
|
#define | VERSION_STRING DRIVER_DESC " 2.1d" |
|
#define | NOZOMI_DEBUG_LEVEL 0x00 |
|
#define | P_BUF_SIZE 128 |
|
#define | NFO(_err_flag_, args...) |
|
#define | DBG1(args...) D_(0x01, ##args) |
|
#define | DBG2(args...) D_(0x02, ##args) |
|
#define | DBG3(args...) D_(0x04, ##args) |
|
#define | DBG4(args...) D_(0x08, ##args) |
|
#define | DBG5(args...) D_(0x10, ##args) |
|
#define | DBG6(args...) D_(0x20, ##args) |
|
#define | DBG7(args...) D_(0x40, ##args) |
|
#define | DBG8(args...) D_(0x80, ##args) |
|
#define | D(lvl, args...) |
|
#define | D_(lvl, args...) D(lvl, ##args) |
|
#define | TMP_BUF_MAX 256 |
|
#define | DUMP(buf__, len__) |
|
#define | NOZOMI_NAME "nozomi" |
|
#define | NOZOMI_NAME_TTY "nozomi_tty" |
|
#define | DRIVER_DESC "Nozomi driver" |
|
#define | NTTY_TTY_MAXMINORS 256 |
|
#define | NTTY_FIFO_BUFFER_SIZE 8192 |
|
#define | FIFO_BUFFER_SIZE_UL 8192 |
|
#define | SEND_BUF_MAX 1024 |
|
#define | RECEIVE_BUF_MAX 4 |
|
#define | R_IIR 0x0000 /* Interrupt Identity Register */ |
|
#define | R_FCR 0x0000 /* Flow Control Register */ |
|
#define | R_IER 0x0004 /* Interrupt Enable Register */ |
|
#define | CONFIG_MAGIC 0xEFEFFEFE |
|
#define | TOGGLE_VALID 0x0000 |
|
#define | MDM_DL1 0x0001 |
|
#define | MDM_UL1 0x0002 |
|
#define | MDM_DL2 0x0004 |
|
#define | MDM_UL2 0x0008 |
|
#define | DIAG_DL1 0x0010 |
|
#define | DIAG_DL2 0x0020 |
|
#define | DIAG_UL 0x0040 |
|
#define | APP1_DL 0x0080 |
|
#define | APP1_UL 0x0100 |
|
#define | APP2_DL 0x0200 |
|
#define | APP2_UL 0x0400 |
|
#define | CTRL_DL 0x0800 |
|
#define | CTRL_UL 0x1000 |
|
#define | RESET 0x8000 |
|
#define | MDM_DL (MDM_DL1 | MDM_DL2) |
|
#define | MDM_UL (MDM_UL1 | MDM_UL2) |
|
#define | DIAG_DL (DIAG_DL1 | DIAG_DL2) |
|
#define | CTRL_DSR 0x0001 |
|
#define | CTRL_DCD 0x0002 |
|
#define | CTRL_RI 0x0004 |
|
#define | CTRL_CTS 0x0008 |
|
#define | CTRL_DTR 0x0001 |
|
#define | CTRL_RTS 0x0002 |
|
#define | MAX_PORT 4 |
|
#define | NOZOMI_MAX_PORTS 5 |
|
#define | NOZOMI_MAX_CARDS (NTTY_TTY_MAXMINORS / MAX_PORT) |
|
|
enum | card_type {
UNKNOWN = -1,
DC10_old,
DC10_new,
DC10plus,
DC30,
DC30plus,
LML33,
LML33R10,
BUZ,
AVS6EYES,
NUM_CARDS,
F32_2 = 2048,
F32_8 = 8192,
CMI8330,
CMI8329,
MEDIA_FX,
SSCAPE,
SSCAPE_PNP,
SSCAPE_VIVO
} |
|
enum | card_state { NOZOMI_STATE_UKNOWN = 0,
NOZOMI_STATE_ENABLED = 1,
NOZOMI_STATE_ALLOCATED = 2,
NOZOMI_STATE_READY = 3
} |
|
enum | channel_type { CH_A = 0,
CH_B = 1
} |
|
enum | ctrl_port_type {
CTRL_CMD = 0,
CTRL_MDM = 1,
CTRL_DIAG = 2,
CTRL_APP1 = 3,
CTRL_APP2 = 4,
CTRL_ERROR = -1
} |
|
enum | port_type {
PORT_PATA0 = 0,
PORT_PATA1 = 1,
PORT_SATA = 2,
PORT_PATA0 = 0,
PORT_PATA1 = 1,
PORT_SATA = 2,
PORT_TYPE_SAS = (1L << 1),
PORT_TYPE_SATA = (1L << 0),
PORT_MDM = 0,
PORT_DIAG = 1,
PORT_APP1 = 2,
PORT_APP2 = 3,
PORT_CTRL = 4,
PORT_ERROR = -1
} |
|
#define CONFIG_MAGIC 0xEFEFFEFE |
#define D |
( |
|
lvl, |
|
|
|
args... |
|
) |
| |
#define D_ |
( |
|
lvl, |
|
|
|
args... |
|
) |
| D(lvl, ##args) |
#define DBG1 |
( |
|
args... | ) |
D_(0x01, ##args) |
#define DBG2 |
( |
|
args... | ) |
D_(0x02, ##args) |
#define DBG3 |
( |
|
args... | ) |
D_(0x04, ##args) |
#define DBG4 |
( |
|
args... | ) |
D_(0x08, ##args) |
#define DBG5 |
( |
|
args... | ) |
D_(0x10, ##args) |
#define DBG6 |
( |
|
args... | ) |
D_(0x20, ##args) |
#define DBG7 |
( |
|
args... | ) |
D_(0x40, ##args) |
#define DBG8 |
( |
|
args... | ) |
D_(0x80, ##args) |
#define DRIVER_DESC "Nozomi driver" |
#define DUMP |
( |
|
buf__, |
|
|
|
len__ |
|
) |
| |
Value:do { \
if (len__ > 1) {\
if (tbuf[len__-2] == '\r') {\
tbuf[len__-2] = 'r';\
} \
DBG1("SENDING: '%s' (%d+n)", tbuf, len__);\
} else {\
DBG1("SENDING: '%s' (%d)", tbuf, len__);\
} \
} while (0)
Definition at line 109 of file nozomi.c.
#define FIFO_BUFFER_SIZE_UL 8192 |
#define NFO |
( |
|
_err_flag_, |
|
|
|
args... |
|
) |
| |
Value:do { \
snprintf(tmp, sizeof(tmp), ##args); \
printk(_err_flag_ "[%d] %s(): %s\n", __LINE__, \
__func__, tmp); \
} while (0)
Definition at line 72 of file nozomi.c.
#define NOZOMI_DEBUG_LEVEL 0x00 |
#define NOZOMI_MAX_PORTS 5 |
#define NOZOMI_NAME "nozomi" |
#define NOZOMI_NAME_TTY "nozomi_tty" |
#define NTTY_FIFO_BUFFER_SIZE 8192 |
#define NTTY_TTY_MAXMINORS 256 |
#define R_FCR 0x0000 /* Flow Control Register */ |
#define R_IER 0x0004 /* Interrupt Enable Register */ |
#define R_IIR 0x0000 /* Interrupt Identity Register */ |
#define RECEIVE_BUF_MAX 4 |
#define SEND_BUF_MAX 1024 |
#define TOGGLE_VALID 0x0000 |
- Enumerator:
NOZOMI_STATE_UKNOWN |
|
NOZOMI_STATE_ENABLED |
|
NOZOMI_STATE_ALLOCATED |
|
NOZOMI_STATE_READY |
|
Definition at line 191 of file nozomi.c.
- Enumerator:
UNKNOWN |
|
DC10_old |
|
DC10_new |
|
DC10plus |
|
DC30 |
|
DC30plus |
|
LML33 |
|
LML33R10 |
|
BUZ |
|
AVS6EYES |
|
NUM_CARDS |
|
F32_2 |
|
F32_8 |
|
CMI8330 |
|
CMI8329 |
|
MEDIA_FX |
|
SSCAPE |
|
SSCAPE_PNP |
|
SSCAPE_VIVO |
|
Definition at line 185 of file nozomi.c.
- Enumerator:
CTRL_CMD |
|
CTRL_MDM |
|
CTRL_DIAG |
|
CTRL_APP1 |
|
CTRL_APP2 |
|
CTRL_ERROR |
|
Definition at line 205 of file nozomi.c.
- Enumerator:
PORT_PATA0 |
|
PORT_PATA1 |
|
PORT_SATA |
|
PORT_PATA0 |
|
PORT_PATA1 |
|
PORT_SATA |
|
PORT_TYPE_SAS |
|
PORT_TYPE_SATA |
|
PORT_MDM |
|
PORT_DIAG |
|
PORT_APP1 |
|
PORT_APP2 |
|
PORT_CTRL |
|
PORT_ERROR |
|
Definition at line 215 of file nozomi.c.
mcontroller : adapter info structure for old mimd_t apps
: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id
Definition at line 171 of file esd_usb2.c.
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
nozomi_pci_tbl |
|
|
) |
| |
module_exit |
( |
nozomi_exit |
| ) |
|
module_init |
( |
nozomi_init |
| ) |
|
MODULE_LICENSE |
( |
"Dual BSD/GPL" |
| ) |
|