Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
at24.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/mod_devicetable.h>
#include <linux/log2.h>
#include <linux/bitops.h>
#include <linux/jiffies.h>
#include <linux/of.h>
#include <linux/i2c.h>
#include <linux/i2c/at24.h>

Go to the source code of this file.

Data Structures

struct  at24_data
 

Macros

#define AT24_SIZE_BYTELEN   5
 
#define AT24_SIZE_FLAGS   8
 
#define AT24_BITMASK(x)   (BIT(x) - 1)
 
#define AT24_DEVICE_MAGIC(_len, _flags)
 

Functions

 module_param (io_limit, uint, 0)
 
 MODULE_PARM_DESC (io_limit,"Maximum bytes per I/O (default 128)")
 
 module_param (write_timeout, uint, 0)
 
 MODULE_PARM_DESC (write_timeout,"Time (in ms) to try writes (default 25)")
 
 MODULE_DEVICE_TABLE (i2c, at24_ids)
 
 module_init (at24_init)
 
 module_exit (at24_exit)
 
 MODULE_DESCRIPTION ("Driver for most I2C EEPROMs")
 
 MODULE_AUTHOR ("David Brownell and Wolfram Sang")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AT24_BITMASK (   x)    (BIT(x) - 1)

Definition at line 102 of file at24.c.

#define AT24_DEVICE_MAGIC (   _len,
  _flags 
)
Value:
((1 << AT24_SIZE_FLAGS | (_flags)) \

Definition at line 105 of file at24.c.

#define AT24_SIZE_BYTELEN   5

Definition at line 99 of file at24.c.

#define AT24_SIZE_FLAGS   8

Definition at line 100 of file at24.c.

Function Documentation

MODULE_AUTHOR ( "David Brownell and Wolfram Sang"  )
MODULE_DESCRIPTION ( "Driver for most I2C EEPROMs"  )
MODULE_DEVICE_TABLE ( i2c  ,
at24_ids   
)
module_exit ( at24_exit  )
module_init ( at24_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( io_limit  ,
uint  ,
 
)
module_param ( write_timeout  ,
uint  ,
 
)
MODULE_PARM_DESC ( io_limit  ,
"Maximum bytes per I/O (default 128)"   
)
MODULE_PARM_DESC ( write_timeout  ,
"Time (in ms) to try writes (default 25)"   
)