#include "accelerant.h"
#include "i810_regs.h"
bool
I810_GetColorSpaceParams(int colorSpace, uint8& bitsPerPixel,
uint32& maxPixelClock)
{
switch (colorSpace) {
case B_RGB16:
bitsPerPixel = 16;
maxPixelClock = 163000;
break;
break;
case B_CMAP8:
bitsPerPixel = 8;
maxPixelClock = 203000;
break;
default:
TRACE("Unsupported color space: 0x%X\n", colorSpace);
return false;
}
return true;
}
status_t
I810_Init(void)
{
TRACE("I810_Init()\n");
SharedInfo& si = *gInfo.sharedInfo;
si.maxFrameBufferSize = si.videoMemSize;
si.colorSpaces[0] = B_CMAP8;
si.colorSpaces[1] = B_RGB16;
si.colorSpaceCount = 2;
return CreateModeList(IsModeUsable);
}