aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoe.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoe.h')
-rw-r--r--drivers/block/aoe/aoe.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h
index fa2d804b2665..1cec19986c40 100644
--- a/drivers/block/aoe/aoe.h
+++ b/drivers/block/aoe/aoe.h
@@ -65,7 +65,7 @@ struct aoe_atahdr {
65struct aoe_cfghdr { 65struct aoe_cfghdr {
66 __be16 bufcnt; 66 __be16 bufcnt;
67 __be16 fwver; 67 __be16 fwver;
68 unsigned char res; 68 unsigned char scnt;
69 unsigned char aoeccmd; 69 unsigned char aoeccmd;
70 unsigned char cslen[2]; 70 unsigned char cslen[2];
71}; 71};
@@ -78,12 +78,13 @@ enum {
78 DEVFL_GDALLOC = (1<<4), /* need to alloc gendisk */ 78 DEVFL_GDALLOC = (1<<4), /* need to alloc gendisk */
79 DEVFL_PAUSE = (1<<5), 79 DEVFL_PAUSE = (1<<5),
80 DEVFL_NEWSIZE = (1<<6), /* need to update dev size in block layer */ 80 DEVFL_NEWSIZE = (1<<6), /* need to update dev size in block layer */
81 DEVFL_MAXBCNT = (1<<7), /* d->maxbcnt is not changeable */
81 82
82 BUFFL_FAIL = 1, 83 BUFFL_FAIL = 1,
83}; 84};
84 85
85enum { 86enum {
86 MAXATADATA = 1024, 87 DEFAULTBCNT = 2 * 512, /* 2 sectors */
87 NPERSHELF = 16, /* number of slots per shelf address */ 88 NPERSHELF = 16, /* number of slots per shelf address */
88 FREETAG = -1, 89 FREETAG = -1,
89 MIN_BUFS = 8, 90 MIN_BUFS = 8,
@@ -107,6 +108,8 @@ struct frame {
107 ulong waited; 108 ulong waited;
108 struct buf *buf; 109 struct buf *buf;
109 char *bufaddr; 110 char *bufaddr;
111 ulong bcnt;
112 sector_t lba;
110 struct sk_buff *skb; 113 struct sk_buff *skb;
111}; 114};
112 115
@@ -120,6 +123,7 @@ struct aoedev {
120 ulong nopen; /* (bd_openers isn't available without sleeping) */ 123 ulong nopen; /* (bd_openers isn't available without sleeping) */
121 ulong rttavg; /* round trip average of requests/responses */ 124 ulong rttavg; /* round trip average of requests/responses */
122 u16 fw_ver; /* version of blade's firmware */ 125 u16 fw_ver; /* version of blade's firmware */
126 u16 maxbcnt;
123 struct work_struct work;/* disk create work struct */ 127 struct work_struct work;/* disk create work struct */
124 struct gendisk *gd; 128 struct gendisk *gd;
125 request_queue_t blkq; 129 request_queue_t blkq;
@@ -134,7 +138,8 @@ struct aoedev {
134 struct list_head bufq; /* queue of bios to work on */ 138 struct list_head bufq; /* queue of bios to work on */
135 struct buf *inprocess; /* the one we're currently working on */ 139 struct buf *inprocess; /* the one we're currently working on */
136 ulong lasttag; /* last tag sent */ 140 ulong lasttag; /* last tag sent */
137 ulong nframes; /* number of frames below */ 141 ushort lostjumbo;
142 ushort nframes; /* number of frames below */
138 struct frame *frames; 143 struct frame *frames;
139}; 144};
140 145