Uploaded image for project: 'CIFX Toolkit'
  1. CIFX Toolkit
  2. NXDRVTKIT-49

Hardware access functions (HWIF) should be passed a pointer instead of an offset to allow redirecting memory accesses easily

    Details

    • Type: Change
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V1.1.4.0, V1.1.5.0
    • Fix Version/s: V1.2.0.0
    • Component/s: None
    • Labels:
      None
    • Account:
      SDO Driver (SDODRIVER)

      Description

      Passing a pointer instead of an offset allows redirecting memory accesses where pbDBM is not NULL in device instance.

      This would also allow mixing of parallel and serial DPM devices on a 64Bit system, as the HWIF function can be directly call memcpy an does not need to recalculate the pointer with the given offset.

      Proposal:

      V1.1.4.0

        typedef void*    (*PFN_HWIF_MEMCPY)  ( void* pvDevInstance, uint32_t ulAddr, void* pvData, uint32_t ulLen);

      new

        typedef void*    (*PFN_HWIF_MEMCPY)  ( void* pvDevInstance, void* pvAddr, void* pvData, uint32_t ulLen);

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  MTrensch Michael Trensch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: