Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/rtnetlink.h>
#include <asm/io.h>
#include <net/irda/wrapper.h>
#include <net/irda/irda.h>
#include <net/irda/irda_device.h>
#include <net/irda/crc.h>
#include "donauboe.h"
Go to the source code of this file.
Macros | |
#define | USE_PROBE 1 |
#define | PROBE_VERBOSE 1 |
#define | USE_MIR |
#define | OPTIMIZE_TX |
#define | RING_SIZE (OBOE_RING_SIZE_RX8 | OBOE_RING_SIZE_TX8) |
#define | TX_SLOTS 8 |
#define | RX_SLOTS 8 |
#define | TT_LEN 0x80 |
#define | TX_LEN 0xc00 |
#define | RX_LEN 0xc04 |
#define | BUF_SAFETY 0x7a |
#define | RX_BUF_SZ (RX_LEN) |
#define | TX_BUF_SZ (TX_LEN+BUF_SAFETY) |
#define | INB(port) inb_p(port) |
#define | OUTB(val, port) outb_p(val,port) |
#define | OUTBP(val, port) outb_p(val,port) |
#define | PROMPT OUTB(OBOE_PROMPT_BIT,OBOE_PROMPT); |
#define | PROBE_DEBUG(args...) (printk (args)) |
#define | CONFIG0H_DMA_OFF OBOE_CONFIG0H_RCVANY |
#define | CONFIG0H_DMA_ON_NORX CONFIG0H_DMA_OFF| OBOE_CONFIG0H_ENDMAC |
#define | CONFIG0H_DMA_ON CONFIG0H_DMA_ON_NORX | OBOE_CONFIG0H_ENRX |
#define | DRIVER_NAME "toshoboe" |
Functions | |
MODULE_DEVICE_TABLE (pci, toshoboe_pci_tbl) | |
MODULE_DESCRIPTION ("Toshiba OBOE IrDA Device Driver") | |
MODULE_AUTHOR ("James McKenzie <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
module_param (max_baud, int, 0) | |
MODULE_PARM_DESC (max_baud,"Maximum baud rate") | |
module_param (do_probe, bool, 0) | |
MODULE_PARM_DESC (do_probe,"Enable/disable chip probing and self-test") | |
module_init (donauboe_init) | |
module_exit (donauboe_cleanup) | |
#define BUF_SAFETY 0x7a |
Definition at line 106 of file donauboe.c.
#define CONFIG0H_DMA_OFF OBOE_CONFIG0H_RCVANY |
Definition at line 183 of file donauboe.c.
#define CONFIG0H_DMA_ON CONFIG0H_DMA_ON_NORX | OBOE_CONFIG0H_ENRX |
Definition at line 185 of file donauboe.c.
#define CONFIG0H_DMA_ON_NORX CONFIG0H_DMA_OFF| OBOE_CONFIG0H_ENDMAC |
Definition at line 184 of file donauboe.c.
#define DRIVER_NAME "toshoboe" |
Definition at line 194 of file donauboe.c.
Definition at line 170 of file donauboe.c.
#define OPTIMIZE_TX |
Definition at line 78 of file donauboe.c.
Definition at line 177 of file donauboe.c.
#define PROBE_VERBOSE 1 |
Definition at line 65 of file donauboe.c.
#define PROMPT OUTB(OBOE_PROMPT_BIT,OBOE_PROMPT); |
Definition at line 174 of file donauboe.c.
#define RING_SIZE (OBOE_RING_SIZE_RX8 | OBOE_RING_SIZE_TX8) |
Definition at line 84 of file donauboe.c.
#define RX_BUF_SZ (RX_LEN) |
Definition at line 107 of file donauboe.c.
#define RX_LEN 0xc04 |
Definition at line 101 of file donauboe.c.
#define RX_SLOTS 8 |
Definition at line 86 of file donauboe.c.
#define TT_LEN 0x80 |
Definition at line 99 of file donauboe.c.
#define TX_BUF_SZ (TX_LEN+BUF_SAFETY) |
Definition at line 108 of file donauboe.c.
#define TX_LEN 0xc00 |
Definition at line 100 of file donauboe.c.
#define TX_SLOTS 8 |
Definition at line 85 of file donauboe.c.
#define USE_MIR |
Definition at line 73 of file donauboe.c.
#define USE_PROBE 1 |
Definition at line 61 of file donauboe.c.
MODULE_AUTHOR | ( | "James McKenzie <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Toshiba OBOE IrDA Device Driver" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
toshoboe_pci_tbl | |||
) |
module_exit | ( | donauboe_cleanup | ) |
module_init | ( | donauboe_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | do_probe | , |
bool | , | ||
0 | |||
) |