Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/can/dev.h>
#include <linux/io.h>
#include "sja1000.h"
Go to the source code of this file.
Data Structures | |
struct | kvaser_pci |
Macros | |
#define | DRV_NAME "kvaser_pci" |
#define | MAX_NO_OF_CHANNELS 4 /* max no of channels on a single card */ |
#define | KVASER_PCI_CAN_CLOCK (16000000 / 2) |
#define | KVASER_PCI_OCR (OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL) |
#define | KVASER_PCI_CDR (CDR_CBP | CDR_CLKOUT_MASK) |
#define | XILINX_VERINT |
#define | XILINX_PRESUMED_VERSION 14 |
#define | S5920_INTCSR 0x38 |
#define | S5920_PTCR 0x60 |
#define | INTCSR_ADDON_INTENABLE_M 0x2000 |
#define | KVASER_PCI_PORT_BYTES 0x20 |
#define | PCI_CONFIG_PORT_SIZE 0x80 /* size of the config io-memory */ |
#define | PCI_PORT_SIZE 0x80 /* size of a channel io-memory */ |
#define | PCI_PORT_XILINX_SIZE 0x08 /* size of a xilinx io-memory */ |
#define | KVASER_PCI_VENDOR_ID1 0x10e8 /* the PCI device and vendor IDs */ |
#define | KVASER_PCI_DEVICE_ID1 0x8406 |
#define | KVASER_PCI_VENDOR_ID2 0x1a07 /* the PCI device and vendor IDs */ |
#define | KVASER_PCI_DEVICE_ID2 0x0008 |
Functions | |
MODULE_AUTHOR ("Per Dalen <[email protected]>") | |
MODULE_DESCRIPTION ("Socket-CAN driver for KVASER PCAN PCI cards") | |
MODULE_SUPPORTED_DEVICE ("KVASER PCAN PCI CAN card") | |
MODULE_LICENSE ("GPL v2") | |
MODULE_DEVICE_TABLE (pci, kvaser_pci_tbl) | |
module_pci_driver (kvaser_pci_driver) | |
#define DRV_NAME "kvaser_pci" |
Definition at line 44 of file kvaser_pci.c.
#define INTCSR_ADDON_INTENABLE_M 0x2000 |
Definition at line 95 of file kvaser_pci.c.
#define KVASER_PCI_CAN_CLOCK (16000000 / 2) |
Definition at line 63 of file kvaser_pci.c.
#define KVASER_PCI_CDR (CDR_CBP | CDR_CLKOUT_MASK) |
Definition at line 81 of file kvaser_pci.c.
#define KVASER_PCI_DEVICE_ID1 0x8406 |
Definition at line 105 of file kvaser_pci.c.
#define KVASER_PCI_DEVICE_ID2 0x0008 |
Definition at line 108 of file kvaser_pci.c.
#define KVASER_PCI_OCR (OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL) |
Definition at line 73 of file kvaser_pci.c.
#define KVASER_PCI_PORT_BYTES 0x20 |
Definition at line 98 of file kvaser_pci.c.
#define KVASER_PCI_VENDOR_ID1 0x10e8 /* the PCI device and vendor IDs */ |
Definition at line 104 of file kvaser_pci.c.
#define KVASER_PCI_VENDOR_ID2 0x1a07 /* the PCI device and vendor IDs */ |
Definition at line 107 of file kvaser_pci.c.
Definition at line 51 of file kvaser_pci.c.
#define PCI_CONFIG_PORT_SIZE 0x80 /* size of the config io-memory */ |
Definition at line 100 of file kvaser_pci.c.
#define PCI_PORT_SIZE 0x80 /* size of a channel io-memory */ |
Definition at line 101 of file kvaser_pci.c.
#define PCI_PORT_XILINX_SIZE 0x08 /* size of a xilinx io-memory */ |
Definition at line 102 of file kvaser_pci.c.
#define S5920_INTCSR 0x38 |
Definition at line 93 of file kvaser_pci.c.
#define S5920_PTCR 0x60 |
Definition at line 94 of file kvaser_pci.c.
#define XILINX_PRESUMED_VERSION 14 |
Definition at line 88 of file kvaser_pci.c.
#define XILINX_VERINT |
Definition at line 86 of file kvaser_pci.c.
MODULE_AUTHOR | ( | "Per Dalen <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
kvaser_pci_tbl | |||
) |
MODULE_LICENSE | ( | "GPL v2" | ) |
module_pci_driver | ( | kvaser_pci_driver | ) |