Ignore:
Timestamp:
2011-01-28T17:32:58Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b68b7c
Parents:
54229db
Message:

Fixed: Error count mask

Made TD fields volatile

File:
1 edited

Legend:

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

    r54229db rb6120d90  
    4646        link_pointer_t next;
    4747
    48         uint32_t status;
     48        volatile uint32_t status;
    4949
    5050#define TD_STATUS_RESERVED_MASK 0xc000f800
    5151#define TD_STATUS_SPD_FLAG ( 1 << 29 )
    5252#define TD_STATUS_ERROR_COUNT_POS ( 27 )
    53 #define TD_STATUS_ERROR_COUNT_MASK ( 0x11 )
     53#define TD_STATUS_ERROR_COUNT_MASK ( 0x3 )
    5454#define TD_STATUS_ERROR_COUNT_DEFAULT 3
    5555#define TD_STATUS_LOW_SPEED_FLAG ( 1 << 26 )
     
    7171#define TD_STATUS_ACTLEN_MASK 0x7ff
    7272
    73         uint32_t device;
     73        volatile uint32_t device;
    7474
    7575#define TD_DEVICE_MAXLEN_POS 21
     
    8484#define TD_DEVICE_PID_MASK ( 0xff )
    8585
    86         uint32_t buffer_ptr;
     86        volatile uint32_t buffer_ptr;
    8787
    8888        /* there is 16 bytes of data available here
Note: See TracChangeset for help on using the changeset viewer.