[U-Boot] [PATCH 09/11] fsl_dma: Move dma function prototypes to common header file

Kumar Gala galak at kernel.crashing.org
Fri Jun 12 16:41:42 CEST 2009


On May 21, 2009, at 12:10 PM, Peter Tyser wrote:

> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
> cpu/mpc85xx/ddr-gen1.c    |    4 ----
> include/asm-ppc/fsl_dma.h |    5 +++++
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/cpu/mpc85xx/ddr-gen1.c b/cpu/mpc85xx/ddr-gen1.c
> index 7c7a458..6e628bd 100644
> --- a/cpu/mpc85xx/ddr-gen1.c
> +++ b/cpu/mpc85xx/ddr-gen1.c
> @@ -66,10 +66,6 @@ void fsl_ddr_set_memctl_regs(const  
> fsl_ddr_cfg_regs_t *regs,
> }
>
> #if defined(CONFIG_DDR_ECC) && ! 
> defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
> -extern void dma_init(void);
> -extern uint dma_check(void);
> -extern int dmacpy(void *dest, const void *src, size_t n);
> -
> /*
>  * Initialize all of memory for ECC, then enable errors.
>  */
> diff --git a/include/asm-ppc/fsl_dma.h b/include/asm-ppc/fsl_dma.h
> index c9ec6b5..06ecdcd 100644
> --- a/include/asm-ppc/fsl_dma.h
> +++ b/include/asm-ppc/fsl_dma.h
> @@ -94,4 +94,9 @@ typedef struct fsl_dma {
> 	char	res4[56];
> } fsl_dma_t;
>
> +#ifdef CONFIG_FSL_DMA
> +void dma_init(void);
> +int dmacpy(void *dest, const void *src, size_t n);
> +#endif
> +

#ifdef protection here seems kinda pointless

- k


More information about the U-Boot mailing list