IDE on PowerPC

Does anyone have any hints on how to interface an IDE disc from a PowerPC
(8250) using QNX6.1.0 ?
What we would like to do is to use a Compact Flash Disc in our PowerPC
system.

There are a lot of devb-… drivers (for example eide wiht its io-blk.so,
cam-diskso etc) but no documentation on how to use these towards ‘new’
hardware.

Any hints??

Best regards,
Mats B

Mats Berggrund <mats.berggrund@wavium.se> wrote:

Does anyone have any hints on how to interface an IDE disc from a PowerPC
(8250) using QNX6.1.0 ?
What we would like to do is to use a Compact Flash Disc in our PowerPC
system.

There are a lot of devb-… drivers (for example eide wiht its io-blk.so,
cam-diskso etc) but no documentation on how to use these towards ‘new’
hardware.

Any hints??

Best regards,
Mats B

On non-x86 systems, it is normally necessary to set up the interrupt
subsystem that the IDE interrupts connect to. On a lot of PPC systems,
the IDE interface is via a Southbridge (PCI to ISA bridge) chip, which
contains an IDE controller as one of it’s devices, as well as an 8259
style interrupt controller. The IDE controller may need some manual
setup prior to starting the IDE driver, and the interrupt controller
must also be set up in the startup code. This involves enabling the
PCI controller enough so that the 8259 PIC registers and the IDE
controller registers can be accessed in startup.

For an example of a PPC system that has support for an IDE interface
on a southbridge, take a look at the Sandpoint BSP.

David Green (dgreen@qnx.com)
QNX Software Systems Ltd.
http://www.qnx.com