Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 81d5f74 in mainline


Ignore:
Timestamp:
2013-12-30T18:33:17Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
35c874a
Parents:
2acae4d
Message:

ohci: Minor cleanup.

Use macros.h provided padding macros.

Location:
uspace/drv/bus/usb/ohci/hw_struct
Files:
2 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
  • uspace/drv/bus/usb/ohci/hw_struct/mem_access.h

    r2acae4d r81d5f74  
    4747 * @}
    4848 */
    49 
Note: See TracChangeset for help on using the changeset viewer.