projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PCI ACPI: Added a function to register _OSC with only PCIe devices.
[powerpc.git]
/
include
/
scsi
/
scsi_host.h
diff --git
a/include/scsi/scsi_host.h
b/include/scsi/scsi_host.h
index
ba07cf7
..
5c58d59
100644
(file)
--- a/
include/scsi/scsi_host.h
+++ b/
include/scsi/scsi_host.h
@@
-32,6
+32,9
@@
struct blk_queue_tags;
#define SG_NONE 0
#define SG_ALL 0xff
#define SG_NONE 0
#define SG_ALL 0xff
+#define MODE_UNKNOWN 0x00
+#define MODE_INITIATOR 0x01
+#define MODE_TARGET 0x02
#define DISABLE_CLUSTERING 0
#define ENABLE_CLUSTERING 1
#define DISABLE_CLUSTERING 0
#define ENABLE_CLUSTERING 1
@@
-130,9
+133,9
@@
struct scsi_host_template {
* the done callback is invoked.
*
* This is called to inform the LLD to transfer
* the done callback is invoked.
*
* This is called to inform the LLD to transfer
- *
cmd->request_bufflen bytes. The cmd->use_sg
speciefies the
+ *
scsi_bufflen(cmd) bytes. scsi_sg_count(cmd)
speciefies the
* number of scatterlist entried in the command and
* number of scatterlist entried in the command and
- *
cmd->request_buffer contai
ns the scatterlist.
+ *
scsi_sglist(cmd) retur
ns the scatterlist.
*
* return values: see queuecommand
*
*
* return values: see queuecommand
*
@@
-145,9
+148,6
@@
struct scsi_host_template {
int (* transfer_response)(struct scsi_cmnd *,
void (*done)(struct scsi_cmnd *));
int (* transfer_response)(struct scsi_cmnd *,
void (*done)(struct scsi_cmnd *));
- /* Used as callback for the completion of task management request. */
- int (* tsk_mgmt_response)(u64 mid, int result);
-
/*
* This is an error handling strategy routine. You don't need to
* define one of these if you don't want to - there is a default
/*
* This is an error handling strategy routine. You don't need to
* define one of these if you don't want to - there is a default
@@
-341,7
+341,7
@@
struct scsi_host_template {
/*
* Name of proc directory
*/
/*
* Name of proc directory
*/
- char *proc_name;
+ c
onst c
har *proc_name;
/*
* Used to store the procfs directory if a driver implements the
/*
* Used to store the procfs directory if a driver implements the
@@
-407,6
+407,11
@@
struct scsi_host_template {
*/
unsigned char present;
*/
unsigned char present;
+ /*
+ * This specifies the mode that a LLD supports.
+ */
+ unsigned supported_mode:2;
+
/*
* true if this host adapter uses unchecked DMA onto an ISA bus.
*/
/*
* true if this host adapter uses unchecked DMA onto an ISA bus.
*/
@@
-575,8
+580,9
@@
struct Scsi_Host {
* Used to assign serial numbers to the cmds.
* Protected by the host lock.
*/
* Used to assign serial numbers to the cmds.
* Protected by the host lock.
*/
- unsigned long cmd_serial_number
, cmd_pid;
+ unsigned long cmd_serial_number
;
+ unsigned active_mode:2;
unsigned unchecked_isa_dma:1;
unsigned use_clustering:1;
unsigned use_blk_tcq:1;
unsigned unchecked_isa_dma:1;
unsigned use_clustering:1;
unsigned use_blk_tcq:1;