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

Function getideboard

src/idecontrollers.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static struct ide_board *getideboard(uaecptr addr)
191{
192 for (int i = 0; ide_boards[i]; i++) {
193 if (!ide_boards[i]->baseaddress && !ide_boards[i]->configured)
194 return ide_boards[i];
195 if ((addr & ~ide_boards[i]->mask) == ide_boards[i]->baseaddress)
196 return ide_boards[i];
197 }
198 return NULL;
199}
200
201static void init_ide(struct ide_board *board, int ide_num, int maxunit, bool byteswap, bool adide)
202{

Callers 11

ide_generic_bputFunction · 0.85
ide_generic_wputFunction · 0.85
ide_generic_lputFunction · 0.85
ide_generic_bgetFunction · 0.85
ide_generic_wgetFunction · 0.85
ide_generic_lgetFunction · 0.85
ide_generic_wgetiFunction · 0.85
ide_generic_lgetiFunction · 0.85
ide_generic_xlateFunction · 0.85
ide_generic_checkFunction · 0.85
fastata4k_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected