Re: Resources and ACPI



takawata@xxxxxxxxxxxxxx wrote:

and when the device is kldload'ed you get :-

----
jnet0: <JNet Ethernet System Interface> port 0xa8,0xae-0xaf irq 19 on
acpi0
----

are these resources automagically allocated for me? Or do I have to
allocate them myself?

You have to allocate the resource.

Ok cool, but how do I get the resource list from acpi to allocated them then? Other than having an array of ioports and irqs, is there a way to get this information from acpi?

I've done an acpidump and indeed the are _CRS and _PRS ResourceTemplates that describe the io and irq requirements perfectly. How do I access this data? ACPI seems to have very little documentation and nothing else seems to get resource lists (except fdc_acpi.c and uart_bus_acpi.c which don't seem to be complete. ACPI_EVALUATE_OBJECT?!?)

Thanks,
Alan.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?
    ... But there is also a performance penalty for legitimate I/O access, ... I thought Rudolf's patch allocated the resource in the driver ... Since ACPI never *really* wants to allocate the ... In fact Rudolf's solution is nice for LPC chips, ...
    (Linux-Kernel)
  • Re: NdisQueryBufferSafe question
    ... Yes it is normal to have a chained buffer of length zero. ... If the call fails, the worst that can happen is ... failure to allocate resources could be far more devastating. ... Don't bother with queuing because that could make the low resource situation ...
    (microsoft.public.development.device.drivers)
  • [patch 2.6.13-rc2] yet another fix for setup-bus.c/x86 merge
    ... x86 PCI setup wrt which recourses are invalid vs resources that are ... Precisely, in the setup-bus.c, if we failed to allocate some resource, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: newbus ioport usage
    ... :>: immediately allocate it to the child. ... Why not just allocate it in acpi0? ... :> the child and takes it out of its resource manager. ... :> These resource ranges are there to be used by acpi, ...
    (freebsd-arch)
  • Re: newbus ioport usage
    ... :>: whether you can use the resource in question. ... It is a form of resource enumeration that belongs to ACPI. ... :> PCI code assigning resources based on the BARs that a child has. ... :> have all the acpi_foo devices allocate out of that reserveation. ...
    (freebsd-arch)