Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci.h

    r1a93bb0 rfb78ae72  
    3939#include <fibril_synch.h>
    4040#include <adt/list.h>
    41 #include <ddi.h>
    4241
     42#include <usb/addrkeep.h>
    4343#include <usbhc_iface.h>
    4444
     45#include "transfer_list.h"
    4546#include "batch.h"
    46 #include "transfer_list.h"
    47 #include "utils/device_keeper.h"
    4847
    4948typedef struct uhci_regs {
     
    8281
    8382typedef struct uhci {
    84         device_keeper_t device_manager;
    85 
     83        usb_address_keeping_t address_manager;
    8684        volatile regs_t *registers;
    8785
     
    9997        fid_t cleaner;
    10098        fid_t debug_checker;
    101 
    102         ddf_fun_t *ddf_instance;
    10399} uhci_t;
    104100
    105101/* init uhci specifics in device.driver_data */
    106 int uhci_init(uhci_t *instance, ddf_dev_t *dev, void *regs, size_t reg_size);
     102int uhci_init(uhci_t *instance, void *regs, size_t reg_size);
    107103
    108104static inline void uhci_fini(uhci_t *instance) {};
     
    112108void uhci_interrupt(uhci_t *instance, uint16_t status);
    113109
    114 static inline uhci_t * dev_to_uhci(ddf_dev_t *dev)
     110static inline uhci_t * dev_to_uhci(device_t *dev)
    115111        { 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; }
    119112
    120113
Note: See TracChangeset for help on using the changeset viewer.