diff --git a/build/jam/Haiku64Image b/build/jam/Haiku64Image
index 9d857c6..5175e8d 100644
a
|
b
|
if $(HAIKU_ATA_STACK) = 1 {
|
21 | 21 | |
22 | 22 | SYSTEM_BIN = "[" addattr base64 basename bash beep cal cat catattr chgrp chmod |
23 | 23 | chown chroot cksum clear clockconfig cmp collectcatkeys comm compress |
24 | | copyattr cp csplit cut date dd diff diff3 dircolors dirname du |
| 24 | copyattr cp csplit cut date dd diff diff3 dircolors dirname df du |
25 | 25 | dumpcatalog echo eject env error expand expr factor false find finddir |
26 | 26 | fmt fold fortune gawk gzip gzexe getlimits groups head hostname id |
27 | 27 | <bin>install isvolume join kernel_debugger kill less lessecho lesskey link |
… |
… |
AddNewDriversToHaikuImage disk scsi : scsi_cd scsi_disk ;
|
83 | 83 | AddDriversToHaikuImage : console dprintf null |
84 | 84 | random <driver>tty zero ; |
85 | 85 | AddDriversToHaikuImage disk usb : usb_disk ; |
86 | | AddDriversToHaikuImage input : ps2_hid ; |
| 86 | AddDriversToHaikuImage input : ps2_hid usb_hid ; |
87 | 87 | # kernel |
88 | 88 | AddFilesToHaikuImage system : kernel_$(TARGET_ARCH) ; |
89 | 89 | |
diff --git a/src/add-ons/kernel/drivers/input/usb_hid/Driver.cpp b/src/add-ons/kernel/drivers/input/usb_hid/Driver.cpp
index 657b7f5..51ca81f 100644
a
|
b
|
usb_hid_device_added(usb_device device, void **cookie)
|
62 | 62 | // ensure default configuration is set |
63 | 63 | status_t result = gUSBModule->set_configuration(device, config); |
64 | 64 | if (result != B_OK) { |
65 | | TRACE_ALWAYS("set_configuration() failed 0x%08lx\n", result); |
| 65 | TRACE_ALWAYS("set_configuration() failed 0x%08" B_PRIx32 "\n", result); |
66 | 66 | return result; |
67 | 67 | } |
68 | 68 | |
… |
… |
usb_hid_device_added(usb_device device, void **cookie)
|
78 | 78 | for (size_t i = 0; i < config->interface_count; i++) { |
79 | 79 | const usb_interface_info *interface = config->interface[i].active; |
80 | 80 | uint8 interfaceClass = interface->descr->interface_class; |
81 | | TRACE("interface %lu: class: %u; subclass: %u; protocol: %u\n", |
82 | | i, interfaceClass, interface->descr->interface_subclass, |
| 81 | TRACE("interface %" B_PRIuSIZE ": class: %u; subclass: %u; protocol: " |
| 82 | "%u\n", i, interfaceClass, interface->descr->interface_subclass, |
83 | 83 | interface->descr->interface_protocol); |
84 | 84 | |
85 | 85 | // check for quirky devices first |
… |
… |
usb_hid_device_added(usb_device device, void **cookie)
|
128 | 128 | char pathBuffer[128]; |
129 | 129 | const char *basePath = handler->BasePath(); |
130 | 130 | while (true) { |
131 | | sprintf(pathBuffer, "%s%ld", basePath, index++); |
| 131 | sprintf(pathBuffer, "%s%" B_PRId32, basePath, index++); |
132 | 132 | if (gDeviceList->FindDevice(pathBuffer) == NULL) { |
133 | 133 | // this name is still free, use it |
134 | 134 | handler->SetPublishPath(strdup(pathBuffer)); |
… |
… |
usb_hid_device_added(usb_device device, void **cookie)
|
149 | 149 | if (!devicesFound) |
150 | 150 | return B_ERROR; |
151 | 151 | |
152 | | *cookie = (void *)parentCookie; |
| 152 | *cookie = (void *)(addr_t)parentCookie; |
153 | 153 | return B_OK; |
154 | 154 | } |
155 | 155 | |
… |
… |
status_t
|
158 | 158 | usb_hid_device_removed(void *cookie) |
159 | 159 | { |
160 | 160 | mutex_lock(&sDriverLock); |
161 | | int32 parentCookie = (int32)cookie; |
162 | | TRACE("device_removed(%ld)\n", parentCookie); |
| 161 | int32 parentCookie = (int32)(addr_t)cookie; |
| 162 | TRACE("device_removed(%" B_PRId32 ")\n", parentCookie); |
163 | 163 | |
164 | 164 | for (int32 i = 0; i < gDeviceList->CountDevices(); i++) { |
165 | 165 | ProtocolHandler *handler = (ProtocolHandler *)gDeviceList->DeviceAt(i); |