Subversion Repositories Kolibri OS

Rev

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

Rev 749 Rev 791
Line 150... Line 150...
150
{
150
{
151
     mov edi, [ati_io]
151
     mov edi, [ati_io]
152
     mov op1, [edi+op2]
152
     mov op1, [edi+op2]
153
}
153
}
Line -... Line 154...
-
 
154
 
-
 
155
macro BEGIN_RING
-
 
156
{
-
 
157
      mov edi, [rhd.ring_base]
-
 
158
      mov edx, [rhd.ring_wp]
-
 
159
}
-
 
160
 
-
 
161
macro COMMIT_RING
-
 
162
{
-
 
163
        and edx, 0x1FFF
-
 
164
        mov [rhd.ring_wp], edx
-
 
165
 
-
 
166
        lock add [esp], dword 0            ; Flush writes to ring
-
 
167
 
-
 
168
        wrr RADEON_CP_RB_WPTR, edx
-
 
169
        rdr eax, RADEON_CP_RB_RPTR
-
 
170
}
-
 
171
 
-
 
172
macro OUT_PACKET0 reg, count
-
 
173
{
-
 
174
     mov eax, (RADEON_CP_PACKET0 + (count shl 16) + (reg shr 2))
-
 
175
     mov [edi+edx*4], eax
-
 
176
     inc edx
-
 
177
}
-
 
178
 
-
 
179
macro OUT_PACKET3 pkt, count                                              \
-
 
180
{
-
 
181
     mov eax, (RADEON_CP_PACKET3 or pkt or (count shl 16))
-
 
182
     mov [edi+edx*4], eax
-
 
183
     inc edx
-
 
184
}
-
 
185
 
-
 
186
macro OUT_RING  val
-
 
187
{
-
 
188
     mov eax, val
-
 
189
     mov [edi+edx*4], eax
-
 
190
     inc edx
-
 
191
}
-
 
192
 
-
 
193
macro RADEON_WAIT_UNTIL_IDLE
-
 
194
{
-
 
195
     OUT_PACKET0 RADEON_WAIT_UNTIL, 0
-
 
196
     OUT_RING RADEON_WAIT_2D_IDLECLEAN + \
-
 
197
              RADEON_WAIT_3D_IDLECLEAN + \
-
 
198
              RADEON_WAIT_HOST_IDLECLEAN
-
 
199
}
-
 
200
 
-
 
201
macro RADEON_PURGE_CACHE
-
 
202
{
-
 
203
     OUT_PACKET0 R5XX_RB3D_DSTCACHE_CTLSTAT, 0
-
 
204
     OUT_RING  R5XX_RB3D_DC_FLUSH_ALL
-
 
205
}
-
 
206
 
-
 
207
macro RADEON_PURGE_ZCACHE
-
 
208
{
-
 
209
     OUT_PACKET0 RADEON_RB3D_ZCACHE_CTLSTAT, 0
-
 
210
     OUT_RING RADEON_RB3D_ZC_FLUSH_ALL
-
 
211
}
154
 
212
 
155
macro wrr dest, src
213
macro wrr dest, src
156
{
214
{
157
     mov edi, [ati_io]
215
     mov edi, [ati_io]
158
     mov dword [edi+dest], src
216
     mov dword [edi+dest], src
Line 1244... Line 1302...
1244
             db 'R5xx2DFlush timeout error',13,10,0
1302
             db 'R5xx2DFlush timeout error',13,10,0
1245
msgR5xxFIFOWaitLocaltimeout \
1303
msgR5xxFIFOWaitLocaltimeout \
1246
             db 'R5xxFIFOWaitLocal timeout error', 13, 10,0
1304
             db 'R5xxFIFOWaitLocal timeout error', 13, 10,0
1247
msgR5xx2DIdleLocaltimeout \
1305
msgR5xx2DIdleLocaltimeout \
1248
             db 'R5xx2DIdleLocal timeout error', 13,10,0
1306
             db 'R5xx2DIdleLocal timeout error', 13,10,0
-
 
1307
 
-
 
1308
align 4
-
 
1309
R520_cp_microcode:
-
 
1310
dd     0x4200e000, 0000000000
-
 
1311
dd     0x4000e000, 0000000000
-
 
1312
dd     0x00000099, 0x00000008
-
 
1313
dd     0x0000009d, 0x00000008
-
 
1314
dd     0x4a554b4a, 0000000000
-
 
1315
dd     0x4a4a4467, 0000000000
-
 
1316
dd     0x55526f75, 0000000000
-
 
1317
dd     0x4a7e7d65, 0000000000
-
 
1318
dd     0xe0dae6f6, 0000000000
-
 
1319
dd     0x4ac54a4a, 0000000000
-
 
1320
dd     0xc8828282, 0000000000
-
 
1321
dd     0xbf4acfc1, 0000000000
-
 
1322
dd     0x87b04ad5, 0000000000
-
 
1323
dd     0xb5838383, 0000000000
-
 
1324
dd     0x4a0f85ba, 0000000000
-
 
1325
dd     0x000ca000, 0x00000004
-
 
1326
dd     0x000d0012, 0x00000038
-
 
1327
dd     0x0000e8b4, 0x00000004
-
 
1328
dd     0x000d0014, 0x00000038
-
 
1329
dd     0x0000e8b6, 0x00000004
-
 
1330
dd     0x000d0016, 0x00000038
-
 
1331
dd     0x0000e854, 0x00000004
-
 
1332
dd     0x000d0018, 0x00000038
-
 
1333
dd     0x0000e855, 0x00000004
-
 
1334
dd     0x000d001a, 0x00000038
-
 
1335
dd     0x0000e856, 0x00000004
-
 
1336
dd     0x000d001c, 0x00000038
-
 
1337
dd     0x0000e857, 0x00000004
-
 
1338
dd     0x000d001e, 0x00000038
-
 
1339
dd     0x0000e824, 0x00000004
-
 
1340
dd     0x000d0020, 0x00000038
-
 
1341
dd     0x0000e825, 0x00000004
-
 
1342
dd     0x000d0022, 0x00000038
-
 
1343
dd     0x0000e830, 0x00000004
-
 
1344
dd     0x000d0024, 0x00000038
-
 
1345
dd     0x0000f0c0, 0x00000004
-
 
1346
dd     0x000d0026, 0x00000038
-
 
1347
dd     0x0000f0c1, 0x00000004
-
 
1348
dd     0x000d0028, 0x00000038
-
 
1349
dd     0x0000e000, 0x00000004
-
 
1350
dd     0x000d002a, 0x00000038
-
 
1351
dd     0x0000e000, 0x00000004
-
 
1352
dd     0x000d002c, 0x00000038
-
 
1353
dd     0x0000e000, 0x00000004
-
 
1354
dd     0x000d002e, 0x00000038
-
 
1355
dd     0x0000e000, 0x00000004
-
 
1356
dd     0x000d0030, 0x00000038
-
 
1357
dd     0x0000e000, 0x00000004
-
 
1358
dd     0x000d0032, 0x00000038
-
 
1359
dd     0x0000f180, 0x00000004
-
 
1360
dd     0x000d0034, 0x00000038
-
 
1361
dd     0x0000f393, 0x00000004
-
 
1362
dd     0x000d0036, 0x00000038
-
 
1363
dd     0x0000f38a, 0x00000004
-
 
1364
dd     0x000d0038, 0x00000038
-
 
1365
dd     0x0000f38e, 0x00000004
-
 
1366
dd     0x0000e821, 0x00000004
-
 
1367
dd     0x0140a000, 0x00000004
-
 
1368
dd     0x00000043, 0x00000018
-
 
1369
dd     0x00cce800, 0x00000004
-
 
1370
dd     0x001b0001, 0x00000004
-
 
1371
dd     0x08004800, 0x00000004
-
 
1372
dd     0x001b0001, 0x00000004
-
 
1373
dd     0x08004800, 0x00000004
-
 
1374
dd     0x001b0001, 0x00000004
-
 
1375
dd     0x08004800, 0x00000004
-
 
1376
dd     0x0000003a, 0x00000008
-
 
1377
dd     0x0000a000, 0000000000
-
 
1378
dd     0x2000451d, 0x00000004
-
 
1379
dd     0x0000e580, 0x00000004
-
 
1380
dd     0x000ce581, 0x00000004
-
 
1381
dd     0x08004580, 0x00000004
-
 
1382
dd     0x000ce581, 0x00000004
-
 
1383
dd     0x00000047, 0x00000008
-
 
1384
dd     0x0000a000, 0000000000
-
 
1385
dd     0x000c2000, 0x00000004
-
 
1386
dd     0x0000e50e, 0x00000004
-
 
1387
dd     0x00032000, 0x00000004
-
 
1388
dd     0x00022051, 0x00000028
-
 
1389
dd     0x00000051, 0x00000024
-
 
1390
dd     0x0800450f, 0x00000004
-
 
1391
dd     0x0000a04b, 0x00000008
-
 
1392
dd     0x0000e565, 0x00000004
-
 
1393
dd     0x0000e566, 0x00000004
-
 
1394
dd     0x00000052, 0x00000008
-
 
1395
dd     0x03cca5b4, 0x00000004
-
 
1396
dd     0x05432000, 0x00000004
-
 
1397
dd     0x00022000, 0x00000004
-
 
1398
dd     0x4ccce05e, 0x00000030
-
 
1399
dd     0x08274565, 0x00000004
-
 
1400
dd     0x0000005e, 0x00000030
-
 
1401
dd     0x08004564, 0x00000004
-
 
1402
dd     0x0000e566, 0x00000004
-
 
1403
dd     0x00000055, 0x00000008
-
 
1404
dd     0x00802061, 0x00000010
-
 
1405
dd     0x00202000, 0x00000004
-
 
1406
dd     0x001b00ff, 0x00000004
-
 
1407
dd     0x01000064, 0x00000010
-
 
1408
dd     0x001f2000, 0x00000004
-
 
1409
dd     0x001c00ff, 0x00000004
-
 
1410
dd     0000000000, 0x0000000c
-
 
1411
dd     0x00000072, 0x00000030
-
 
1412
dd     0x00000055, 0x00000008
-
 
1413
dd     0x0000e576, 0x00000004
-
 
1414
dd     0x0000e577, 0x00000004
-
 
1415
dd     0x0000e50e, 0x00000004
-
 
1416
dd     0x0000e50f, 0x00000004
-
 
1417
dd     0x0140a000, 0x00000004
-
 
1418
dd     0x00000069, 0x00000018
-
 
1419
dd     0x00c0e5f9, 0x000000c2
-
 
1420
dd     0x00000069, 0x00000008
-
 
1421
dd     0x0014e50e, 0x00000004
-
 
1422
dd     0x0040e50f, 0x00000004
-
 
1423
dd     0x00c0006c, 0x00000008
-
 
1424
dd     0x0000e570, 0x00000004
-
 
1425
dd     0x0000e571, 0x00000004
-
 
1426
dd     0x0000e572, 0x0000000c
-
 
1427
dd     0x0000a000, 0x00000004
-
 
1428
dd     0x0140a000, 0x00000004
-
 
1429
dd     0x0000e568, 0x00000004
-
 
1430
dd     0x000c2000, 0x00000004
-
 
1431
dd     0x00000076, 0x00000018
-
 
1432
dd     0x000b0000, 0x00000004
-
 
1433
dd     0x18c0e562, 0x00000004
-
 
1434
dd     0x00000078, 0x00000008
-
 
1435
dd     0x00c00077, 0x00000008
-
 
1436
dd     0x000700c7, 0x00000004
-
 
1437
dd     0x00000080, 0x00000038
-
 
1438
dd     0x0000e5bb, 0x00000004
-
 
1439
dd     0x0000e5bc, 0000000000
-
 
1440
dd     0x0000a000, 0x00000004
-
 
1441
dd     0x0000e821, 0x00000004
-
 
1442
dd     0x0000e800, 0000000000
-
 
1443
dd     0x0000e821, 0x00000004
-
 
1444
dd     0x0000e82e, 0000000000
-
 
1445
dd     0x02cca000, 0x00000004
-
 
1446
dd     0x00140000, 0x00000004
-
 
1447
dd     0x000ce1cc, 0x00000004
-
 
1448
dd     0x050de1cd, 0x00000004
-
 
1449
dd     0x00400000, 0x00000004
-
 
1450
dd     0x0000008f, 0x00000018
-
 
1451
dd     0x00c0a000, 0x00000004
-
 
1452
dd     0x0000008c, 0x00000008
-
 
1453
dd     0x00000091, 0x00000020
-
 
1454
dd     0x4200e000, 0000000000
-
 
1455
dd     0x00000098, 0x00000038
-
 
1456
dd     0x000ca000, 0x00000004
-
 
1457
dd     0x00140000, 0x00000004
-
 
1458
dd     0x000c2000, 0x00000004
-
 
1459
dd     0x00160000, 0x00000004
-
 
1460
dd     0x700ce000, 0x00000004
-
 
1461
dd     0x00140094, 0x00000008
-
 
1462
dd     0x4000e000, 0000000000
-
 
1463
dd     0x02400000, 0x00000004
-
 
1464
dd     0x400ee000, 0x00000004
-
 
1465
dd     0x02400000, 0x00000004
-
 
1466
dd     0x4000e000, 0000000000
-
 
1467
dd     0x000c2000, 0x00000004
-
 
1468
dd     0x0240e51b, 0x00000004
-
 
1469
dd     0x0080e50a, 0x00000005
-
 
1470
dd     0x0080e50b, 0x00000005
-
 
1471
dd     0x00220000, 0x00000004
-
 
1472
dd     0x000700c7, 0x00000004
-
 
1473
dd     0x000000a4, 0x00000038
-
 
1474
dd     0x0080e5bd, 0x00000005
-
 
1475
dd     0x0000e5bb, 0x00000005
-
 
1476
dd     0x0080e5bc, 0x00000005
-
 
1477
dd     0x00210000, 0x00000004
-
 
1478
dd     0x02800000, 0x00000004
-
 
1479
dd     0x00c000ab, 0x00000018
-
 
1480
dd     0x4180e000, 0x00000040
-
 
1481
dd     0x000000ad, 0x00000024
-
 
1482
dd     0x01000000, 0x0000000c
-
 
1483
dd     0x0100e51d, 0x0000000c
-
 
1484
dd     0x000045bb, 0x00000004
-
 
1485
dd     0x000080a7, 0x00000008
-
 
1486
dd     0x0000f3ce, 0x00000004
-
 
1487
dd     0x0140a000, 0x00000004
-
 
1488
dd     0x00cc2000, 0x00000004
-
 
1489
dd     0x08c053cf, 0x00000040
-
 
1490
dd     0x00008000, 0000000000
-
 
1491
dd     0x0000f3d2, 0x00000004
-
 
1492
dd     0x0140a000, 0x00000004
-
 
1493
dd     0x00cc2000, 0x00000004
-
 
1494
dd     0x08c053d3, 0x00000040
-
 
1495
dd     0x00008000, 0000000000
-
 
1496
dd     0x0000f39d, 0x00000004
-
 
1497
dd     0x0140a000, 0x00000004
-
 
1498
dd     0x00cc2000, 0x00000004
-
 
1499
dd     0x08c0539e, 0x00000040
-
 
1500
dd     0x00008000, 0000000000
-
 
1501
dd     0x03c00830, 0x00000004
-
 
1502
dd     0x4200e000, 0000000000
-
 
1503
dd     0x0000a000, 0x00000004
-
 
1504
dd     0x200045e0, 0x00000004
-
 
1505
dd     0x0000e5e1, 0000000000
-
 
1506
dd     0x00000001, 0000000000
-
 
1507
dd     0x000700c4, 0x00000004
-
 
1508
dd     0x0800e394, 0000000000
-
 
1509
dd     0000000000, 0000000000
-
 
1510
dd     0x0000e8c4, 0x00000004
-
 
1511
dd     0x0000e8c5, 0x00000004
-
 
1512
dd     0x0000e8c6, 0x00000004
-
 
1513
dd     0x0000e928, 0x00000004
-
 
1514
dd     0x0000e929, 0x00000004
-
 
1515
dd     0x0000e92a, 0x00000004
-
 
1516
dd     0x000000c8, 0x00000008
-
 
1517
dd     0x0000e928, 0x00000004
-
 
1518
dd     0x0000e929, 0x00000004
-
 
1519
dd     0x0000e92a, 0x00000004
-
 
1520
dd     0x000000cf, 0x00000008
-
 
1521
dd     0xdeadbeef, 0000000000
-
 
1522
dd     0x00000116, 0000000000
-
 
1523
dd     0x000700d3, 0x00000004
-
 
1524
dd     0x080050e7, 0x00000004
-
 
1525
dd     0x000700d4, 0x00000004
-
 
1526
dd     0x0800401c, 0x00000004
-
 
1527
dd     0x0000e01d, 0000000000
-
 
1528
dd     0x02c02000, 0x00000004
-
 
1529
dd     0x00060000, 0x00000004
-
 
1530
dd     0x000000de, 0x00000034
-
 
1531
dd     0x000000db, 0x00000008
-
 
1532
dd     0x00008000, 0x00000004
-
 
1533
dd     0xc000e000, 0000000000
-
 
1534
dd     0x0000e1cc, 0x00000004
-
 
1535
dd     0x0500e1cd, 0x00000004
-
 
1536
dd     0x000ca000, 0x00000004
-
 
1537
dd     0x000000e5, 0x00000034
-
 
1538
dd     0x000000e1, 0x00000008
-
 
1539
dd     0x0000a000, 0000000000
-
 
1540
dd     0x0019e1cc, 0x00000004
-
 
1541
dd     0x001b0001, 0x00000004
-
 
1542
dd     0x0500a000, 0x00000004
-
 
1543
dd     0x080041cd, 0x00000004
-
 
1544
dd     0x000ca000, 0x00000004
-
 
1545
dd     0x000000fb, 0x00000034
-
 
1546
dd     0x0000004a, 0x00000008
-
 
1547
dd     0000000000, 0000000000
-
 
1548
dd     0000000000, 0000000000
-
 
1549
dd     0000000000, 0000000000
-
 
1550
dd     0000000000, 0000000000
-
 
1551
dd     0000000000, 0000000000
-
 
1552
dd     0000000000, 0000000000
-
 
1553
dd     0000000000, 0000000000
-
 
1554
dd     0000000000, 0000000000
-
 
1555
dd     0000000000, 0000000000
-
 
1556
dd     0x000c2000, 0x00000004
-
 
1557
dd     0x001d0018, 0x00000004
-
 
1558
dd     0x001a0001, 0x00000004
-
 
1559
dd     0x000000fb, 0x00000034
-
 
1560
dd     0x0000004a, 0x00000008
-
 
1561
dd     0x0500a04a, 0x00000008
-
 
1562
dd     0000000000, 0000000000
-
 
1563
dd     0000000000, 0000000000
-
 
1564
dd     0000000000, 0000000000
-
 
1565
dd     0000000000, 0000000000
-
 
1566
 
-
 
1567
 
1249
end if
1568
end if
Line 1250... Line 1569...
1250
 
1569
 
1251
if 0
1570
if 0
1252
msg6100      db '6100:  ',0
1571
msg6100      db '6100:  ',0