Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93646
b: refs/heads/master
c: 0a79acd
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent 62f022a commit 9596a75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21a3387ddd9eedcf6d4f47e591ffa90128b9f560
refs/heads/master: 0a79acd40d1ee8b6bf217a519eee422ed7e6da6b
34 changes: 7 additions & 27 deletions trunk/drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,37 +838,17 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)
return 1;
}

static int ide_mapped_mmio_dma(ide_hwif_t *hwif, unsigned long base)
{
printk(KERN_INFO " %s: MMIO-DMA ", hwif->name);

return 0;
}

static int ide_iomio_dma(ide_hwif_t *hwif, unsigned long base)
{
printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx",
hwif->name, base, base + 7);

hwif->extra_base = base + (hwif->channel ? 8 : 16);

return 0;
}

static int ide_dma_iobase(ide_hwif_t *hwif, unsigned long base)
{
if (hwif->mmio)
return ide_mapped_mmio_dma(hwif, base);

return ide_iomio_dma(hwif, base);
}

void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
{
u8 dma_stat;

if (ide_dma_iobase(hwif, base))
return;
if (hwif->mmio)
printk(KERN_INFO " %s: MMIO-DMA ", hwif->name);
else
printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx",
hwif->name, base, base + 7);

hwif->extra_base = base + (hwif->channel ? 8 : 16);

if (ide_allocate_dma_engine(hwif)) {
ide_release_dma_engine(hwif);
Expand Down

0 comments on commit 9596a75

Please sign in to comment.