Changeset 583

Show
Ignore:
Timestamp:
09/27/99 15:49:29 (14 years ago)
Author:
frodo
Message:

`functionality' support for all bus drivers

Location:
lm-sensors/trunk/kernel/busses
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-ali15x3.c

    r516 r583  
    165165static void ali15x3_inc(struct i2c_adapter *adapter); 
    166166static void ali15x3_dec(struct i2c_adapter *adapter); 
     167static u32 ali15x3_func(struct i2c_adapter *adapter); 
    167168 
    168169#ifdef MODULE 
     
    179180  /* slave_rcv */       NULL, 
    180181  /* algo_control */    NULL, 
     182  /* functionality */   ali15x3_func, 
    181183}; 
    182184 
     
    611613} 
    612614 
     615u32 ali15x3_func(struct i2c_adapter *adapter) 
     616{ 
     617        return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | 
     618               I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | 
     619               I2C_FUNC_SMBUS_BLOCK_DATA; 
     620} 
     621 
    613622int __init i2c_ali15x3_init(void) 
    614623{ 
  • lm-sensors/trunk/kernel/busses/i2c-i801.c

    r545 r583  
    9595static void i801_inc(struct i2c_adapter *adapter); 
    9696static void i801_dec(struct i2c_adapter *adapter); 
     97static u32 i801_func(struct i2c_adapter *adapter); 
    9798 
    9899#ifdef MODULE 
     
    109110  /* slave_rcv */       NULL, 
    110111  /* algo_control */    NULL, 
     112  /* functionality */   i801_func, 
    111113}; 
    112114 
     
    560562} 
    561563 
     564u32 i801_func(struct i2c_adapter *adapter) 
     565{ 
     566        return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |  
     567               I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |  
     568               I2C_FUNC_SMBUS_BLOCK_DATA; 
     569} 
     570 
    562571int __init i2c_i801_init(void) 
    563572{ 
  • lm-sensors/trunk/kernel/busses/i2c-isa.c

    r563 r583  
    4444static void isa_inc_use (struct i2c_adapter *adapter); 
    4545static void isa_dec_use (struct i2c_adapter *adapter); 
     46static u32 isa_func(struct i2c_adapter *adapter); 
    4647 
    4748#ifdef MODULE 
     
    6364  /* id */              I2C_ALGO_ISA, 
    6465  /* master_xfer */     NULL, 
     66  /* smbus_access */    NULL, 
    6567  /* slave_send */      NULL, 
    6668  /* slave_rcv */       NULL, 
    6769  /* algo_control */    NULL, 
     70  /* functionality */   &isa_func, 
    6871}; 
    6972 
     
    9598  MOD_DEC_USE_COUNT; 
    9699#endif 
     100} 
     101 
     102/* We can't do a thing... */ 
     103static u32 isa_func(struct i2c_adapter *adapter) 
     104{ 
     105  return 0; 
    97106} 
    98107 
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r558 r583  
    106106static void piix4_inc(struct i2c_adapter *adapter); 
    107107static void piix4_dec(struct i2c_adapter *adapter); 
     108static u32 piix4_func(struct i2c_adapter *adapter); 
    108109 
    109110#ifdef MODULE 
     
    120121  /* slave_rcv */       NULL, 
    121122  /* algo_control */    NULL, 
     123  /* functionality */   piix4_func, 
    122124}; 
    123125 
     
    447449} 
    448450 
     451u32 piix4_func(struct i2c_adapter *adapter) 
     452{ 
     453  return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |  
     454         I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |  
     455         I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_PROC_CALL; 
     456} 
     457 
    449458int __init i2c_piix4_init(void) 
    450459{ 
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r522 r583  
    123123static void vt596_inc(struct i2c_adapter *adapter); 
    124124static void vt596_dec(struct i2c_adapter *adapter); 
     125static u32 vt596_func(struct i2c_adapter *adapter); 
    125126 
    126127#ifdef MODULE 
     
    137138  /* slave_rcv */       NULL, 
    138139  /* algo_control */    NULL, 
     140  /* functionality */   vt596_func, 
    139141}; 
    140142 
     
    484486} 
    485487 
     488u32 vt596_func(struct i2c_adapter *adapter) 
     489{ 
     490        return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | 
     491               I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | 
     492               I2C_FUNC_SMBUS_BLOCK_DATA; 
     493} 
     494 
    486495int __init i2c_vt596_init(void) 
    487496{ 
  • lm-sensors/trunk/kernel/busses/i2c-voodoo3.c

    r578 r583  
    8585static void voodoo3_inc(struct i2c_adapter *adapter); 
    8686static void voodoo3_dec(struct i2c_adapter *adapter); 
     87static u32 voodoo3_func(struct i2c_adapter *adapter); 
    8788 
    8889#ifdef MODULE 
     
    99100  /* slave_rcv */       NULL, 
    100101  /* algo_control */    NULL, 
     102  /* functionality */   voodoo3_func, 
    101103}; 
    102104 
     
    528530} 
    529531 
     532u32 voodoo3_func(struct i2c_adapter *adapter) 
     533{ 
     534  return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |  
     535         I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA; 
     536} 
     537 
    530538int __init i2c_voodoo3_init(void) 
    531539{