MessageNo I don’t want to use the rtlcopymemory
at reality my device driver is PCI Device driver. But I want to make a simulation driver without changging too much on original driver.
So I thought there is no problem to make DMA_ADAPTER object without having the hardware to allocate my common buffers.
But I was wrong and windows 2000 crash when I call IoGetDmaAdapter.
the same code work great in windows 98 (I think because it uses old NT Function HalGetAdapter).
so how can I take over this problem in the driver without hardware attached ?!
thanks in advance
Hesham
----- Original Message -----
From: Mark Roddy
To: NT Developers Interest List
Sent: Tuesday, July 03, 2001 1:36 PM
Subject: [ntdev] RE: Allocating resources in WDM Driver
Uh, if you really mean that you are copying memory, as in physical memory mapped into virtual addresses, from one location to another then you could save yourself a whole lot of trouble by using RtlCopyMemory. The system DMA controller is used exclusively for transferring data to and from ISA bus devices.It also would be the slowest possible way to transfer the contents of a data buffer from one location in RAM to another.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Hesham Desokey
Sent: Wednesday, July 04, 2001 4:10 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Allocating resources in WDM Driver
I am doing a device driver that will use the internal DMA to copy memory from one memory location to another one.
I have succeded to allocate resources by handling the
IRP_MN_FILTER_RESOURCE_REQUIREMENTS .
the problem is when trying to get the DMA adapter object by calling IoGetDmaAdapter BSOD apear with Plug and play manager fault.
thanks in advance
Hesham
----- Original Message -----
From: Gary Little
To: NT Developers Interest List
Sent: Tuesday, July 03, 2001 3:51 AM
Subject: [ntdev] RE: Allocating resources in WDM Driver
If you mean HalAssignSlotResoureces, then you no longer do things that way. WDM provides a lot, if not most, of that information in IRP_MN_START_DEVICE. The Toaster example is a good one to study for that, as well as Oney’s book and examples.
Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com
-----Original Message-----
From: Hesham Desokey [mailto:xxxxx@yahoo.com]
Sent: Tuesday, July 03, 2001 12:39 AM
To: NT Developers Interest List
Subject: [ntdev] Allocating resources in WDM Driver
Hi all
Is there a way to allocate reources in wdm driver like those on NT driver by requesting resources and assigning it
plz help
Hesham
You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@tellink.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com