]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/nbsd-libpci.c
pciutils: Decode available DVSEC details
[pciutils.git] / lib / nbsd-libpci.c
index 2d24c4cee69d96c92b421c126999adf1bede471b..f57d133d932b3c360fb3f4684e56e9b3a37ef7b5 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 >= 256)
+  if (pos >= 4096)
     return 0;
 
   shift = 8*(pos % 4);
@@ -151,6 +151,7 @@ struct pci_methods pm_nbsd_libpci = {
   pci_generic_fill_info,
   nbsd_read,
   nbsd_write,
+  NULL,                                 /* read_vpd */
   NULL,                                 /* dev_init */
   NULL                                  /* dev_cleanup */
 };