Lines Matching refs:handle
47 delete_io_handle(struct pci_io_handle *handle)
49 free(handle);
59 * Open a handle to a PCI device I/O range. The \c base and \c size
64 * An opaque handle to the I/O BAR, or \c NULL on error.
102 * Open a handle to the legacy I/O space for the PCI domain containing
106 * An opaque handle to the requested range, or \c NULL on error.
129 * Close an I/O handle.
132 pci_device_close_io(struct pci_device *dev, struct pci_io_handle *handle)
134 if (dev && handle && pci_sys->methods->close_io)
135 pci_sys->methods->close_io(dev, handle);
137 delete_io_handle(handle);
142 * \c base specified when the handle was opened. Some platforms may
149 pci_io_read32(struct pci_io_handle *handle, uint32_t reg)
151 if (reg + 4 > handle->size)
154 return pci_sys->methods->read32(handle, reg);
159 * \c base specified when the handle was opened. Some platforms may
166 pci_io_read16(struct pci_io_handle *handle, uint32_t reg)
168 if (reg + 2 > handle->size)
171 return pci_sys->methods->read16(handle, reg);
176 * \c base specified when the handle was opened.
182 pci_io_read8(struct pci_io_handle *handle, uint32_t reg)
184 if (reg + 1 > handle->size)
187 return pci_sys->methods->read8(handle, reg);
192 * \c base specified when the handle was opened. Some platforms may
196 pci_io_write32(struct pci_io_handle *handle, uint32_t reg, uint32_t data)
198 if (reg + 4 > handle->size)
201 pci_sys->methods->write32(handle, reg, data);
206 * \c base specified when the handle was opened. Some platforms may
210 pci_io_write16(struct pci_io_handle *handle, uint32_t reg, uint16_t data)
212 if (reg + 2 > handle->size)
215 pci_sys->methods->write16(handle, reg, data);
220 * \c base specified when the handle was opened.
223 pci_io_write8(struct pci_io_handle *handle, uint32_t reg, uint8_t data)
225 if (reg + 1 > handle->size)
228 pci_sys->methods->write8(handle, reg, data);