Re: Direct I/O to device on PCI card
From: Benjamin David Lunt (spamtrap_at_crayne.org)
Date: 03/08/05
- Next message: Matt: "Re: C inline assembler & accessing constants"
- Previous message: arizvi: "Re: Direct I/O to device on PCI card"
- In reply to: arizvi: "Direct I/O to device on PCI card"
- Next in thread: arizvi: "Re: Direct I/O to device on PCI card"
- Reply: arizvi: "Re: Direct I/O to device on PCI card"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 8 Mar 2005 20:03:32 +0000 (UTC)
"arizvi" <spamtrap@crayne.org> wrote in message
news:1110225519.581918.83850@z14g2000cwz.googlegroups.com...
> Hi,
>
> I am writing a program for direct I/O access to a hard drive in DOS. I
> am able to read/write to the hard drive as long as it is connected
> directly to the motherboard (which I believe is the ISA bus) using IO
> addresses 0x1F0 and 0x170. However, if I attach the drive through a PCI
> card, I am not able to address the drive.
> What are the right addresses for accessing the device on a PCI card? Is
> programming for the PCI bus different from the programming I am used
> to( due to difference in architecture of the PCI bus) .. my question
> here is if I can program a PCI device using the normal IO port
> addresses as before??
>
> Thanks
> Ahmad
Unless memory serves me wrong, as long as the bios sets up
the PCI card(s) at boot up, port io to said ports is ISA/PCI
independent. Both are accessed the same.
If the BIOS doesn't set it up for you, you have to set the
address in the PCI config space. IIRC, you also have to set
a flag for "legacy" support. Or was it called "compatible mode"
support. I will have to look at my notes more closely to
find out.
If you need the info, let me know.
Ben
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Forever Young Software http://www.frontiernet.net/~fys/index.htm To reply by email, please remove the zzzzzz's Batteries not included, Some assembly required.
- Next message: Matt: "Re: C inline assembler & accessing constants"
- Previous message: arizvi: "Re: Direct I/O to device on PCI card"
- In reply to: arizvi: "Direct I/O to device on PCI card"
- Next in thread: arizvi: "Re: Direct I/O to device on PCI card"
- Reply: arizvi: "Re: Direct I/O to device on PCI card"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|