summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid0.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-05-11 00:06:39 +0000
committeroga <oga@openbsd.org>2009-05-11 00:06:39 +0000
commitfee604de7154de59a2d850f21c89986f20c42f7a (patch)
treed34456852a58dd8de29df96fa6fdf037f4a90762 /sys/dev/softraid_raid0.c
parentcouple of fixes for fetch: (diff)
downloadwireguard-openbsd-fee604de7154de59a2d850f21c89986f20c42f7a.tar.xz
wireguard-openbsd-fee604de7154de59a2d850f21c89986f20c42f7a.zip
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/softraid_raid0.c')
0 files changed, 0 insertions, 0 deletions