Lines Matching refs:dev
26 * $FreeBSD: releng/11.0/sys/dev/pci/pcivar.h 302175 2016-06-24 17:26:42Z jhb $
177 struct device *dev; /* device which owns this */
331 pci_read_config(device_t dev, int reg, int width)
333 return PCI_READ_CONFIG(device_get_parent(dev), dev, reg, width);
337 pci_write_config(device_t dev, int reg, uint32_t val, int width)
339 PCI_WRITE_CONFIG(device_get_parent(dev), dev, reg, val, width);
375 pci_enable_busmaster(device_t dev)
377 return(PCI_ENABLE_BUSMASTER(device_get_parent(dev), dev));
381 pci_disable_busmaster(device_t dev)
383 return(PCI_DISABLE_BUSMASTER(device_get_parent(dev), dev));
387 pci_enable_io(device_t dev, int space)
389 return(PCI_ENABLE_IO(device_get_parent(dev), dev, space));
393 pci_disable_io(device_t dev, int space)
395 return(PCI_DISABLE_IO(device_get_parent(dev), dev, space));
399 pci_get_vpd_ident(device_t dev, const char **identptr)
401 return(PCI_GET_VPD_IDENT(device_get_parent(dev), dev, identptr));
405 pci_get_vpd_readonly(device_t dev, const char *kw, const char **vptr)
407 return(PCI_GET_VPD_READONLY(device_get_parent(dev), dev, kw, vptr));
450 pci_set_powerstate(device_t dev, int state)
452 return PCI_SET_POWERSTATE(device_get_parent(dev), dev, state);
456 pci_get_powerstate(device_t dev)
458 return PCI_GET_POWERSTATE(device_get_parent(dev), dev);
462 pci_find_cap(device_t dev, int capability, int *capreg)
464 return (PCI_FIND_CAP(device_get_parent(dev), dev, capability, capreg));
468 pci_find_extcap(device_t dev, int capability, int *capreg)
470 return (PCI_FIND_EXTCAP(device_get_parent(dev), dev, capability, capreg));
474 pci_find_htcap(device_t dev, int capability, int *capreg)
476 return (PCI_FIND_HTCAP(device_get_parent(dev), dev, capability, capreg));
480 pci_alloc_msi(device_t dev, int *count)
482 return (PCI_ALLOC_MSI(device_get_parent(dev), dev, count));
486 pci_alloc_msix(device_t dev, int *count)
488 return (PCI_ALLOC_MSIX(device_get_parent(dev), dev, count));
492 pci_enable_msi(device_t dev, uint64_t address, uint16_t data)
494 PCI_ENABLE_MSI(device_get_parent(dev), dev, address, data);
498 pci_enable_msix(device_t dev, u_int index, uint64_t address, uint32_t data)
500 PCI_ENABLE_MSIX(device_get_parent(dev), dev, index, address, data);
504 pci_disable_msi(device_t dev)
506 PCI_DISABLE_MSI(device_get_parent(dev), dev);
510 pci_remap_msix(device_t dev, int count, const u_int *vectors)
512 return (PCI_REMAP_MSIX(device_get_parent(dev), dev, count, vectors));
516 pci_release_msi(device_t dev)
518 return (PCI_RELEASE_MSI(device_get_parent(dev), dev));
522 pci_msi_count(device_t dev)
524 return (PCI_MSI_COUNT(device_get_parent(dev), dev));
528 pci_msix_count(device_t dev)
530 return (PCI_MSIX_COUNT(device_get_parent(dev), dev));
534 pci_msix_pba_bar(device_t dev)
536 return (PCI_MSIX_PBA_BAR(device_get_parent(dev), dev));
540 pci_msix_table_bar(device_t dev)
542 return (PCI_MSIX_TABLE_BAR(device_get_parent(dev), dev));
546 pci_get_id(device_t dev, enum pci_id_type type, uintptr_t *id)
548 return (PCI_GET_ID(device_get_parent(dev), dev, type, id));
557 pci_get_rid(device_t dev)
561 if (pci_get_id(dev, PCI_ID_RID, &rid) != 0)
568 pci_child_added(device_t dev)
571 return (PCI_CHILD_ADDED(device_get_parent(dev), dev));
580 int pci_pending_msix(device_t dev, u_int index);
582 int pci_msi_device_blacklisted(device_t dev);
583 int pci_msix_device_blacklisted(device_t dev);
585 void pci_ht_map_msi(device_t dev, uint64_t addr);
587 device_t pci_find_pcie_root_port(device_t dev);
588 int pci_get_max_payload(device_t dev);
589 int pci_get_max_read_req(device_t dev);
590 void pci_restore_state(device_t dev);
591 void pci_save_state(device_t dev);
592 int pci_set_max_read_req(device_t dev, int size);
593 uint32_t pcie_read_config(device_t dev, int reg, int width);
594 void pcie_write_config(device_t dev, int reg, uint32_t value, int width);
595 uint32_t pcie_adjust_config(device_t dev, int reg, uint32_t mask,
622 struct pci_map *pci_find_bar(device_t dev, int reg);
623 int pci_bar_enabled(device_t dev, struct pci_map *pm);
624 struct pcicfg_vpd *pci_fetch_vpd_list(device_t dev);
629 int vga_pci_is_boot_display(device_t dev);
630 void * vga_pci_map_bios(device_t dev, size_t *size);
631 void vga_pci_unmap_bios(device_t dev, void *bios);
632 int vga_pci_repost(device_t dev);