Port-ofppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pci_attach_hook() tweaks



Tim Rightnour wrote:

> Relevant section of the vt8231 chipset docs pasted below.
> [...]

Hmm... are you sure this is from the VT8231 chipset docs? I found something
called VT8231.pdf - "VT8231 South Bridge, Revision 1.85". The register
offset 0x4A has a completely different meaning there. The IDE interrupt
routing register exists though, at a different offset:

---8<---
Offset 4C - IDE Interrupt Routing..................................RW
  7-6 I/O Recovery Time
          00 1 BCLK..................................................default
          01 2 BCLKs
          10 4 BCLKs
          11 8 BCLKs
  5-4 Reserved (do not program)..................... default = 0
  3-2 IDE Secondary Channel IRQ Routing
          00 -reserved-
          01 IRQ15 ....................................................default
          10 -reserved-
          11 -reserved-
  1-0 IDE Primary Channel IRQ Routing
          00 IRQ14 ....................................................default
          01 -reserved-
          10 -reserved-
          11 -reserved-
---8<---

You cannot change the IRQ on a VT8231-IDE. It is fixed! I tried it
nevertheless - without success.


While reading the doc, I found other interesting facts.

1. We don't need to clear the interrupt pin register (0x3d) of the IDE
   controller. This is a read-only register, which is 0 in legacy mode and 1
   in native mode.

2. The IDE configuration register 2 at 0x42 is another place to select
   native/compatibility mode (bit 7 and 6 are set for native).

So I made another test and cleared the bits in 0x09 *and* 0x42. But again,
the controller was dead! :(


I wonder if anybody ever configured a VT8231-IDE controller to work in
native mode (I have an Epia, which works in compatibility mode)? This seems
to be impossible when the hardware insists on using two separate IRQs. Or is
it more a shortcoming of NetBSD's pciide code, which is not prepated for it?

-- 
    _  Frank Wille (frank%phoenix.owl.de@localhost)
 _ //  http://sun.hasenbraten.de/~frank/
 \X/   Phx @ #AmigaGer




Home | Main Index | Thread Index | Old Index