/* linux/include/linux/amba/pl330.h1*2* Copyright (C) 2010 Samsung Electronics Co. Ltd.3* Jaswinder Singh <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*/1011#ifndef __AMBA_PL330_H_12#define __AMBA_PL330_H_1314#include <asm/hardware/pl330.h>1516struct dma_pl330_peri {17/*18* Peri_Req i/f of the DMAC that is19* peripheral could be reached from.20*/21u8 peri_id; /* {0, 31} */22enum pl330_reqtype rqtype;2324/* For M->D and D->M Channels */25int burst_sz; /* in power of 2 */26dma_addr_t fifo_addr;27};2829struct dma_pl330_platdata {30/*31* Number of valid peripherals connected to DMAC.32* This may be different from the value read from33* CR0, as the PL330 implementation might have 'holes'34* in the peri list or the peri could also be reached35* from another DMAC which the platform prefers.36*/37u8 nr_valid_peri;38/* Array of valid peripherals */39struct dma_pl330_peri *peri;40/* Bytes to allocate for MC buffer */41unsigned mcbuf_sz;42};4344#endif /* __AMBA_PL330_H_ */454647