Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
at24.h
Go to the documentation of this file.
1 /*
2  * at24.h - platform_data for the at24 (generic eeprom) driver
3  * (C) Copyright 2008 by Pengutronix
4  * (C) Copyright 2012 by Wolfram Sang
5  * same license as the driver
6  */
7 
8 #ifndef _LINUX_AT24_H
9 #define _LINUX_AT24_H
10 
11 #include <linux/types.h>
12 #include <linux/memory.h>
13 
43  u32 byte_len; /* size (sum of all addr) */
44  u16 page_size; /* for writes */
46 #define AT24_FLAG_ADDR16 0x80 /* address pointer is 16 bit */
47 #define AT24_FLAG_READONLY 0x40 /* sysfs-entry will be read-only */
48 #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */
49 #define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */
50 
51  void (*setup)(struct memory_accessor *, void *context);
52  void *context;
53 };
54 
55 #endif /* _LINUX_AT24_H */