Changes in uspace/drv/uhci-hcd/uhci.h [1a93bb0:fb78ae72] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.h
r1a93bb0 rfb78ae72 39 39 #include <fibril_synch.h> 40 40 #include <adt/list.h> 41 #include <ddi.h>42 41 42 #include <usb/addrkeep.h> 43 43 #include <usbhc_iface.h> 44 44 45 #include "transfer_list.h" 45 46 #include "batch.h" 46 #include "transfer_list.h"47 #include "utils/device_keeper.h"48 47 49 48 typedef struct uhci_regs { … … 82 81 83 82 typedef struct uhci { 84 device_keeper_t device_manager; 85 83 usb_address_keeping_t address_manager; 86 84 volatile regs_t *registers; 87 85 … … 99 97 fid_t cleaner; 100 98 fid_t debug_checker; 101 102 ddf_fun_t *ddf_instance;103 99 } uhci_t; 104 100 105 101 /* init uhci specifics in device.driver_data */ 106 int uhci_init(uhci_t *instance, ddf_dev_t *dev,void *regs, size_t reg_size);102 int uhci_init(uhci_t *instance, void *regs, size_t reg_size); 107 103 108 104 static inline void uhci_fini(uhci_t *instance) {}; … … 112 108 void uhci_interrupt(uhci_t *instance, uint16_t status); 113 109 114 static inline uhci_t * dev_to_uhci(d df_dev_t *dev)110 static inline uhci_t * dev_to_uhci(device_t *dev) 115 111 { return (uhci_t*)dev->driver_data; } 116 117 static inline uhci_t * fun_to_uhci(ddf_fun_t *fun)118 { return (uhci_t*)fun->driver_data; }119 112 120 113
Note:
See TracChangeset
for help on using the changeset viewer.