This is the start of a patch to get a few more things out of the driver that I need. I thought I'd run it by you before implementing the rest of it. I need to get hardware info including PC IDs, interrupt number, mmio and framebuffer locations. Since we don't want to use any more generic IOCTLS I modified the GetStats call to return the hw info as statistics. You may have a better solution for doing this.
Also, I noticed that the GetStat IOCTL is flawed in it's extensibility. The first field in drm_stats_t should have been a size which is set to sizeof(drm_stats_t) on input. If this was the case the structure could have easily been expanded. Instead I have to use a more complicated scheme based on the interface version. The behavior of drmGetStats() is unchanged, drmGetHardwareInfo() just shared the GetStat IOCTL since all of the data needed fits into the same format. After getting the hardware info I need one final change. I need to make the radeon DRM driver report it's name as r200 when it is on r200 hardware and radeon otherwise. This will let my generic boot code take the driver name, tack _dri.so on to it, and load the right DSO. Alternatively I could modify the DRM code to build two ATI drivers: radeon and r200; each containing their respective PCI IDs. Which scheme is better? ===== Jon Smirl [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/
patch
Description: patch
