Revision 6e02c38d hw/pc.c
b/hw/pc.c | ||
---|---|---|
33 | 33 |
#include "boards.h" |
34 | 34 |
#include "console.h" |
35 | 35 |
#include "fw_cfg.h" |
36 |
#include "virtio-blk.h" |
|
36 | 37 |
|
37 | 38 |
/* output Bochs bios info messages */ |
38 | 39 |
//#define DEBUG_BIOS |
... | ... | |
1092 | 1093 |
} |
1093 | 1094 |
} |
1094 | 1095 |
} |
1096 |
|
|
1097 |
/* Add virtio block devices */ |
|
1098 |
if (pci_enabled) { |
|
1099 |
int index; |
|
1100 |
int unit_id = 0; |
|
1101 |
|
|
1102 |
while ((index = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) { |
|
1103 |
virtio_blk_init(pci_bus, 0x1AF4, 0x1001, |
|
1104 |
drives_table[index].bdrv); |
|
1105 |
unit_id++; |
|
1106 |
} |
|
1107 |
} |
|
1095 | 1108 |
} |
1096 | 1109 |
|
1097 | 1110 |
static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size, |
Also available in: Unified diff