Switched to "DEBUG" from "TRACE_MOUSE". That way it's easier to enable syslogging in the driver
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -65,19 +65,20 @@
|
|||||||
|
|
||||||
#define DEVICE_NAME "input/mouse/ps2/0"
|
#define DEVICE_NAME "input/mouse/ps2/0"
|
||||||
|
|
||||||
//#define TRACE_PS2MOUSE
|
#if DEBUG
|
||||||
#ifdef TRACE_PS2MOUSE
|
|
||||||
#define TRACE(x) dprintf x
|
#define TRACE(x) dprintf x
|
||||||
#else
|
#else
|
||||||
#define TRACE(x)
|
#define TRACE(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef COMPILE_FOR_R5
|
#ifdef COMPILE_FOR_R5
|
||||||
#include "cbuf_adapter.h"
|
#include "cbuf_adapter.h"
|
||||||
#else
|
#else
|
||||||
#include <cbuf.h>
|
#include <cbuf.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
||||||
|
|
||||||
static isa_module_info *sIsa = NULL;
|
static isa_module_info *sIsa = NULL;
|
||||||
@@ -431,10 +432,8 @@ mouse_open(const char *name, uint32 flags, void **cookie)
|
|||||||
*cookie = NULL;
|
*cookie = NULL;
|
||||||
|
|
||||||
commandByte = get_command_byte();
|
commandByte = get_command_byte();
|
||||||
TRACE(("command byte: 0x%x\n", commandByte));
|
|
||||||
commandByte |= PS2_BITS_AUX_INTERRUPT;
|
commandByte |= PS2_BITS_AUX_INTERRUPT;
|
||||||
commandByte &= ~PS2_BITS_MOUSE_DISABLED;
|
commandByte &= ~PS2_BITS_MOUSE_DISABLED;
|
||||||
TRACE(("command byte: 0x%x\n", commandByte));
|
|
||||||
set_command_byte(commandByte);
|
set_command_byte(commandByte);
|
||||||
|
|
||||||
status = ps2_enable_mouse(true);
|
status = ps2_enable_mouse(true);
|
||||||
@@ -526,6 +525,7 @@ mouse_ioctl(void *cookie, uint32 op, void *buf, size_t len)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* function structure used for file-op registration
|
* function structure used for file-op registration
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user