aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-08-11 17:41:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 12:14:31 -0400
commitc7a46533ff7ef9e1c51bae6e54208527c5275b24 (patch)
tree4b952a757d60d9cfa4aad8462ee8ef7e03fec6dd /include/linux
parent1d8b9e1bad35fa3ea829990b9056c2a257d8fe79 (diff)
[PATCH] I2C: Kill i2c_algorithm.id (5/7)
Merge the algorithm id part (16 upper bits) of the i2c adapters ids into the definition of the adapters ids directly. After that, we don't need to OR both ids together for each i2c_adapter structure. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c-id.h128
-rw-r--r--include/linux/i2c-isa.h2
2 files changed, 65 insertions, 65 deletions
diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h
index 33f08258f22b..5b72f664cc21 100644
--- a/include/linux/i2c-id.h
+++ b/include/linux/i2c-id.h
@@ -218,103 +218,103 @@
218 */ 218 */
219 219
220/* --- Bit algorithm adapters */ 220/* --- Bit algorithm adapters */
221#define I2C_HW_B_LP 0x00 /* Parallel port Philips style adapter */ 221#define I2C_HW_B_LP 0x010000 /* Parallel port Philips style */
222#define I2C_HW_B_LPC 0x01 /* Parallel port, over control reg. */ 222#define I2C_HW_B_LPC 0x010001 /* Parallel port control reg. */
223#define I2C_HW_B_SER 0x02 /* Serial line interface */ 223#define I2C_HW_B_SER 0x010002 /* Serial line interface */
224#define I2C_HW_B_ELV 0x03 /* ELV Card */ 224#define I2C_HW_B_ELV 0x010003 /* ELV Card */
225#define I2C_HW_B_VELLE 0x04 /* Vellemann K8000 */ 225#define I2C_HW_B_VELLE 0x010004 /* Vellemann K8000 */
226#define I2C_HW_B_BT848 0x05 /* BT848 video boards */ 226#define I2C_HW_B_BT848 0x010005 /* BT848 video boards */
227#define I2C_HW_B_WNV 0x06 /* Winnov Videums */ 227#define I2C_HW_B_WNV 0x010006 /* Winnov Videums */
228#define I2C_HW_B_VIA 0x07 /* Via vt82c586b */ 228#define I2C_HW_B_VIA 0x010007 /* Via vt82c586b */
229#define I2C_HW_B_HYDRA 0x08 /* Apple Hydra Mac I/O */ 229#define I2C_HW_B_HYDRA 0x010008 /* Apple Hydra Mac I/O */
230#define I2C_HW_B_G400 0x09 /* Matrox G400 */ 230#define I2C_HW_B_G400 0x010009 /* Matrox G400 */
231#define I2C_HW_B_I810 0x0a /* Intel I810 */ 231#define I2C_HW_B_I810 0x01000a /* Intel I810 */
232#define I2C_HW_B_VOO 0x0b /* 3dfx Voodoo 3 / Banshee */ 232#define I2C_HW_B_VOO 0x01000b /* 3dfx Voodoo 3 / Banshee */
233#define I2C_HW_B_PPORT 0x0c /* Primitive parallel port adapter */ 233#define I2C_HW_B_PPORT 0x01000c /* Primitive parallel port adapter */
234#define I2C_HW_B_SAVG 0x0d /* Savage 4 */ 234#define I2C_HW_B_SAVG 0x01000d /* Savage 4 */
235#define I2C_HW_B_SCX200 0x0e /* Nat'l Semi SCx200 I2C */ 235#define I2C_HW_B_SCX200 0x01000e /* Nat'l Semi SCx200 I2C */
236#define I2C_HW_B_RIVA 0x10 /* Riva based graphics cards */ 236#define I2C_HW_B_RIVA 0x010010 /* Riva based graphics cards */
237#define I2C_HW_B_IOC 0x11 /* IOC bit-wiggling */ 237#define I2C_HW_B_IOC 0x010011 /* IOC bit-wiggling */
238#define I2C_HW_B_TSUNA 0x12 /* DEC Tsunami chipset */ 238#define I2C_HW_B_TSUNA 0x010012 /* DEC Tsunami chipset */
239#define I2C_HW_B_FRODO 0x13 /* 2d3D, Inc. SA-1110 Development Board */ 239#define I2C_HW_B_FRODO 0x010013 /* 2d3D SA-1110 Development Board */
240#define I2C_HW_B_OMAHA 0x14 /* Omaha I2C interface (ARM) */ 240#define I2C_HW_B_OMAHA 0x010014 /* Omaha I2C interface (ARM) */
241#define I2C_HW_B_GUIDE 0x15 /* Guide bit-basher */ 241#define I2C_HW_B_GUIDE 0x010015 /* Guide bit-basher */
242#define I2C_HW_B_IXP2000 0x16 /* GPIO on IXP2000 systems */ 242#define I2C_HW_B_IXP2000 0x010016 /* GPIO on IXP2000 systems */
243#define I2C_HW_B_IXP4XX 0x17 /* GPIO on IXP4XX systems */ 243#define I2C_HW_B_IXP4XX 0x010017 /* GPIO on IXP4XX systems */
244#define I2C_HW_B_S3VIA 0x18 /* S3Via ProSavage adapter */ 244#define I2C_HW_B_S3VIA 0x010018 /* S3Via ProSavage adapter */
245#define I2C_HW_B_ZR36067 0x19 /* Zoran-36057/36067 based boards */ 245#define I2C_HW_B_ZR36067 0x010019 /* Zoran-36057/36067 based boards */
246#define I2C_HW_B_PCILYNX 0x1a /* TI PCILynx I2C adapter */ 246#define I2C_HW_B_PCILYNX 0x01001a /* TI PCILynx I2C adapter */
247#define I2C_HW_B_CX2388x 0x1b /* connexant 2388x based tv cards */ 247#define I2C_HW_B_CX2388x 0x01001b /* connexant 2388x based tv cards */
248 248
249/* --- PCF 8584 based algorithms */ 249/* --- PCF 8584 based algorithms */
250#define I2C_HW_P_LP 0x00 /* Parallel port interface */ 250#define I2C_HW_P_LP 0x020000 /* Parallel port interface */
251#define I2C_HW_P_ISA 0x01 /* generic ISA Bus inteface card */ 251#define I2C_HW_P_ISA 0x020001 /* generic ISA Bus inteface card */
252#define I2C_HW_P_ELEK 0x02 /* Elektor ISA Bus inteface card */ 252#define I2C_HW_P_ELEK 0x020002 /* Elektor ISA Bus inteface card */
253 253
254/* --- PCA 9564 based algorithms */ 254/* --- PCA 9564 based algorithms */
255#define I2C_HW_A_ISA 0x00 /* generic ISA Bus interface card */ 255#define I2C_HW_A_ISA 0x1a0000 /* generic ISA Bus interface card */
256 256
257/* --- ACPI Embedded controller algorithms */ 257/* --- ACPI Embedded controller algorithms */
258#define I2C_HW_ACPI_EC 0x00 258#define I2C_HW_ACPI_EC 0x1f0000
259 259
260/* --- MPC824x PowerPC adapters */ 260/* --- MPC824x PowerPC adapters */
261#define I2C_HW_MPC824X 0x00 /* Motorola 8240 / 8245 */ 261#define I2C_HW_MPC824X 0x100001 /* Motorola 8240 / 8245 */
262 262
263/* --- MPC8xx PowerPC adapters */ 263/* --- MPC8xx PowerPC adapters */
264#define I2C_HW_MPC8XX_EPON 0x00 /* Eponymous MPC8xx I2C adapter */ 264#define I2C_HW_MPC8XX_EPON 0x110000 /* Eponymous MPC8xx I2C adapter */
265 265
266/* --- ITE based algorithms */ 266/* --- ITE based algorithms */
267#define I2C_HW_I_IIC 0x00 /* controller on the ITE */ 267#define I2C_HW_I_IIC 0x080000 /* controller on the ITE */
268 268
269/* --- PowerPC on-chip adapters */ 269/* --- PowerPC on-chip adapters */
270#define I2C_HW_OCP 0x00 /* IBM on-chip I2C adapter */ 270#define I2C_HW_OCP 0x120000 /* IBM on-chip I2C adapter */
271 271
272/* --- Broadcom SiByte adapters */ 272/* --- Broadcom SiByte adapters */
273#define I2C_HW_SIBYTE 0x00 273#define I2C_HW_SIBYTE 0x150000
274 274
275/* --- SGI adapters */ 275/* --- SGI adapters */
276#define I2C_HW_SGI_VINO 0x00 276#define I2C_HW_SGI_VINO 0x160000
277#define I2C_HW_SGI_MACE 0x01 277#define I2C_HW_SGI_MACE 0x160001
278 278
279/* --- XSCALE on-chip adapters */ 279/* --- XSCALE on-chip adapters */
280#define I2C_HW_IOP3XX 0x00 280#define I2C_HW_IOP3XX 0x140000
281 281
282/* --- Au1550 PSC adapters adapters */ 282/* --- Au1550 PSC adapters adapters */
283#define I2C_HW_AU1550_PSC 0x00 283#define I2C_HW_AU1550_PSC 0x1b0000
284 284
285/* --- SMBus only adapters */ 285/* --- SMBus only adapters */
286#define I2C_HW_SMBUS_PIIX4 0x00 286#define I2C_HW_SMBUS_PIIX4 0x040000
287#define I2C_HW_SMBUS_ALI15X3 0x01 287#define I2C_HW_SMBUS_ALI15X3 0x040001
288#define I2C_HW_SMBUS_VIA2 0x02 288#define I2C_HW_SMBUS_VIA2 0x040002
289#define I2C_HW_SMBUS_VOODOO3 0x03 289#define I2C_HW_SMBUS_VOODOO3 0x040003
290#define I2C_HW_SMBUS_I801 0x04 290#define I2C_HW_SMBUS_I801 0x040004
291#define I2C_HW_SMBUS_AMD756 0x05 291#define I2C_HW_SMBUS_AMD756 0x040005
292#define I2C_HW_SMBUS_SIS5595 0x06 292#define I2C_HW_SMBUS_SIS5595 0x040006
293#define I2C_HW_SMBUS_ALI1535 0x07 293#define I2C_HW_SMBUS_ALI1535 0x040007
294#define I2C_HW_SMBUS_SIS630 0x08 294#define I2C_HW_SMBUS_SIS630 0x040008
295#define I2C_HW_SMBUS_SIS96X 0x09 295#define I2C_HW_SMBUS_SIS96X 0x040009
296#define I2C_HW_SMBUS_AMD8111 0x0a 296#define I2C_HW_SMBUS_AMD8111 0x04000a
297#define I2C_HW_SMBUS_SCX200 0x0b 297#define I2C_HW_SMBUS_SCX200 0x04000b
298#define I2C_HW_SMBUS_NFORCE2 0x0c 298#define I2C_HW_SMBUS_NFORCE2 0x04000c
299#define I2C_HW_SMBUS_W9968CF 0x0d 299#define I2C_HW_SMBUS_W9968CF 0x04000d
300#define I2C_HW_SMBUS_OV511 0x0e /* OV511(+) USB 1.1 webcam ICs */ 300#define I2C_HW_SMBUS_OV511 0x04000e /* OV511(+) USB 1.1 webcam ICs */
301#define I2C_HW_SMBUS_OV518 0x0f /* OV518(+) USB 1.1 webcam ICs */ 301#define I2C_HW_SMBUS_OV518 0x04000f /* OV518(+) USB 1.1 webcam ICs */
302#define I2C_HW_SMBUS_OV519 0x10 /* OV519 USB 1.1 webcam IC */ 302#define I2C_HW_SMBUS_OV519 0x040010 /* OV519 USB 1.1 webcam IC */
303#define I2C_HW_SMBUS_OVFX2 0x11 /* Cypress/OmniVision FX2 webcam */ 303#define I2C_HW_SMBUS_OVFX2 0x040011 /* Cypress/OmniVision FX2 webcam */
304 304
305/* --- ISA pseudo-adapter */ 305/* --- ISA pseudo-adapter */
306#define I2C_HW_ISA 0x00 306#define I2C_HW_ISA 0x050000
307 307
308/* --- IPMI pseudo-adapter */ 308/* --- IPMI pseudo-adapter */
309#define I2C_HW_IPMI 0x00 309#define I2C_HW_IPMI 0x0b0000
310 310
311/* --- IPMB adapter */ 311/* --- IPMB adapter */
312#define I2C_HW_IPMB 0x00 312#define I2C_HW_IPMB 0x0c0000
313 313
314/* --- MCP107 adapter */ 314/* --- MCP107 adapter */
315#define I2C_HW_MPC107 0x00 315#define I2C_HW_MPC107 0x0d0000
316 316
317/* --- Marvell mv64xxx i2c adapter */ 317/* --- Marvell mv64xxx i2c adapter */
318#define I2C_HW_MV64XXX 0x00 318#define I2C_HW_MV64XXX 0x190000
319 319
320#endif /* LINUX_I2C_ID_H */ 320#endif /* LINUX_I2C_ID_H */
diff --git a/include/linux/i2c-isa.h b/include/linux/i2c-isa.h
index 54c27e88d101..67e3598c4cec 100644
--- a/include/linux/i2c-isa.h
+++ b/include/linux/i2c-isa.h
@@ -29,7 +29,7 @@ extern int i2c_isa_del_driver(struct i2c_driver *driver);
29/* Detect whether we are on the isa bus. This is only useful to hybrid 29/* Detect whether we are on the isa bus. This is only useful to hybrid
30 (i2c+isa) drivers. */ 30 (i2c+isa) drivers. */
31#define i2c_is_isa_adapter(adapptr) \ 31#define i2c_is_isa_adapter(adapptr) \
32 ((adapptr)->id == (I2C_ALGO_ISA | I2C_HW_ISA)) 32 ((adapptr)->id == I2C_HW_ISA)
33#define i2c_is_isa_client(clientptr) \ 33#define i2c_is_isa_client(clientptr) \
34 i2c_is_isa_adapter((clientptr)->adapter) 34 i2c_is_isa_adapter((clientptr)->adapter)
35 35