Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360255
b: refs/heads/master
c: 14eb5d9
h: refs/heads/master
i:
  360253: 6f9b538
  360251: 2b1dc8e
  360247: bbef5ae
  360239: f2343dc
  360223: c6d3a16
  360191: efb9466
v: v3
  • Loading branch information
Hiral Patel authored and James Bottomley committed Feb 22, 2013
1 parent f8ec690 commit 9529f0b
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0bf1ca27b644c1c4b1f0ea2d81f99471b2549e8
refs/heads/master: 14eb5d905d16ecd33e5e3113eb44cfa2bb47e7d7
31 changes: 23 additions & 8 deletions trunk/drivers/scsi/fnic/fnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,29 @@
* Command flags to identify the type of command and for other future
* use.
*/
#define FNIC_NO_FLAGS 0
#define FNIC_CDB_REQ BIT(1) /* All IOs with a valid CDB */
#define FNIC_BLOCKING_REQ BIT(2) /* All blocking Requests */
#define FNIC_DEVICE_RESET BIT(3) /* Device reset request */
#define FNIC_DEV_RST_PENDING BIT(4) /* Device reset pending */
#define FNIC_DEV_RST_TIMED_OUT BIT(5) /* Device reset timed out */
#define FNIC_DEV_RST_TERM_ISSUED BIT(6) /* Device reset terminate */
#define FNIC_DEV_RST_DONE BIT(7) /* Device reset done */
#define FNIC_NO_FLAGS 0
#define FNIC_IO_INITIALIZED BIT(0)
#define FNIC_IO_ISSUED BIT(1)
#define FNIC_IO_DONE BIT(2)
#define FNIC_IO_REQ_NULL BIT(3)
#define FNIC_IO_ABTS_PENDING BIT(4)
#define FNIC_IO_ABORTED BIT(5)
#define FNIC_IO_ABTS_ISSUED BIT(6)
#define FNIC_IO_TERM_ISSUED BIT(7)
#define FNIC_IO_INTERNAL_TERM_ISSUED BIT(8)
#define FNIC_IO_ABT_TERM_DONE BIT(9)
#define FNIC_IO_ABT_TERM_REQ_NULL BIT(10)
#define FNIC_IO_ABT_TERM_TIMED_OUT BIT(11)
#define FNIC_DEVICE_RESET BIT(12) /* Device reset request */
#define FNIC_DEV_RST_ISSUED BIT(13)
#define FNIC_DEV_RST_TIMED_OUT BIT(14)
#define FNIC_DEV_RST_ABTS_ISSUED BIT(15)
#define FNIC_DEV_RST_TERM_ISSUED BIT(16)
#define FNIC_DEV_RST_DONE BIT(17)
#define FNIC_DEV_RST_REQ_NULL BIT(18)
#define FNIC_DEV_RST_ABTS_DONE BIT(19)
#define FNIC_DEV_RST_TERM_DONE BIT(20)
#define FNIC_DEV_RST_ABTS_PENDING BIT(21)

/*
* Usage of the scsi_cmnd scratchpad.
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/fnic/fnic_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ enum fnic_sgl_list_type {
};

enum fnic_ioreq_state {
FNIC_IOREQ_CMD_PENDING = 0,
FNIC_IOREQ_NOT_INITED = 0,
FNIC_IOREQ_CMD_PENDING,
FNIC_IOREQ_ABTS_PENDING,
FNIC_IOREQ_ABTS_COMPLETE,
FNIC_IOREQ_CMD_COMPLETE,
Expand All @@ -60,6 +61,7 @@ struct fnic_io_req {
u8 sgl_type; /* device DMA descriptor list type */
u8 io_completed:1; /* set to 1 when fw completes IO */
u32 port_id; /* remote port DID */
unsigned long start_time; /* in jiffies */
struct completion *abts_done; /* completion for abts */
struct completion *dr_done; /* completion for device reset */
};
Expand Down
Loading

0 comments on commit 9529f0b

Please sign in to comment.