2022-06-07 21:05:08 +00:00
|
|
|
#include "NuBusFPGARAMDskDrvr.h"
|
|
|
|
|
|
|
|
OSErr cNuBusFPGARAMDskStatus(CntrlParamPtr pb, /* DCtlPtr */ AuxDCEPtr dce)
|
|
|
|
{
|
|
|
|
OSErr ret = noErr;
|
|
|
|
struct RAMDrvContext *ctx;
|
|
|
|
|
2022-06-26 10:31:43 +00:00
|
|
|
/* write_reg(dce, GOBOFB_DEBUG, 0xDEAD0004); */
|
|
|
|
/* write_reg(dce, GOBOFB_DEBUG, pb->csCode); */
|
2022-06-07 21:05:08 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|