Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68569
b: refs/heads/master
c: b9d9e61
h: refs/heads/master
i:
  68567: 5877719
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 13, 2007
1 parent 7861773 commit d1fe548
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 7bda292d12795877ade9a7ccc044a7bb0ea8e8b4
refs/heads/master: b9d9e61abb85ecf4e4aa55328b21eac17840a3fb
16 changes: 10 additions & 6 deletions trunk/drivers/ide/pci/sgiioc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,6 @@ static void __devinit
ide_init_sgiioc4(ide_hwif_t * hwif)
{
hwif->mmio = 1;
hwif->atapi_dma = 1;
hwif->mwdma_mask = 0x04;
hwif->pio_mask = 0x00;
hwif->set_pio_mode = NULL; /* Sets timing for PIO mode */
hwif->set_dma_mode = &sgiioc4_set_dma_mode;
Expand All @@ -602,6 +600,14 @@ ide_init_sgiioc4(ide_hwif_t * hwif)
hwif->quirkproc = NULL;
hwif->busproc = NULL;

hwif->INB = &sgiioc4_INB;

if (hwif->dma_base == 0)
return;

hwif->atapi_dma = 1;
hwif->mwdma_mask = 0x04;

hwif->dma_setup = &sgiioc4_ide_dma_setup;
hwif->dma_start = &sgiioc4_ide_dma_start;
hwif->ide_dma_end = &sgiioc4_ide_dma_end;
Expand All @@ -613,8 +619,6 @@ ide_init_sgiioc4(ide_hwif_t * hwif)
hwif->dma_host_off = &sgiioc4_dma_host_off;
hwif->dma_lost_irq = &sgiioc4_dma_lost_irq;
hwif->dma_timeout = &ide_dma_timeout;

hwif->INB = &sgiioc4_INB;
}

static int __devinit
Expand Down Expand Up @@ -684,8 +688,6 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
/* Initializing chipset IRQ Registers */
writel(0x03, (void __iomem *)(irqport + IOC4_INTR_SET * 4));

ide_init_sgiioc4(hwif);

hwif->autodma = 0;

if (dma_base && ide_dma_sgiioc4(hwif, dma_base) == 0) {
Expand All @@ -695,6 +697,8 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
printk(KERN_INFO "%s: %s Bus-Master DMA disabled\n",
hwif->name, DRV_NAME);

ide_init_sgiioc4(hwif);

if (probe_hwif_init(hwif))
return -EIO;

Expand Down

0 comments on commit d1fe548

Please sign in to comment.