Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5b735572
Commit
5b735572
authored
Nov 09, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Use +hid debug channel.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
10359e17
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
bus_iohid.c
dlls/winebus.sys/bus_iohid.c
+1
-1
bus_sdl.c
dlls/winebus.sys/bus_sdl.c
+1
-1
bus_udev.c
dlls/winebus.sys/bus_udev.c
+1
-1
hid.c
dlls/winebus.sys/hid.c
+1
-1
main.c
dlls/winebus.sys/main.c
+6
-6
No files found.
dlls/winebus.sys/bus_iohid.c
View file @
5b735572
...
...
@@ -97,7 +97,7 @@
#include "unix_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
plugplay
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
#ifdef HAVE_IOHIDMANAGERCREATE
static
pthread_mutex_t
iohid_cs
=
PTHREAD_MUTEX_INITIALIZER
;
...
...
dlls/winebus.sys/bus_sdl.c
View file @
5b735572
...
...
@@ -55,7 +55,7 @@
#include "unix_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
plugplay
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
#ifdef SONAME_LIBSDL2
...
...
dlls/winebus.sys/bus_udev.c
View file @
5b735572
...
...
@@ -92,7 +92,7 @@
#include "unix_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
plugplay
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
#ifdef HAVE_UDEV
...
...
dlls/winebus.sys/hid.c
View file @
5b735572
...
...
@@ -39,7 +39,7 @@
#include "unix_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
plugplay
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
static
BOOL
hid_report_descriptor_append
(
struct
hid_report_descriptor
*
desc
,
const
BYTE
*
buffer
,
SIZE_T
size
)
{
...
...
dlls/winebus.sys/main.c
View file @
5b735572
...
...
@@ -40,7 +40,7 @@
#include "unixlib.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
plugplay
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
static
DRIVER_OBJECT
*
driver_obj
;
...
...
@@ -411,7 +411,7 @@ static BOOL deliver_next_report(struct device_extension *ext, IRP *irp)
irp
->
IoStatus
.
Information
=
report
->
length
;
irp
->
IoStatus
.
Status
=
STATUS_SUCCESS
;
if
(
TRACE_ON
(
plugplay
))
if
(
TRACE_ON
(
hid
))
{
TRACE
(
"read input report length %u:
\n
"
,
report
->
length
);
for
(
i
=
0
;
i
<
report
->
length
;)
...
...
@@ -1038,7 +1038,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
memcpy
(
packet
->
reportBuffer
,
ext
->
last_reports
[
packet
->
reportId
],
packet
->
reportBufferLen
);
irp
->
IoStatus
.
Information
=
packet
->
reportBufferLen
;
irp
->
IoStatus
.
Status
=
STATUS_SUCCESS
;
if
(
TRACE_ON
(
plugplay
))
if
(
TRACE_ON
(
hid
))
{
TRACE
(
"read input report id %u length %u:
\n
"
,
packet
->
reportId
,
packet
->
reportBufferLen
);
for
(
i
=
0
;
i
<
packet
->
reportBufferLen
;)
...
...
@@ -1068,7 +1068,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
case
IOCTL_HID_WRITE_REPORT
:
{
HID_XFER_PACKET
*
packet
=
(
HID_XFER_PACKET
*
)
irp
->
UserBuffer
;
if
(
TRACE_ON
(
plugplay
))
if
(
TRACE_ON
(
hid
))
{
TRACE
(
"write output report id %u length %u:
\n
"
,
packet
->
reportId
,
packet
->
reportBufferLen
);
for
(
i
=
0
;
i
<
packet
->
reportBufferLen
;)
...
...
@@ -1087,7 +1087,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
{
HID_XFER_PACKET
*
packet
=
(
HID_XFER_PACKET
*
)
irp
->
UserBuffer
;
unix_device_get_feature_report
(
device
,
packet
,
&
irp
->
IoStatus
);
if
(
!
irp
->
IoStatus
.
Status
&&
TRACE_ON
(
plugplay
))
if
(
!
irp
->
IoStatus
.
Status
&&
TRACE_ON
(
hid
))
{
TRACE
(
"read feature report id %u length %u:
\n
"
,
packet
->
reportId
,
packet
->
reportBufferLen
);
for
(
i
=
0
;
i
<
packet
->
reportBufferLen
;)
...
...
@@ -1104,7 +1104,7 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
case
IOCTL_HID_SET_FEATURE
:
{
HID_XFER_PACKET
*
packet
=
(
HID_XFER_PACKET
*
)
irp
->
UserBuffer
;
if
(
TRACE_ON
(
plugplay
))
if
(
TRACE_ON
(
hid
))
{
TRACE
(
"write feature report id %u length %u:
\n
"
,
packet
->
reportId
,
packet
->
reportBufferLen
);
for
(
i
=
0
;
i
<
packet
->
reportBufferLen
;)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment