aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 03dc2157a2b5..bba2f73b99a0 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -724,6 +724,12 @@ enum {
724 PC_FLAG_TIMEDOUT = (1 << 7), 724 PC_FLAG_TIMEDOUT = (1 << 7),
725}; 725};
726 726
727/*
728 * With each packet command, we allocate a buffer of IDE_PC_BUFFER_SIZE bytes.
729 * This is used for several packet commands (not for READ/WRITE commands).
730 */
731#define IDE_PC_BUFFER_SIZE 256
732
727struct ide_atapi_pc { 733struct ide_atapi_pc {
728 /* actual packet bytes */ 734 /* actual packet bytes */
729 u8 c[12]; 735 u8 c[12];
@@ -753,7 +759,7 @@ struct ide_atapi_pc {
753 * those are more or less driver-specific and some of them are subject 759 * those are more or less driver-specific and some of them are subject
754 * to change/removal later. 760 * to change/removal later.
755 */ 761 */
756 u8 pc_buf[256]; 762 u8 pc_buf[IDE_PC_BUFFER_SIZE];
757 763
758 /* idetape only */ 764 /* idetape only */
759 struct idetape_bh *bh; 765 struct idetape_bh *bh;
@@ -1113,6 +1119,8 @@ void ide_pktcmd_tf_load(ide_drive_t *, u32, u16, u8);
1113 1119
1114int ide_check_atapi_device(ide_drive_t *, const char *); 1120int ide_check_atapi_device(ide_drive_t *, const char *);
1115 1121
1122void ide_init_pc(struct ide_atapi_pc *);
1123
1116ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc, 1124ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc,
1117 ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry, 1125 ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry,
1118 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *), 1126 void (*update_buffers)(ide_drive_t *, struct ide_atapi_pc *),