IDE fixes and finished the SiS 5511.
This commit is contained in:
17
src/device.c
17
src/device.c
@@ -332,6 +332,23 @@ device_reset_all(uint32_t match_flags)
|
||||
}
|
||||
}
|
||||
|
||||
void *
|
||||
device_find_first_priv(uint32_t match_flags)
|
||||
{
|
||||
void *ret = NULL;
|
||||
|
||||
for (uint16_t c = 0; c < DEVICE_MAX; c++) {
|
||||
if (devices[c] != NULL) {
|
||||
if ((device_priv[c] != NULL) && (devices[c]->flags & match_flags)) {
|
||||
ret = device_priv[c];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void *
|
||||
device_get_priv(const device_t *dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user