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 4d1b5cd..1e7e13f 100644 --- a/src/openbsd_pci.c +++ b/src/openbsd_pci.c @@ -303,7 +303,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; } @@ -422,6 +422,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; @@ -457,6 +458,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 |