|
From: Enno F. <e.f...@ti...> - 2009-04-19 19:28:00
|
I am totally new in the drm area but try to get access to the registers
on my Radeon 9200SE. I tried
drm = drmOpen("radeon", NULL);
which returns a file descriptor 5. I thought I then had to do
rv = drmAddMap(drm, 0xfbe00000, 0x10000, DRM_REGISTERS, 0, &mapHandle);
which returns rv = -13. The documentation says the 2nd parameter should
be the physical address of the register area and is probaly wrong (it is
the linear (?) address in BAR2 of the Radeon configuration area) but how
do I find the physical address of a memory mapped IO area? Or should any
of the other arguments be different or should I call something else?
I am lost and would appreciate any help.
Enno
|