Changes in uspace/drv/ohci/hcd_endpoint.c [545764b:9a6fde4] in mainline
- File:
-
- 1 edited
-
uspace/drv/ohci/hcd_endpoint.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hcd_endpoint.c
r545764b r9a6fde4 35 35 #include "hcd_endpoint.h" 36 36 37 static void hcd_ep_toggle_set(void *hcd_ep, int toggle)38 {39 hcd_endpoint_t *instance = hcd_ep;40 assert(instance);41 assert(instance->ed);42 ed_toggle_set(instance->ed, toggle);43 }44 static int hcd_ep_toggle_get(void *hcd_ep)45 {46 hcd_endpoint_t *instance = hcd_ep;47 assert(instance);48 assert(instance->ed);49 return ed_toggle_get(instance->ed);50 }51 52 53 37 hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep) 54 38 { … … 73 57 ed_init(hcd_ep->ed, ep); 74 58 ed_set_td(hcd_ep->ed, hcd_ep->td); 75 endpoint_set_hc_data(ep, hcd_ep, hcd_ep_toggle_get, hcd_ep_toggle_set);59 endpoint_set_hc_data(ep, hcd_ep, NULL, NULL); 76 60 77 61 return hcd_ep;
Note:
See TracChangeset
for help on using the changeset viewer.
