hpsa_cmd.h (50a0decf75b66480aa5b076d4e1bca11bc202efe) hpsa_cmd.h (a505b86fde5903944828fa04f775e79a6636791d)
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *

--- 306 unchanged lines hidden (view full) ---

315 u8 SGList;
316 u16 SGTotal;
317 u64 tag;
318 union LUNAddr LUN;
319};
320
321struct RequestBlock {
322 u8 CDBLen;
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *

--- 306 unchanged lines hidden (view full) ---

315 u8 SGList;
316 u16 SGTotal;
317 u64 tag;
318 union LUNAddr LUN;
319};
320
321struct RequestBlock {
322 u8 CDBLen;
323 struct {
324 u8 Type:3;
325 u8 Attribute:3;
326 u8 Direction:2;
327 } Type;
323 /*
324 * type_attr_dir:
325 * type: low 3 bits
326 * attr: middle 3 bits
327 * dir: high 2 bits
328 */
329 u8 type_attr_dir;
330#define TYPE_ATTR_DIR(t, a, d) ((((d) & 0x03) << 6) |\
331 (((a) & 0x07) << 3) |\
332 ((t) & 0x07))
333#define GET_TYPE(tad) ((tad) & 0x07)
334#define GET_ATTR(tad) (((tad) >> 3) & 0x07)
335#define GET_DIR(tad) (((tad) >> 6) & 0x03)
328 u16 Timeout;
329 u8 CDB[16];
330};
331
332struct ErrDescriptor {
333 u64 Addr;
334 u32 Len;
335};

--- 305 unchanged lines hidden ---
336 u16 Timeout;
337 u8 CDB[16];
338};
339
340struct ErrDescriptor {
341 u64 Addr;
342 u32 Len;
343};

--- 305 unchanged lines hidden ---