mirror of
https://github.com/rdolbeau/NuBusFPGA.git
synced 2024-11-19 08:31:46 +00:00
30 lines
535 B
C
30 lines
535 B
C
#include "NuBusFPGARAMDskDrvr.h"
|
|
|
|
OSErr cNuBusFPGARAMDskStatus(CntrlParamPtr pb, /* DCtlPtr */ AuxDCEPtr dce)
|
|
{
|
|
OSErr ret = noErr;
|
|
struct RAMDrvContext *ctx;
|
|
|
|
dce->dCtlDevBase = 0xfc000000;
|
|
|
|
write_reg(dce, GOBOFB_DEBUG, 0xDEAD0004);
|
|
write_reg(dce, GOBOFB_DEBUG, pb->csCode);
|
|
|
|
ctx = *(struct RAMDrvContext**)dce->dCtlStorage;
|
|
|
|
if (ctx) {
|
|
switch (pb->csCode)
|
|
{
|
|
default:
|
|
ret = statusErr;
|
|
break;
|
|
}
|
|
} else {
|
|
ret = offLinErr; /* r/w requested for an off-line drive */
|
|
goto done;
|
|
}
|
|
|
|
done:
|
|
return ret;
|
|
}
|