Changeset 291b8bc in mainline for uspace/drv/uhci-hcd/utils/slab.h


Ignore:
Timestamp:
2011-03-26T13:28:43Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f62468c
Parents:
889e8e3 (diff), c9f5e238 (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 development/ changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/utils/slab.h

    r889e8e3 r291b8bc  
    11/*
    2  * Copyright (c) 2010 Lubos Slovak
     2 * Copyright (c) 2011 Jan Vesely
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    29 /** @addtogroup drvusbhid
     28/** @addtogroup usb
    3029 * @{
    3130 */
    3231/** @file
    33  * Descriptor dumping.
     32 * @brief UHCI driver
    3433 */
     34#ifndef DRV_UHCI_SLAB_H
     35#define DRV_UHCI_SLAB_H
    3536
    36 #ifndef USBHID_DESCDUMP_H_
    37 #define USBHID_DESCDUMP_H_
     37#include <bool.h>
    3838
    39 #include <usb/descriptor.h>
    40 #include <usb/classes/hid.h>
     39#define SLAB_ELEMENT_SIZE 1024
    4140
    42 void dump_standard_configuration_descriptor(
    43     int index, const usb_standard_configuration_descriptor_t *d);
     41void * slab_malloc_g(void);
    4442
    45 void dump_standard_interface_descriptor(
    46     const usb_standard_interface_descriptor_t *d);
     43void slab_free_g(void *addr);
    4744
    48 void dump_standard_endpoint_descriptor(
    49     const usb_standard_endpoint_descriptor_t *d);
     45bool slab_in_range_g(void *addr);
    5046
    51 void dump_standard_hid_descriptor_header(
    52     const usb_standard_hid_descriptor_t *d);
    53 
    54 void dump_standard_hid_class_descriptor_info(
    55     const usb_standard_hid_class_descriptor_info_t *d);
    56 
    57 void dump_hid_class_descriptor(int index, uint8_t type,
    58     const uint8_t *d, size_t size);
    59 
    60 #endif /* USBHID_DESCDUMP_H_ */
    61 
     47#endif
    6248/**
    6349 * @}
Note: See TracChangeset for help on using the changeset viewer.