Commit 5768f5ac authored by bellard's avatar bellard
Browse files

PCI interrupt support

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 1078f663
......@@ -382,7 +382,7 @@ typedef void PCIMapIORegionFunc(PCIDevice *pci_dev, int region_num,
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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment