Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
w1_ds2431.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/delay.h>
#include "../w1.h"
#include "../w1_int.h"
#include "../w1_family.h"

Go to the source code of this file.

Macros

#define W1_F2D_EEPROM_SIZE   128
 
#define W1_F2D_PAGE_COUNT   4
 
#define W1_F2D_PAGE_BITS   5
 
#define W1_F2D_PAGE_SIZE   (1<<W1_F2D_PAGE_BITS)
 
#define W1_F2D_PAGE_MASK   0x1F
 
#define W1_F2D_SCRATCH_BITS   3
 
#define W1_F2D_SCRATCH_SIZE   (1<<W1_F2D_SCRATCH_BITS)
 
#define W1_F2D_SCRATCH_MASK   (W1_F2D_SCRATCH_SIZE-1)
 
#define W1_F2D_READ_EEPROM   0xF0
 
#define W1_F2D_WRITE_SCRATCH   0x0F
 
#define W1_F2D_READ_SCRATCH   0xAA
 
#define W1_F2D_COPY_SCRATCH   0x55
 
#define W1_F2D_TPROG_MS   11
 
#define W1_F2D_READ_RETRIES   10
 
#define W1_F2D_READ_MAXLEN   8
 

Functions

 module_init (w1_f2d_init)
 
 module_exit (w1_f2d_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Bernhard Weirich <[email protected]>")
 
 MODULE_DESCRIPTION ("w1 family 2d driver for DS2431, 1kb EEPROM")
 

Macro Definition Documentation

#define W1_F2D_COPY_SCRATCH   0x55

Definition at line 36 of file w1_ds2431.c.

#define W1_F2D_EEPROM_SIZE   128

Definition at line 23 of file w1_ds2431.c.

#define W1_F2D_PAGE_BITS   5

Definition at line 25 of file w1_ds2431.c.

#define W1_F2D_PAGE_COUNT   4

Definition at line 24 of file w1_ds2431.c.

#define W1_F2D_PAGE_MASK   0x1F

Definition at line 27 of file w1_ds2431.c.

#define W1_F2D_PAGE_SIZE   (1<<W1_F2D_PAGE_BITS)

Definition at line 26 of file w1_ds2431.c.

#define W1_F2D_READ_EEPROM   0xF0

Definition at line 33 of file w1_ds2431.c.

#define W1_F2D_READ_MAXLEN   8

Definition at line 42 of file w1_ds2431.c.

#define W1_F2D_READ_RETRIES   10

Definition at line 41 of file w1_ds2431.c.

#define W1_F2D_READ_SCRATCH   0xAA

Definition at line 35 of file w1_ds2431.c.

#define W1_F2D_SCRATCH_BITS   3

Definition at line 29 of file w1_ds2431.c.

#define W1_F2D_SCRATCH_MASK   (W1_F2D_SCRATCH_SIZE-1)

Definition at line 31 of file w1_ds2431.c.

#define W1_F2D_SCRATCH_SIZE   (1<<W1_F2D_SCRATCH_BITS)

Definition at line 30 of file w1_ds2431.c.

#define W1_F2D_TPROG_MS   11

Definition at line 39 of file w1_ds2431.c.

#define W1_F2D_WRITE_SCRATCH   0x0F

Definition at line 34 of file w1_ds2431.c.

Function Documentation

MODULE_AUTHOR ( "Bernhard Weirich <[email protected]>"  )
MODULE_DESCRIPTION ( "w1 family 2d driver for  DS2431,
1kb EEPROM"   
)
module_exit ( w1_f2d_fini  )
module_init ( w1_f2d_init  )
MODULE_LICENSE ( "GPL"  )