diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-20 12:47:45 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-20 12:47:45 +0000 |
commit | 5768f5aca6ebe81b203b580c7ab812dd0c2bcfa7 (patch) | |
tree | fdde2c450c38837156dad2d9b6ae5ab1655e0a25 /vl.h | |
parent | 1078f663ae65cb4e053b8cb7adff5908c4c7b8de (diff) | |
download | qemu-5768f5aca6ebe81b203b580c7ab812dd0c2bcfa7.zip qemu-5768f5aca6ebe81b203b580c7ab812dd0c2bcfa7.tar.gz qemu-5768f5aca6ebe81b203b580c7ab812dd0c2bcfa7.tar.bz2 |
PCI interrupt support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@825 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -382,7 +382,7 @@ typedef void PCIMapIORegionFunc(PCIDevice *pci_dev, int region_num, #define PCI_ADDRESS_SPACE_MEM_PREFETCH 0x08 typedef struct PCIIORegion { - uint32_t addr; + uint32_t addr; /* current PCI mapping address. -1 means not mapped */ uint32_t size; uint8_t type; PCIMapIORegionFunc *map_func; @@ -401,6 +401,7 @@ struct PCIDevice { /* do not access the following fields */ PCIConfigReadFunc *config_read; PCIConfigWriteFunc *config_write; + int irq_index; }; PCIDevice *pci_register_device(const char *name, int instance_size, @@ -412,9 +413,17 @@ void pci_register_io_region(PCIDevice *pci_dev, int region_num, uint32_t size, int type, PCIMapIORegionFunc *map_func); +void pci_set_irq(PCIDevice *pci_dev, int irq_num, int level); + +uint32_t pci_default_read_config(PCIDevice *d, + uint32_t address, int len); +void pci_default_write_config(PCIDevice *d, + uint32_t address, uint32_t val, int len); + void i440fx_init(void); void piix3_init(void); void pci_bios_init(void); +void pci_info(void); /* vga.c */ @@ -440,7 +449,8 @@ static inline void dpy_resize(DisplayState *s, int w, int h) } int vga_initialize(DisplayState *ds, uint8_t *vga_ram_base, - unsigned long vga_ram_offset, int vga_ram_size); + unsigned long vga_ram_offset, int vga_ram_size, + int is_pci); void vga_update_display(void); void vga_screen_dump(const char *filename); |