RES: Re: Sending data to an I/O port

Dear Don,

Thanks ! I will look at that

Regards,

Antonio

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Don Burn
Enviada em: sábado, julho 26, 2003 10:03
Para: Windows System Software Developers Interest List
Assunto: [ntdev] Re: Sending data to an I/O port

If you have the latest DDK, look at the portio example. It is a driver and
an application for reading/writing a set of ports on a system. Also, while
I have not tried this on XP, Dr. Dobbs Journal in May 1995 had a driver
called direct IO that will allow to use outp instructions to a specified
range of ports for an application.

Note, neither of these is a method that should be used for a commecial
product. For that you will need a good WDM driver.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: “Antonio Fasano”
To: “Windows System Software Developers Interest List”
Sent: Saturday, July 26, 2003 8:52 AM
Subject: [ntdev] Sending data to an I/O port

> I am a C++ / Visual Basic programmer. The world of device drivers is new
> for me. By the way, I have never seen a cookbook on WDM’s. Which is a
> pity, because for a beginner, being able to have a good overview of things
> is better than diving into complex subjects as IRP’s DAC’s etc…at the
> beginning.
>
> I am trying to output a byte value to an IO port of my computer. I have
> developed an ISA board and I need to send some bytes to that board.
>
> On windows 95 there is the Outp_ instruction that can do what I need.
>
> Now on windows XP, I need a set of commands to access a device driver so
> that I can output a byte to an address on the PC’s I/O space.
>
> I have installed the WINDOWS DDK and I have been looking throught the
> samples. I have found no good and straightforward information on how to do
> it.
>
> How can I find a good example on the commands I have to issue from my C++
> application and how to define a device driver that can do what I need ?
> Where can I find it ? Is there any sample driver that can do it ? How am
> I suppose to register it with the .inf file. How to access it from within
> the C++ code ? Where can I find a direct and straightforward example for
> that ?
>
> Thanks and best regards,
>
> Antonio Fasano
> Brazil
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@acm.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omnitek.com.br
To unsubscribe send a blank email to xxxxx@lists.osr.com

If you want to start right away, you can use something that is based on the DirectIO sample from DDJ May 1996 from Dale Roberts. See
www.qualitysoftware.tk and go for “I/O Port Access …”. Never use this way of IO Port access in commercial products. It will drag
you and your company into the drain of “the big incompetents”. :slight_smile:

Christiaan

----- Original Message -----
From: “Antonio Fasano”
To: “Windows System Software Developers Interest List”
Sent: Saturday, July 26, 2003 2:52 PM
Subject: [ntdev] Sending data to an I/O port

> I am a C++ / Visual Basic programmer. The world of device drivers is new
> for me. By the way, I have never seen a cookbook on WDM’s. Which is a
> pity, because for a beginner, being able to have a good overview of things
> is better than diving into complex subjects as IRP’s DAC’s etc…at the
> beginning.
>
> I am trying to output a byte value to an IO port of my computer. I have
> developed an ISA board and I need to send some bytes to that board.
>
> On windows 95 there is the Outp_ instruction that can do what I need.
>
> Now on windows XP, I need a set of commands to access a device driver so
> that I can output a byte to an address on the PC’s I/O space.
>
> I have installed the WINDOWS DDK and I have been looking throught the
> samples. I have found no good and straightforward information on how to do
> it.
>
> How can I find a good example on the commands I have to issue from my C++
> application and how to define a device driver that can do what I need ?
> Where can I find it ? Is there any sample driver that can do it ? How am
> I suppose to register it with the .inf file. How to access it from within
> the C++ code ? Where can I find a direct and straightforward example for
> that ?
>
> Thanks and best regards,
>
> Antonio Fasano
> Brazil
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Dear Christiaan

I will look into that !! Thanks !!

Antonio

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]Em nome de Christiaan
Ghijselinck
Enviada em: sábado, julho 26, 2003 10:38
Para: Windows System Software Developers Interest List
Assunto: [ntdev] Re: Sending data to an I/O port

If you want to start right away, you can use something that is based on the
DirectIO sample from DDJ May 1996 from Dale Roberts. See
www.qualitysoftware.tk and go for “I/O Port Access …”. Never use this way
of IO Port access in commercial products. It will drag
you and your company into the drain of “the big incompetents”. :slight_smile:

Christiaan

----- Original Message -----
From: “Antonio Fasano”
To: “Windows System Software Developers Interest List”
Sent: Saturday, July 26, 2003 2:52 PM
Subject: [ntdev] Sending data to an I/O port

> I am a C++ / Visual Basic programmer. The world of device drivers is new
> for me. By the way, I have never seen a cookbook on WDM’s. Which is a
> pity, because for a beginner, being able to have a good overview of things
> is better than diving into complex subjects as IRP’s DAC’s etc…at the
> beginning.
>
> I am trying to output a byte value to an IO port of my computer. I have
> developed an ISA board and I need to send some bytes to that board.
>
> On windows 95 there is the Outp_ instruction that can do what I need.
>
> Now on windows XP, I need a set of commands to access a device driver so
> that I can output a byte to an address on the PC’s I/O space.
>
> I have installed the WINDOWS DDK and I have been looking throught the
> samples. I have found no good and straightforward information on how to do
> it.
>
> How can I find a good example on the commands I have to issue from my C++
> application and how to define a device driver that can do what I need ?
> Where can I find it ? Is there any sample driver that can do it ? How am
> I suppose to register it with the .inf file. How to access it from within
> the C++ code ? Where can I find a direct and straightforward example for
> that ?
>
> Thanks and best regards,
>
> Antonio Fasano
> Brazil
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omnitek.com.br
To unsubscribe send a blank email to xxxxx@lists.osr.com