SCSI controller is now once again reset on soft reset, but this time this is handled in a more appropriate way;
Fixed some copyright headers.
This commit is contained in:
16
src/device.c
16
src/device.c
@@ -73,6 +73,22 @@ void device_close_all()
|
||||
}
|
||||
}
|
||||
|
||||
void *device_get_priv(device_t *d)
|
||||
{
|
||||
int c;
|
||||
|
||||
for (c = 0; c < 256; c++)
|
||||
{
|
||||
if (devices[c] != NULL)
|
||||
{
|
||||
if (devices[c] == d)
|
||||
return device_priv[c];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int device_available(device_t *d)
|
||||
{
|
||||
#ifdef RELEASE_BUILD
|
||||
|
||||
Reference in New Issue
Block a user