Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef _EEPROM_H |
2 | #define _EEPROM_H | |
3 | ||
4 | #include <linux/ioctl.h> | |
5 | ||
6 | ||
7 | #define EEPROMAGIC 'i' | |
8 | //IOCTRL(inode * ,file * ,cmd ,arg ) | |
9 | //S means "set through a ptr" | |
10 | //T means "tell by a arg value" | |
11 | //G means "get by a ptr" | |
12 | //Q means "get by return a value" | |
13 | //X means "switch G and S atomically" | |
14 | //H means "switch T and Q atomically" | |
15 | ||
16 | /******************************************************************************* | |
17 | * | |
18 | ********************************************************************************/ | |
19 | ||
20 | //EEPROM write | |
21 | #define EEPROMIOC_S_WRITE _IOW(EEPROMAGIC,0,stEEPROM_INFO_STRUCT) | |
22 | //EEPROM read | |
23 | #define EEPROMIOC_G_READ _IOWR(EEPROMAGIC,5,stPEEPROM_INFO_STRUCT) | |
24 | ||
25 | #endif //_EEPROM_H | |
26 | ||
27 |