Hello Sir/Madam,
I am new to Windows NT driver development kit.I need to develop a kernel
driver(for a PCI card) which will read/write values to the card.I am able to
detect all the PCI devices attached to the system & also read their
configuration space.Now I need to map the device memory which begins at
0xfafde000 & is of 8KB size to a space in the kernel so that i am able to
access the device by writing into the kernel space using BUFFERED I/O.
Kindly help me to get started on this.
Thanks in advance.
Sachin Anvekar.
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
HalAssignSlotResources will give the physical address, use MmMapIoSpace on it.
Max
----- Original Message -----
From: “Sachin”
To: “NT Developers Interest List”
Sent: Thursday, December 13, 2001 3:56 PM
Subject: [ntdev] Mapping device memory to kernel space
> Hello Sir/Madam,
> I am new to Windows NT driver development kit.I need to develop a kernel
> driver(for a PCI card) which will read/write values to the card.I am able to
> detect all the PCI devices attached to the system & also read their
> configuration space.Now I need to map the device memory which begins at
> 0xfafde000 & is of 8KB size to a space in the kernel so that i am able to
> access the device by writing into the kernel space using BUFFERED I/O.
> Kindly help me to get started on this.
>
> Thanks in advance.
> Sachin Anvekar.
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.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
Hello Max,
Thanks for the prompt reply.
Sachin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Friday, December 14, 2001 5:40 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Mapping device memory to kernel space
HalAssignSlotResources will give the physical address, use MmMapIoSpace on
it.
Max
----- Original Message -----
From: “Sachin”
To: “NT Developers Interest List”
Sent: Thursday, December 13, 2001 3:56 PM
Subject: [ntdev] Mapping device memory to kernel space
> Hello Sir/Madam,
> I am new to Windows NT driver development kit.I need to develop a
kernel
> driver(for a PCI card) which will read/write values to the card.I am able
to
> detect all the PCI devices attached to the system & also read their
> configuration space.Now I need to map the device memory which begins at
> 0xfafde000 & is of 8KB size to a space in the kernel so that i am able to
> access the device by writing into the kernel space using BUFFERED I/O.
> Kindly help me to get started on this.
>
> Thanks in advance.
> Sachin Anvekar.
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@tatainfotech.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
Hello Sir,
I have tried using the functions in the following sequence –
- HalAssignSlotResources()
- HalTranslateBusAddress()
- MmMapIoSpace()
Then I use the base address returned by MmMapIoSpace() to perform a write
operation.
I do not have the hardware to test my code.I would like to know whether i am
in the right track.
Thanks in advance.
Sachin Anvekar
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Friday, December 14, 2001 5:40 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Mapping device memory to kernel space
HalAssignSlotResources will give the physical address, use MmMapIoSpace on
it.
Max
----- Original Message -----
From: “Sachin”
To: “NT Developers Interest List”
Sent: Thursday, December 13, 2001 3:56 PM
Subject: [ntdev] Mapping device memory to kernel space
> Hello Sir/Madam,
> I am new to Windows NT driver development kit.I need to develop a
kernel
> driver(for a PCI card) which will read/write values to the card.I am able
to
> detect all the PCI devices attached to the system & also read their
> configuration space.Now I need to map the device memory which begins at
> 0xfafde000 & is of 8KB size to a space in the kernel so that i am able to
> access the device by writing into the kernel space using BUFFERED I/O.
> Kindly help me to get started on this.
>
> Thanks in advance.
> Sachin Anvekar.
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@tatainfotech.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
For NT4 - yes, you’re on the right track.
For w2k - use the resources from the START IRP and call MmMapIoSpace on them.
Max
----- Original Message -----
From: “Sachin”
To: “NT Developers Interest List”
Sent: Monday, December 24, 2001 12:21 PM
Subject: [ntdev] Re: Mapping device memory to kernel space
> Hello Sir,
> I have tried using the functions in the following sequence –
> - HalAssignSlotResources()
> - HalTranslateBusAddress()
> - MmMapIoSpace()
> Then I use the base address returned by MmMapIoSpace() to perform a write
> operation.
> I do not have the hardware to test my code.I would like to know whether i am
> in the right track.
> Thanks in advance.
> Sachin Anvekar
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Friday, December 14, 2001 5:40 AM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Mapping device memory to kernel space
>
>
> HalAssignSlotResources will give the physical address, use MmMapIoSpace on
> it.
>
> Max
>
> ----- Original Message -----
> From: “Sachin”
> To: “NT Developers Interest List”
> Sent: Thursday, December 13, 2001 3:56 PM
> Subject: [ntdev] Mapping device memory to kernel space
>
>
> > Hello Sir/Madam,
> > I am new to Windows NT driver development kit.I need to develop a
> kernel
> > driver(for a PCI card) which will read/write values to the card.I am able
> to
> > detect all the PCI devices attached to the system & also read their
> > configuration space.Now I need to map the device memory which begins at
> > 0xfafde000 & is of 8KB size to a space in the kernel so that i am able to
> > access the device by writing into the kernel space using BUFFERED I/O.
> > Kindly help me to get started on this.
> >
> > Thanks in advance.
> > Sachin Anvekar.
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@tatainfotech.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.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