* [RFC/Patch] ppc4xx_dma.c
@ 2002-07-23 19:10 akuster
2002-07-24 21:11 ` akuster
0 siblings, 1 reply; 2+ messages in thread
From: akuster @ 2002-07-23 19:10 UTC (permalink / raw)
To: linuxppc-dev
While working on an ocp ide driver using the DMA channel with
mtdcr/mfdcr calls , it became clear to me that some changes need to
occur in the ppc4xx_dma.c code.
1) I moved the scatter/gather code used by the 440GP, 405gp, np405l and
np405h to a separate file (ppc4xx_sgdma.c) and is now built when one of
those cpus are configured.
2) I moved the inline api out of /asm-ppc/ppc4xx_dma.h to either
ppc4xx_sgdam.c or ppc4xx_dma.c
3) I needed to add a few more api's for the stbx25xxx and am in the
process of determining if those need to go into a ppc4xxx_stbdma.c file.
int clr_dma_status(unsigned int dmanr)
int map_dma_port(unsigned int dmanr, unsigned int ocp_dma,short dma_chan)
int disable_dma_port(unsigned int dmanr, unsigned int ocp_dma,short
dma_chan)
and possible more to follow
The common API's will stay in /kernel/ppc4xx_dma.c and the common
defines in asm-ppc/ppc4xx_dma.h
armin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC/Patch] ppc4xx_dma.c
2002-07-23 19:10 [RFC/Patch] ppc4xx_dma.c akuster
@ 2002-07-24 21:11 ` akuster
0 siblings, 0 replies; 2+ messages in thread
From: akuster @ 2002-07-24 21:11 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]
akuster wrote:
>
> While working on an ocp ide driver using the DMA channel with
> mtdcr/mfdcr calls , it became clear to me that some changes need to
> occur in the ppc4xx_dma.c code.
>
> 1) I moved the scatter/gather code used by the 440GP, 405gp, np405l and
> np405h to a separate file (ppc4xx_sgdma.c) and is now built when one of
> those cpus are configured.
>
> 2) I moved the inline api out of /asm-ppc/ppc4xx_dma.h to either
> ppc4xx_sgdam.c or ppc4xx_dma.c
>
> 3) I needed to add a few more api's for the stbx25xxx and am in the
> process of determining if those need to go into a ppc4xxx_stbdma.c file.
>
> int clr_dma_status(unsigned int dmanr)
>
> int map_dma_port(unsigned int dmanr, unsigned int ocp_dma,short dma_chan)
>
> int disable_dma_port(unsigned int dmanr, unsigned int ocp_dma,short
> dma_chan)
>
> and possible more to follow
>
> The common API's will stay in /kernel/ppc4xx_dma.c and the common
> defines in asm-ppc/ppc4xx_dma.h
>
> armin
>
>
>
>
>
Here is the patch for you to look at in two forms. I ended up creating a
separate file for the STBxxxx family.
If there are no objections , then I will get it submitted.
let em know
[-- Attachment #2: dma_0724.patch.gz --]
[-- Type: application/x-gunzip, Size: 13570 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-24 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-23 19:10 [RFC/Patch] ppc4xx_dma.c akuster
2002-07-24 21:11 ` akuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).