Changeset 233e68d in mainline for uspace/drv/uhci-hcd/uhci.h


Ignore:
Timestamp:
2011-02-23T18:28:41Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e9e58ea3
Parents:
deece2f (diff), a9c674e0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Devel changes

File:
1 edited

Legend:

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

    rdeece2f r233e68d  
    3939#include <fibril_synch.h>
    4040#include <adt/list.h>
     41#include <ddi.h>
    4142
    4243#include <usb/addrkeep.h>
     
    9798        fid_t cleaner;
    9899        fid_t debug_checker;
     100
     101        ddf_fun_t *ddf_instance;
    99102} uhci_t;
    100103
    101104/* init uhci specifics in device.driver_data */
    102 int uhci_init(uhci_t *instance, void *regs, size_t reg_size);
     105int uhci_init(uhci_t *instance, ddf_dev_t *dev, void *regs, size_t reg_size);
    103106
    104107static inline void uhci_fini(uhci_t *instance) {};
     
    108111void uhci_interrupt(uhci_t *instance, uint16_t status);
    109112
    110 static inline uhci_t * dev_to_uhci(device_t *dev)
     113static inline uhci_t * dev_to_uhci(ddf_dev_t *dev)
    111114        { return (uhci_t*)dev->driver_data; }
     115
     116static inline uhci_t * fun_to_uhci(ddf_fun_t *fun)
     117        { return (uhci_t*)fun->driver_data; }
    112118
    113119
Note: See TracChangeset for help on using the changeset viewer.