Lines 41-47
Link Here
|
41 |
#define DPRINTK(fmt, arg...) XPRINTK(LOG_DEBUG, fmt, ## arg) |
41 |
#define DPRINTK(fmt, arg...) XPRINTK(LOG_DEBUG, fmt, ## arg) |
42 |
|
42 |
|
43 |
#define nelem(a) (sizeof (a) / sizeof (a)[0]) |
43 |
#define nelem(a) (sizeof (a) / sizeof (a)[0]) |
44 |
#define MINPERMAJ 10 |
44 |
#define MINPERMAJ 64 |
45 |
#define AOEMAJOR(unit) ((unit) / MINPERMAJ) |
45 |
#define AOEMAJOR(unit) ((unit) / MINPERMAJ) |
46 |
#define AOEMINOR(unit) ((unit) % MINPERMAJ) |
46 |
#define AOEMINOR(unit) ((unit) % MINPERMAJ) |
47 |
#define AOEUNIT(maj, min) ((maj) * MINPERMAJ + (min)) |
47 |
#define AOEUNIT(maj, min) ((maj) * MINPERMAJ + (min)) |
Lines 152-161
Link Here
|
152 |
DEVFL_WC_UPDATE = (1<<6), /* This device needs to update write cache status */ |
152 |
DEVFL_WC_UPDATE = (1<<6), /* This device needs to update write cache status */ |
153 |
DEVFL_DESTROY = (1<<7), |
153 |
DEVFL_DESTROY = (1<<7), |
154 |
|
154 |
|
155 |
MAXATADATA = 1024, /* max permissable data in frame */ |
|
|
156 |
FREETAG = -1, /* tag magic; denotes free frame */ |
155 |
FREETAG = -1, /* tag magic; denotes free frame */ |
157 |
INPROCTAG = -2, /* tag magic; denotes frame in processing */ |
156 |
INPROCTAG = -2, /* tag magic; denotes frame in processing */ |
158 |
IFLISTSZ = 128, /* length of the aoe_iflist string */ |
|
|
159 |
}; |
157 |
}; |
160 |
|
158 |
|
161 |
#define AOEHDRSZ (sizeof(struct aoe_hdr) + sizeof(struct aoe_atahdr)) |
159 |
#define AOEHDRSZ (sizeof(struct aoe_hdr) + sizeof(struct aoe_atahdr)) |