Subversion Repositories Kolibri OS

Rev

Rev 876 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 876 Rev 877
Line 117... Line 117...
117
 
117
 
Line 118... Line 118...
118
 
118
 
119
 
119
 
120
static Bool
120
static Bool
121
R5xxFIFOWaitLocal(CARD32 required)             //R100-R500
121
R5xxFIFOWaitLocal(u32_t required)             //R100-R500
Line 122... Line 122...
122
{
122
{
123
  int i;
123
  int i;
Line 181... Line 181...
181
 
181
 
Line 182... Line 182...
182
static void
182
static void
183
R5xx2DReset()
183
R5xx2DReset()
184
{
184
{
185
    CARD32 save, tmp;
185
    u32_t save, tmp;
186
    u32_t       clock_cntl_index;
186
    u32_t       clock_cntl_index;
187
    u32_t       mclk_cntl;
187
    u32_t       mclk_cntl;
Line 188... Line 188...
188
 
188
 
189
      /* The following RBBM_SOFT_RESET sequence can help un-wedge
189
      /* The following RBBM_SOFT_RESET sequence can help un-wedge
Line 283... Line 283...
283
 
283
 
Line 284... Line 284...
284
    R5xx2DIdleLocal();
284
    R5xx2DIdleLocal();
285
}
285
}
Line 286... Line 286...
286
 
286
 
287
void R5xxFIFOWait(CARD32 required)
287
void R5xxFIFOWait(u32_t required)
288
{
288
{
289
    if (!R5xxFIFOWaitLocal(required)) {
289
    if (!R5xxFIFOWaitLocal(required)) {
290
      R5xx2DReset();
290
      R5xx2DReset();
291
      R5xx2DSetup();
291
      R5xx2DSetup();
Line 301... Line 301...
301
}
301
}
302
 
302
 
Line 303... Line 303...
303
static void load_microcode()
303
static void load_microcode()
304
{
304
{
305
  u32 ifl;
305
  u32_t ifl;
306
  int i;
306
  int i;
Line 307... Line 307...
307
 
307
 
Line 308... Line 308...
308
  ifl = safe_cli();
308
  ifl = safe_cli();
Line 348... Line 348...
348
 
348
 
Line 349... Line 349...
349
 
349
 
350
void  R5xx2DInit()
350
void  R5xx2DInit()
351
{
351
{
Line 352... Line 352...
352
    u32 base;
352
    u32_t base;
353
 
353
 
354
#ifdef R300_TEST
354
#ifdef R300_TEST
355
    rhd.displayWidth  = 1024;
355
    rhd.displayWidth  = 1024;