summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_microcode.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-05-11 00:06:40 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-05-11 00:06:40 +0000
commitc943cdb9e19d7789ca8cf02b4c9b0921bc9cc61b (patch)
tree4a64b010791e634de8f5cb98e429c186cfaf8075 /sys/dev/pci/drm/radeon_microcode.h
parentdcc04216edc250771b008004668abcdb51e19363 (diff)
Rework the pcigart stuff somewhat.
firstly: move the pcigart initialisation in radeon_cp.c into its own function to avoid the horrible nesting and make it more readable. secondly: make the pcigart code more intelligent depending on whether the gart table is in pci memory, or system memory. In the former case we use the bus_space functions and thus don't need BUS_SPACE_LINEAR, while i'm here, stop using the drm wrapper functions for mapping (which require a drm_local_map structure, which will die eventually) and just use bus_space_map itself. tested on pcie (in framebuffer memory) here on my x800. tested on an i386 agp card forced to pci mode by sthen. Doesn't make IGP chips worse, doesn't make them better either (tested on a rs690). basic idea from a commit "upstream" a while ago. All the code from yours truly.
Diffstat (limited to 'sys/dev/pci/drm/radeon_microcode.h')
0 files changed, 0 insertions, 0 deletions