summaryrefslogtreecommitdiff
path: root/src/radeon_probe.h
diff options
context:
space:
mode:
authorOwain Ainsworth <zerooa@googlemail.com>2010-04-19 14:37:33 +0100
committerDave Airlie <airlied@redhat.com>2010-04-21 10:36:04 +1000
commit2a6b409496f26da0436972b5feae6ea035dde08d (patch)
tree41230d7194e7041eb86be4a280b40d4b20f47aa0 /src/radeon_probe.h
parent761f0de5556e46f166280476185977f720efe586 (diff)
Reference count shared driver mappings.
With MMIO it wasn't *such* a bit deal if we leaked the smallish mapping. with FB it could be a larger deal. So instead of worrying about this, reference count the mappings in the entity structure and unmap them when no one cares anymore. Prompted by a discussion with airlied Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_probe.h')
-rw-r--r--src/radeon_probe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_probe.h b/src/radeon_probe.h
index 5b16f271..fb905959 100644
--- a/src/radeon_probe.h
+++ b/src/radeon_probe.h
@@ -644,7 +644,9 @@ typedef struct
RADEONSaveRec SavedReg; /* Original (text) mode */
void *MMIO; /* Map of MMIO region */
+ int *MMIO_cnt; /* Map of FB region refcount */
void *FB; /* Map of FB region */
+ int *FB_cnt; /* Map of FB region refcount */
int fd; /* for sharing across zaphod heads */
} RADEONEntRec, *RADEONEntPtr;