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

Function alloc_ide_mem

src/ide.cpp:1624–1637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1622}
1623
1624void alloc_ide_mem (struct ide_hdf **idetable, int max, struct ide_thread_state *its)
1625{
1626 for (int i = 0; i < max; i++) {
1627 struct ide_hdf *ide;
1628 if (!idetable[i]) {
1629 ide = idetable[i] = xcalloc (struct ide_hdf, 1);
1630 ide->cd_unit_num = -1;
1631 }
1632 ide = idetable[i];
1633 ide_grow_buffer(ide, 1024);
1634 if (its)
1635 ide->its = its;
1636 }
1637}
1638
1639void remove_ide_unit(struct ide_hdf **idetable, int ch)
1640{

Callers 5

add_ide_unitFunction · 0.85
initpcmciaFunction · 0.85
initideFunction · 0.85
restore_gayle_ideFunction · 0.85
init_ideFunction · 0.85

Calls 1

ide_grow_bufferFunction · 0.85

Tested by

no test coverage detected