134 files changed, 31073 insertions, 30287 deletions
diff --git a/tvapi/libtv/tvsetting/CBlobDeviceE2prom.h b/tvapi/libtv/tvsetting/CBlobDeviceE2prom.h index d237488..159c8c1 100644 --- a/tvapi/libtv/tvsetting/CBlobDeviceE2prom.h +++ b/tvapi/libtv/tvsetting/CBlobDeviceE2prom.h @@ -21,8 +21,8 @@ #define I2C_SMBUS 0x0720 /* SMBus transfer */ struct i2c_msg { - unsigned short addr; /* slave address */ - unsigned short flags; + unsigned short addr; /* slave address */ + unsigned short flags; #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ #define I2C_M_WR 0x0000 /* write data, from master to slave */ #define I2C_M_RD 0x0001 /* read data, from slave to master */ @@ -32,13 +32,13 @@ struct i2c_msg { #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */ - unsigned short len; /* msg length */ - unsigned char *buf; /* pointer to msg data */ + unsigned short len; /* msg length */ + unsigned char *buf; /* pointer to msg data */ }; struct i2c_rdwr_ioctl_data { - struct i2c_msg *msgs; - unsigned int nmsgs; + struct i2c_msg *msgs; + unsigned int nmsgs; }; // 24C64 eeprom @@ -47,29 +47,29 @@ struct i2c_rdwr_ioctl_data { class CBlobDeviceE2prom: public CBlobDevice { public: - CBlobDeviceE2prom(); - virtual ~CBlobDeviceE2prom(); + CBlobDeviceE2prom(); + virtual ~CBlobDeviceE2prom(); - virtual int WriteBytes(int offset, int size, unsigned char *buf); - virtual int ReadBytes(int offset, int size, unsigned char *buf); - virtual int EraseAllData(); - virtual int InitCheck(); - virtual int OpenDevice(); - virtual int CloseDevice(); + virtual int WriteBytes(int offset, int size, unsigned char *buf); + virtual int ReadBytes(int offset, int size, unsigned char *buf); + virtual int EraseAllData(); + virtual int InitCheck(); + virtual int OpenDevice(); + virtual int CloseDevice(); private: private: - /*int E2P_DEV_TOTAL_SIZE; - int E2P_DEV_RW_START_OFFSET; - int E2P_DEV_RW_END_OFFSET; - int E2P_DEV_W_PAGE_SIZE; - int E2P_DEV_R_PAGE_SIZE; - int E2P_DEV_SLAVE_ADDR; - int E2P_DEV_RW_TEST_OFFSET; - int device_use_buffer; - unsigned char *device_buf; - char gFilePathBuf[CC_MAX_FILE_PATH];*/ + /*int E2P_DEV_TOTAL_SIZE; + int E2P_DEV_RW_START_OFFSET; + int E2P_DEV_RW_END_OFFSET; + int E2P_DEV_W_PAGE_SIZE; + int E2P_DEV_R_PAGE_SIZE; + int E2P_DEV_SLAVE_ADDR; + int E2P_DEV_RW_TEST_OFFSET; + int device_use_buffer; + unsigned char *device_buf; + char gFilePathBuf[CC_MAX_FILE_PATH];*/ }; |