Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/dmi.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <linux/io.h>
Go to the source code of this file.
Data Structures | |
struct | nforce2_smbus |
Macros | |
#define | NFORCE_PCI_SMB1 0x50 |
#define | NFORCE_PCI_SMB2 0x54 |
#define | NVIDIA_SMB_PRTCL (smbus->base + 0x00) /* protocol, PEC */ |
#define | NVIDIA_SMB_STS (smbus->base + 0x01) /* status */ |
#define | NVIDIA_SMB_ADDR (smbus->base + 0x02) /* address */ |
#define | NVIDIA_SMB_CMD (smbus->base + 0x03) /* command */ |
#define | NVIDIA_SMB_DATA (smbus->base + 0x04) /* 32 data registers */ |
#define | NVIDIA_SMB_BCNT |
#define | NVIDIA_SMB_STATUS_ABRT |
#define | NVIDIA_SMB_CTRL (smbus->base + 0x3e) /* control register */ |
#define | NVIDIA_SMB_STATUS_ABRT_STS |
#define | NVIDIA_SMB_CTRL_ABORT 0x20 |
#define | NVIDIA_SMB_STS_DONE 0x80 |
#define | NVIDIA_SMB_STS_ALRM 0x40 |
#define | NVIDIA_SMB_STS_RES 0x20 |
#define | NVIDIA_SMB_STS_STATUS 0x1f |
#define | NVIDIA_SMB_PRTCL_WRITE 0x00 |
#define | NVIDIA_SMB_PRTCL_READ 0x01 |
#define | NVIDIA_SMB_PRTCL_QUICK 0x02 |
#define | NVIDIA_SMB_PRTCL_BYTE 0x04 |
#define | NVIDIA_SMB_PRTCL_BYTE_DATA 0x06 |
#define | NVIDIA_SMB_PRTCL_WORD_DATA 0x08 |
#define | NVIDIA_SMB_PRTCL_BLOCK_DATA 0x0a |
#define | NVIDIA_SMB_PRTCL_PEC 0x80 |
#define | MAX_TIMEOUT 100 |
Functions | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Hans-Frieder Vogt <[email protected]>") | |
MODULE_DESCRIPTION ("nForce2/3/4/5xx SMBus driver") | |
MODULE_DEVICE_TABLE (pci, nforce2_ids) | |
module_pci_driver (nforce2_driver) | |
#define MAX_TIMEOUT 100 |
Definition at line 113 of file i2c-nforce2.c.
#define NFORCE_PCI_SMB1 0x50 |
Definition at line 80 of file i2c-nforce2.c.
#define NFORCE_PCI_SMB2 0x54 |
Definition at line 81 of file i2c-nforce2.c.
#define NVIDIA_SMB_ADDR (smbus->base + 0x02) /* address */ |
Definition at line 89 of file i2c-nforce2.c.
#define NVIDIA_SMB_BCNT |
Definition at line 92 of file i2c-nforce2.c.
#define NVIDIA_SMB_CMD (smbus->base + 0x03) /* command */ |
Definition at line 90 of file i2c-nforce2.c.
#define NVIDIA_SMB_CTRL (smbus->base + 0x3e) /* control register */ |
Definition at line 94 of file i2c-nforce2.c.
#define NVIDIA_SMB_CTRL_ABORT 0x20 |
Definition at line 97 of file i2c-nforce2.c.
#define NVIDIA_SMB_DATA (smbus->base + 0x04) /* 32 data registers */ |
Definition at line 91 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL (smbus->base + 0x00) /* protocol, PEC */ |
Definition at line 87 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_BLOCK_DATA 0x0a |
Definition at line 109 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_BYTE 0x04 |
Definition at line 106 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_BYTE_DATA 0x06 |
Definition at line 107 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_PEC 0x80 |
Definition at line 110 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_QUICK 0x02 |
Definition at line 105 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_READ 0x01 |
Definition at line 104 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_WORD_DATA 0x08 |
Definition at line 108 of file i2c-nforce2.c.
#define NVIDIA_SMB_PRTCL_WRITE 0x00 |
Definition at line 103 of file i2c-nforce2.c.
#define NVIDIA_SMB_STATUS_ABRT |
Definition at line 93 of file i2c-nforce2.c.
#define NVIDIA_SMB_STATUS_ABRT_STS |
Definition at line 96 of file i2c-nforce2.c.
#define NVIDIA_SMB_STS (smbus->base + 0x01) /* status */ |
Definition at line 88 of file i2c-nforce2.c.
#define NVIDIA_SMB_STS_ALRM 0x40 |
Definition at line 99 of file i2c-nforce2.c.
#define NVIDIA_SMB_STS_DONE 0x80 |
Definition at line 98 of file i2c-nforce2.c.
#define NVIDIA_SMB_STS_RES 0x20 |
Definition at line 100 of file i2c-nforce2.c.
#define NVIDIA_SMB_STS_STATUS 0x1f |
Definition at line 101 of file i2c-nforce2.c.
MODULE_AUTHOR | ( | "Hans-Frieder Vogt <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "nForce2/3/4/5xx SMBus driver" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
nforce2_ids | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_pci_driver | ( | nforce2_driver | ) |