Changeset 741bcdeb in mainline for uspace/drv/bus/usb/ehci/ehci_bus.h
- Timestamp:
- 2017-10-13T09:21:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c0e4b5b2
- Parents:
- e6b9182
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_bus.h
re6b9182 r741bcdeb 1 1 /* 2 2 * Copyright (c) 2011 Jan Vesely 3 * Copyright (c) 2017 Ondrej Hlavaty <aearsis@eideo.cz> 3 4 * All rights reserved. 4 5 * … … 32 33 * @brief EHCI driver 33 34 */ 34 #ifndef DRV_EHCI_HCD_ ENDPOINT_H35 #define DRV_EHCI_HCD_ ENDPOINT_H35 #ifndef DRV_EHCI_HCD_BUS_H 36 #define DRV_EHCI_HCD_BUS_H 36 37 37 38 #include <assert.h> 38 39 #include <adt/list.h> 40 #include <usb/host/usb2_bus.h> 39 41 #include <usb/host/endpoint.h> 40 #include <usb/host/hcd.h>41 42 42 43 #include "hw_struct/queue_head.h" 43 #include "hw_struct/transfer_descriptor.h"44 44 45 45 /** Connector structure linking ED to to prepared TD. */ 46 46 typedef struct ehci_endpoint { 47 /* Inheritance */ 48 endpoint_t base; 49 47 50 /** EHCI endpoint descriptor */ 48 51 qh_t *qh; … … 51 54 } ehci_endpoint_t; 52 55 53 int ehci_endpoint_init(hcd_t *hcd, endpoint_t *ep); 54 void ehci_endpoint_fini(hcd_t *hcd, endpoint_t *ep); 56 typedef struct hc hc_t; 57 58 typedef struct { 59 usb2_bus_t base; 60 hc_t *hc; 61 62 /* Stored original ops from base, they are called in our handlers */ 63 bus_ops_t parent_ops; 64 } ehci_bus_t; 65 66 int ehci_bus_init(ehci_bus_t *, hc_t *); 55 67 56 68 /** Get and convert assigned ehci_endpoint_t structure … … 61 73 { 62 74 assert(ep); 63 return ep->hc_data.data;75 return (ehci_endpoint_t *) ep; 64 76 } 65 77 … … 73 85 * @} 74 86 */ 75
Note:
See TracChangeset
for help on using the changeset viewer.