piix4.c basic skeleton

The real PIIX4 access code must still be written; perhaps somebody else could
do this? Most of it could be copied from the old piix4.c. But check carefully
what you are doing, as some things *have* changed (like the SMBUS_{BYTE,...}
variables!).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@9 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-11-19 15:14:01 +00:00
1 parent 36d5e317ce
commit 9f4acd58b1
8 files changed
+304 -20

No files matched your search

+9 -6
View File
@@ -109,9 +109,9 @@ struct smbus_adapter {
int timeout;
int retries;
/* Here ended i2c_algorithm */
s32 (* smbus_access) (__u8 addr, char read_write,
__u8 command, int size, union smbus_data * data);
/* Here ended i2c_adapter */
s32 (* smbus_access) (u8 addr, char read_write,
u8 command, int size, union smbus_data * data);
};
/* We need to mark SMBus algorithms in the algorithm structure.
@@ -121,11 +121,14 @@ struct smbus_adapter {
this flag is set! */
#define ALGO_SMBUS 0x40000
/* SMBus Adapter ids */
#define SMBUS_PIIX4 1
/* This union is used within smbus_access routines */
union smbus_data {
__u8 byte;
__u16 word;
__u8 block[32];
u8 byte;
u16 word;
u8 block[32];
};
/* smbus_access read or write markers */