Ignore:
Timestamp:
2013-12-30T18:33:17Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35c874a
Parents:
2acae4d
Message:

ohci: Minor cleanup.

Use macros.h provided padding macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hw_struct/hcca.h

    r2acae4d r81d5f74  
    3737#include <malloc.h>
    3838#include <sys/types.h>
     39#include <macros.h>
    3940
    4041#include "mem_access.h"
     
    5051        /** Frame number. */
    5152        uint16_t frame_number;
    52         uint16_t pad1;
     53        PADD16;
    5354        /** Pointer to the last completed TD. (useless) */
    5455        uint32_t done_head;
    5556        /** Padding to make the size 256B */
    56         uint32_t reserved[30];
     57        PADD32[30];
    5758} hcca_t;
    5859
     
    8081{
    8182        assert(hcca);
    82         assert(index < HCCA_INT_EP_COUNT);
     83        assert(index < ARRAY_SIZE(hcca->int_ep));
    8384        OHCI_MEM32_WR(hcca->int_ep[index], pa);
    8485
Note: See TracChangeset for help on using the changeset viewer.