Rev 2967 | Rev 3192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2967 | Rev 3031 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
16 | GNU General Public License for more details. |
Line 17... | Line 17... | ||
17 | 17 | ||
18 | You should have received a copy of the GNU General Public License |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
19 | along with this program; if not, write to the Free Software |
- | 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
21 | MA 02110-1301 USA. */ |
Line 21... | Line 22... | ||
21 | /* ------------------------------------------------------------------------- */ |
22 | /* ------------------------------------------------------------------------- */ |
22 | 23 | ||
23 | /* With some changes from Kyösti Mälkki |
- | |
24 | Frodo Looijaard |
24 | /* With some changes from Kyösti Mälkki |
25 | 25 | Frodo Looijaard |
|
Line 26... | Line 26... | ||
26 | #ifndef _LINUX_I2C_H |
26 | #ifndef _LINUX_I2C_H |
27 | #define _LINUX_I2C_H |
27 | #define _LINUX_I2C_H |
28 | 28 | ||
29 | #include |
29 | #include |
30 | #ifdef __KERNEL__ |
30 | #ifdef __KERNEL__ |
Line -... | Line 31... | ||
- | 31 | #include |
|
- | 32 | #include |
|
Line 31... | Line 33... | ||
31 | #include |
33 | #include |
Line 32... | Line 34... | ||
32 | #include |
34 | |
33 | #include |
35 | extern struct bus_type i2c_bus_type; |
Line 68... | Line 70... | ||
68 | * @clients: List of detected clients we created (for i2c-core use only) |
70 | * @clients: List of detected clients we created (for i2c-core use only) |
69 | * |
71 | * |
70 | * The driver.owner field should be set to the module owner of this driver. |
72 | * The driver.owner field should be set to the module owner of this driver. |
71 | * The driver.name field should be set to the name of this driver. |
73 | * The driver.name field should be set to the name of this driver. |
72 | * |
74 | * |
73 | * For automatic device detection, both @detect and @address_data must |
75 | * For automatic device detection, both @detect and @address_list must |
74 | * be defined. @class should also be set, otherwise only devices forced |
76 | * be defined. @class should also be set, otherwise only devices forced |
75 | * with module parameters will be created. The detect function must |
77 | * with module parameters will be created. The detect function must |
76 | * fill at least the name field of the i2c_board_info structure it is |
78 | * fill at least the name field of the i2c_board_info structure it is |
77 | * handed upon successful detection, and possibly also the flags field. |
79 | * handed upon successful detection, and possibly also the flags field. |
78 | * |
80 | * |
Line 269... | Line 271... | ||
269 | /*flags for the client struct: */ |
271 | /*flags for the client struct: */ |
270 | #define I2C_CLIENT_PEC 0x04 /* Use Packet Error Checking */ |
272 | #define I2C_CLIENT_PEC 0x04 /* Use Packet Error Checking */ |
271 | #define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */ |
273 | #define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */ |
272 | /* Must equal I2C_M_TEN below */ |
274 | /* Must equal I2C_M_TEN below */ |
273 | #define I2C_CLIENT_WAKE 0x80 /* for board_info; true iff can wake */ |
275 | #define I2C_CLIENT_WAKE 0x80 /* for board_info; true iff can wake */ |
- | 276 | #define I2C_CLIENT_SCCB 0x9000 /* Use Omnivision SCCB protocol */ |
|
- | 277 | /* Must match I2C_M_STOP|IGNORE_NAK */ |
|
Line 274... | Line 278... | ||
274 | 278 | ||
275 | /* i2c adapter classes (bitmask) */ |
279 | /* i2c adapter classes (bitmask) */ |
276 | #define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */ |
280 | #define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */ |
277 | #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ |
281 | #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ |