LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* removing addr_needs_map in struct dma_mapping_ops
@ 2009-07-10  1:47 FUJITA Tomonori
  2009-07-13 21:50 ` Becky Bruce
  0 siblings, 1 reply; 6+ messages in thread
From: FUJITA Tomonori @ 2009-07-10  1:47 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linux-kernel

I'm trying to convert POWERPC to use asm-generic/dma-mapping-common.h.

POWERPC needs addr_needs_map() in struct dma_mapping_ops for SWIOTLB
support but I want to avoid add addr_needs_map() in struct
dma_map_ops. IIRC, you guys think it as a temporary solution and
talked about defining something like struct dma_data. Then we could

struct dev_archdata {
       ...

       struct dma_data *ddata;
};

or

struct dev_archdata {
       ...

       struct dma_data ddata;
};


struct dma_data needs dma_direct_offset, iommu_table, dma_base, and
dma_window_size, anything else?


Is it acceptable?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-23 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10  1:47 removing addr_needs_map in struct dma_mapping_ops FUJITA Tomonori
2009-07-13 21:50 ` Becky Bruce
2009-07-14  0:49   ` FUJITA Tomonori
2009-07-15 23:59     ` Becky Bruce
2009-07-23  7:09       ` FUJITA Tomonori
2009-07-23 15:44         ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox