static void
nbsd_config(struct pci_access *a)
{
- a->method_params[PCI_ACCESS_NBSD_LIBPCI] = PATH_NBSD_DEVICE;
+ a->method_params[PCI_ACCESS_NBSD_LIBPCI] = PCI_PATH_NBSD_DEVICE;
}
static int
if (!(len == 1 || len == 2 || len == 4))
return pci_generic_block_read(d, pos, buf, len);
+ if (pos >= 256)
+ return 0;
+
shift = 8*(pos % 4);
pos &= ~3;
if (!(len == 1 || len == 2 || len == 4))
return pci_generic_block_write(d, pos, buf, len);
+ if (pos >= 256)
+ return 0;
+
/*
* BEWARE: NetBSD seems to support only 32-bit access, so we have
* to emulate byte and word writes by read-modify-write, possibly