Changes in uspace/drv/uhci/uhci.h [4317827:2972e21] in mainline


Ignore:
File:
1 edited

Legend:

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

    r4317827 r2972e21  
    11/*
    2  * Copyright (c) 2010 Vojtech Horky
     2 * Copyright (c) 2010 Jan Vesely
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    2928/** @addtogroup usb
    3029 * @{
     
    3635#define DRV_UHCI_UHCI_H
    3736
     37#include <fibril.h>
     38
     39#include <usb/addrkeep.h>
     40#include <usb/hcdhubd.h>
    3841#include <usbhc_iface.h>
    3942
    40 #define NAME "uhci"
     43#include "root_hub/root_hub.h"
    4144
    42 usbhc_iface_t uhci_iface;
     45typedef 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
     54typedef 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 */
     61int uhci_init( device_t *device, void *regs );
     62
     63int uhci_destroy( device_t *device );
     64
     65int 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
     73int 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
     81int 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  );
    4388
    4489#endif
Note: See TracChangeset for help on using the changeset viewer.