MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / gvp_add_ide_unit

Function gvp_add_ide_unit

src/idecontrollers.cpp:2426–2435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2424}
2425
2426void gvp_add_ide_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc)
2427{
2428 struct ide_hdf *ide;
2429
2430 if (!allocide(&gvp_ide_rom_board, rc, ch))
2431 return;
2432 if (!allocide(&gvp_ide_controller_board, rc, ch))
2433 return;
2434 ide = add_ide_unit (&idecontroller_drive[(GVP_IDE + ci->controller_type_unit) * 2], 2, ch, ci, rc);
2435}
2436
2437static const uae_u8 alf_autoconfig[16] = { 0xd1, 6, 0x00, 0x00, 0x08, 0x2c, 0x00, 0x00, 0x00, 0x00, ALF_ROM_OFFSET >> 8, ALF_ROM_OFFSET & 0xff };
2438static const uae_u8 alfplus_autoconfig[16] = { 0xd1, 38, 0x00, 0x00, 0x08, 0x2c, 0x00, 0x00, 0x00, 0x00, ALF_ROM_OFFSET >> 8, ALF_ROM_OFFSET & 0xff };

Callers

nothing calls this directly

Calls 2

allocideFunction · 0.85
add_ide_unitFunction · 0.70

Tested by

no test coverage detected