mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
ide pc: Cut out the block layer geometry middleman
PC BIOS setup needs IDE geometry information. Get it directly from the device model rather than through the block layer. In preparation of purging geometry from the block layer, which will happen later in this series. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e2f3dc2b6a
commit
9139046c16
5 changed files with 49 additions and 31 deletions
4
hw/ide.h
4
hw/ide.h
|
@ -29,7 +29,9 @@ void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
|
|||
qemu_irq irq, int shift,
|
||||
DriveInfo *hd0, DriveInfo *hd1);
|
||||
|
||||
void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
|
||||
int ide_get_geometry(BusState *bus, int unit,
|
||||
int16_t *cyls, int8_t *heads, int8_t *secs);
|
||||
int ide_get_bios_chs_trans(BusState *bus, int unit);
|
||||
|
||||
/* ide/core.c */
|
||||
void ide_drive_get(DriveInfo **hd, int max_bus);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue