Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/stddef.h>
#include <linux/ioport.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
Macros | |
#define | SMB_ADDR_OFFSET 0xE0 |
#define | SMB_IOSIZE 16 |
#define | SMB_GLOBAL_STATUS (0x0 + amd756_ioport) |
#define | SMB_GLOBAL_ENABLE (0x2 + amd756_ioport) |
#define | SMB_HOST_ADDRESS (0x4 + amd756_ioport) |
#define | SMB_HOST_DATA (0x6 + amd756_ioport) |
#define | SMB_HOST_COMMAND (0x8 + amd756_ioport) |
#define | SMB_HOST_BLOCK_DATA (0x9 + amd756_ioport) |
#define | SMB_HAS_DATA (0xA + amd756_ioport) |
#define | SMB_HAS_DEVICE_ADDRESS (0xC + amd756_ioport) |
#define | SMB_HAS_HOST_ADDRESS (0xE + amd756_ioport) |
#define | SMB_SNOOP_ADDRESS (0xF + amd756_ioport) |
#define | SMBBA 0x058 /* mh */ |
#define | SMBBANFORCE 0x014 |
#define | SMBGCFG 0x041 /* mh */ |
#define | SMBREV 0x008 |
#define | MAX_TIMEOUT 500 |
#define | AMD756_QUICK 0x00 |
#define | AMD756_BYTE 0x01 |
#define | AMD756_BYTE_DATA 0x02 |
#define | AMD756_WORD_DATA 0x03 |
#define | AMD756_PROCESS_CALL 0x04 |
#define | AMD756_BLOCK_DATA 0x05 |
#define | GS_ABRT_STS (1 << 0) |
#define | GS_COL_STS (1 << 1) |
#define | GS_PRERR_STS (1 << 2) |
#define | GS_HST_STS (1 << 3) |
#define | GS_HCYC_STS (1 << 4) |
#define | GS_TO_STS (1 << 5) |
#define | GS_SMB_STS (1 << 11) |
#define | GS_CLEAR_STS |
#define | GE_CYC_TYPE_MASK (7) |
#define | GE_HOST_STC (1 << 3) |
#define | GE_ABORT (1 << 5) |
Enumerations | |
enum | chiptype { AMD756, AMD766, AMD768, NFORCE, AMD8111 } |
Functions | |
MODULE_DEVICE_TABLE (pci, amd756_ids) | |
module_pci_driver (amd756_driver) | |
MODULE_AUTHOR ("Merlin Hughes <[email protected]>") | |
MODULE_DESCRIPTION ("AMD756/766/768/8111 and nVidia nForce SMBus driver") | |
MODULE_LICENSE ("GPL") | |
EXPORT_SYMBOL (amd756_smbus) | |
Variables | |
struct i2c_adapter | amd756_smbus |
#define AMD756_BLOCK_DATA 0x05 |
Definition at line 83 of file i2c-amd756.c.
#define AMD756_BYTE 0x01 |
Definition at line 79 of file i2c-amd756.c.
#define AMD756_BYTE_DATA 0x02 |
Definition at line 80 of file i2c-amd756.c.
#define AMD756_PROCESS_CALL 0x04 |
Definition at line 82 of file i2c-amd756.c.
#define AMD756_QUICK 0x00 |
Definition at line 78 of file i2c-amd756.c.
#define AMD756_WORD_DATA 0x03 |
Definition at line 81 of file i2c-amd756.c.
#define GE_ABORT (1 << 5) |
Definition at line 106 of file i2c-amd756.c.
#define GE_CYC_TYPE_MASK (7) |
Definition at line 104 of file i2c-amd756.c.
#define GE_HOST_STC (1 << 3) |
Definition at line 105 of file i2c-amd756.c.
#define GS_ABRT_STS (1 << 0) |
Definition at line 93 of file i2c-amd756.c.
#define GS_CLEAR_STS |
Definition at line 101 of file i2c-amd756.c.
#define GS_COL_STS (1 << 1) |
Definition at line 94 of file i2c-amd756.c.
#define GS_HCYC_STS (1 << 4) |
Definition at line 97 of file i2c-amd756.c.
#define GS_HST_STS (1 << 3) |
Definition at line 96 of file i2c-amd756.c.
#define GS_PRERR_STS (1 << 2) |
Definition at line 95 of file i2c-amd756.c.
#define GS_SMB_STS (1 << 11) |
Definition at line 99 of file i2c-amd756.c.
#define GS_TO_STS (1 << 5) |
Definition at line 98 of file i2c-amd756.c.
#define MAX_TIMEOUT 500 |
Definition at line 75 of file i2c-amd756.c.
#define SMB_ADDR_OFFSET 0xE0 |
Definition at line 49 of file i2c-amd756.c.
#define SMB_GLOBAL_ENABLE (0x2 + amd756_ioport) |
Definition at line 52 of file i2c-amd756.c.
#define SMB_GLOBAL_STATUS (0x0 + amd756_ioport) |
Definition at line 51 of file i2c-amd756.c.
#define SMB_HAS_DATA (0xA + amd756_ioport) |
Definition at line 57 of file i2c-amd756.c.
#define SMB_HAS_DEVICE_ADDRESS (0xC + amd756_ioport) |
Definition at line 58 of file i2c-amd756.c.
#define SMB_HAS_HOST_ADDRESS (0xE + amd756_ioport) |
Definition at line 59 of file i2c-amd756.c.
#define SMB_HOST_ADDRESS (0x4 + amd756_ioport) |
Definition at line 53 of file i2c-amd756.c.
#define SMB_HOST_BLOCK_DATA (0x9 + amd756_ioport) |
Definition at line 56 of file i2c-amd756.c.
#define SMB_HOST_COMMAND (0x8 + amd756_ioport) |
Definition at line 55 of file i2c-amd756.c.
#define SMB_HOST_DATA (0x6 + amd756_ioport) |
Definition at line 54 of file i2c-amd756.c.
#define SMB_IOSIZE 16 |
Definition at line 50 of file i2c-amd756.c.
#define SMB_SNOOP_ADDRESS (0xF + amd756_ioport) |
Definition at line 60 of file i2c-amd756.c.
#define SMBBA 0x058 /* mh */ |
Definition at line 65 of file i2c-amd756.c.
#define SMBBANFORCE 0x014 |
Definition at line 66 of file i2c-amd756.c.
#define SMBGCFG 0x041 /* mh */ |
Definition at line 69 of file i2c-amd756.c.
#define SMBREV 0x008 |
Definition at line 72 of file i2c-amd756.c.
enum chiptype |
Definition at line 305 of file i2c-amd756.c.
EXPORT_SYMBOL | ( | amd756_smbus | ) |
MODULE_AUTHOR | ( | "Merlin Hughes <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
amd756_ids | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_pci_driver | ( | amd756_driver | ) |
struct i2c_adapter amd756_smbus |
Definition at line 299 of file i2c-amd756.c.