2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

More better DEBUG stuff for piix4, removed compile warning for sensors.c

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@157 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1999-01-11 17:06:18 +00:00
parent 6330b7018a
commit 90627a9461
4 changed files with 14 additions and 26 deletions

View File

@@ -284,6 +284,12 @@ int piix4_transaction(void)
printk("piix4.o: Failed reset at end of transaction (%02x)\n",temp);
#endif
}
#ifdef DEBUG
printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
return result;
}
@@ -293,12 +299,6 @@ s32 piix4_access(u8 addr, char read_write,
{
int i,len;
#ifdef DEBUG
printk("piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
switch(size) {
case SMBUS_PROC_CALL:
printk("piix4.o: SMBUS_PROC_CALL not supported!\n");
@@ -376,12 +376,6 @@ s32 piix4_access(u8 addr, char read_write,
data->block[i] = inb_p(SMBBLKDAT);
break;
}
#ifdef DEBUG
printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
return 0;
}

View File

@@ -215,7 +215,7 @@ void sensors_fill_inode(struct inode *inode, int fill)
MOD_DEC_USE_COUNT;
}
/* Monitor access for /proc/sys/dev/sensors/* directories; make unloading
/* Monitor access for /proc/sys/dev/sensors/ directories; make unloading
the corresponding module impossible if some process still uses it or
some file in it */
void sensors_dir_fill_inode(struct inode *inode, int fill)

View File

@@ -284,6 +284,12 @@ int piix4_transaction(void)
printk("piix4.o: Failed reset at end of transaction (%02x)\n",temp);
#endif
}
#ifdef DEBUG
printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
return result;
}
@@ -293,12 +299,6 @@ s32 piix4_access(u8 addr, char read_write,
{
int i,len;
#ifdef DEBUG
printk("piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
switch(size) {
case SMBUS_PROC_CALL:
printk("piix4.o: SMBUS_PROC_CALL not supported!\n");
@@ -376,12 +376,6 @@ s32 piix4_access(u8 addr, char read_write,
data->block[i] = inb_p(SMBBLKDAT);
break;
}
#ifdef DEBUG
printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, "
"DAT0=%02x, DAT1=%02x\n",
inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0),
inb_p(SMBHSTDAT1));
#endif
return 0;
}

View File

@@ -215,7 +215,7 @@ void sensors_fill_inode(struct inode *inode, int fill)
MOD_DEC_USE_COUNT;
}
/* Monitor access for /proc/sys/dev/sensors/* directories; make unloading
/* Monitor access for /proc/sys/dev/sensors/ directories; make unloading
the corresponding module impossible if some process still uses it or
some file in it */
void sensors_dir_fill_inode(struct inode *inode, int fill)