From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Tyser Date: Mon, 22 Jun 2009 18:12:48 -0500 Subject: [U-Boot] [PATCH 09/11] fsl_dma: Move dma function prototypes to common header file In-Reply-To: <82F81B7F-A4B1-4E1A-BA35-269A0D7C64AF@kernel.crashing.org> References: <2f742ee9c9cc1e9a22be6f6c315f07c0e49cbf01.1242919847.git.ptyser@xes-inc.com> <82F81B7F-A4B1-4E1A-BA35-269A0D7C64AF@kernel.crashing.org> Message-ID: <1245712368.5818.90.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Kumar, > > 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 Most boards won't have CONFIG_FSL_DMA defined, but this file will still be used in the immap_86xx.h files for padding immap_t. I figured most users won't have dma_init() or dmacpy() so the protection wouldn't hurt. Peter