Equivalent function of memset_io(linux)

I am porting linux code to windows . Did any one know windows function to copy block of memory to I/O space. I like to know if there is equivalent function memset_io or do I just use memset?

xxxxx@hotmail.com wrote:

I am porting linux code to windows . Did any one know windows function to copy block of memory to I/O space. I like to know if there is equivalent function memset_io or do I just use memset?

I’m surprised such a function would be needed. It’s quite rare to need
to set a block of device memory to a single value.

On x86 and x64 systems, you can use RtlFillMemory (which is a macro
alias for memset), although the purists would suggest that you call
WRITE_REGISTER_ULONG in a loop.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Something like [READ|WRITE]_[PORT|REGISTER]_BUFFER_U[CHAR|SHORT|LONG|LONG64]?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, July 01, 2008 4:36 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Equivalent function of memset_io(linux)

I am porting linux code to windows . Did any one know windows function to copy block of memory to I/O space. I like to know if there is equivalent function memset_io or do I just use memset?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks Tim This device initializes memory blocks that is needed for firmware download and other uses.

WRITE_PORT_BUFFER_UCHAR/USHORT


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntdev…
> I am porting linux code to windows . Did any one know windows function to
copy block of memory to I/O space. I like to know if there is equivalent
function memset_io or do I just use memset?
>