Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82615
b: refs/heads/master
c: cc3a137
h: refs/heads/master
i:
  82613: 9284fa9
  82611: 8d80f85
  82607: 10d2836
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Feb 2, 2008
1 parent b96be3e commit 958479e
Show file tree
Hide file tree
Showing 90 changed files with 2,855 additions and 2,898 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: 9135f1901ee6449dfe338adf6e40e9c2025b8150
refs/heads/master: cc3a1378b4dd45d3e78dd4aeb10641b06a87d614
257 changes: 0 additions & 257 deletions trunk/Documentation/ide/ChangeLog.ide-tape.1995-2002

This file was deleted.

146 changes: 0 additions & 146 deletions trunk/Documentation/ide/ide-tape.txt

This file was deleted.

3 changes: 2 additions & 1 deletion trunk/drivers/ide/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ config BLK_DEV_IDECD_VERBOSE_ERRORS
memory, though.

config BLK_DEV_IDETAPE
tristate "Include IDE/ATAPI TAPE support"
tristate "Include IDE/ATAPI TAPE support (EXPERIMENTAL)"
depends on EXPERIMENTAL
help
If you have an IDE tape drive using the ATAPI protocol, say Y.
ATAPI is a newer protocol used by IDE tape and CD-ROM drives,
Expand Down
20 changes: 1 addition & 19 deletions trunk/drivers/ide/arm/bast-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ static int __init
bastide_register(unsigned int base, unsigned int aux, int irq,
ide_hwif_t **hwif)
{
ide_hwif_t *hwif;
hw_regs_t hw;
int i;
u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };

memset(&hw, 0, sizeof(hw));

Expand All @@ -46,24 +44,8 @@ bastide_register(unsigned int base, unsigned int aux, int irq,
hw.io_ports[IDE_CONTROL_OFFSET] = aux + (6 * 0x20);
hw.irq = irq;

hwif = ide_deprecated_find_port(hw.io_ports[IDE_DATA_OFFSET]);
if (hwif == NULL)
goto out;
ide_register_hw(&hw, NULL, hwif);

i = hwif->index;

if (hwif->present)
ide_unregister(i, 0, 0);
else if (!hwif->hold)
ide_init_port_data(hwif, i);

ide_init_port_hw(hwif, &hw);
hwif->quirkproc = NULL;

idx[0] = i;

ide_device_add(idx, NULL);
out:
return 0;
}

Expand Down
25 changes: 12 additions & 13 deletions trunk/drivers/ide/arm/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ static void icside_dma_lost_irq(ide_drive_t *drive)

static void icside_dma_init(ide_hwif_t *hwif)
{
hwif->mwdma_mask = 7; /* MW0..2 */
hwif->swdma_mask = 7; /* SW0..2 */

hwif->dmatable_cpu = NULL;
hwif->dmatable_dma = 0;
hwif->set_dma_mode = icside_set_dma_mode;
Expand Down Expand Up @@ -456,19 +459,11 @@ icside_register_v5(struct icside_state *state, struct expansion_card *ec)

idx[0] = hwif->index;

ide_device_add(idx, NULL);
ide_device_add(idx);

return 0;
}

static const struct ide_port_info icside_v6_port_info __initdata = {
.host_flags = IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_DMA | /* no SFF-style DMA */
IDE_HFLAG_NO_AUTOTUNE,
.mwdma_mask = ATA_MWDMA2,
.swdma_mask = ATA_SWDMA2,
};

static int __init
icside_register_v6(struct icside_state *state, struct expansion_card *ec)
{
Expand All @@ -477,7 +472,6 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
unsigned int sel = 0;
int ret;
u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
struct ide_port_info d = icside_v6_port_info;

ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);
if (!ioc_base) {
Expand Down Expand Up @@ -527,25 +521,30 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
state->hwif[1] = mate;

hwif->maskproc = icside_maskproc;
hwif->channel = 0;
hwif->hwif_data = state;
hwif->mate = mate;
hwif->serialized = 1;
hwif->config_data = (unsigned long)ioc_base;
hwif->select_data = sel;

mate->maskproc = icside_maskproc;
mate->channel = 1;
mate->hwif_data = state;
mate->mate = hwif;
mate->serialized = 1;
mate->config_data = (unsigned long)ioc_base;
mate->select_data = sel | 1;

if (ec->dma != NO_DMA && !request_dma(ec->dma, hwif->name)) {
icside_dma_init(hwif);
icside_dma_init(mate);
} else
d.mwdma_mask = d.swdma_mask = 0;
}

idx[0] = hwif->index;
idx[1] = mate->index;

ide_device_add(idx, &d);
ide_device_add(idx);

return 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/arm/ide_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static int __init ide_arm_init(void)
ide_init_port_hw(hwif, &hw);
idx[0] = hwif->index;

ide_device_add(idx, NULL);
ide_device_add(idx);
}

return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ide/arm/rapide.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)

idx[0] = hwif->index;

ide_device_add(idx, NULL);
ide_device_add(idx);

ecard_set_drvdata(ec, hwif);
goto out;
Expand All @@ -76,7 +76,7 @@ static void __devexit rapide_remove(struct expansion_card *ec)

ecard_set_drvdata(ec, NULL);

ide_unregister(hwif->index, 0, 0);
ide_unregister(hwif->index);

ecard_release_resources(ec);
}
Expand Down
24 changes: 13 additions & 11 deletions trunk/drivers/ide/cris/ide-cris.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,15 +753,6 @@ static void cris_set_dma_mode(ide_drive_t *drive, const u8 speed)
cris_ide_set_speed(TYPE_DMA, 0, strobe, hold);
}

static const struct ide_port_info cris_port_info __initdata = {
.chipset = ide_etrax100,
.host_flags = IDE_HFLAG_NO_ATAPI_DMA |
IDE_HFLAG_NO_DMA, /* no SFF-style DMA */
.pio_mask = ATA_PIO4,
.udma_mask = cris_ultra_mask,
.mwdma_mask = ATA_MWDMA2,
};

static int __init init_e100_ide(void)
{
hw_regs_t hw;
Expand Down Expand Up @@ -789,6 +780,7 @@ static int __init init_e100_ide(void)
ide_init_port_data(hwif, hwif->index);
ide_init_port_hw(hwif, &hw);
hwif->mmio = 1;
hwif->chipset = ide_etrax100;
hwif->set_pio_mode = &cris_set_pio_mode;
hwif->set_dma_mode = &cris_set_dma_mode;
hwif->ata_input_data = &cris_ide_input_data;
Expand All @@ -807,6 +799,12 @@ static int __init init_e100_ide(void)
hwif->INB = &cris_ide_inb;
hwif->INW = &cris_ide_inw;
hwif->cbl = ATA_CBL_PATA40;
hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
hwif->pio_mask = ATA_PIO4,
hwif->drives[0].autotune = 1;
hwif->drives[1].autotune = 1;
hwif->ultra_mask = cris_ultra_mask;
hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */

idx[h] = hwif->index;
}
Expand All @@ -822,7 +820,7 @@ static int __init init_e100_ide(void)
cris_ide_set_speed(TYPE_DMA, 0, ATA_DMA2_STROBE, ATA_DMA2_HOLD);
cris_ide_set_speed(TYPE_UDMA, ATA_UDMA2_CYC, ATA_UDMA2_DVS, 0);

ide_device_add(idx, &cris_port_info);
ide_device_add(idx);

return 0;
}
Expand Down Expand Up @@ -1034,7 +1032,11 @@ static int cris_dma_setup(ide_drive_t *drive)

static void cris_dma_exec_cmd(ide_drive_t *drive, u8 command)
{
ide_execute_command(drive, command, &cris_dma_intr, WAIT_CMD, NULL);
/* set the irq handler which will finish the request when DMA is done */
ide_set_handler(drive, &cris_dma_intr, WAIT_CMD, NULL);

/* issue cmd to drive */
cris_ide_outb(command, IDE_COMMAND_REG);
}

static void cris_dma_start(ide_drive_t *drive)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/h8300/ide-h8300.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int __init h8300_ide_init(void)

idx[0] = index;

ide_device_add(idx, NULL);
ide_device_add(idx);

return 0;

Expand Down
Loading

0 comments on commit 958479e

Please sign in to comment.