Re: How to allocate PCI bus address space?

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Tue May 30 2000 - 16:59:23 EST


Timur Tabi wrote:
>
> ** Reply to message from Jeff Garzik <jgarzik@mandrakesoft.com> on Tue, 30 May
> 2000 16:21:20 -0400
>
> > For 2.3.x there is infrastructure in place for a precise allocation, and
> > example code exists in the kernel for this.
>
> Can you be more specific? I'm very interested in this, but without more
> information, I don't know where to look in the kernel for the example.

Mainly read kernel/resource.c and drivers/pci/*.c and
drivers/pci/{pci-socket,yenta,cardbus}.c ...

Also Documentation/pci.txt.

For allocations from devices which the kernel already knows about,
simply call request_region() or request_mem_region() and check the
result for a non-NULL value.

        Jeff

-- 
Jeff Garzik              | Liberty is always dangerous, but
Building 1024            | it is the safest thing we have.
MandrakeSoft, Inc.       |      -- Harry Emerson Fosdick

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:25 EST