mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
fdc: refactor device creation
Turn fdc_init_isa into an inline function. Get floppy geometry directly from the drives. Don't expose FDCtrl. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
d288c7ba7b
commit
63ffb564dc
5 changed files with 45 additions and 55 deletions
3
hw/pc.h
3
hw/pc.h
|
@ -129,13 +129,12 @@ void pc_memory_init(ram_addr_t ram_size,
|
|||
qemu_irq *pc_allocate_cpu_irq(void);
|
||||
void pc_vga_init(PCIBus *pci_bus);
|
||||
void pc_basic_device_init(qemu_irq *isa_irq,
|
||||
FDCtrl **floppy_controller,
|
||||
ISADevice **rtc_state);
|
||||
void pc_init_ne2k_isa(NICInfo *nd);
|
||||
void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
|
||||
const char *boot_device,
|
||||
BusState *ide0, BusState *ide1,
|
||||
FDCtrl *floppy_controller, ISADevice *s);
|
||||
ISADevice *s);
|
||||
void pc_pci_device_init(PCIBus *pci_bus);
|
||||
|
||||
typedef void (*cpu_set_smm_t)(int smm, void *arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue