Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sja1000_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/dev.h>
#include <linux/can/platform/sja1000.h>
#include "sja1000.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "sja1000_isa"
 
#define MAXDEV   8
 
#define CLK_DEFAULT   16000000 /* 16 MHz */
 
#define CDR_DEFAULT   (CDR_CBP | CDR_CLK_OFF)
 
#define OCR_DEFAULT   OCR_TX0_PUSHPULL
 
#define SJA1000_IOSIZE   0x20
 
#define SJA1000_IOSIZE_INDIRECT   0x02
 

Functions

 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)
 

Macro Definition Documentation

#define CDR_DEFAULT   (CDR_CBP | CDR_CLK_OFF)

Definition at line 40 of file sja1000_isa.c.

#define CLK_DEFAULT   16000000 /* 16 MHz */

Definition at line 39 of file sja1000_isa.c.

#define DRV_NAME   "sja1000_isa"

Definition at line 31 of file sja1000_isa.c.

#define MAXDEV   8

Definition at line 33 of file sja1000_isa.c.

#define OCR_DEFAULT   OCR_TX0_PUSHPULL

Definition at line 41 of file sja1000_isa.c.

#define SJA1000_IOSIZE   0x20

Definition at line 75 of file sja1000_isa.c.

#define SJA1000_IOSIZE_INDIRECT   0x02

Definition at line 76 of file sja1000_isa.c.

Function Documentation

MODULE_AUTHOR ( "Wolfgang Grandegger <[email protected]>"  )
MODULE_DESCRIPTION ( "Socket-CAN driver for SJA1000 on the ISA bus )
module_exit ( sja1000_isa_exit  )
module_init ( sja1000_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 ( cdr  ,
byte  ,
NULL  ,
S_IRUGO   
)
module_param_array ( ocr  ,
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 ( cdr  ,
"Clock divider register ""(default=0x48 [CDR_CBP | CDR_CLK_OFF])"   
)
MODULE_PARM_DESC ( ocr  ,
"Output control register ""(default=0x18 [OCR_TX0_PUSHPULL])"   
)