Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cc770_isa.c File Reference
#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.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MAXDEV   8
 
#define CLK_DEFAULT   16000000 /* 16 MHz */
 
#define COR_DEFAULT   0x00
 
#define BCR_DEFAULT   BUSCFG_CBY
 
#define CC770_IOSIZE   0x20
 
#define CC770_IOSIZE_INDIRECT   0x02
 

Functions

 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)
 

Macro Definition Documentation

#define BCR_DEFAULT   BUSCFG_CBY

Definition at line 74 of file cc770_isa.c.

#define CC770_IOSIZE   0x20

Definition at line 110 of file cc770_isa.c.

#define CC770_IOSIZE_INDIRECT   0x02

Definition at line 111 of file cc770_isa.c.

#define CLK_DEFAULT   16000000 /* 16 MHz */

Definition at line 72 of file cc770_isa.c.

#define COR_DEFAULT   0x00

Definition at line 73 of file cc770_isa.c.

#define MAXDEV   8

Definition at line 66 of file cc770_isa.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 50 of file cc770_isa.c.

Function Documentation

MODULE_AUTHOR ( "Wolfgang Grandegger <[email protected]>"  )
MODULE_DESCRIPTION ( "Socket-CAN driver for CC770 on the ISA bus )
module_exit ( cc770_isa_exit  )
module_init ( cc770_isa_init  )
MODULE_LICENSE ( "GPL v2 )
module_param_array ( port  ,
ulong  ,
NULL  ,
S_IRUGO   
)
module_param_array ( mem  ,
ulong  ,
NULL  ,
S_IRUGO   
)
module_param_array ( indirect  ,
int  ,
NULL  ,
S_IRUGO   
)
module_param_array ( irq  ,
int  ,
NULL  ,
S_IRUGO   
)
module_param_array ( clk  ,
int  ,
NULL  ,
S_IRUGO   
)
module_param_array ( cir  ,
byte  ,
NULL  ,
S_IRUGO   
)
module_param_array ( cor  ,
byte  ,
NULL  ,
S_IRUGO   
)
module_param_array ( bcr  ,
byte  ,
NULL  ,
S_IRUGO   
)
MODULE_PARM_DESC ( port  ,
"I/O port number  
)
MODULE_PARM_DESC ( mem  ,
"I/O memory address  
)
MODULE_PARM_DESC ( indirect  ,
"Indirect access via address and data port  
)
MODULE_PARM_DESC ( irq  ,
"IRQ number  
)
MODULE_PARM_DESC ( clk  ,
"External oscillator clock frequency ""(default=16000000 [16 MHz])"   
)
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])"   
)