Thread (17 messages) 17 messages, 3 authors, 2010-03-20

Re: [PATCH v5 08/10] wii: add mem2 dma mapping ops

From: Albert Herranz <hidden>
Date: 2010-03-20 00:58:13

Konrad Rzeszutek Wilk wrote:
quoted
+/*
+ * The mem2_dma "device".
+ *
+ * This device "owns" a pool of coherent MEM2 memory that can be shared among
+ * several devices requiring MEM2 DMA buffers, instead of dedicating specific
+ * pools for each device.
+ *
+ * A device can use the shared coherent MEM2 memory pool by calling
+ * wii_set_mem2_dma_constraints().
+ *
+ */
+
+struct mem2_dma {
+	struct platform_device *pdev;
+
The space there isn't neccessary.
Yes. Having it or not is just a matter of formatting style taste.
quoted
+	dma_addr_t dma_base;
I think you need only one of them. You don't seem to use 'base'
quoted
+	void *base;
+	size_t size;
+};
I can even get rid of the whole struct mem2_dma and just use a struct platform_device now that there's no mem2_dma_exit() function.
I'll do that on the next iteration.

Thanks for your comments.

Cheers,
Albert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help