Changeset 29e479f in mainline
- Timestamp:
- 2011-12-11T17:16:41Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c046942
- Parents:
- 7d5ef94
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/hc.h
r7d5ef94 r29e479f 1 1 /* 2 2 * Copyright (c) 2011 Vojtech Horky 3 * Copyright (c) 2011 Jan Vesely 3 4 * All rights reserved. 4 5 * … … 26 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28 */ 28 29 29 /** @addtogroup libusb 30 30 * @{ … … 36 36 #define LIBUSB_HC_H_ 37 37 38 #include <sys/types.h> 39 #include <ipc/devman.h> 40 #include <ipc/loc.h> 38 #include <devman.h> 41 39 #include <ddf/driver.h> 42 40 #include <bool.h> 43 #include <async.h>44 41 #include <fibril_synch.h> 45 42 #include <usb/usb.h> … … 77 74 78 75 int usb_hc_connection_open(usb_hc_connection_t *); 79 bool usb_hc_connection_is_open(const usb_hc_connection_t *);80 76 int usb_hc_connection_close(usb_hc_connection_t *); 81 77 -
uspace/lib/usb/src/hc.c
r7d5ef94 r29e479f 27 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 */ 29 30 29 /** @addtogroup libusb 31 30 * @{ … … 34 33 * General communication with host controller driver (implementation). 35 34 */ 36 #include <devman.h> 37 #include <async.h> 38 #include <dev_iface.h> 35 #include <usb/debug.h> 36 37 #include <assert.h> 38 #include <errno.h> 39 39 #include <usbhc_iface.h> 40 #include <usb/dev.h> 40 41 #include <usb/hc.h> 41 #include <usb/debug.h>42 #include <usb/dev.h>43 #include <errno.h>44 #include <assert.h>45 42 46 43 static int usb_hc_connection_add_ref(usb_hc_connection_t *connection) … … 133 130 } 134 131 /*----------------------------------------------------------------------------*/ 135 /** Tells whether connection to host controller is opened.136 *137 * @param connection Connection to the host controller.138 * @return Whether connection is opened.139 */140 bool usb_hc_connection_is_open(const usb_hc_connection_t *connection)141 {142 assert(connection);143 return (connection->hc_sess != NULL);144 }145 /*----------------------------------------------------------------------------*/146 132 /** Close connection to the host controller. 147 133 *
Note:
See TracChangeset
for help on using the changeset viewer.