Changeset 9600516 in mainline for uspace/drv/uhci/callback.h


Ignore:
Timestamp:
2011-01-21T16:49:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
643b983
Parents:
1062c8d
Message:

Added transfer queues for interrupt, control and bulk transfers.

UHCI structures refactoring

File:
1 moved

Legend:

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

    r1062c8d r9600516  
    1 
    21/*
    32 * Copyright (c) 2010 Jan Vesely
     
    3332 * @brief UHCI driver
    3433 */
    35 #ifndef DRV_UHCI_QH_H
    36 #define DRV_UHCI_QH_H
     34#ifndef DRV_UHCI_CALLBACK_H
     35#define DRV_UHCI_CALLBACK_H
    3736
    38 #include "link_ptr.h"
     37#include <usbhc_iface.h>
    3938
    40 typedef struct qh {
    41         link_ptr_t
    42 } __attribute__(("packed")) link_ptr_t;
     39typedef struct callback
     40{
     41        union {
     42                usbhc_iface_transfer_in_callback_t callback_in;
     43                usbhc_iface_transfer_out_callback_t callback_out;
     44        };
     45        void* buffer;
     46} callback_t;
    4347
    4448#endif
Note: See TracChangeset for help on using the changeset viewer.