diff options
Diffstat (limited to 'drivers/scsi/esp_scsi.h')
-rw-r--r-- | drivers/scsi/esp_scsi.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h index d5576d54ce76..bb43a1388188 100644 --- a/drivers/scsi/esp_scsi.h +++ b/drivers/scsi/esp_scsi.h | |||
@@ -224,7 +224,7 @@ | |||
224 | #define ESP_TIMEO_CONST 8192 | 224 | #define ESP_TIMEO_CONST 8192 |
225 | #define ESP_NEG_DEFP(mhz, cfact) \ | 225 | #define ESP_NEG_DEFP(mhz, cfact) \ |
226 | ((ESP_BUS_TIMEOUT * ((mhz) / 1000)) / (8192 * (cfact))) | 226 | ((ESP_BUS_TIMEOUT * ((mhz) / 1000)) / (8192 * (cfact))) |
227 | #define ESP_MHZ_TO_CYCLE(mhertz) ((1000000000) / ((mhertz) / 1000)) | 227 | #define ESP_HZ_TO_CYCLE(hertz) ((1000000000) / ((hertz) / 1000)) |
228 | #define ESP_TICK(ccf, cycle) ((7682 * (ccf) * (cycle) / 1000)) | 228 | #define ESP_TICK(ccf, cycle) ((7682 * (ccf) * (cycle) / 1000)) |
229 | 229 | ||
230 | /* For slow to medium speed input clock rates we shoot for 5mb/s, but for high | 230 | /* For slow to medium speed input clock rates we shoot for 5mb/s, but for high |
@@ -240,9 +240,9 @@ struct esp_cmd_priv { | |||
240 | int num_sg; | 240 | int num_sg; |
241 | } u; | 241 | } u; |
242 | 242 | ||
243 | unsigned int cur_residue; | 243 | int cur_residue; |
244 | struct scatterlist *cur_sg; | 244 | struct scatterlist *cur_sg; |
245 | unsigned int tot_residue; | 245 | int tot_residue; |
246 | }; | 246 | }; |
247 | #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp)) | 247 | #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp)) |
248 | 248 | ||
@@ -368,6 +368,12 @@ struct esp_driver_ops { | |||
368 | */ | 368 | */ |
369 | int (*irq_pending)(struct esp *esp); | 369 | int (*irq_pending)(struct esp *esp); |
370 | 370 | ||
371 | /* Return the maximum allowable size of a DMA transfer for a | ||
372 | * given buffer. | ||
373 | */ | ||
374 | u32 (*dma_length_limit)(struct esp *esp, u32 dma_addr, | ||
375 | u32 dma_len); | ||
376 | |||
371 | /* Reset the DMA engine entirely. On return, ESP interrupts | 377 | /* Reset the DMA engine entirely. On return, ESP interrupts |
372 | * should be enabled. Often the interrupt enabling is | 378 | * should be enabled. Often the interrupt enabling is |
373 | * controlled in the DMA engine. | 379 | * controlled in the DMA engine. |
@@ -471,6 +477,7 @@ struct esp { | |||
471 | #define ESP_FLAG_DOING_SLOWCMD 0x00000004 | 477 | #define ESP_FLAG_DOING_SLOWCMD 0x00000004 |
472 | #define ESP_FLAG_WIDE_CAPABLE 0x00000008 | 478 | #define ESP_FLAG_WIDE_CAPABLE 0x00000008 |
473 | #define ESP_FLAG_QUICKIRQ_CHECK 0x00000010 | 479 | #define ESP_FLAG_QUICKIRQ_CHECK 0x00000010 |
480 | #define ESP_FLAG_DISABLE_SYNC 0x00000020 | ||
474 | 481 | ||
475 | u8 select_state; | 482 | u8 select_state; |
476 | #define ESP_SELECT_NONE 0x00 /* Not selecting */ | 483 | #define ESP_SELECT_NONE 0x00 /* Not selecting */ |