Changeset eca2435 in mainline for uspace/srv
- Timestamp:
- 2010-01-06T20:52:16Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5eb5dcf, 985e26d2, a5603ff
- Parents:
- 23efd30 (diff), 2ae1e6e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/gcons.c
r23efd30 reca2435 241 241 242 242 /** Return x, where left <= x <= right && |a-x| == min(|a-x|) is smallest */ 243 static inline int limit(size_t a, size_t left,size_t right)243 static inline ssize_t limit(ssize_t a, ssize_t left, ssize_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 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 263 264 if (active_console != KERNEL_CONSOLE) 265 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); 265 266 } 266 267 -
uspace/srv/hw/char/i8042/i8042.c
r23efd30 reca2435 169 169 void *vaddr; 170 170 171 i8042_physical = sysinfo_value(" kbd.address.physical");172 i8042_kernel = sysinfo_value(" kbd.address.kernel");171 i8042_physical = sysinfo_value("i8042.address.physical"); 172 i8042_kernel = sysinfo_value("i8042.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(" kbd.inr"), device_assign_devno(), 0, &i8042_kbd);196 ipc_register_irq(sysinfo_value(" mouse.inr"), device_assign_devno(), 0, &i8042_kbd);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); 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;211 210 ipc_callid_t callid; 212 211 ipc_call_t call; 213 212 ipcarg_t method; 214 213 dev_handle_t dh; 215 int flags;216 214 int retval; 217 size_t cnt;218 215 int dev_id, i; 219 216 … … 225 222 /* Determine which disk device is the client connecting to. */ 226 223 dev_id = -1; 227 for (i = 0; i < MAX_DEVS; i++) 224 for (i = 0; i < MAX_DEVS; i++) { 228 225 if (i8042_port[i].dev_handle == dh) 229 226 dev_id = i; 230 231 if (dev_id < 0/* || disk[dev_id].present == false*/) { 227 } 228 229 if (dev_id < 0) { 232 230 ipc_answer_0(iid, EINVAL); 233 231 return;
Note:
See TracChangeset
for help on using the changeset viewer.