#include <sys/types.h>
#include <fibril_synch.h>
#include <usb/dev/pipes.h>
#include <usb/dev/recognise.h>
#include <usb/ddfiface.h>
#include <usb/dev/request.h>
#include <usb/classes/classes.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
Go to the source code of this file.
| Defines | |
| #define | ADD_MATCHID_OR_RETURN(match_ids, score, format,) | 
| Add match id to list or return with error code. | |
| #define | BCD_ARGS(a) BCD_INT((a)), BCD_FRAC((a)) | 
| Arguments to printf for BCD coded number. | |
| #define | BCD_FMT "%x.%x" | 
| Format for BCD coded number to be used in printf. | |
| #define | BCD_FRAC(a) (((unsigned int)(a)) % 256) | 
| Get fraction part from BCD coded number (as an integer, no less). | |
| #define | BCD_INT(a) (((unsigned int)(a)) / 256) | 
| Get integer part from BCD coded number. | |
| #define | MATCH_STRING_MAX 256 | 
| Functions | |
| static | FIBRIL_MUTEX_INITIALIZE (device_name_index_mutex) | 
| Mutex guard for device_name_index. | |
| static int | usb_add_match_id (match_id_list_t *matches, int score, const char *format,...) | 
| Add formatted match id. | |
| int | usb_device_create_match_ids (usb_pipe_t *ctrl_pipe, match_id_list_t *matches) | 
| Create match ids describing attached device. | |
| int | usb_device_create_match_ids_from_device_descriptor (const usb_standard_device_descriptor_t *device_descriptor, match_id_list_t *matches) | 
| Create DDF match ids from USB device descriptor. | |
| int | usb_device_create_match_ids_from_interface (const usb_standard_device_descriptor_t *desc_device, const usb_standard_interface_descriptor_t *desc_interface, match_id_list_t *matches) | 
| Create device match ids based on its interface. | |
| int | usb_device_register_child_in_devman (usb_address_t address, devman_handle_t hc_handle, ddf_dev_t *parent, devman_handle_t *child_handle, ddf_dev_ops_t *dev_ops, void *dev_data, ddf_fun_t **child_fun) | 
| Probe for device kind and register it in devman. | |
| Variables | |
| ddf_dev_ops_t | child_ops | 
| DDF operations of child devices. | |
| static size_t | device_name_index = 0 | 
| Index to append after device name for uniqueness. | |
Definition in file recognise.c.
 1.4.7
 1.4.7