Changeset 8dc762e0 in mainline for uspace/lib/usb/src/host/endpoint.c
- Timestamp:
- 2011-04-06T21:12:41Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f567bcf
- Parents:
- 1e70157
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/host/endpoint.c
r1e70157 r8dc762e0 36 36 #include <errno.h> 37 37 38 #include "endpoint.h" 39 #include "utils/malloc32.h" 38 #include <usb/host/endpoint.h> 40 39 41 40 int endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type, … … 48 47 instance->max_packet_size = max_packet_size; 49 48 instance->toggle = 0; 50 instance->qh = malloc32(sizeof(qh_t));51 if (instance->qh == NULL)52 return ENOMEM;53 49 return EOK; 54 50 } 55 51 /*----------------------------------------------------------------------------*/ 56 void endpoint_destroy( void *ep)52 void endpoint_destroy(endpoint_t *instance) 57 53 { 58 endpoint_t *instance = ep;59 54 assert(instance); 60 55 list_remove(&instance->same_device_eps); 61 free32(instance->qh);62 56 free(instance); 63 57 }
Note:
See TracChangeset
for help on using the changeset viewer.