Added the user cloneable area to the Voodoo 3 driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13181 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,6 +28,11 @@
|
|||||||
#include <video_overlay.h>
|
#include <video_overlay.h>
|
||||||
#include <DriverInterface.h>
|
#include <DriverInterface.h>
|
||||||
|
|
||||||
|
#ifndef __HAIKU__
|
||||||
|
# undef B_USER_CLONEABLE_AREA
|
||||||
|
# define B_USER_CLONEABLE_AREA 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 1
|
||||||
#if DEBUG > 0
|
#if DEBUG > 0
|
||||||
#define ddprintf(a) dprintf a
|
#define ddprintf(a) dprintf a
|
||||||
@@ -349,7 +354,7 @@ static status_t map_device(device_info *di)
|
|||||||
(void*)iobase,
|
(void*)iobase,
|
||||||
iobase_size,
|
iobase_size,
|
||||||
B_ANY_KERNEL_ADDRESS,
|
B_ANY_KERNEL_ADDRESS,
|
||||||
B_READ_AREA | B_WRITE_AREA,
|
B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA,
|
||||||
(void **)&(si->io));
|
(void **)&(si->io));
|
||||||
// return the error if there was some problem
|
// return the error if there was some problem
|
||||||
|
|
||||||
@@ -375,7 +380,7 @@ static status_t map_device(device_info *di)
|
|||||||
(void*)iobase,
|
(void*)iobase,
|
||||||
iobase_size,
|
iobase_size,
|
||||||
B_ANY_KERNEL_ADDRESS,
|
B_ANY_KERNEL_ADDRESS,
|
||||||
B_READ_AREA | B_WRITE_AREA,
|
B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA,
|
||||||
(void **)&si->io);
|
(void **)&si->io);
|
||||||
// return the error if there was some problem
|
// return the error if there was some problem
|
||||||
|
|
||||||
@@ -409,7 +414,7 @@ static status_t map_device(device_info *di)
|
|||||||
#else
|
#else
|
||||||
B_ANY_KERNEL_BLOCK_ADDRESS,
|
B_ANY_KERNEL_BLOCK_ADDRESS,
|
||||||
#endif
|
#endif
|
||||||
B_READ_AREA + B_WRITE_AREA,
|
B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA,
|
||||||
&(si->framebuffer));
|
&(si->framebuffer));
|
||||||
|
|
||||||
#if defined(__INTEL__)
|
#if defined(__INTEL__)
|
||||||
@@ -429,7 +434,7 @@ static status_t map_device(device_info *di)
|
|||||||
#else
|
#else
|
||||||
B_ANY_KERNEL_ADDRESS,
|
B_ANY_KERNEL_ADDRESS,
|
||||||
#endif
|
#endif
|
||||||
B_READ_AREA + B_WRITE_AREA,
|
B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA,
|
||||||
&(si->framebuffer));
|
&(si->framebuffer));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user