summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/vga/pci.c
diff options
context:
space:
mode:
authortaruti <taruti@violetti.org>2011-06-02 21:27:41 +0000
committertaruti <taruti@violetti.org>2011-06-02 21:27:41 +0000
commit8e388a703782a1d7f25efb2890371bcb4fe49fbb (patch)
tree0c9a3c83d88ff2ab8de343f6d1debb57b5d31480 /sys/src/cmd/aux/vga/pci.c
parent64f14cc6a4a5d0200f56d88c843bb439dcc473d9 (diff)
aux/vga ccru/ccrb parsing
Diffstat (limited to 'sys/src/cmd/aux/vga/pci.c')
-rw-r--r--sys/src/cmd/aux/vga/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c
index 8bd730e63..db531b265 100644
--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -55,7 +55,8 @@ pcicfginit(void)
buf[j] = 0;
close(fd);
- p->ccru = strtol(buf + 0, nil, 16) << 8;
+ p->ccrb = strtol(buf, nil, 16);
+ p->ccru = strtol(buf + 3, nil, 16);
p->vid = strtol(buf + 9, &s, 16);
p->did = strtol(s + 1, &s, 16);
p->intl = strtol(s + 1, &s, 10);