Changes in / [eca2435:23efd30] in mainline
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
reca2435 r23efd30 212 212 i8042_wire(i8042_instance, kbrd); 213 213 trap_virtual_enable_irqs(1 << IRQ_KBD); 214 trap_virtual_enable_irqs(1 << IRQ_MOUSE);215 214 } 216 215 } … … 220 219 * self-sufficient. 221 220 */ 222 sysinfo_set_item_val("i8042", NULL, true); 223 sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD); 224 sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE); 225 sysinfo_set_item_val("i8042.address.physical", NULL, 221 sysinfo_set_item_val("kbd", NULL, true); 222 sysinfo_set_item_val("kbd.inr", NULL, IRQ_KBD); 223 sysinfo_set_item_val("kbd.address.physical", NULL, 226 224 (uintptr_t) I8042_BASE); 227 sysinfo_set_item_val(" i8042.address.kernel", NULL,225 sysinfo_set_item_val("kbd.address.kernel", NULL, 228 226 (uintptr_t) I8042_BASE); 229 227 #endif -
kernel/arch/ia32/src/ia32.c
reca2435 r23efd30 170 170 i8042_wire(i8042_instance, kbrd); 171 171 trap_virtual_enable_irqs(1 << IRQ_KBD); 172 trap_virtual_enable_irqs(1 << IRQ_MOUSE);173 172 } 174 173 } … … 178 177 * self-sufficient. 179 178 */ 180 sysinfo_set_item_val("i8042", NULL, true); 181 sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD); 182 sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE); 183 sysinfo_set_item_val("i8042.address.physical", NULL, 179 sysinfo_set_item_val("kbd", NULL, true); 180 sysinfo_set_item_val("kbd.inr", NULL, IRQ_KBD); 181 sysinfo_set_item_val("kbd.address.physical", NULL, 184 182 (uintptr_t) I8042_BASE); 185 sysinfo_set_item_val(" i8042.address.kernel", NULL,183 sysinfo_set_item_val("kbd.address.kernel", NULL, 186 184 (uintptr_t) I8042_BASE); 187 185 #endif -
uspace/srv/hid/console/gcons.c
reca2435 r23efd30 241 241 242 242 /** Return x, where left <= x <= right && |a-x| == min(|a-x|) is smallest */ 243 static inline ssize_t limit(ssize_t a, ssize_t left, ssize_t right)243 static inline int limit(size_t a, size_t left, size_t right) 244 244 { 245 245 if (a < left) … … 261 261 mouse_x = limit(mouse_x + dx, 0, xres); 262 262 mouse_y = limit(mouse_y + dy, 0, yres); 263 264 if (active_console != KERNEL_CONSOLE) 265 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 263 264 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 266 265 } 267 266 -
uspace/srv/hw/char/i8042/i8042.c
reca2435 r23efd30 169 169 void *vaddr; 170 170 171 i8042_physical = sysinfo_value(" i8042.address.physical");172 i8042_kernel = sysinfo_value(" i8042.address.kernel");171 i8042_physical = sysinfo_value("kbd.address.physical"); 172 i8042_kernel = sysinfo_value("kbd.address.kernel"); 173 173 if (pio_enable((void *) i8042_physical, sizeof(i8042_t), &vaddr) != 0) 174 174 return -1; … … 193 193 i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status; 194 194 i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data; 195 ipc_register_irq(sysinfo_value(" i8042.inr_a"), device_assign_devno(), 0, &i8042_kbd);196 ipc_register_irq(sysinfo_value(" i8042.inr_b"), device_assign_devno(), 0, &i8042_kbd);195 ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 0, &i8042_kbd); 196 ipc_register_irq(sysinfo_value("mouse.inr"), device_assign_devno(), 0, &i8042_kbd); 197 197 198 198 pio_write_8(&i8042->status, i8042_CMD_WRITE_CMDB); … … 208 208 static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall) 209 209 { 210 void *fs_va = NULL; 210 211 ipc_callid_t callid; 211 212 ipc_call_t call; 212 213 ipcarg_t method; 213 214 dev_handle_t dh; 215 int flags; 214 216 int retval; 217 size_t cnt; 215 218 int dev_id, i; 216 219 … … 222 225 /* Determine which disk device is the client connecting to. */ 223 226 dev_id = -1; 224 for (i = 0; i < MAX_DEVS; i++) {227 for (i = 0; i < MAX_DEVS; i++) 225 228 if (i8042_port[i].dev_handle == dh) 226 229 dev_id = i; 227 } 228 229 if (dev_id < 0) { 230 231 if (dev_id < 0/* || disk[dev_id].present == false*/) { 230 232 ipc_answer_0(iid, EINVAL); 231 233 return;
Note:
See TracChangeset
for help on using the changeset viewer.