diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:34 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:34 -0500 |
commit | 6b4924962c49655494d2c8e9d3faab0e349a3062 (patch) | |
tree | 5236d3ef808f8c781b40b7a6328f65fe3f25891b /include/linux/ide.h | |
parent | 7f1ac8c4b9dadc55ec656b368f5f470f2cbe3083 (diff) |
ide: add ->max_sectors field to struct ide_port_info
* Add ->max_sectors field to struct ide_port_info to allow host drivers
to specify value used for hwif->rqsize (if smaller than the default).
* Convert pdc202xx_old to use ->max_sectors and remove no longer needed
IDE_HFLAG_RQSIZE_256 flag.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtyltov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index fc1a966c7b7d..2574dda4a3e7 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1372,8 +1372,6 @@ enum { | |||
1372 | IDE_HFLAG_LEGACY_IRQS = (1 << 21), | 1372 | IDE_HFLAG_LEGACY_IRQS = (1 << 21), |
1373 | /* force use of legacy IRQs */ | 1373 | /* force use of legacy IRQs */ |
1374 | IDE_HFLAG_FORCE_LEGACY_IRQS = (1 << 22), | 1374 | IDE_HFLAG_FORCE_LEGACY_IRQS = (1 << 22), |
1375 | /* limit LBA48 requests to 256 sectors */ | ||
1376 | IDE_HFLAG_RQSIZE_256 = (1 << 23), | ||
1377 | /* use 32-bit I/O ops */ | 1375 | /* use 32-bit I/O ops */ |
1378 | IDE_HFLAG_IO_32BIT = (1 << 24), | 1376 | IDE_HFLAG_IO_32BIT = (1 << 24), |
1379 | /* unmask IRQs */ | 1377 | /* unmask IRQs */ |
@@ -1411,6 +1409,9 @@ struct ide_port_info { | |||
1411 | 1409 | ||
1412 | ide_pci_enablebit_t enablebits[2]; | 1410 | ide_pci_enablebit_t enablebits[2]; |
1413 | hwif_chipset_t chipset; | 1411 | hwif_chipset_t chipset; |
1412 | |||
1413 | u16 max_sectors; /* if < than the default one */ | ||
1414 | |||
1414 | u32 host_flags; | 1415 | u32 host_flags; |
1415 | u8 pio_mask; | 1416 | u8 pio_mask; |
1416 | u8 swdma_mask; | 1417 | u8 swdma_mask; |