summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804/smbus.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-01-04 17:36:55 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-01-04 17:36:55 +0000
commit7e2fbd5dd3a9271edaf4c0b3fcc2301e10a83f8f (patch)
tree173c0fe1407396a2b492329898eb91df93dd728a /src/southbridge/nvidia/ck804/smbus.h
parentecab12a09e9d38e8e6f6ce5079fbf740d2cde1a5 (diff)
CK804: Cosmetic fixes, switch to u8 et al.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6240 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/nvidia/ck804/smbus.h')
-rw-r--r--src/southbridge/nvidia/ck804/smbus.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/nvidia/ck804/smbus.h b/src/southbridge/nvidia/ck804/smbus.h
index 2cdcadce80..df32541261 100644
--- a/src/southbridge/nvidia/ck804/smbus.h
+++ b/src/southbridge/nvidia/ck804/smbus.h
@@ -90,7 +90,7 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
outb(0, smbus_io_base + SMBHSTCMD);
smbus_delay();
- /* Byte data recv */
+ /* Byte data recv. */
outb(0x05, smbus_io_base + SMBHSTPRTCL);
smbus_delay();
@@ -98,7 +98,7 @@ static int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device)
if (smbus_wait_until_done(smbus_io_base) < 0)
return -3;
- /* Lose check */
+ /* Lose check. */
global_status_register = inb(smbus_io_base + SMBHSTSTAT) & 0x80;
/* Read results of transaction. */
@@ -140,7 +140,7 @@ static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device,
if (smbus_wait_until_done(smbus_io_base) < 0)
return -3;
- /* Lose check */
+ /* Lose check. */
global_status_register = inb(smbus_io_base + SMBHSTSTAT) & 0x80;
if (global_status_register != 0x80)
@@ -169,7 +169,7 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device,
outb(address & 0xff, smbus_io_base + SMBHSTCMD);
smbus_delay();
- /* Byte data read */
+ /* Byte data read. */
outb(0x07, smbus_io_base + SMBHSTPRTCL);
smbus_delay();
@@ -177,7 +177,7 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device,
if (smbus_wait_until_done(smbus_io_base) < 0)
return -3;
- /* Lose check */
+ /* Lose check. */
global_status_register = inb(smbus_io_base + SMBHSTSTAT) & 0x80;
/* Read results of transaction. */
@@ -219,7 +219,7 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device,
if (smbus_wait_until_done(smbus_io_base) < 0)
return -3;
- /* Lose check */
+ /* Lose check. */
global_status_register = inb(smbus_io_base + SMBHSTSTAT) & 0x80;
if (global_status_register != 0x80)