Rev 808 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 808 | Rev 817 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | rhdPtr->FbMapSize = 1 << rhdPtr->memsize[RHD_FB_BAR]; |
58 | rhdPtr->FbMapSize = 1 << rhdPtr->memsize[RHD_FB_BAR]; |
59 | rhdPtr->PhisBase = rhdPtr->memBase[RHD_FB_BAR]; |
59 | rhdPtr->PhisBase = rhdPtr->memBase[RHD_FB_BAR]; |
60 | 60 | ||
61 | rhdPtr->FbBase = MapIoMem(rhdPtr->PhisBase, rhdPtr->FbMapSize,PG_SW+PG_NOCACHE); |
61 | // rhdPtr->FbBase = MapIoMem(rhdPtr->PhisBase, rhdPtr->FbMapSize,PG_SW+PG_NOCACHE); |
Line 62... | Line 62... | ||
62 | 62 | ||
Line 63... | Line 63... | ||
63 | if (!rhdPtr->FbBase) |
63 | // if (!rhdPtr->FbBase) |
64 | return FALSE; |
64 | // return FALSE; |
Line 65... | Line 65... | ||
65 | 65 | ||
66 | /* These devices have an internal address reference, which some other |
66 | /* These devices have an internal address reference, which some other |
67 | * address registers in there also use. This can be different from the |
67 | * address registers in there also use. This can be different from the |
68 | * address in the BAR */ |
68 | * address in the BAR */ |
Line 78... | Line 78... | ||
78 | dbgprintf("PCI FB Address (BAR) is at " |
78 | dbgprintf("PCI FB Address (BAR) is at " |
79 | "0x%08X while card Internal Address is 0x%08X\n", |
79 | "0x%08X while card Internal Address is 0x%08X\n", |
80 | (unsigned int) rhdPtr->PhisBase,rhdPtr->FbIntAddress); |
80 | (unsigned int) rhdPtr->PhisBase,rhdPtr->FbIntAddress); |
81 | dbgprintf("Mapped FB at %p (size 0x%08X)\n",rhdPtr->FbBase, rhdPtr->FbMapSize); |
81 | // dbgprintf("Mapped FB at %p (size 0x%08X)\n",rhdPtr->FbBase, rhdPtr->FbMapSize); |
82 | return TRUE; |
82 | return TRUE; |
83 | } |
83 | } |
84 | 84 | ||
Line 85... | Line 85... | ||
85 | Bool RHDPreInit() |
85 | Bool RHDPreInit() |
86 | { |
86 | { |
Line 106... | Line 106... | ||
106 | 106 | ||
107 | rhd.FbScanoutStart = 0; |
107 | rhd.FbScanoutStart = 0; |
Line 108... | Line 108... | ||
108 | rhd.FbScanoutSize = 8*1024*1024; |
108 | rhd.FbScanoutSize = 8*1024*1024; |
109 | rhd.FbFreeStart = 8*1024*1024; |
109 | rhd.FbFreeStart = 10*1024*1024; |
110 | rhd.FbFreeSize = rhd.FbMapSize - 8*1024*1024; |
110 | rhd.FbFreeSize = rhd.FbMapSize - 10*1024*1024; |
111 | 111 | ||
Line 112... | Line 112... | ||
112 | rhdInitHeap(&rhd); |
112 | rhdInitHeap(&rhd); |
113 | return TRUE; |
113 | return TRUE; |
Line 114... | Line 114... | ||
114 | 114 |