Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/errno.h>
#include <linux/ptrace.h>
#include <linux/ioport.h>
#include <linux/spinlock.h>
#include <linux/moduleparam.h>
#include <linux/wait.h>
#include <linux/skbuff.h>
#include <linux/io.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ciscode.h>
#include <pcmcia/ds.h>
#include <pcmcia/cisreg.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
Go to the source code of this file.
Data Structures | |
struct | bluecard_info_t |
Typedefs | |
typedef struct bluecard_info_t | bluecard_info_t |
Functions | |
MODULE_AUTHOR ("Marcel Holtmann <[email protected]>") | |
MODULE_DESCRIPTION ("Bluetooth driver for the Anycom BlueCard (LSE039/LSE041)") | |
MODULE_LICENSE ("GPL") | |
MODULE_DEVICE_TABLE (pcmcia, bluecard_ids) | |
module_init (init_bluecard_cs) | |
module_exit (exit_bluecard_cs) | |
#define CARD_HAS_ACTIVITY_LED 6 |
Definition at line 98 of file bluecard_cs.c.
#define CARD_HAS_PCCARD_ID 4 |
Definition at line 96 of file bluecard_cs.c.
#define CARD_HAS_POWER_LED 5 |
Definition at line 97 of file bluecard_cs.c.
#define CARD_READY 1 |
Definition at line 95 of file bluecard_cs.c.
#define DEFAULT_BAUD_RATE 230400 |
Definition at line 91 of file bluecard_cs.c.
#define PKT_BAUD_RATE_115200 0x81 |
Definition at line 117 of file bluecard_cs.c.
#define PKT_BAUD_RATE_230400 0x82 |
Definition at line 118 of file bluecard_cs.c.
#define PKT_BAUD_RATE_460800 0x83 |
Definition at line 119 of file bluecard_cs.c.
#define PKT_BAUD_RATE_57600 0x80 |
Definition at line 116 of file bluecard_cs.c.
#define RECV_WAIT_ACL_HEADER 2 |
Definition at line 111 of file bluecard_cs.c.
#define RECV_WAIT_DATA 4 |
Definition at line 113 of file bluecard_cs.c.
#define RECV_WAIT_EVENT_HEADER 1 |
Definition at line 110 of file bluecard_cs.c.
#define RECV_WAIT_PACKET_TYPE 0 |
Definition at line 109 of file bluecard_cs.c.
#define RECV_WAIT_SCO_HEADER 3 |
Definition at line 112 of file bluecard_cs.c.
#define REG_CARD_RESET 0x30 |
Definition at line 127 of file bluecard_cs.c.
#define REG_COMMAND 0x20 |
Definition at line 123 of file bluecard_cs.c.
#define REG_COMMAND_RX_BUF_ONE 0x04 |
Definition at line 133 of file bluecard_cs.c.
#define REG_COMMAND_RX_BUF_TWO 0x08 |
Definition at line 134 of file bluecard_cs.c.
#define REG_COMMAND_RX_WIN_ONE 0x00 |
Definition at line 135 of file bluecard_cs.c.
#define REG_COMMAND_RX_WIN_TWO 0x10 |
Definition at line 136 of file bluecard_cs.c.
#define REG_COMMAND_TX_BUF_ONE 0x01 |
Definition at line 131 of file bluecard_cs.c.
#define REG_COMMAND_TX_BUF_TWO 0x02 |
Definition at line 132 of file bluecard_cs.c.
#define REG_CONTROL 0x22 |
Definition at line 125 of file bluecard_cs.c.
#define REG_CONTROL_BAUD_RATE_115200 0x01 |
Definition at line 140 of file bluecard_cs.c.
#define REG_CONTROL_BAUD_RATE_230400 0x02 |
Definition at line 141 of file bluecard_cs.c.
#define REG_CONTROL_BAUD_RATE_460800 0x03 |
Definition at line 142 of file bluecard_cs.c.
#define REG_CONTROL_BAUD_RATE_57600 0x00 |
Definition at line 139 of file bluecard_cs.c.
#define REG_CONTROL_BT_ON 0x08 |
Definition at line 144 of file bluecard_cs.c.
#define REG_CONTROL_BT_RES_PU 0x20 |
Definition at line 146 of file bluecard_cs.c.
#define REG_CONTROL_BT_RESET 0x10 |
Definition at line 145 of file bluecard_cs.c.
#define REG_CONTROL_CARD_RESET 0x80 |
Definition at line 148 of file bluecard_cs.c.
#define REG_CONTROL_INTERRUPT 0x40 |
Definition at line 147 of file bluecard_cs.c.
#define REG_CONTROL_RTS 0x04 |
Definition at line 143 of file bluecard_cs.c.
#define REG_INTERRUPT 0x21 |
Definition at line 124 of file bluecard_cs.c.
#define REG_LED_CTRL 0x30 |
Definition at line 128 of file bluecard_cs.c.
#define REG_RX_CONTROL 0x24 |
Definition at line 126 of file bluecard_cs.c.
#define RTS_LEVEL_SHIFT_BITS 0x02 |
Definition at line 151 of file bluecard_cs.c.
#define XMIT_BUF_ONE_READY 6 |
Definition at line 104 of file bluecard_cs.c.
#define XMIT_BUF_TWO_READY 7 |
Definition at line 105 of file bluecard_cs.c.
Definition at line 103 of file bluecard_cs.c.
#define XMIT_SENDING 1 |
Definition at line 101 of file bluecard_cs.c.
#define XMIT_SENDING_READY 8 |
Definition at line 106 of file bluecard_cs.c.
#define XMIT_WAKEUP 2 |
Definition at line 102 of file bluecard_cs.c.
typedef struct bluecard_info_t bluecard_info_t |
MODULE_AUTHOR | ( | "Marcel Holtmann <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pcmcia | , |
bluecard_ids | |||
) |
module_exit | ( | exit_bluecard_cs | ) |
module_init | ( | init_bluecard_cs | ) |
MODULE_LICENSE | ( | "GPL" | ) |