From ee288f021ef92c379e363253009617d659acc1ea Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Fri, 18 Apr 2008 00:46:26 +0200 Subject: [PATCH] --- yaml --- r: 89333 b: refs/heads/master c: 8303b46e18b58b2d0257e6842e60b50ac880a6d1 h: refs/heads/master i: 89331: d17ff1a4cbc823177119a407d3861eb3242db5ce v: v3 --- [refs] | 2 +- trunk/include/linux/ide.h | 47 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1cb22c472ba8..8301a7988dfe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 346331f82823682fb5c2df6e827db25d95cc2e92 +refs/heads/master: 8303b46e18b58b2d0257e6842e60b50ac880a6d1 diff --git a/trunk/include/linux/ide.h b/trunk/include/linux/ide.h index 3b691cce00e1..e9b1def1e66a 100644 --- a/trunk/include/linux/ide.h +++ b/trunk/include/linux/ide.h @@ -595,6 +595,53 @@ int set_io_32bit(ide_drive_t *, int); int set_pio_mode(ide_drive_t *, int); int set_using_dma(ide_drive_t *, int); +struct ide_atapi_pc { + /* actual packet bytes */ + u8 c[12]; + /* incremented on each retry */ + int retries; + int error; + + /* bytes to transfer */ + int req_xfer; + /* bytes actually transferred */ + int xferred; + + /* data buffer */ + u8 *buf; + /* current buffer position */ + u8 *cur_pos; + int buf_size; + /* missing/available data on the current buffer */ + int b_count; + + /* the corresponding request */ + struct request *rq; + + unsigned long flags; + + /* + * those are more or less driver-specific and some of them are subject + * to change/removal later. + */ + u8 pc_buf[256]; + void (*idefloppy_callback) (ide_drive_t *); + ide_startstop_t (*idetape_callback) (ide_drive_t *); + + /* idetape only */ + struct idetape_bh *bh; + char *b_data; + + /* idescsi only for now */ + struct scatterlist *sg; + unsigned int sg_cnt; + + struct scsi_cmnd *scsi_cmd; + void (*done) (struct scsi_cmnd *); + + unsigned long timeout; +}; + #ifdef CONFIG_IDE_PROC_FS /* * configurable drive settings