#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/slab.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.
#define DRV_NAME "ems_pci" |
#define EMS_PCI_CAN_BASE_OFFSET 0x400 /* offset where the controllers starts */ |
#define EMS_PCI_CAN_CLOCK (16000000 / 2) |
#define EMS_PCI_CAN_CTRL_SIZE 0x200 /* memory size for each controller */ |
#define EMS_PCI_V1_BASE_BAR 1 |
#define EMS_PCI_V1_CONF_SIZE 4096 /* size of PITA control area */ |
#define EMS_PCI_V1_MAX_CHAN 2 |
#define EMS_PCI_V2_BASE_BAR 2 |
#define EMS_PCI_V2_CONF_SIZE 128 /* size of PLX control area */ |
#define EMS_PCI_V2_MAX_CHAN 4 |
#define PITA2_ICR 0x00 /* Interrupt Control Register */ |
#define PITA2_ICR_INT0 0x00000002 /* [RC] INT0 Active/Clear */ |
#define PITA2_ICR_INT0_EN 0x00020000 /* [RW] Enable INT0 */ |
#define PITA2_MISC 0x1c /* Miscellaneous Register */ |
#define PITA2_MISC_CONFIG 0x04000000 /* Multiplexed parallel interface */ |
#define PLX_ICSR 0x4c /* Interrupt Control/Status register */ |
#define PLX_ICSR_LINTI1_CLR 0x0400 /* Local Edge Triggerable Interrupt Clear */ |
#define PLX_ICSR_LINTI1_ENA 0x0001 /* LINTi1 Enable */ |
#define PLX_ICSR_PCIINT_ENA 0x0040 /* PCI Interrupt Enable */ |
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
ems_pci_tbl |
|
|
) |
| |
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_pci_driver |
( |
ems_pci_driver |
| ) |
|
MODULE_SUPPORTED_DEVICE |
( |
"EMS CPC-PCI/PCIe/104P CAN card" |
| ) |
|