mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about s3c24xx_dma_addr in kernel ?
@ 2009-02-13  9:16 peter meng
  0 siblings, 0 replies; only message in thread
From: peter meng @ 2009-02-13  9:16 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-kernel


HI

I found never used both the from and to field of s3c24xx_dma_addr in Linux except declare s3c24XX_dma_mappings .

So I want to know why still leave this struct in kernel ? 


Thanks a lot .
Best Regards.
Peter Meng 


struct s3c24xx_dma_addr {
	unsigned long		from;
	unsigned long		to;
};

struct s3c24xx_dma_map {
	const char		*name;
	struct s3c24xx_dma_addr  hw_addr;

	unsigned long		 channels[S3C2410_DMA_CHANNELS];
	unsigned long		 channels_rx[S3C2410_DMA_CHANNELS];
};

static struct s3c24xx_dma_map __initdata s3c2412_dma_mappings[] = {
	[DMACH_XD0] = {
		.name		= "xdreq0",
		.channels	= MAP(S3C2412_DMAREQSEL_XDREQ0),
		.channels_rx	= MAP(S3C2412_DMAREQSEL_XDREQ0),
	},
	[DMACH_XD1] = {
		.name		= "xdreq1",
		.channels	= MAP(S3C2412_DMAREQSEL_XDREQ1),
		.channels_rx	= MAP(S3C2412_DMAREQSEL_XDREQ1),
	},
	[DMACH_SDI] = {
		.name		= "sdi",
		.channels	= MAP(S3C2412_DMAREQSEL_SDI),
		.channels_rx	= MAP(S3C2412_DMAREQSEL_SDI),
		.hw_addr.to	= S3C2410_PA_SDI + S3C2410_SDIDATA,
		.hw_addr.from	= S3C2410_PA_SDI + S3C2410_SDIDATA,
        ..........




      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-13  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13  9:16 Question about s3c24xx_dma_addr in kernel ? peter meng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®