]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/nbsd-libpci.c
Library: Handle domains in all back-ends
[pciutils.git] / lib / nbsd-libpci.c
index f57d133d932b3c360fb3f4684e56e9b3a37ef7b5..2b2ca4166d2a762ef9b5648d1fd112ce34cd1505 100644 (file)
@@ -71,7 +71,7 @@ nbsd_read(struct pci_dev *d, int pos, byte *buf, int len)
   if (!(len == 1 || len == 2 || len == 4))
     return pci_generic_block_read(d, pos, buf, len);
 
-  if (pos >= 4096)
+  if (d->domain || pos >= 4096)
     return 0;
 
   shift = 8*(pos % 4);
@@ -104,7 +104,7 @@ nbsd_write(struct pci_dev *d, int pos, byte *buf, int len)
   if (!(len == 1 || len == 2 || len == 4))
     return pci_generic_block_write(d, pos, buf, len);
 
-  if (pos >= 256)
+  if (d->domain || pos >= 256)
     return 0;
 
   /*