#include <linux/init.h>
#include <linux/signal.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/usb.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include <linux/can/error.h>
Go to the source code of this file.
#define CONTR_BUS_ERROR 0x1C |
#define CONTR_CAN_MESSAGE 0x04 |
#define CONTR_CAN_STATE 0x0C |
#define CPC_CAN_ECODE_ERRFRAME 0x01 /* Ecode type */ |
#define CPC_CAN_MSG_MIN_SIZE 5 |
#define CPC_CMD_TYPE_CAN_EXIT 200 /* exit the CAN */ |
#define CPC_CMD_TYPE_CLEAR_CMD_QUEUE 28 /* clear CPC_CMD queue */ |
#define CPC_CMD_TYPE_CLEAR_MSG_QUEUE 8 /* clear CPC_MSG queue */ |
#define CPC_CMD_TYPE_EXT_CAN_FRAME 15 /* Extended CAN data frame */ |
#define CPC_CMD_TYPE_EXT_RTR_FRAME 16 /* Extended CAN remote frame */ |
#define CPC_CMD_TYPE_RTR_FRAME 13 /* CAN remote frame */ |
#define CPC_HEADER_SIZE 4 |
#define CPC_MSG_HEADER_LEN 11 |
#define CPC_MSG_TYPE_CAN_FRAME_ERROR 23 /* detected bus errors */ |
#define CPC_MSG_TYPE_CONFIRM 20 /* command processed confirmation */ |
#define CPC_MSG_TYPE_CONTROL 19 /* change interface behavior */ |
#define CPC_MSG_TYPE_EXT_CAN_FRAME 16 /* Extended CAN data frame */ |
#define CPC_MSG_TYPE_EXT_RTR_FRAME 17 /* Extended remote frame */ |
#define CPC_MSG_TYPE_RTR_FRAME 8 /* CAN remote frame */ |
#define CPC_OVR_EVENT_BUSERROR 0x04 |
#define CPC_OVR_EVENT_CAN 0x01 |
#define CPC_OVR_EVENT_CANSTATE 0x02 |
#define EMS_USB_ARM7_CLOCK 8000000 |
#define INTR_IN_BUFFER_SIZE 4 |
#define RX_BUFFER_SIZE 64 |
#define SJA1000_DEFAULT_OUTPUT_CONTROL 0xDA |
#define SJA1000_ECC_BIT 0x00 |
#define SJA1000_ECC_DIR 0x20 |
#define SJA1000_ECC_ERR 0x06 |
#define SJA1000_ECC_FORM 0x40 |
#define SJA1000_ECC_MASK 0xc0 |
#define SJA1000_ECC_SEG 0x1F |
#define SJA1000_ECC_STUFF 0x80 |
#define SJA1000_MOD_NORMAL 0x00 |
#define SJA1000_MOD_RM 0x01 |
#define SJA1000_SR_BS 0x80 |
#define SJA1000_SR_ES 0x40 |
#define USB_CPCUSB_ARM7_PRODUCT_ID 0x0444 |
#define USB_CPCUSB_VENDOR_ID 0x12D6 |
MODULE_DESCRIPTION |
( |
"CAN driver for EMS Dr. Thomas Wuensche CAN/USB interfaces" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
ems_usb_table |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_usb_driver |
( |
ems_usb_driver |
| ) |
|