diff options
author | Marcin Ko?cielnicki <koriakin@0x04.net> | 2014-02-05 09:01:25 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2014-02-11 13:07:19 -0500 |
commit | b9c068896914b4132a24839c9ef7f9fcd6282d88 (patch) | |
tree | da6df0eb202767b5f47b1b8637e94049de8f4755 /src/x86_pci.c | |
parent | b29e9be9aff5c5a9ec5e2bcfc48044081b82742b (diff) | |
download | libpciaccess-b9c068896914b4132a24839c9ef7f9fcd6282d88.tar.gz |
Fix IO access functions on linux+sysfs.baserock/morph
The offsets on the resourceX files are relative to BAR base - don't add
the base address ourselves.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/x86_pci.c')
-rw-r--r-- | src/x86_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x86_pci.c b/src/x86_pci.c index 1075367..49c1cab 100644 --- a/src/x86_pci.c +++ b/src/x86_pci.c @@ -729,6 +729,7 @@ pci_device_x86_open_legacy_io(struct pci_io_handle *ret, ret->base = base; ret->size = size; + ret->is_legacy = 1; return ret; } |