Changeset b0f00a9 in mainline for uspace/lib/usbdev/include/usb/dev/recognise.h
- Timestamp:
- 2011-11-06T22:21:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 898e847
- Parents:
- 2bdf8313 (diff), 7b5f4c9 (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. - File:
-
- 1 moved
-
uspace/lib/usbdev/include/usb/dev/recognise.h (moved) (moved from uspace/srv/hid/console/keybuffer.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/recognise.h
r2bdf8313 rb0f00a9 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup kbdgen 30 * @brief HelenOS generic uspace keyboard handler. 31 * @ingroup kbd 29 /** @addtogroup libusbdev 32 30 * @{ 33 31 */ 34 32 /** @file 33 * USB device recognition. 35 34 */ 36 37 #ifndef __KEYBUFFER_H__ 38 #define __KEYBUFFER_H__ 35 #ifndef LIBUSBDEV_RECOGNISE_H_ 36 #define LIBUSBDEV_RECOGNISE_H_ 39 37 40 38 #include <sys/types.h> 41 #include <io/console.h> 42 #include <bool.h> 39 #include <usb/usb.h> 40 #include <usb/dev/pipes.h> 41 #include <ipc/devman.h> 43 42 44 /** Size of buffer for pressed keys */ 45 #define KEYBUFFER_SIZE 128 43 int usb_device_create_match_ids_from_device_descriptor( 44 const usb_standard_device_descriptor_t *, match_id_list_t *); 46 45 47 typedef struct { 48 console_event_t fifo[KEYBUFFER_SIZE]; 49 size_t head; 50 size_t tail; 51 size_t items; 52 } keybuffer_t; 46 int usb_device_create_match_ids_from_interface( 47 const usb_standard_device_descriptor_t *, 48 const usb_standard_interface_descriptor_t *, match_id_list_t *); 53 49 54 extern void keybuffer_free(keybuffer_t *); 55 extern void keybuffer_init(keybuffer_t *); 56 extern size_t keybuffer_available(keybuffer_t *); 57 extern bool keybuffer_empty(keybuffer_t *); 58 extern void keybuffer_push(keybuffer_t *, const console_event_t *); 59 extern bool keybuffer_pop(keybuffer_t *, console_event_t *); 50 int usb_device_create_match_ids(usb_pipe_t *, match_id_list_t *); 51 52 int usb_device_register_child_in_devman(usb_address_t, devman_handle_t, 53 ddf_dev_t *, ddf_dev_ops_t *, void *, ddf_fun_t **); 60 54 61 55 #endif 62 63 56 /** 64 57 * @}
Note:
See TracChangeset
for help on using the changeset viewer.
