diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@trik.(none)> | 2004-10-20 21:08:34 +0200 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@trik.(none)> | 2004-10-20 21:08:34 +0200 |
| commit | 2e879618c240b379990b34d2dda709605a5dc6ae (patch) | |
| tree | a657ae3c591754e8428dc9d54c3f9351a8b868e7 /include/linux | |
| parent | f98ac82ac0fb91dd80a506d9c376323b0acb5424 (diff) | |
[ide] always allocate hwif->sg_table
Allocate hwif->sg_table in hwif_init() so it can also be used for PIO.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ide.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index c05eb8673a4e..2fddaa5f5f42 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -920,6 +920,7 @@ typedef struct hwif_s { dma_addr_t dmatable_dma; /* Scatter-gather list used to build the above */ struct scatterlist *sg_table; + int sg_max_nents; /* Maximum number of entries in it */ int sg_nents; /* Current number of entries in it */ int sg_dma_direction; /* dma transfer direction */ |
