Allocating resources to isab children

Henrik Brix Andersen brix at FreeBSD.org
Sat Mar 12 19:48:04 UTC 2011


On Mar 12, 2011, at 19:49, Henrik Brix Andersen wrote:
> I am writing a driver for the GPIO part of the AMD CS5536 south bridge (isab0), but have encountered a problem with resource allocation.
> The GPIO address (0x6100-0x61FF) is available through PCI BAR 1 as seen in the output from pciconf(8):
> 
> isab0 at pci0:0:15:0:	class=0x060100 card=0x20901022 chip=0x20901022 rev=0x03 hdr=0x00
>    vendor     = 'Advanced Micro Devices (AMD)'
>    device     = 'CS5536 [Geode companion] ISA'
>    class      = bridge
>    subclass   = PCI-ISA
>    bar   [10] = type I/O Port, range 32, base 0x6000, size  8, enabled
>    bar   [14] = type I/O Port, range 32, base 0x6100, size 256, enabled
>    bar   [18] = type I/O Port, range 32, base 0x6200, size 64, enabled
>    bar   [20] = type I/O Port, range 32, base 0x9d00, size 128, enabled
>    bar   [24] = type I/O Port, range 32, base 0x9c00, size 64, enabled
> 
> However, when I try to allocate the I/O port resource in the minimalistic example below, I always get 0x1100-0x1100, not 0x6100-0x61FF?
> 
> I have modelled the code after recommendation from John Baldwin in http://lists.freebsd.org/pipermail/freebsd-acpi/2007-August/003964.html but I must be doing something wrong...

Ahh, I just re-read Johns recommendation and realized that isab does not support proxying resource allocations (yet). I will try adding that functionality and report back.

Brix
-- 
Henrik Brix Andersen <brix at FreeBSD.org>



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-drivers/attachments/20110312/e61b2c6b/PGP.pgp


More information about the freebsd-drivers mailing list