Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sja1000_of_platform.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/can/dev.h>
#include <linux/of_platform.h>
#include <asm/prom.h>
#include "sja1000.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "sja1000_of_platform"
 
#define SJA1000_OFP_CAN_CLOCK   (16000000 / 2)
 
#define SJA1000_OFP_OCR   OCR_TX0_PULLDOWN
 
#define SJA1000_OFP_CDR   (CDR_CBP | CDR_CLK_OFF)
 

Functions

 MODULE_AUTHOR ("Wolfgang Grandegger <[email protected]>")
 
 MODULE_DESCRIPTION ("Socket-CAN driver for SJA1000 on the OF platform bus")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DEVICE_TABLE (of, sja1000_ofp_table)
 
 module_platform_driver (sja1000_ofp_driver)
 

Macro Definition Documentation

#define DRV_NAME   "sja1000_of_platform"

Definition at line 49 of file sja1000_of_platform.c.

#define SJA1000_OFP_CAN_CLOCK   (16000000 / 2)

Definition at line 55 of file sja1000_of_platform.c.

#define SJA1000_OFP_CDR   (CDR_CBP | CDR_CLK_OFF)

Definition at line 58 of file sja1000_of_platform.c.

#define SJA1000_OFP_OCR   OCR_TX0_PULLDOWN

Definition at line 57 of file sja1000_of_platform.c.

Function Documentation

MODULE_AUTHOR ( "Wolfgang Grandegger <[email protected]>"  )
MODULE_DESCRIPTION ( "Socket-CAN driver for SJA1000 on the OF platform bus )
MODULE_DEVICE_TABLE ( of  ,
sja1000_ofp_table   
)
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( sja1000_ofp_driver  )