neofb: mmio fixes
PATCH 6/7 neofb: mmio fixes
Changes in neo_map_mmio to make neofb working on NM2070, NM2090, NM2093.
From: Marek Marczykowski <[email protected]>
---
neofb.c | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletion(-)
drivers/video/neofb.c +21 -1
@@ -1691,7 +1691,27 @@DBG ("neo_map_mmio" ); - info->fix.mmio_start =pci_resource_start (dev,1 ); +switch (info->fix.accel) { +case FB_ACCEL_NEOMAGIC_NM2070 : + info->fix.mmio_start =pci_resource_start (dev,0 )+ +0x100000 ; +break ; +case FB_ACCEL_NEOMAGIC_NM2090 : +case FB_ACCEL_NEOMAGIC_NM2093 : + info->fix.mmio_start =pci_resource_start (dev,0 )+ +0x200000 ; +break ; +case FB_ACCEL_NEOMAGIC_NM2160 : +case FB_ACCEL_NEOMAGIC_NM2097 : +case FB_ACCEL_NEOMAGIC_NM2200 : +case FB_ACCEL_NEOMAGIC_NM2230 : +case FB_ACCEL_NEOMAGIC_NM2360 : +case FB_ACCEL_NEOMAGIC_NM2380 : + info->fix.mmio_start =pci_resource_start (dev,1 ); +break ; +default : + info->fix.mmio_start =pci_resource_start (dev,0 ); + } info->fix.mmio_len =MMIO_SIZE ; if (!request_mem_region
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Forgot to sign off.
Changes in neo_map_mmio to make neofb working on NM2070, NM2090, NM2093.
From: Marek Marczykowski <[email protected]>
---
neofb.c | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletion(-)
drivers/video/neofb.c +21 -1
@@ -1691,7 +1691,27 @@DBG ("neo_map_mmio" ); - info->fix.mmio_start =pci_resource_start (dev,1 ); +switch (info->fix.accel) { +case FB_ACCEL_NEOMAGIC_NM2070 : + info->fix.mmio_start =pci_resource_start (dev,0 )+ +0x100000 ; +break ; +case FB_ACCEL_NEOMAGIC_NM2090 : +case FB_ACCEL_NEOMAGIC_NM2093 : + info->fix.mmio_start =pci_resource_start (dev,0 )+ +0x200000 ; +break ; +case FB_ACCEL_NEOMAGIC_NM2160 : +case FB_ACCEL_NEOMAGIC_NM2097 : +case FB_ACCEL_NEOMAGIC_NM2200 : +case FB_ACCEL_NEOMAGIC_NM2230 : +case FB_ACCEL_NEOMAGIC_NM2360 : +case FB_ACCEL_NEOMAGIC_NM2380 : + info->fix.mmio_start =pci_resource_start (dev,1 ); +break ; +default : + info->fix.mmio_start =pci_resource_start (dev,0 ); + } info->fix.mmio_len =MMIO_SIZE ; if (!request_mem_region
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click