summaryrefslogtreecommitdiff
path: root/radeontool.c
diff options
context:
space:
mode:
Diffstat (limited to 'radeontool.c')
-rw-r--r--radeontool.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/radeontool.c b/radeontool.c
index 9ed92c2..cb0d12d 100644
--- a/radeontool.c
+++ b/radeontool.c
@@ -948,22 +948,8 @@ static void map_radeon_cntl_mem(void)
if (!device)
die("cannot find Radeon device");
- for (i = 0; i < 6; i++) {
- if (device->regions[i].size >= 16 * 1024 &&
- device->regions[i].size <= 64 * 1024) {
- if (ctrl_region != -1)
- die("cannot distinguish ctrl region");
- ctrl_region = i;
- } else if (device->regions[i].size >= 64 * 1024 * 1024) {
- if (fb_region != -1)
- die("cannot distinguish fb region");
- fb_region = i;
- }
- }
- if (ctrl_region == -1)
- die("cannot find ctrl region");
- if (fb_region == -1)
- die("cannot find fb region");
+ fb_region = 0;
+ ctrl_region = 2;
avivo_device = device;
if (pci_device_map_region(avivo_device, ctrl_region, 1) != 0)