Ignore:
Timestamp:
2018-01-20T12:23:18Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
129b821f
Parents:
c280d7e
Message:

hw_structs: explaining comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/context.h

    rc280d7e r60d3f35  
    189189#define XHCI_GET_EP_CTX(dev_ctx, hc, dci) (xhci_ep_ctx_t *)((char*)dev_ctx + (dci + XHCI_EP_ARRAY_OFFSET) * XHCI_ONE_CTX_SIZE(hc))
    190190
     191/**
     192 * As control, slot and endpoint contexts differ in size on different HCs,
     193 * we need to use macros to access them at the correct offsets. The following
     194 * empty structs (xhci_device_ctx_t and xhci_input_ctx_t) are used only as
     195 * void pointers for type-checking.
     196 */
    191197typedef struct xhci_device_ctx {
    192198} xhci_device_ctx_t;
Note: See TracChangeset for help on using the changeset viewer.