Re: howto provide io memory to PCI card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux