/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to dma/ipe_private.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-22 13:46:30 UTC
  • Revision ID: csa@suren.me-20160322134630-pz5c28aiblfwrdpv
Crticial fix in IPEDMA resulting in spurious data generated, due to not finished migration to new versioning scheme in hardware

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
#define WR64(addr, value) { *(uint64_t*)(REG2VIRT(addr)) = value; }
72
72
#define RD64(addr, value) { value = *(uint64_t*)(REG2VIRT(addr)); }
73
73
 
74
 
#define DEREF(ptr) ((ctx->version<3)?(*(uint32_t*)ptr):(*(uint64_t*)ptr))
 
74
#define DEREF(ptr) ((ctx->addr64)?(*(uint64_t*)ptr):(*(uint32_t*)ptr))
75
75
 
76
76
typedef uint32_t reg_t;
77
77
typedef struct ipe_dma_s ipe_dma_t;