diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:47 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:47 -0400 |
commit | bf717c0a2e18dbe82eeb28e57b0abede3cdf45d6 (patch) | |
tree | 98d209372f0fed08fca6c4936677ee09cf435209 /include/linux/ide.h | |
parent | 35b5d0be3d8de9a5ac51471c12029fb115200cdc (diff) |
ide: keep track of number of bytes instead of sectors in struct ide_cmd
* Pass number of bytes instead of sectors to ide_init_sg_cmd().
* Pass number of bytes to process to ide_pio_sector() and rename
it to ide_pio_bytes().
* Rename ->nsect field to ->nbytes in struct ide_cmd and use
->nbytes, ->nleft and ->cursg_ofs to keep track of number of
bytes instead of sectors.
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 2d0c7afd5e58..d5d832271f44 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -350,7 +350,7 @@ struct ide_cmd { | |||
350 | int orig_sg_nents; | 350 | int orig_sg_nents; |
351 | int sg_dma_direction; /* DMA transfer direction */ | 351 | int sg_dma_direction; /* DMA transfer direction */ |
352 | 352 | ||
353 | unsigned int nsect; | 353 | unsigned int nbytes; |
354 | unsigned int nleft; | 354 | unsigned int nleft; |
355 | struct scatterlist *cursg; | 355 | struct scatterlist *cursg; |
356 | unsigned int cursg_ofs; | 356 | unsigned int cursg_ofs; |
@@ -1409,7 +1409,7 @@ int ide_pci_resume(struct pci_dev *); | |||
1409 | #endif | 1409 | #endif |
1410 | 1410 | ||
1411 | void ide_map_sg(ide_drive_t *, struct ide_cmd *); | 1411 | void ide_map_sg(ide_drive_t *, struct ide_cmd *); |
1412 | void ide_init_sg_cmd(struct ide_cmd *, int); | 1412 | void ide_init_sg_cmd(struct ide_cmd *, unsigned int); |
1413 | 1413 | ||
1414 | #define BAD_DMA_DRIVE 0 | 1414 | #define BAD_DMA_DRIVE 0 |
1415 | #define GOOD_DMA_DRIVE 1 | 1415 | #define GOOD_DMA_DRIVE 1 |