0xFF, 0xFF, /* For now */
FMT_MONO_WB,
HW_UNACCEL,
- GFX_TEXT|GFX_MAPPABLE|GFX_VBLANK,
+ GFX_TEXT|GFX_MAPPABLE|GFX_VBLANK|GFX_MULTIMODE,
0,
GFX_DRAW|GFX_READ|GFX_WRITE,
},
0xFF, 0xFF, /* For now */
FMT_MONO_WB,
HW_UNACCEL,
- GFX_TEXT|GFX_MAPPABLE|GFX_VBLANK,
+ GFX_TEXT|GFX_MAPPABLE|GFX_VBLANK|GFX_MULTIMODE,
0,
GFX_DRAW|GFX_READ|GFX_WRITE,
},
HW_UNACCEL,
GFX_MAPPABLE|GFX_VBLANK,
0,
- GFX_DRAW|GFX_READ|GFX_WRITE,
+ GFX_DRAW|GFX_READ|GFX_WRITE|GFX_MULTIMODE,
},
{
3,
HW_UNACCEL,
GFX_MAPPABLE|GFX_VBLANK,
0,
- GFX_DRAW|GFX_READ|GFX_WRITE,
+ GFX_DRAW|GFX_READ|GFX_WRITE|GFX_MULTIMODE,
},
/* Possibly we should also allow for SG6 and SG4 ?? */
};
return 0;
}
-/*
- * Start by just reporting the 256x192 mode which is memory mapped
- * (it's effectively always in our address space). Should really
- * support setting graphics into the other modes.
- */
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
{
if (arg >> 8 != 0x03)
255, 255,
FMT_TEXT,
HW_UNACCEL,
- 0,
+ GFX_MULTIMODE|GFX_TEXT,
2,
0
},
1, 1, /* Need adding to ioctls */
FMT_MONO_BW,
HW_TRS80GFX,
- GFX_MAPPABLE|GFX_OFFSCREEN, /* Can in theory do pans */
+ GFX_MULTIMODE|GFX_MAPPABLE|GFX_OFFSCREEN, /* Can in theory do pans */
32,
GFX_DRAW|GFX_READ|GFX_WRITE
}