Lines Matching defs:pci_system_methods
46 struct pci_system_methods { struct
47 void (*destroy)( void );
48 void (*destroy_device)( struct pci_device * dev );
49 int (*read_rom)( struct pci_device * dev, void * buffer );
50 int (*probe)( struct pci_device * dev );
51 int (*map_range)(struct pci_device *dev, struct pci_device_mapping *map);
52 int (*unmap_range)(struct pci_device * dev,
55 int (*read)(struct pci_device * dev, void * data, pciaddr_t offset,
58 int (*write)(struct pci_device * dev, const void * data, pciaddr_t offset,
61 int (*fill_capabilities)( struct pci_device * dev );
62 void (*enable)( struct pci_device *dev );
63 int (*boot_vga)( struct pci_device *dev );
64 int (*has_kernel_driver)( struct pci_device *dev );
65 struct pci_io_handle *(*open_device_io)( struct pci_io_handle *handle,
68 struct pci_io_handle *(*open_legacy_io)( struct pci_io_handle *handle,
71 void (*close_io)( struct pci_device *dev, struct pci_io_handle *handle );
72 uint32_t (*read32)( struct pci_io_handle *handle, uint32_t reg );
73 uint16_t (*read16)( struct pci_io_handle *handle, uint32_t reg );
74 uint8_t (*read8)( struct pci_io_handle *handle, uint32_t reg );
75 void (*write32)( struct pci_io_handle *handle, uint32_t reg,
77 void (*write16)( struct pci_io_handle *handle, uint32_t reg,
79 void (*write8)( struct pci_io_handle *handle, uint32_t reg, uint8_t data );
81 int (*map_legacy)(struct pci_device *dev, pciaddr_t base, pciaddr_t size,
83 int (*unmap_legacy)(struct pci_device *dev, void *addr, pciaddr_t size);