Lines 670-677
Link Here
|
670 |
VisualPtr visual; |
670 |
VisualPtr visual; |
671 |
|
671 |
|
672 |
/* Add in our Dbe hook. */ |
672 |
/* Add in our Dbe hook. */ |
673 |
if (!FFBDbePreInit(pScreen)) |
673 |
xf86Msg(X_INFO,"%s: Enter\n","FFBScreenInit"); |
|
|
674 |
if (!FFBDbePreInit(pScreen)) { |
675 |
xf86Msg(X_INFO,"%s: (Spurious) failure\n","FFBFFBDbePrenit"); |
676 |
/* |
677 |
FFBDbePreInit thinks it returns a status from DbeRegisterFunction, |
678 |
but the only DbeRegisterFunction I know of is in libdre.a, and |
679 |
that function is "void DbeRegisterFunction(..." and it returns |
680 |
no status in particular. Hence, my belief that this status return |
681 |
is meaningless. --- FEM |
674 |
return FALSE; |
682 |
return FALSE; |
|
|
683 |
*/ |
684 |
} |
675 |
|
685 |
|
676 |
/* |
686 |
/* |
677 |
* First get the ScrnInfoRec |
687 |
* First get the ScrnInfoRec |
Lines 682-687
Link Here
|
682 |
|
692 |
|
683 |
/* Map the FFB framebuffer, for each view. */ |
693 |
/* Map the FFB framebuffer, for each view. */ |
684 |
|
694 |
|
|
|
695 |
/* |
696 |
Now, we are going to try to map frame buffer memory. |
697 |
So, let's note each attempt. |
698 |
*/ |
699 |
|
700 |
xf86Msg(X_INFO,"%s: DFB24_VOFF\n",pFfb->psdp->device); |
701 |
|
685 |
/* 24-bit RGB Dumb view */ |
702 |
/* 24-bit RGB Dumb view */ |
686 |
pFfb->fb = pFfb->dfb24 = |
703 |
pFfb->fb = pFfb->dfb24 = |
687 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB24_VOFF, 0x1000000); |
704 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB24_VOFF, 0x1000000); |
Lines 690-695
Link Here
|
690 |
return FALSE; |
707 |
return FALSE; |
691 |
|
708 |
|
692 |
/* 8-bit R Dumb view */ |
709 |
/* 8-bit R Dumb view */ |
|
|
710 |
xf86Msg(X_INFO,"%s: DFB8R_VOFF\n",pFfb->psdp->device); |
693 |
pFfb->dfb8r = |
711 |
pFfb->dfb8r = |
694 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB8R_VOFF, 0x400000); |
712 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB8R_VOFF, 0x400000); |
695 |
|
713 |
|
Lines 697-702
Link Here
|
697 |
return FALSE; |
715 |
return FALSE; |
698 |
|
716 |
|
699 |
/* 8-bit X Dumb view */ |
717 |
/* 8-bit X Dumb view */ |
|
|
718 |
xf86Msg(X_INFO,"%s: DFB8X_VOFF\n",pFfb->psdp->device); |
700 |
pFfb->dfb8x = |
719 |
pFfb->dfb8x = |
701 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB8X_VOFF, 0x400000); |
720 |
xf86MapSbusMem (pFfb->psdp, FFB_DFB8X_VOFF, 0x400000); |
702 |
|
721 |
|
Lines 704-709
Link Here
|
704 |
return FALSE; |
723 |
return FALSE; |
705 |
|
724 |
|
706 |
/* 32-bit RGB Smart view */ |
725 |
/* 32-bit RGB Smart view */ |
|
|
726 |
xf86Msg(X_INFO,"%s: SFB32_VOFF\n",pFfb->psdp->device); |
707 |
pFfb->sfb32 = |
727 |
pFfb->sfb32 = |
708 |
xf86MapSbusMem (pFfb->psdp, FFB_SFB32_VOFF, 0x1000000); |
728 |
xf86MapSbusMem (pFfb->psdp, FFB_SFB32_VOFF, 0x1000000); |
709 |
|
729 |
|
Lines 711-716
Link Here
|
711 |
return FALSE; |
731 |
return FALSE; |
712 |
|
732 |
|
713 |
/* 8-bit R Smart view */ |
733 |
/* 8-bit R Smart view */ |
|
|
734 |
xf86Msg(X_INFO,"%s: SFB8R_VOFF\n",pFfb->psdp->device); |
714 |
pFfb->sfb8r = |
735 |
pFfb->sfb8r = |
715 |
xf86MapSbusMem(pFfb->psdp, FFB_SFB8R_VOFF, 0x400000); |
736 |
xf86MapSbusMem(pFfb->psdp, FFB_SFB8R_VOFF, 0x400000); |
716 |
|
737 |
|
Lines 718-723
Link Here
|
718 |
return FALSE; |
739 |
return FALSE; |
719 |
|
740 |
|
720 |
/* 8-bit X Smart view */ |
741 |
/* 8-bit X Smart view */ |
|
|
742 |
xf86Msg(X_INFO,"%s: SFB8X_VOFF\n",pFfb->psdp->device); |
721 |
pFfb->sfb8x = |
743 |
pFfb->sfb8x = |
722 |
xf86MapSbusMem(pFfb->psdp, FFB_SFB8X_VOFF, 0x400000); |
744 |
xf86MapSbusMem(pFfb->psdp, FFB_SFB8X_VOFF, 0x400000); |
723 |
|
745 |
|
Lines 725-730
Link Here
|
725 |
return FALSE; |
747 |
return FALSE; |
726 |
|
748 |
|
727 |
/* Map the rendering pipeline */ |
749 |
/* Map the rendering pipeline */ |
|
|
750 |
xf86Msg(X_INFO,"%s: FBC_REGS_VOFF\n",pFfb->psdp->device); |
728 |
pFfb->regs = |
751 |
pFfb->regs = |
729 |
xf86MapSbusMem (pFfb->psdp, FFB_FBC_REGS_VOFF, 16384); |
752 |
xf86MapSbusMem (pFfb->psdp, FFB_FBC_REGS_VOFF, 16384); |
730 |
|
753 |
|
Lines 732-737
Link Here
|
732 |
return FALSE; |
755 |
return FALSE; |
733 |
|
756 |
|
734 |
/* Map the ramdac */ |
757 |
/* Map the ramdac */ |
|
|
758 |
xf86Msg(X_INFO,"%s: DAC_VOFF\n",pFfb->psdp->device); |
735 |
pFfb->dac = |
759 |
pFfb->dac = |
736 |
xf86MapSbusMem (pFfb->psdp, FFB_DAC_VOFF, 8192); |
760 |
xf86MapSbusMem (pFfb->psdp, FFB_DAC_VOFF, 8192); |
737 |
|
761 |
|
Lines 739-744
Link Here
|
739 |
return FALSE; |
763 |
return FALSE; |
740 |
|
764 |
|
741 |
/* Map the board strapping bits */ |
765 |
/* Map the board strapping bits */ |
|
|
766 |
xf86Msg(X_INFO,"%s: EXP_VOFF\n",pFfb->psdp->device); |
742 |
pFfb->strapping_bits = (volatile unsigned int *) |
767 |
pFfb->strapping_bits = (volatile unsigned int *) |
743 |
xf86MapSbusMem(pFfb->psdp, FFB_EXP_VOFF, 8192); |
768 |
xf86MapSbusMem(pFfb->psdp, FFB_EXP_VOFF, 8192); |
744 |
|
769 |
|
Lines 746-751
Link Here
|
746 |
return FALSE; |
771 |
return FALSE; |
747 |
|
772 |
|
748 |
/* Probe for the type of FFB/AFB we have. */ |
773 |
/* Probe for the type of FFB/AFB we have. */ |
|
|
774 |
/* OK, now we should start getting useful messages again, because |
775 |
Probe... explains what it is finding. */ |
749 |
FFBProbeBoardType(pFfb); |
776 |
FFBProbeBoardType(pFfb); |
750 |
|
777 |
|
751 |
/* Now that we have the board type, we can init the ramdac layer. */ |
778 |
/* Now that we have the board type, we can init the ramdac layer. */ |