Changes in uspace/drv/uhci/uhci.h [4317827:2972e21] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci.h
r4317827 r2972e21 1 1 /* 2 * Copyright (c) 2010 Vojtech Horky2 * 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 29 28 /** @addtogroup usb 30 29 * @{ … … 36 35 #define DRV_UHCI_UHCI_H 37 36 37 #include <fibril.h> 38 39 #include <usb/addrkeep.h> 40 #include <usb/hcdhubd.h> 38 41 #include <usbhc_iface.h> 39 42 40 # define NAME "uhci"43 #include "root_hub/root_hub.h" 41 44 42 usbhc_iface_t uhci_iface; 45 typedef struct uhci_regs { 46 uint16_t usbcmd; 47 uint16_t usbsts; 48 uint16_t usbintr; 49 uint16_t frnum; 50 uint32_t flbaseadd; 51 uint8_t sofmod; 52 } regs_t; 53 54 typedef struct uhci { 55 usb_address_keeping_t address_manager; 56 uhci_root_hub_t root_hub; 57 volatile regs_t* registers; 58 } uhci_t ; 59 60 /* init uhci specifics in device.driver_data */ 61 int uhci_init( device_t *device, void *regs ); 62 63 int uhci_destroy( device_t *device ); 64 65 int uhci_in( 66 device_t *dev, 67 usb_target_t target, 68 usb_transfer_type_t transfer_type, 69 void *buffer, size_t size, 70 usbhc_iface_transfer_in_callback_t callback, void *arg 71 ); 72 73 int uhci_out( 74 device_t *dev, 75 usb_target_t target, 76 usb_transfer_type_t transfer_type, 77 void *buffer, size_t size, 78 usbhc_iface_transfer_out_callback_t callback, void *arg 79 ); 80 81 int uhci_setup( 82 device_t *dev, 83 usb_target_t target, 84 usb_transfer_type_t transfer_type, 85 void *buffer, size_t size, 86 usbhc_iface_transfer_out_callback_t callback, void *arg 87 ); 43 88 44 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.