[Intel-gfx] [PATCH 2/7] Remove fixed MMIO size
Eric Anholt
eric at anholt.net
Fri Jun 5 13:06:27 CEST 2009
On Fri, 2009-06-05 at 15:47 +0800, Zhenyu Wang wrote:
> Use pci resource size instead, which will get the correct MMIO range.
> New chipset uses obviously larger MMIO range.
>
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
> src/common.h | 1 +
> src/i830.h | 1 +
> src/i830_driver.c | 10 ++++++----
> 3 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/src/common.h b/src/common.h
> index 69f5604..83ee633 100644
> --- a/src/common.h
> +++ b/src/common.h
> @@ -321,6 +321,7 @@ extern int I810_DEBUG;
> #endif
>
> #define I810_MEMBASE(p,n) (p)->regions[(n)].base_addr
> +#define I810_MEMSIZE(p,n) (p)->regions[(n)].size
This abstraction existed for libpciaccess vs xf86 pci access, which we
don't need any more. Let's not extend that any more, and just use
pci_dev->regions[].size directly.
--
Eric Anholt
eric at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090605/6b0d2e56/attachment.sig>
More information about the Intel-gfx
mailing list