Changeset 291b8bc in mainline for uspace/drv/uhci-hcd/utils/slab.h
- Timestamp:
- 2011-03-26T13:28:43Z (14 years ago)
- 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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/utils/slab.h
r889e8e3 r291b8bc 1 1 /* 2 * Copyright (c) 201 0 Lubos Slovak2 * Copyright (c) 2011 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup drvusbhid 28 /** @addtogroup usb 30 29 * @{ 31 30 */ 32 31 /** @file 33 * Descriptor dumping.32 * @brief UHCI driver 34 33 */ 34 #ifndef DRV_UHCI_SLAB_H 35 #define DRV_UHCI_SLAB_H 35 36 36 #ifndef USBHID_DESCDUMP_H_ 37 #define USBHID_DESCDUMP_H_ 37 #include <bool.h> 38 38 39 #include <usb/descriptor.h> 40 #include <usb/classes/hid.h> 39 #define SLAB_ELEMENT_SIZE 1024 41 40 42 void dump_standard_configuration_descriptor( 43 int index, const usb_standard_configuration_descriptor_t *d); 41 void * slab_malloc_g(void); 44 42 45 void dump_standard_interface_descriptor( 46 const usb_standard_interface_descriptor_t *d); 43 void slab_free_g(void *addr); 47 44 48 void dump_standard_endpoint_descriptor( 49 const usb_standard_endpoint_descriptor_t *d); 45 bool slab_in_range_g(void *addr); 50 46 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 62 48 /** 63 49 * @}
Note:
See TracChangeset
for help on using the changeset viewer.