~ubuntu-branches/ubuntu/oneiric/lm-sensors/oneiric

« back to all changes in this revision

Viewing changes to kernel/busses/i2c-nforce2.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-08-09 10:34:46 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070809103446-37pcunbx5dh4kqqy
Tags: 1:2.10.4-1ubuntu1
* Merge with Debian; remaining changes:
  - remove stop links from rc0 and rc6
  - lsb init script
  - don't ship modprobe directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    nForce4 MCP-04              0034
32
32
    nForce4 MCP51               0264
33
33
    nForce4 MCP55               0368
 
34
    nForce MCP61                03EB
 
35
    nForce MCP65                0446
34
36
 
35
37
    This driver supports the 2 SMBuses that are included in the MCP of the
36
38
    nForce2/3/4 chipsets.
79
81
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_SMBUS 0x0034
80
82
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SMBUS 0x0264
81
83
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SMBUS 0x0368
 
84
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SMBUS 0x03EB
 
85
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP65_SMBUS 0x0446
82
86
 
83
87
 
84
88
struct nforce2_smbus {
309
313
                PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
310
314
        { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SMBUS,
311
315
                PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
 
316
        { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SMBUS,
 
317
                PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
 
318
        { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP65_SMBUS,
 
319
                PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
312
320
        { 0 }
313
321
};
314
322
 
315
323
 
316
324
static int __devinit nforce2_probe_smb(struct pci_dev *dev, int bar,
317
 
        int alt_reg, struct nforce2_smbus *smbus, char *name)
 
325
        int alt_reg, struct nforce2_smbus *smbus, const char *name)
318
326
{
319
327
        int error;
320
328