#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/can/dev.h>
#include <linux/can/platform/sja1000.h>
#include "sja1000.h"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Wolfgang Grandegger <[email protected]>") |
|
| MODULE_DESCRIPTION ("Socket-CAN driver for SJA1000 on the ISA bus") |
|
| MODULE_LICENSE ("GPL v2") |
|
| module_param_array (port, ulong, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (port,"I/O port number") |
|
| module_param_array (mem, ulong, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (mem,"I/O memory address") |
|
| module_param_array (indirect, int, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (indirect,"Indirect access via address and data port") |
|
| module_param_array (irq, int, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (irq,"IRQ number") |
|
| module_param_array (clk, int, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (clk,"External oscillator clock frequency ""(default=16000000 [16 MHz])") |
|
| module_param_array (cdr, byte, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (cdr,"Clock divider register ""(default=0x48 [CDR_CBP | CDR_CLK_OFF])") |
|
| module_param_array (ocr, byte, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (ocr,"Output control register ""(default=0x18 [OCR_TX0_PUSHPULL])") |
|
| module_init (sja1000_isa_init) |
|
| module_exit (sja1000_isa_exit) |
|
#define CLK_DEFAULT 16000000 /* 16 MHz */ |
#define DRV_NAME "sja1000_isa" |
#define SJA1000_IOSIZE 0x20 |
#define SJA1000_IOSIZE_INDIRECT 0x02 |
module_exit |
( |
sja1000_isa_exit |
| ) |
|
module_init |
( |
sja1000_isa_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
MODULE_PARM_DESC |
( |
cdr |
, |
|
|
"Clock divider register ""(default=0x48 [CDR_CBP | CDR_CLK_OFF])" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ocr |
, |
|
|
"Output control register ""(default=0x18 [OCR_TX0_PUSHPULL])" |
|
|
) |
| |