Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
core.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/kmemcheck.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/idr.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/c2port.h>

Go to the source code of this file.

Macros

#define DRIVER_NAME   "c2port"
 
#define DRIVER_VERSION   "0.51.0"
 
#define C2PORT_DEVICEID   0x00
 
#define C2PORT_REVID   0x01
 
#define C2PORT_FPCTL   0x02
 
#define C2PORT_FPDAT   0xB4
 
#define C2PORT_GET_VERSION   0x01
 
#define C2PORT_DEVICE_ERASE   0x03
 
#define C2PORT_BLOCK_READ   0x06
 
#define C2PORT_BLOCK_WRITE   0x07
 
#define C2PORT_PAGE_ERASE   0x08
 
#define C2PORT_INVALID_COMMAND   0x00
 
#define C2PORT_COMMAND_FAILED   0x02
 
#define C2PORT_COMMAND_OK   0x0d
 

Functions

struct c2port_devicec2port_device_register (char *name, struct c2port_ops *ops, void *devdata)
 
 EXPORT_SYMBOL (c2port_device_register)
 
void c2port_device_unregister (struct c2port_device *c2dev)
 
 EXPORT_SYMBOL (c2port_device_unregister)
 
 module_init (c2port_init)
 
 module_exit (c2port_exit)
 
 MODULE_AUTHOR ("Rodolfo Giometti <[email protected]>")
 
 MODULE_DESCRIPTION ("Silicon Labs C2 port support v. "DRIVER_VERSION)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define C2PORT_BLOCK_READ   0x06

Definition at line 52 of file core.c.

#define C2PORT_BLOCK_WRITE   0x07

Definition at line 53 of file core.c.

#define C2PORT_COMMAND_FAILED   0x02

Definition at line 58 of file core.c.

#define C2PORT_COMMAND_OK   0x0d

Definition at line 59 of file core.c.

#define C2PORT_DEVICE_ERASE   0x03

Definition at line 51 of file core.c.

#define C2PORT_DEVICEID   0x00

Definition at line 44 of file core.c.

#define C2PORT_FPCTL   0x02

Definition at line 46 of file core.c.

#define C2PORT_FPDAT   0xB4

Definition at line 47 of file core.c.

#define C2PORT_GET_VERSION   0x01

Definition at line 50 of file core.c.

#define C2PORT_INVALID_COMMAND   0x00

Definition at line 57 of file core.c.

#define C2PORT_PAGE_ERASE   0x08

Definition at line 54 of file core.c.

#define C2PORT_REVID   0x01

Definition at line 45 of file core.c.

#define DRIVER_NAME   "c2port"

Definition at line 27 of file core.c.

#define DRIVER_VERSION   "0.51.0"

Definition at line 28 of file core.c.

Function Documentation

struct c2port_device* c2port_device_register ( char name,
struct c2port_ops ops,
void devdata 
)
read

Definition at line 884 of file core.c.

void c2port_device_unregister ( struct c2port_device c2dev)

Definition at line 959 of file core.c.

EXPORT_SYMBOL ( c2port_device_register  )
EXPORT_SYMBOL ( c2port_device_unregister  )
MODULE_AUTHOR ( "Rodolfo Giometti <[email protected]>"  )
MODULE_DESCRIPTION ( "Silicon Labs C2 port support v. "  DRIVER_VERSION)
module_exit ( c2port_exit  )
module_init ( c2port_init  )
MODULE_LICENSE ( "GPL"  )