diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-13 06:00:54 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-13 06:00:54 -0400 |
commit | 8dcce4081305d3d1629190edd112e6473c315cbc (patch) | |
tree | 343c7167f6a3d2a77b01d50cf54c67bdd6faccd1 /include/linux | |
parent | f3ad116588151b3371ae4e092290e4f48e62b8bb (diff) | |
parent | 103f7033bd0f7b65ff3e0a5ea72449d08010b031 (diff) |
Merge branch 'bp-remove-pc-buf' into for-next
Conflicts:
drivers/ide/ide-tape.c
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ide.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index a6c6a2fad7c8..cdb29b6c195f 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -331,11 +331,6 @@ enum { | |||
331 | PC_FLAG_WRITING = (1 << 6), | 331 | PC_FLAG_WRITING = (1 << 6), |
332 | }; | 332 | }; |
333 | 333 | ||
334 | /* | ||
335 | * With each packet command, we allocate a buffer of IDE_PC_BUFFER_SIZE bytes. | ||
336 | * This is used for several packet commands (not for READ/WRITE commands). | ||
337 | */ | ||
338 | #define IDE_PC_BUFFER_SIZE 64 | ||
339 | #define ATAPI_WAIT_PC (60 * HZ) | 334 | #define ATAPI_WAIT_PC (60 * HZ) |
340 | 335 | ||
341 | struct ide_atapi_pc { | 336 | struct ide_atapi_pc { |
@@ -347,12 +342,6 @@ struct ide_atapi_pc { | |||
347 | 342 | ||
348 | /* bytes to transfer */ | 343 | /* bytes to transfer */ |
349 | int req_xfer; | 344 | int req_xfer; |
350 | /* bytes actually transferred */ | ||
351 | int xferred; | ||
352 | |||
353 | /* data buffer */ | ||
354 | u8 *buf; | ||
355 | int buf_size; | ||
356 | 345 | ||
357 | /* the corresponding request */ | 346 | /* the corresponding request */ |
358 | struct request *rq; | 347 | struct request *rq; |
@@ -363,8 +352,6 @@ struct ide_atapi_pc { | |||
363 | * those are more or less driver-specific and some of them are subject | 352 | * those are more or less driver-specific and some of them are subject |
364 | * to change/removal later. | 353 | * to change/removal later. |
365 | */ | 354 | */ |
366 | u8 pc_buf[IDE_PC_BUFFER_SIZE]; | ||
367 | |||
368 | unsigned long timeout; | 355 | unsigned long timeout; |
369 | }; | 356 | }; |
370 | 357 | ||
@@ -1130,6 +1117,8 @@ void SELECT_MASK(ide_drive_t *, int); | |||
1130 | u8 ide_read_error(ide_drive_t *); | 1117 | u8 ide_read_error(ide_drive_t *); |
1131 | void ide_read_bcount_and_ireason(ide_drive_t *, u16 *, u8 *); | 1118 | void ide_read_bcount_and_ireason(ide_drive_t *, u16 *, u8 *); |
1132 | 1119 | ||
1120 | int ide_check_ireason(ide_drive_t *, struct request *, int, int, int); | ||
1121 | |||
1133 | int ide_check_atapi_device(ide_drive_t *, const char *); | 1122 | int ide_check_atapi_device(ide_drive_t *, const char *); |
1134 | 1123 | ||
1135 | void ide_init_pc(struct ide_atapi_pc *); | 1124 | void ide_init_pc(struct ide_atapi_pc *); |
@@ -1154,7 +1143,8 @@ enum { | |||
1154 | REQ_IDETAPE_WRITE = (1 << 3), | 1143 | REQ_IDETAPE_WRITE = (1 << 3), |
1155 | }; | 1144 | }; |
1156 | 1145 | ||
1157 | int ide_queue_pc_tail(ide_drive_t *, struct gendisk *, struct ide_atapi_pc *); | 1146 | int ide_queue_pc_tail(ide_drive_t *, struct gendisk *, struct ide_atapi_pc *, |
1147 | void *, unsigned int); | ||
1158 | 1148 | ||
1159 | int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *); | 1149 | int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *); |
1160 | int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); | 1150 | int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); |