[PATCH libpciaccess 1/2 v3] Add map_legacy interface
Julien Cristau
julien at cristau.org
Fri Oct 7 11:15:15 PDT 2011
On Fri, Oct 7, 2011 at 10:18:16 -0700, Jeremy Huddleston wrote:
> +/**
> + * Map the legacy memory space for the PCI domain containing \c dev.
> + *
> + * \param dev Device whose memory region is to be mapped.
> + * \param base Base address of the range to be mapped.
> + * \param size Size of the range to be mapped.
> + * \param write_enable Map for writing (non-zero).
Still write_enable here.
> + * \param addr Location to store the mapped address.
> + *
> + * \returns
> + * Zero on success or an \c errno value on failure.
> + */
> +int
> +pci_device_map_legacy(struct pci_device *dev, pciaddr_t base, pciaddr_t size,
> + unsigned map_flags, void **addr)
> +{
Cheers,
Julien
More information about the xorg-devel
mailing list