Commit 69f82077 authored by Adam Jackson's avatar Adam Jackson
Browse files

Remove afb support


Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
parent 4e8a6ac7
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
/* for visuals */ /* for visuals */
#include "fb.h" #include "fb.h"
#ifdef USE_AFB
#include "afb.h"
#endif
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
#include "xf86Resources.h" #include "xf86Resources.h"
...@@ -119,9 +116,6 @@ _X_EXPORT DriverRec FBDEV = { ...@@ -119,9 +116,6 @@ _X_EXPORT DriverRec FBDEV = {
/* Supported "chipsets" */ /* Supported "chipsets" */
static SymTabRec FBDevChipsets[] = { static SymTabRec FBDevChipsets[] = {
{ 0, "fbdev" }, { 0, "fbdev" },
#ifdef USE_AFB
{ 0, "afb" },
#endif
{-1, NULL } {-1, NULL }
}; };
...@@ -397,7 +391,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -397,7 +391,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
{ {
FBDevPtr fPtr; FBDevPtr fPtr;
int default_depth, fbbpp; int default_depth, fbbpp;
const char *mod = NULL, *s; const char *s;
int type; int type;
if (flags & PROBE_DETECT) return FALSE; if (flags & PROBE_DETECT) return FALSE;
...@@ -553,9 +547,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -553,9 +547,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
/* Load bpp-specific modules */ /* Load bpp-specific modules */
switch ((type = fbdevHWGetType(pScrn))) switch ((type = fbdevHWGetType(pScrn)))
{ {
case FBDEVHW_PLANES:
mod = "afb";
break;
case FBDEVHW_PACKED_PIXELS: case FBDEVHW_PACKED_PIXELS:
switch (pScrn->bitsPerPixel) switch (pScrn->bitsPerPixel)
{ {
...@@ -563,7 +554,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -563,7 +554,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
case 16: case 16:
case 24: case 24:
case 32: case 32:
mod = "fb";
break; break;
default: default:
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
...@@ -595,7 +585,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags) ...@@ -595,7 +585,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
"unrecognised fbdev hardware type (%d)\n", type); "unrecognised fbdev hardware type (%d)\n", type);
return FALSE; return FALSE;
} }
if (mod && xf86LoadSubModule(pScrn, mod) == NULL) { if (xf86LoadSubModule(pScrn, "fb") == NULL) {
FBDevFreeRec(pScrn); FBDevFreeRec(pScrn);
return FALSE; return FALSE;
} }
...@@ -758,28 +748,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) ...@@ -758,28 +748,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
switch ((type = fbdevHWGetType(pScrn))) switch ((type = fbdevHWGetType(pScrn)))
{ {
#ifdef USE_AFB
case FBDEVHW_PLANES:
if (fPtr->rotate)
{
xf86DrvMsg(scrnIndex, X_ERROR,
"internal error: rotate not supported for afb\n");
ret = FALSE;
break;
}
if (fPtr->shadowFB)
{
xf86DrvMsg(scrnIndex, X_ERROR,
"internal error: shadow framebuffer not supported"
" for afb\n");
ret = FALSE;
break;
}
ret = afbScreenInit
(pScreen, fPtr->fbstart, pScrn->virtualX, pScrn->virtualY,
pScrn->xDpi, pScrn->yDpi, pScrn->displayWidth);
break;
#endif
case FBDEVHW_PACKED_PIXELS: case FBDEVHW_PACKED_PIXELS:
switch (pScrn->bitsPerPixel) { switch (pScrn->bitsPerPixel) {
case 8: case 8:
...@@ -884,16 +852,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) ...@@ -884,16 +852,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
switch ((type = fbdevHWGetType(pScrn))) switch ((type = fbdevHWGetType(pScrn)))
{ {
/* XXX It would be simpler to use miCreateDefColormap() in all cases. */ /* XXX It would be simpler to use miCreateDefColormap() in all cases. */
#ifdef USE_AFB
case FBDEVHW_PLANES:
if (!afbCreateDefColormap(pScreen)) {
xf86DrvMsg(scrnIndex, X_ERROR,
"internal error: afbCreateDefColormap "
"failed in FBDevScreenInit()\n");
return FALSE;
}
break;
#endif
case FBDEVHW_PACKED_PIXELS: case FBDEVHW_PACKED_PIXELS:
if (!miCreateDefColormap(pScreen)) { if (!miCreateDefColormap(pScreen)) {
xf86DrvMsg(scrnIndex, X_ERROR, xf86DrvMsg(scrnIndex, X_ERROR,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment