platform/upstream/libdrm.git
19 years agoMove radeon i2c include to top of file
Jon Smirl [Sat, 6 Nov 2004 16:55:41 +0000 (16:55 +0000)]
Move radeon i2c include to top of file

19 years agoExport missing r128 ioctl symbol
Jon Smirl [Sat, 6 Nov 2004 16:51:36 +0000 (16:51 +0000)]
Export missing r128 ioctl symbol

19 years agoFix Linux build. Why won't this complile? extern int const foo; static
Jon Smirl [Sat, 6 Nov 2004 16:41:24 +0000 (16:41 +0000)]
Fix Linux build. Why won't this complile? extern int const foo; static
    struct drm_driver driver = { .var = foo }; error says foo is not
    constant

19 years agoHook the debug output up to a sysctl, so you can choose to enable at
Eric Anholt [Sat, 6 Nov 2004 11:50:08 +0000 (11:50 +0000)]
Hook the debug output up to a sysctl, so you can choose to enable at
    runtime.

19 years agoAdd file missed in last commit: Commit first pieces of port to OpenBSD,
Eric Anholt [Sat, 6 Nov 2004 11:19:38 +0000 (11:19 +0000)]
Add file missed in last commit: Commit first pieces of port to OpenBSD,
    done by Martin Lexa (martin at martinlexa dot cz). Now that we've got
    porting for all three major BSDs (and the fourth being very similar to
    FreeBSD), move the mostly-duplication drm_os_* files into drmP.h.
    Remove some cruft from linux heritage and from pieces of the DRM that
    have since been removed.
Note that things are still not quite working for even FreeBSD, but these
    are first steps at cleanup, and just a WIP checkpoint.

19 years agoCommit first pieces of port to OpenBSD, done by Martin Lexa (martin at
Eric Anholt [Sat, 6 Nov 2004 11:16:26 +0000 (11:16 +0000)]
Commit first pieces of port to OpenBSD, done by Martin Lexa (martin at
    martinlexa dot cz). Now that we've got porting for all three major BSDs
    (and the fourth being very similar to FreeBSD), move the
    mostly-duplication drm_os_* files into drmP.h. Remove some cruft from
    linux heritage and from pieces of the DRM that have since been removed.
Note that things are still not quite working for even FreeBSD, but these
    are first steps at cleanup, and just a WIP checkpoint.

19 years agoRemove the vestiges of the memory-debug code.
Eric Anholt [Sat, 6 Nov 2004 02:00:04 +0000 (02:00 +0000)]
Remove the vestiges of the memory-debug code.

19 years agoCommit WIP of BSD conversion to core model. Compiles for r128, radeon, but
Eric Anholt [Sat, 6 Nov 2004 01:41:47 +0000 (01:41 +0000)]
Commit WIP of BSD conversion to core model. Compiles for r128, radeon, but
    doesn't run yet. Moves the ioctl definitions for these two drivers back
    to the shared code -- they aren't OS-specific.

19 years agoMove ati_pcigart shared routines into drm-core module
Jon Smirl [Fri, 5 Nov 2004 17:29:14 +0000 (17:29 +0000)]
Move ati_pcigart shared routines into drm-core module

19 years agoFixed bug in via_dma.c. The code didn't check that the lock was held by the
Thomas Hellstrom [Wed, 3 Nov 2004 13:37:37 +0000 (13:37 +0000)]
Fixed bug in via_dma.c. The code didn't check that the lock was held by the
    caller. Just that it was held.

19 years agoReworked the jump-code in via_dma.c. The command regulator now seems to
Thomas Hellstrom [Mon, 1 Nov 2004 20:48:49 +0000 (20:48 +0000)]
Reworked the jump-code in via_dma.c. The command regulator now seems to
    pause correctly after a jump. Removed the debug message from within the
    interrupt handler of via_irq.c

19 years agocorrect historic mis-attribution of copyright
Keith Whitwell [Mon, 1 Nov 2004 10:52:18 +0000 (10:52 +0000)]
correct historic mis-attribution of copyright

19 years agoAllow drivers to override reclaim_buffers in an OS-independent way by
Felix Kuehling [Sun, 31 Oct 2004 15:16:44 +0000 (15:16 +0000)]
Allow drivers to override reclaim_buffers in an OS-independent way by
    passing drm_device_t* as first parameter, like in the BSD version.

19 years agoSome stabilizing work to the DMA ring-buffer code. Temporarily replaced the
Thomas Hellstrom [Sat, 30 Oct 2004 13:01:48 +0000 (13:01 +0000)]
Some stabilizing work to the DMA ring-buffer code. Temporarily replaced the
    rewind jump with a reinitialization. This makes the code stable on
    CLE266 and KM400.

19 years agoSwitch SPIN_LOCK_UNLOCKED to spin_lock_init()
Jon Smirl [Fri, 29 Oct 2004 17:09:54 +0000 (17:09 +0000)]
Switch SPIN_LOCK_UNLOCKED to spin_lock_init()

19 years agoAdd include of moduleparam.h
Jon Smirl [Fri, 29 Oct 2004 14:38:07 +0000 (14:38 +0000)]
Add include of moduleparam.h

19 years agoBreak poll() to make it match the Xserver's broken expectations.
Jon Smirl [Thu, 28 Oct 2004 15:52:31 +0000 (15:52 +0000)]
Break poll() to make it match the Xserver's broken expectations.

19 years agofix for 2.4 build
Dave Airlie [Thu, 28 Oct 2004 09:50:39 +0000 (09:50 +0000)]
fix for 2.4 build

19 years agoRound 2 of getting rid of inter_module_get()
Jon Smirl [Sat, 23 Oct 2004 18:12:34 +0000 (18:12 +0000)]
Round 2 of getting rid of inter_module_get()

19 years agoRevert symbol_get() changes from drm_drv
Jon Smirl [Sat, 23 Oct 2004 14:43:06 +0000 (14:43 +0000)]
Revert symbol_get() changes from drm_drv

19 years agofix inter module put/get
Dave Airlie [Sat, 23 Oct 2004 14:00:53 +0000 (14:00 +0000)]
fix inter module put/get

19 years agoactually 2.6.10 introduced pfn range so it should work now..
Dave Airlie [Sat, 23 Oct 2004 07:02:29 +0000 (07:02 +0000)]
actually 2.6.10 introduced pfn range so it should work now..

19 years agofix pfn vs page for older kernels (2.6.9-rc kernels many not work..)
Dave Airlie [Sat, 23 Oct 2004 06:59:15 +0000 (06:59 +0000)]
fix pfn vs page for older kernels (2.6.9-rc kernels many not work..)

19 years agoApply radeon r300 microcode patch to non-core
Dave Airlie [Sat, 23 Oct 2004 06:25:56 +0000 (06:25 +0000)]
Apply radeon r300 microcode patch to non-core

19 years agoPrepare to eliminate inter_module_get("agp")
Jon Smirl [Sat, 23 Oct 2004 04:21:27 +0000 (04:21 +0000)]
Prepare to eliminate inter_module_get("agp")

19 years agoBring in patch from kernel for remap_pfn_range
Jon Smirl [Fri, 22 Oct 2004 16:03:21 +0000 (16:03 +0000)]
Bring in patch from kernel for remap_pfn_range

19 years agoFix up the radeon i2c error handing
Jon Smirl [Thu, 21 Oct 2004 16:58:28 +0000 (16:58 +0000)]
Fix up the radeon i2c error handing

19 years agoDon't release an i2c channel that has not initialized correctly
Jon Smirl [Wed, 20 Oct 2004 16:23:42 +0000 (16:23 +0000)]
Don't release an i2c channel that has not initialized correctly

19 years agoSwitch linux-core from using dev->pdev->driver->name to
Jon Smirl [Wed, 20 Oct 2004 05:11:49 +0000 (05:11 +0000)]
Switch linux-core from using dev->pdev->driver->name to
    dev->driver->pci_driver.name. This avoids the stealth mode case where
    pdev is pointing to the wrong driver or no driver.

19 years agoFix dd vs di version typo in drm_setversion
Jon Smirl [Wed, 20 Oct 2004 04:41:38 +0000 (04:41 +0000)]
Fix dd vs di version typo in drm_setversion

19 years agoAdd a protective check against a possible buffer overflow
Jon Smirl [Tue, 19 Oct 2004 18:18:02 +0000 (18:18 +0000)]
Add a protective check against a possible buffer overflow

19 years agoFix missing I2C busses to be non-fatal error.
Jon Smirl [Tue, 19 Oct 2004 16:30:02 +0000 (16:30 +0000)]
Fix missing I2C busses to be non-fatal error.

19 years agodrm-core, Clean up bug error path on stealth mode exit
Jon Smirl [Tue, 19 Oct 2004 02:50:14 +0000 (02:50 +0000)]
drm-core, Clean up bug error path on stealth mode exit

19 years agoUpdate Doxygen configuration & comments.
Jose Fonseca [Mon, 18 Oct 2004 14:16:41 +0000 (14:16 +0000)]
Update Doxygen configuration & comments.

19 years agoFixed off by one errors in clipping.
Ville Syrjala [Sat, 16 Oct 2004 11:21:56 +0000 (11:21 +0000)]
Fixed off by one errors in clipping.

19 years agoFixed bad formatting.
Ville Syrjala [Sat, 16 Oct 2004 10:54:58 +0000 (10:54 +0000)]
Fixed bad formatting.

19 years agoRemove drm_init.c
Jon Smirl [Fri, 15 Oct 2004 20:37:01 +0000 (20:37 +0000)]
Remove drm_init.c

19 years agoMove drm_cpu_valid out of drm_init. drm_init is empty now.
Jon Smirl [Fri, 15 Oct 2004 20:36:15 +0000 (20:36 +0000)]
Move drm_cpu_valid out of drm_init. drm_init is empty now.

19 years agoSwitch linux-core over to 2.6 parameter model to enable debug use
Jon Smirl [Fri, 15 Oct 2004 02:59:35 +0000 (02:59 +0000)]
Switch linux-core over to 2.6 parameter model to enable debug use
    drm_debug=1

19 years agoAdd a poll function that alternates between zero and normal poll return to
Jon Smirl [Wed, 13 Oct 2004 16:40:53 +0000 (16:40 +0000)]
Add a poll function that alternates between zero and normal poll return to
    bring DRM into conformance with normal poll().

19 years agoVia updates. Fixed unlikely but possible uint32_t overflow in ring-buffer
Thomas Hellstrom [Tue, 12 Oct 2004 18:46:26 +0000 (18:46 +0000)]
Via updates. Fixed unlikely but possible uint32_t overflow in ring-buffer
    code. bumped patchlevel.

19 years agoBreakout heads into their own data structures.
Jon Smirl [Tue, 12 Oct 2004 03:59:17 +0000 (03:59 +0000)]
Breakout heads into their own data structures.

19 years agoRename fn_tbl to driver. Core driver now uses pci_driver name which
Jon Smirl [Sun, 10 Oct 2004 22:54:55 +0000 (22:54 +0000)]
Rename fn_tbl to driver. Core driver now uses pci_driver name which
    reflects the personality name.

19 years agoVladimir requested support so we can at least load r300 microcode for
Dave Airlie [Sun, 10 Oct 2004 05:52:19 +0000 (05:52 +0000)]
Vladimir requested support so we can at least load r300 microcode for
    helping
2D operations.
Ups radeon to version 1.12.0, Vladimir, you might want to add any extra
    pciids...
Approved-by: Dave Airlie <airlied@linux.ie>
19 years agoForgot to add the new Makefile
Jon Smirl [Sun, 10 Oct 2004 02:49:06 +0000 (02:49 +0000)]
Forgot to add the new Makefile

19 years agoMake the test programs build
Jon Smirl [Sun, 10 Oct 2004 00:09:31 +0000 (00:09 +0000)]
Make the test programs build

19 years agocleanup VIA driver to look a bit like others before kernel merge
Dave Airlie [Sat, 9 Oct 2004 12:42:52 +0000 (12:42 +0000)]
cleanup VIA driver to look a bit like others before kernel merge

19 years agofix up whitespacing in Kconfig
Dave Airlie [Sat, 9 Oct 2004 11:16:20 +0000 (11:16 +0000)]
fix up whitespacing in Kconfig

19 years agoLindent the via stuff so I can include it in kernel
Dave Airlie [Sat, 9 Oct 2004 11:12:24 +0000 (11:12 +0000)]
Lindent the via stuff so I can include it in kernel

19 years agoremove unused dma remnants that were gamma only - these could cause an oops
Dave Airlie [Sat, 9 Oct 2004 10:58:19 +0000 (10:58 +0000)]
remove unused dma remnants that were gamma only - these could cause an oops
    on via

19 years agoChanged unsigned to uint32_t in some ioctl parameters. Introduced first
Thomas Hellstrom [Fri, 8 Oct 2004 21:11:02 +0000 (21:11 +0000)]
Changed unsigned to uint32_t in some ioctl parameters. Introduced first
    rudimentary command verifier for dma buffers. Changed the decoder futex
    ioctl parameters. Bumped the via major version number.

19 years agoFix refcount bug in stealth mode
Jon Smirl [Fri, 8 Oct 2004 14:31:25 +0000 (14:31 +0000)]
Fix refcount bug in stealth mode

19 years agoFix drm_exit to allow for DRM(global) being deleted when framebuffer is
Jon Smirl [Thu, 7 Oct 2004 00:40:16 +0000 (00:40 +0000)]
Fix drm_exit to allow for DRM(global) being deleted when framebuffer is
    loaded.

19 years agoRevert back to drm_order() instead of using kernel get_order(). The
Jon Smirl [Wed, 6 Oct 2004 16:27:55 +0000 (16:27 +0000)]
Revert back to drm_order() instead of using kernel get_order(). The
    functions are not identical.

19 years agoPatch for Kconfig for making i830/i915 not build together
Dave Airlie [Tue, 5 Oct 2004 12:12:01 +0000 (12:12 +0000)]
Patch for Kconfig for making i830/i915 not build together

19 years agoenable the device in the right order, remove __devinit from drm_int
Jon Smirl [Tue, 5 Oct 2004 02:58:14 +0000 (02:58 +0000)]
enable the device in the right order, remove __devinit from drm_int

19 years agojanitor-list_for_each-drivers-char-drm-radeon_memc.patch from mm kernel
Jon Smirl [Sat, 2 Oct 2004 19:11:30 +0000 (19:11 +0000)]
janitor-list_for_each-drivers-char-drm-radeon_memc.patch from mm kernel

19 years agoMake the debug memory functions compile for the core model.
Jon Smirl [Thu, 30 Sep 2004 23:47:45 +0000 (23:47 +0000)]
Make the debug memory functions compile for the core model.

19 years agoRemove DRM() macros from core ffb driver. DaveA says he'll make it compile
Jon Smirl [Thu, 30 Sep 2004 21:27:59 +0000 (21:27 +0000)]
Remove DRM() macros from core ffb driver. DaveA says he'll make it compile
    someday.

19 years agoLindent of core build. Drivers checked for no binary diffs. A few files
Jon Smirl [Thu, 30 Sep 2004 21:12:10 +0000 (21:12 +0000)]
Lindent of core build. Drivers checked for no binary diffs. A few files
    weren't Lindent's because their comments didn't convert very well. A
    bunch of other minor clean up with no code implact included.

19 years agosavage.h not used in core builds
Jon Smirl [Thu, 30 Sep 2004 21:06:53 +0000 (21:06 +0000)]
savage.h not used in core builds

19 years agocore ffb.h is not used anymore
Jon Smirl [Thu, 30 Sep 2004 20:46:59 +0000 (20:46 +0000)]
core ffb.h is not used anymore

19 years agoRemove unused drm_module.h
Jon Smirl [Thu, 30 Sep 2004 20:25:13 +0000 (20:25 +0000)]
Remove unused drm_module.h

19 years agoMove things around to reduce public symbols and even out files. Switch to
Jon Smirl [Thu, 30 Sep 2004 19:26:35 +0000 (19:26 +0000)]
Move things around to reduce public symbols and even out files. Switch to
    get_order from drm_order.

19 years agoMake fops per driver instead of global, remove default flush, poll, read
Jon Smirl [Thu, 30 Sep 2004 18:13:33 +0000 (18:13 +0000)]
Make fops per driver instead of global, remove default flush, poll, read
    functions

19 years agoGetting the AGP module is a global resource. Make sure a dual PCI/AGP
Jon Smirl [Tue, 28 Sep 2004 22:25:06 +0000 (22:25 +0000)]
Getting the AGP module is a global resource. Make sure a dual PCI/AGP
    driver doesn't release it on unload since an AGP driver may also be
    loaded.

19 years agoFix the shared directory I accidentally stomped on
Jon Smirl [Mon, 27 Sep 2004 20:14:31 +0000 (20:14 +0000)]
Fix the shared directory I accidentally stomped on

19 years agocore needs three new files
Jon Smirl [Mon, 27 Sep 2004 19:53:51 +0000 (19:53 +0000)]
core needs three new files

19 years agoFirst check in for DRM that splits core from personality modules
Jon Smirl [Mon, 27 Sep 2004 19:51:38 +0000 (19:51 +0000)]
First check in for DRM that splits core from personality modules

19 years agoFlip the 2.4 check so that it looks for 2.6 instead. This will allow builds
Jon Smirl [Mon, 27 Sep 2004 15:42:48 +0000 (15:42 +0000)]
Flip the 2.4 check so that it looks for 2.6 instead. This will allow builds
    where we can't determine the version through.

19 years agoREADME with hints on how to make a 2.6 specific version of a 2.4/2.6 shared
Jon Smirl [Fri, 24 Sep 2004 04:31:25 +0000 (04:31 +0000)]
README with hints on how to make a 2.6 specific version of a 2.4/2.6 shared
    file

19 years agoMakefile reminder to build in 2.6 when on 2.6
Jon Smirl [Fri, 24 Sep 2004 04:21:21 +0000 (04:21 +0000)]
Makefile reminder to build in 2.6 when on 2.6

19 years agoCreate new linux-2.6 build. Move all gpl files into the 2.6 build. If you
Jon Smirl [Fri, 24 Sep 2004 03:12:17 +0000 (03:12 +0000)]
Create new linux-2.6 build. Move all gpl files into the 2.6 build. If you
    edit files for 2.6 be sure and break the link to the 2.4 directory and
    copy the cvs history.

19 years agoRemove 2.6 code that allow DRM major device number to be shared. We can add
Jon Smirl [Thu, 23 Sep 2004 17:22:27 +0000 (17:22 +0000)]
Remove 2.6 code that allow DRM major device number to be shared. We can add
    it back later if needed. Checked DRM on both 2.4 and
2.6 to ensure that it builds and runs.

19 years agoAdd new sysfs support files
Jon Smirl [Thu, 23 Sep 2004 05:40:05 +0000 (05:40 +0000)]
Add new sysfs support files

19 years ago1) switches from class_sysfs to drm sysfs implementation to allow
Jon Smirl [Thu, 23 Sep 2004 05:39:15 +0000 (05:39 +0000)]
1) switches from class_sysfs to drm sysfs implementation to allow
    customization
2) compiles again on 2.4, but doesn't work

19 years agoCreate permanent maps of framebuffer, aperture and MMIO registers. Added
Felix Kuehling [Wed, 22 Sep 2004 22:51:18 +0000 (22:51 +0000)]
Create permanent maps of framebuffer, aperture and MMIO registers. Added
    chipset-type information in driver data field of Savage PCI-IDs. Added
    missing PCI-ID 0x8d03 (ProSavageDDR on Pentium boards). Don't require
    AGP.

19 years agoRemove hotplug reset support from DRM driver. This will be handled by the
Jon Smirl [Wed, 22 Sep 2004 19:13:02 +0000 (19:13 +0000)]
Remove hotplug reset support from DRM driver. This will be handled by the
    VGA driver when it gets written.

19 years agoAdd *.flags to cvsignore.
Eric Anholt [Wed, 22 Sep 2004 16:45:44 +0000 (16:45 +0000)]
Add *.flags to cvsignore.

19 years agoMake DRM permanent maps match broken X behavior. X is mapping regions that
Jon Smirl [Tue, 21 Sep 2004 05:13:21 +0000 (05:13 +0000)]
Make DRM permanent maps match broken X behavior. X is mapping regions that
    are both smaller and larger than what the hardware supports. If DRM
    tries to fix these requests X will fail.

19 years agoRemove size restriction on permanent addmap
Jon Smirl [Mon, 20 Sep 2004 19:23:27 +0000 (19:23 +0000)]
Remove size restriction on permanent addmap

19 years agoFelix's fix for map request smaller than permanent map size
Jon Smirl [Mon, 20 Sep 2004 17:09:26 +0000 (17:09 +0000)]
Felix's fix for map request smaller than permanent map size

19 years agoremove HAVE_COUNTERS
Dave Airlie [Mon, 20 Sep 2004 11:29:16 +0000 (11:29 +0000)]
remove HAVE_COUNTERS

19 years agoanother fix after the macro stuff
Dave Airlie [Mon, 20 Sep 2004 10:45:53 +0000 (10:45 +0000)]
another fix after the macro stuff

19 years agoFix from: Nishanth Aravamudan replace direct assignment with
Jon Smirl [Sat, 18 Sep 2004 16:44:43 +0000 (16:44 +0000)]
Fix from: Nishanth Aravamudan replace direct assignment with
    __set_current_state()

19 years agoMakefile and missing file to build libxf86drm.a
Jon Smirl [Fri, 17 Sep 2004 20:01:59 +0000 (20:01 +0000)]
Makefile and missing file to build libxf86drm.a

19 years agoAdd the two GPL licensed I2C support files.
Jon Smirl [Fri, 17 Sep 2004 04:25:19 +0000 (04:25 +0000)]
Add the two GPL licensed I2C support files.

19 years agoAdd linux sysfs i2c support to radeon driver. This patch adds GPL licensed
Jon Smirl [Fri, 17 Sep 2004 04:02:28 +0000 (04:02 +0000)]
Add linux sysfs i2c support to radeon driver. This patch adds GPL licensed
    files to the linux build but not to the BSD directories.

19 years agoLet's try adding the dyn-minor patch again. This patch will reuse minor
Jon Smirl [Thu, 16 Sep 2004 18:42:03 +0000 (18:42 +0000)]
Let's try adding the dyn-minor patch again. This patch will reuse minor
    numbers if a card is hotplugged in/out instead of just having them
    increase.

19 years agoFix drm_scatter to properly report it's availability
Jon Smirl [Thu, 16 Sep 2004 14:32:17 +0000 (14:32 +0000)]
Fix drm_scatter to properly report it's availability

19 years agoBack dyn-minor patch out for now. fops handling is broken on some cards
Jon Smirl [Wed, 15 Sep 2004 17:44:30 +0000 (17:44 +0000)]
Back dyn-minor patch out for now. fops handling is broken on some cards

19 years agoDon't use module_param if it isn't defined in older kernels.
Jon Smirl [Wed, 15 Sep 2004 16:06:50 +0000 (16:06 +0000)]
Don't use module_param if it isn't defined in older kernels.

19 years agoDynamic device minor support. Minor device numbers will be reused if the
Jon Smirl [Wed, 15 Sep 2004 00:20:21 +0000 (00:20 +0000)]
Dynamic device minor support. Minor device numbers will be reused if the
    device is hotplugged in/out of the system

19 years agoAdd chip family names to the radeon driver
Jon Smirl [Tue, 14 Sep 2004 03:59:25 +0000 (03:59 +0000)]
Add chip family names to the radeon driver

19 years agoFix error path in probe() to release resources if there is an error.
Jon Smirl [Sun, 12 Sep 2004 19:24:08 +0000 (19:24 +0000)]
Fix error path in probe() to release resources if there is an error.

19 years agoMake the comment match the code
Jon Smirl [Sun, 12 Sep 2004 03:30:30 +0000 (03:30 +0000)]
Make the comment match the code

19 years agoFix DRM to compile cleanly with recent kernel changes in PCI IO and
Jon Smirl [Sun, 12 Sep 2004 03:23:50 +0000 (03:23 +0000)]
Fix DRM to compile cleanly with recent kernel changes in PCI IO and
    DRM_COPY_FROM_USER. PCI IO changes in 2.6.9-rc1 bk currently.

19 years agoMore general patch to mark resources in use by all DRM drivers. Makes the
Jon Smirl [Fri, 10 Sep 2004 16:44:28 +0000 (16:44 +0000)]
More general patch to mark resources in use by all DRM drivers. Makes the
    code Linux specific.

19 years agoUpdate doxygen configuration file. Minor documentation updates/fixes.
Jose Fonseca [Wed, 8 Sep 2004 20:57:39 +0000 (20:57 +0000)]
Update doxygen configuration file. Minor documentation updates/fixes.

19 years agoAdjust permanent mapping code to account for more than one framebuffer map
Jon Smirl [Wed, 8 Sep 2004 01:49:06 +0000 (01:49 +0000)]
Adjust permanent mapping code to account for more than one framebuffer map