Changes in uspace/drv/uhci-rhd/port.h [f123909:0063838] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.h
rf123909 r0063838 1 1 /* 2 * Copyright (c) 201 1Jan Vesely2 * Copyright (c) 2010 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbuhcirh28 /** @addtogroup usb 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief UHCI root hub port routines32 * @brief UHCI port driver 33 33 */ 34 34 #ifndef DRV_UHCI_PORT_H 35 35 #define DRV_UHCI_PORT_H 36 36 37 #include <assert.h> 38 #include <ddf/driver.h> 37 39 #include <stdint.h> 38 #include <fibril.h> 39 #include <ddf/driver.h> 40 #include <usb/usbdevice.h> /* usb_hc_connection_t */ 40 #include <usb/usbdevice.h> 41 41 42 typedef uint16_t port_status_t; 43 #define STATUS_CONNECTED (1 << 0) 44 #define STATUS_CONNECTED_CHANGED (1 << 1) 45 #define STATUS_ENABLED (1 << 2) 46 #define STATUS_ENABLED_CHANGED (1 << 3) 47 #define STATUS_LINE_D_PLUS (1 << 4) 48 #define STATUS_LINE_D_MINUS (1 << 5) 49 #define STATUS_RESUME (1 << 6) 50 #define STATUS_ALWAYS_ONE (1 << 7) 51 52 #define STATUS_LOW_SPEED (1 << 8) 53 #define STATUS_IN_RESET (1 << 9) 54 #define STATUS_SUSPEND (1 << 12) 42 #include "port_status.h" 55 43 56 44 typedef struct uhci_port 57 45 { 58 char *id_string;59 46 port_status_t *address; 60 47 unsigned number; … … 71 58 72 59 void uhci_port_fini(uhci_port_t *port); 73 74 60 #endif 75 61 /**
Note:
See TracChangeset
for help on using the changeset viewer.