Alternate functionality of MmGetPhysicalAddress() in WEC7 RRS feed

  • Question

  • Hello,

    I have a working Win10 code base with below code.

            addr = MmGetPhysicalAddress(data);

            ASSERT(addr.HighPart == 0);

            ASSERT(addr.LowPart != 0);

            /* we are 32bit PCIE device, so just care about the lower part address */

            skb->wb_mapped_paddr_lo[0] = addr.LowPart + NET_BUFFER_DATA_OFFSET(os_buf);

    I am porting to WEC7. “MmGetPhysicalAddress()” compiles in Win10 but not in WEC7. Can you please let me know alternate functionality in WEC7.

    Thanks & Regards

    Vishnu Beema

    Thursday, November 30, 2017 2:41 PM

All replies

  • Porting a driver from Windows 10 to Compact 7 line by line is a recipe for failure.  You first need to become familiar with the Compact 7 device driver architectures.  Then figure out what your driver needs to do and implement it.

    Platform Builder includes many example device drivers that will help guide you.

    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG
    I work for Synopsys

    Thursday, November 30, 2017 8:44 PM
  • Hello Bruce Eitman,

    Thank you for your suggestion. I am trying to understanding WEC7 basics. Can you please share the links where I can get concepts of WEC7. There are lot of MSDN links and I am getting confused from where to start.

    Platform builder examples are with old architecture. (Ex: It as ath6k. But I am looking for ath10k architecture.)

    Thanks & Regards

    Vishnu Beema

    Thursday, December 14, 2017 8:53 AM