Changeset e6b9182 in mainline for uspace/drv/bus/usb/ohci/ohci_bus.h
- Timestamp:
- 2017-10-13T08:49:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 741bcdeb
- Parents:
- 0a5833d7
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_bus.h
r0a5833d7 re6b9182 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 OHCI driver 33 34 */ 34 #ifndef DRV_OHCI_HCD_ ENDPOINT_H35 #define DRV_OHCI_HCD_ ENDPOINT_H35 #ifndef DRV_OHCI_HCD_BUS_H 36 #define DRV_OHCI_HCD_BUS_H 36 37 37 38 #include <assert.h> 38 39 #include <adt/list.h> 39 #include <usb/host/endpoint.h> 40 #include <usb/host/hcd.h> 40 #include <usb/host/usb2_bus.h> 41 41 42 42 #include "hw_struct/endpoint_descriptor.h" … … 45 45 /** Connector structure linking ED to to prepared TD. */ 46 46 typedef struct ohci_endpoint { 47 endpoint_t base; 48 47 49 /** OHCI endpoint descriptor */ 48 50 ed_t *ed; … … 53 55 } ohci_endpoint_t; 54 56 55 int ohci_endpoint_init(hcd_t *hcd, endpoint_t *ep); 56 void ohci_endpoint_fini(hcd_t *hcd, endpoint_t *ep); 57 typedef struct hc hc_t; 58 59 typedef struct { 60 usb2_bus_t base; 61 hc_t *hc; 62 63 /* Stored original ops from base, they are called in our handlers */ 64 bus_ops_t parent_ops; 65 } ohci_bus_t; 66 67 int ohci_bus_init(ohci_bus_t *, hc_t *); 57 68 58 69 /** Get and convert assigned ohci_endpoint_t structure … … 63 74 { 64 75 assert(ep); 65 return ep->hc_data.data;76 return (ohci_endpoint_t *) ep; 66 77 } 67 78
Note:
See TracChangeset
for help on using the changeset viewer.