1407 |
typedef int ADBRamLink; |
typedef int ADBRamLink; |
1408 |
void vortex_adb_init(vortex_t *vortex) { |
void vortex_adb_init(vortex_t *vortex) { |
1409 |
int i; |
int i; |
1410 |
|
/* it looks like we are writing more than we need to... |
1411 |
|
* if we write what we are supposed to it breaks things... */ |
1412 |
hwwrite(vortex->mmio, VORTEX_ADB_SR, 0); |
hwwrite(vortex->mmio, VORTEX_ADB_SR, 0); |
1413 |
for(i=0; i<VORTEX_ADB_RTBASE_SIZE; i+=4) |
for(i=0; i<VORTEX_ADB_RTBASE_SIZE; i++) |
1414 |
hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + i, |
hwwrite(vortex->mmio, VORTEX_ADB_RTBASE + (i<<2), |
1415 |
hwread(vortex->mmio, VORTEX_ADB_RTBASE + i) | ROUTE_MASK); |
hwread(vortex->mmio, VORTEX_ADB_RTBASE + (i<<2)) | ROUTE_MASK); |
1416 |
for(i=0; i<VORTEX_ADB_CHNBASE_SIZE; i+=4){ |
for(i=0; i<VORTEX_ADB_CHNBASE_SIZE; i++){ |
1417 |
hwwrite(vortex->mmio, VORTEX_ADB_CHNBASE + i, |
hwwrite(vortex->mmio, VORTEX_ADB_CHNBASE + (i<<2), |
1418 |
hwread(vortex->mmio, VORTEX_ADB_CHNBASE + i) | ROUTE_MASK); |
hwread(vortex->mmio, VORTEX_ADB_CHNBASE + (i<<2)) | ROUTE_MASK); |
1419 |
} |
} |
1420 |
} |
} |
1421 |
|
|