Changeset 8bb9540 in mainline for uspace/drv/char/ps2mouse
- Timestamp:
- 2012-01-01T22:01:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ff1ee1
- Parents:
- 1dea6d7
- Location:
- uspace/drv/char/ps2mouse
- Files:
-
- 2 edited
-
main.c (modified) (3 diffs)
-
ps2mouse.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/main.c
r1dea6d7 r8bb9540 47 47 48 48 static int mouse_add(ddf_dev_t *device); 49 /*----------------------------------------------------------------------------*/ 49 50 50 /** DDF driver ops. */ 51 51 static driver_ops_t mouse_driver_ops = { 52 52 .dev_add = mouse_add, 53 53 }; 54 /*----------------------------------------------------------------------------*/ 54 55 55 /** DDF driver structure. */ 56 56 static driver_t mouse_driver = { … … 58 58 .driver_ops = &mouse_driver_ops 59 59 }; 60 /*----------------------------------------------------------------------------*/ 60 61 61 /** Initialize global driver structures (NONE). 62 62 * … … 73 73 return ddf_driver_main(&mouse_driver); 74 74 } 75 /*----------------------------------------------------------------------------*/ 75 76 76 /** Initialize a new ddf driver instance 77 77 * -
uspace/drv/char/ps2mouse/ps2mouse.c
r1dea6d7 r8bb9540 94 94 } \ 95 95 } while (0) 96 /*----------------------------------------------------------------------------*/ 96 97 97 static int polling_ps2(void *); 98 98 static int polling_intellimouse(void *); 99 99 static int probe_intellimouse(async_sess_t *, bool); 100 100 static void default_connection_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *); 101 /*----------------------------------------------------------------------------*/ 101 102 102 /** ps/2 mouse driver ops. */ 103 103 static ddf_dev_ops_t mouse_ops = { 104 104 .default_handler = default_connection_handler 105 105 }; 106 /*----------------------------------------------------------------------------*/ 106 107 107 /** Initialize mouse driver structure. 108 108 * @param kbd Mouse driver structure to initialize. … … 187 187 return EOK; 188 188 } 189 /*----------------------------------------------------------------------------*/ 189 190 190 /** Get data and parse ps2 protocol packets. 191 191 * @param arg Pointer to ps2_mouse_t structure. … … 242 242 } 243 243 } 244 /*----------------------------------------------------------------------------*/ 244 245 245 /** Get data and parse ps2 protocol with IntelliMouse extension packets. 246 246 * @param arg Pointer to ps2_mouse_t structure. … … 316 316 } 317 317 } 318 /*----------------------------------------------------------------------------*/ 318 319 319 /** Send magic sequence to initialize IntelliMouse extensions. 320 320 * @param session IPC session to the parent device. … … 348 348 return EOK; 349 349 } 350 /*----------------------------------------------------------------------------*/ 350 351 351 /** Default handler for IPC methods not handled by DDF. 352 352 *
Note:
See TracChangeset
for help on using the changeset viewer.
