#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.h>
#include <linux/can/dev.h>
#include <linux/can/platform/cc770.h>
#include "cc770.h"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Wolfgang Grandegger <[email protected]>") |
|
| MODULE_DESCRIPTION ("Socket-CAN driver for CC770 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 (cir, byte, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (cir,"CPU interface register (default=0x40 [DSC])") |
|
| module_param_array (cor, byte, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (cor,"Clockout register (default=0x00)") |
|
| module_param_array (bcr, byte, NULL, S_IRUGO) |
|
| MODULE_PARM_DESC (bcr,"Bus configuration register (default=0x40 [CBY])") |
|
| module_init (cc770_isa_init) |
|
| module_exit (cc770_isa_exit) |
|
#define CC770_IOSIZE 0x20 |
#define CC770_IOSIZE_INDIRECT 0x02 |
#define CLK_DEFAULT 16000000 /* 16 MHz */ |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
module_exit |
( |
cc770_isa_exit |
| ) |
|
module_init |
( |
cc770_isa_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
MODULE_PARM_DESC |
( |
cir |
, |
|
|
"CPU interface register (default=0x40 [DSC])" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cor |
, |
|
|
"Clockout register (default=0x00)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
bcr |
, |
|
|
"Bus configuration register (default=0x40 [CBY])" |
|
|
) |
| |