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/io.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include "sja1000.h"
Go to the source code of this file.
Data Structures | |
struct | ems_pcmcia_card |
Macros | |
#define | DRV_NAME "ems_pcmcia" |
#define | EMS_PCMCIA_MAX_CHAN 2 |
#define | EMS_PCMCIA_CAN_CLOCK (16000000 / 2) |
#define | EMS_PCMCIA_OCR (OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL) |
#define | EMS_PCMCIA_CDR (CDR_CBP | CDR_CLKOUT_MASK) |
#define | EMS_PCMCIA_MEM_SIZE 4096 /* Size of the remapped io-memory */ |
#define | EMS_PCMCIA_CAN_BASE_OFFSET 0x100 /* Offset where controllers starts */ |
#define | EMS_PCMCIA_CAN_CTRL_SIZE 0x80 /* Memory size for each controller */ |
#define | EMS_CMD_RESET 0x00 /* Perform a reset of the card */ |
#define | EMS_CMD_MAP 0x03 /* Map CAN controllers into card' memory */ |
#define | EMS_CMD_UMAP 0x02 /* Unmap CAN controllers from card' memory */ |
Functions | |
MODULE_AUTHOR ("Markus Plessing <[email protected]>") | |
MODULE_DESCRIPTION ("Socket-CAN driver for EMS CPC-CARD cards") | |
MODULE_SUPPORTED_DEVICE ("EMS CPC-CARD CAN card") | |
MODULE_LICENSE ("GPL v2") | |
MODULE_DEVICE_TABLE (pcmcia, ems_pcmcia_tbl) | |
module_init (ems_pcmcia_init) | |
module_exit (ems_pcmcia_exit) | |
#define DRV_NAME "ems_pcmcia" |
Definition at line 28 of file ems_pcmcia.c.
#define EMS_CMD_MAP 0x03 /* Map CAN controllers into card' memory */ |
Definition at line 68 of file ems_pcmcia.c.
#define EMS_CMD_RESET 0x00 /* Perform a reset of the card */ |
Definition at line 67 of file ems_pcmcia.c.
#define EMS_CMD_UMAP 0x02 /* Unmap CAN controllers from card' memory */ |
Definition at line 69 of file ems_pcmcia.c.
#define EMS_PCMCIA_CAN_BASE_OFFSET 0x100 /* Offset where controllers starts */ |
Definition at line 64 of file ems_pcmcia.c.
#define EMS_PCMCIA_CAN_CLOCK (16000000 / 2) |
Definition at line 44 of file ems_pcmcia.c.
#define EMS_PCMCIA_CAN_CTRL_SIZE 0x80 /* Memory size for each controller */ |
Definition at line 65 of file ems_pcmcia.c.
#define EMS_PCMCIA_CDR (CDR_CBP | CDR_CLKOUT_MASK) |
Definition at line 62 of file ems_pcmcia.c.
#define EMS_PCMCIA_MAX_CHAN 2 |
Definition at line 35 of file ems_pcmcia.c.
Definition at line 63 of file ems_pcmcia.c.
#define EMS_PCMCIA_OCR (OCR_TX0_PUSHPULL | OCR_TX1_PUSHPULL) |
Definition at line 54 of file ems_pcmcia.c.
MODULE_AUTHOR | ( | "Markus Plessing <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pcmcia | , |
ems_pcmcia_tbl | |||
) |
module_exit | ( | ems_pcmcia_exit | ) |
module_init | ( | ems_pcmcia_init | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |