Ignore:
Timestamp:
2011-11-06T22:21:05Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/recognise.h

    r2bdf8313 rb0f00a9  
    11/*
    2  * Copyright (c) 2006 Josef Cejka
     2 * Copyright (c) 2011 Vojtech Horky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kbdgen
    30  * @brief HelenOS generic uspace keyboard handler.
    31  * @ingroup kbd
     29/** @addtogroup libusbdev
    3230 * @{
    3331 */
    3432/** @file
     33 * USB device recognition.
    3534 */
    36 
    37 #ifndef __KEYBUFFER_H__
    38 #define __KEYBUFFER_H__
     35#ifndef LIBUSBDEV_RECOGNISE_H_
     36#define LIBUSBDEV_RECOGNISE_H_
    3937
    4038#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>
    4342
    44 /** Size of buffer for pressed keys */
    45 #define KEYBUFFER_SIZE  128
     43int usb_device_create_match_ids_from_device_descriptor(
     44    const usb_standard_device_descriptor_t *, match_id_list_t *);
    4645
    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;
     46int 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 *);
    5349
    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 *);
     50int usb_device_create_match_ids(usb_pipe_t *, match_id_list_t *);
     51
     52int usb_device_register_child_in_devman(usb_address_t, devman_handle_t,
     53    ddf_dev_t *, ddf_dev_ops_t *, void *, ddf_fun_t **);
    6054
    6155#endif
    62 
    6356/**
    6457 * @}
Note: See TracChangeset for help on using the changeset viewer.