sorry. i had focused on the
unsigned short device;
member.
Greg KH wrote:
On Wed, May 12, 2010 at 03:10:55PM -0400, Charles Brown wrote:
> Eike,
>
> dma_sync_single_for_cpu() takes a 'struct device *', but the
> device I'm using with pci_alloc_consistent() is a 'struct pci_dev
> *'. where do I get the 'struct device *'? I looked at the pci_dev
> structure, and it doesn't seem to have a pertinent member i can use.
You didn't look that hard:
struct device dev; /* Generic device interface */
is part of struct pci_dev.
> Should I just declare one locally?
No, use the one in struct pci_dev, that's the correct one.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.
-
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html