diff options
Diffstat (limited to 'src/openbsd_pci.c')
-rw-r--r-- | src/openbsd_pci.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c index 73c68f4..37f5cea 100644 --- a/src/openbsd_pci.c +++ b/src/openbsd_pci.c @@ -280,7 +280,7 @@ pci_device_openbsd_write(struct pci_device *dev, const void *data, return errno; offset += 4; - data = (char *)data + 4; + data = (const char *)data + 4; size -= 4; *bytes_written += 4; } @@ -403,6 +403,7 @@ static struct pci_io_handle * pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret, struct pci_device *dev, pciaddr_t base, pciaddr_t size) { +#if 0 #if defined(__i386__) struct i386_iopl_args ia; @@ -435,6 +436,11 @@ pci_device_openbsd_open_legacy_io(struct pci_io_handle *ret, #else return NULL; #endif +#else + ret->base = base; + ret->size = size; + return ret; +#endif } static uint32_t |