Re: Direct I/O to device on PCI card

From: Benjamin David Lunt (spamtrap_at_crayne.org)
Date: 03/08/05


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. 


Relevant Pages

  • Direct I/O to device on PCI card
    ... I am writing a program for direct I/O access to a hard drive in DOS. ... What are the right addresses for accessing the device on a PCI card? ... to(due to difference in architecture of the PCI bus) .. ... here is if I can program a PCI device using the normal IO port ...
    (comp.lang.asm.x86)
  • PCI Multi-Serial Card
    ... I want to develop a PCI Multi-Serial card, and I want to extend four serial ... port from a PCI bus. ... I don't want the Device Manager ...
    (microsoft.public.windowsce.platbuilder)
  • PANIC with linux-next-2.6.26-next-20080718
    ... ACPI: ... ACPI: PM-Timer IO Port: 0x408 ... ACPI: bus type pci registered ... # Device Drivers ...
    (Linux-Kernel)
  • [PATCH]PCI Express Port Bus Driver
    ... A PCI Express Port is a logical PCI-PCI Bridge structure. ... physical device to be handled by only a single driver. ... service drivers will compete for a single PCI-PCI Bridge device. ...
    (Linux-Kernel)
  • 2.6.25.3: serial problem (minicom)
    ... a serial console, which the other reads using the minicom program. ... Allocating PCI resources starting at 10000000 ... system 00:08: iomem range 0xe8000-0xfffff could not be reserved ... SB audio device quirk - increasing port range ...
    (Linux-Kernel)