#else
NULL,
#endif
+#ifdef PCI_HAVE_PM_OBSD_DEVICE
+ &pm_obsd_device,
+#else
+ NULL,
+#endif
#ifdef PCI_HAVE_PM_DUMP
&pm_dump,
#else
struct pci_access *a = malloc(sizeof(struct pci_access));
int i;
- bzero(a, sizeof(*a));
- a->id_file_name = PCI_PATH_IDS;
+ memset(a, 0, sizeof(*a));
+ pci_set_name_list_path(a, PCI_PATH_IDS_DIR "/" PCI_IDS, 0);
for(i=0; i<PCI_ACCESS_MAX; i++)
if (pci_methods[i] && pci_methods[i]->config)
pci_methods[i]->config(a);
if (a->methods)
a->methods->cleanup(a);
pci_free_name_list(a);
+ pci_set_name_list_path(a, NULL, 0);
pci_mfree(a);
}
{
struct pci_dev *d = pci_malloc(a, sizeof(struct pci_dev));
- bzero(d, sizeof(*d));
+ memset(d, 0, sizeof(*d));
d->access = a;
d->methods = a->methods;
d->hdrtype = -1;