54 |
|
* Driver Open() routine |
55 |
|
*/ |
56 |
|
|
57 |
< |
int16 VideoOpen(uint32 pb, uint32 dce) |
57 |
> |
int16 VideoDriverOpen(uint32 pb, uint32 dce) |
58 |
|
{ |
59 |
< |
D(bug("VideoOpen\n")); |
59 |
> |
D(bug("VideoDriverOpen\n")); |
60 |
|
|
61 |
|
// Init local variables |
62 |
|
VidLocal.desc = &VideoMonitor; |
80 |
|
* Driver Control() routine |
81 |
|
*/ |
82 |
|
|
83 |
< |
int16 VideoControl(uint32 pb, uint32 dce) |
83 |
> |
int16 VideoDriverControl(uint32 pb, uint32 dce) |
84 |
|
{ |
85 |
|
uint16 code = ReadMacInt16(pb + csCode); |
86 |
|
uint32 param = ReadMacInt32(pb + csParam); |
87 |
< |
D(bug("VideoControl %d\n", code)); |
87 |
> |
D(bug("VideoDriverControl %d\n", code)); |
88 |
|
switch (code) { |
89 |
|
|
90 |
|
case cscSetMode: // Set color depth |
183 |
|
return noErr; |
184 |
|
|
185 |
|
default: |
186 |
< |
printf("WARNING: Unknown VideoControl(%d)\n", code); |
186 |
> |
printf("WARNING: Unknown VideoDriverControl(%d)\n", code); |
187 |
|
return controlErr; |
188 |
|
} |
189 |
|
} |
193 |
|
* Driver Status() routine |
194 |
|
*/ |
195 |
|
|
196 |
< |
int16 VideoStatus(uint32 pb, uint32 dce) |
196 |
> |
int16 VideoDriverStatus(uint32 pb, uint32 dce) |
197 |
|
{ |
198 |
|
uint16 code = ReadMacInt16(pb + csCode); |
199 |
|
uint32 param = ReadMacInt32(pb + csParam); |
200 |
< |
D(bug("VideoStatus %d\n", code)); |
200 |
> |
D(bug("VideoDriverStatus %d\n", code)); |
201 |
|
switch (code) { |
202 |
|
|
203 |
|
case cscGetPageCnt: // Get number of pages |
255 |
|
return noErr; |
256 |
|
|
257 |
|
default: |
258 |
< |
printf("WARNING: Unknown VideoStatus(%d)\n", code); |
258 |
> |
printf("WARNING: Unknown VideoDriverStatus(%d)\n", code); |
259 |
|
return statusErr; |
260 |
|
} |
261 |
|
} |