diff options
Diffstat (limited to 'drivers/scsi/aacraid/aacraid.h')
-rw-r--r-- | drivers/scsi/aacraid/aacraid.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index e40528185d48..4a99d2f000f4 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #if (!defined(dprintk)) | 1 | #if (!defined(dprintk)) |
2 | # define dprintk(x) | 2 | # define dprintk(x) |
3 | #endif | 3 | #endif |
4 | /* eg: if (nblank(dprintk(x))) */ | ||
5 | #define _nblank(x) #x | ||
6 | #define nblank(x) _nblank(x)[0] | ||
7 | |||
4 | 8 | ||
5 | /*------------------------------------------------------------------------------ | 9 | /*------------------------------------------------------------------------------ |
6 | * D E F I N E S | 10 | * D E F I N E S |
@@ -302,7 +306,6 @@ enum aac_queue_types { | |||
302 | */ | 306 | */ |
303 | 307 | ||
304 | #define FsaNormal 1 | 308 | #define FsaNormal 1 |
305 | #define FsaHigh 2 | ||
306 | 309 | ||
307 | /* | 310 | /* |
308 | * Define the FIB. The FIB is the where all the requested data and | 311 | * Define the FIB. The FIB is the where all the requested data and |
@@ -546,8 +549,6 @@ struct aac_queue { | |||
546 | /* This is only valid for adapter to host command queues. */ | 549 | /* This is only valid for adapter to host command queues. */ |
547 | spinlock_t *lock; /* Spinlock for this queue must take this lock before accessing the lock */ | 550 | spinlock_t *lock; /* Spinlock for this queue must take this lock before accessing the lock */ |
548 | spinlock_t lockdata; /* Actual lock (used only on one side of the lock) */ | 551 | spinlock_t lockdata; /* Actual lock (used only on one side of the lock) */ |
549 | unsigned long SavedIrql; /* Previous IRQL when the spin lock is taken */ | ||
550 | u32 padding; /* Padding - FIXME - can remove I believe */ | ||
551 | struct list_head cmdq; /* A queue of FIBs which need to be prcessed by the FS thread. This is */ | 552 | struct list_head cmdq; /* A queue of FIBs which need to be prcessed by the FS thread. This is */ |
552 | /* only valid for command queues which receive entries from the adapter. */ | 553 | /* only valid for command queues which receive entries from the adapter. */ |
553 | struct list_head pendingq; /* A queue of outstanding fib's to the adapter. */ | 554 | struct list_head pendingq; /* A queue of outstanding fib's to the adapter. */ |
@@ -776,7 +777,9 @@ struct fsa_dev_info { | |||
776 | u64 last; | 777 | u64 last; |
777 | u64 size; | 778 | u64 size; |
778 | u32 type; | 779 | u32 type; |
780 | u32 config_waiting_on; | ||
779 | u16 queue_depth; | 781 | u16 queue_depth; |
782 | u8 config_needed; | ||
780 | u8 valid; | 783 | u8 valid; |
781 | u8 ro; | 784 | u8 ro; |
782 | u8 locked; | 785 | u8 locked; |
@@ -1012,6 +1015,7 @@ struct aac_dev | |||
1012 | /* macro side-effects BEWARE */ | 1015 | /* macro side-effects BEWARE */ |
1013 | # define raw_io_interface \ | 1016 | # define raw_io_interface \ |
1014 | init->InitStructRevision==cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_4) | 1017 | init->InitStructRevision==cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_4) |
1018 | u8 raw_io_64; | ||
1015 | u8 printf_enabled; | 1019 | u8 printf_enabled; |
1016 | }; | 1020 | }; |
1017 | 1021 | ||
@@ -1362,8 +1366,10 @@ struct aac_srb_reply | |||
1362 | #define VM_CtBlockVerify64 18 | 1366 | #define VM_CtBlockVerify64 18 |
1363 | #define VM_CtHostRead64 19 | 1367 | #define VM_CtHostRead64 19 |
1364 | #define VM_CtHostWrite64 20 | 1368 | #define VM_CtHostWrite64 20 |
1369 | #define VM_DrvErrTblLog 21 | ||
1370 | #define VM_NameServe64 22 | ||
1365 | 1371 | ||
1366 | #define MAX_VMCOMMAND_NUM 21 /* used for sizing stats array - leave last */ | 1372 | #define MAX_VMCOMMAND_NUM 23 /* used for sizing stats array - leave last */ |
1367 | 1373 | ||
1368 | /* | 1374 | /* |
1369 | * Descriptive information (eg, vital stats) | 1375 | * Descriptive information (eg, vital stats) |
@@ -1472,6 +1478,7 @@ struct aac_mntent { | |||
1472 | manager (eg, filesystem) */ | 1478 | manager (eg, filesystem) */ |
1473 | __le32 altoid; /* != oid <==> snapshot or | 1479 | __le32 altoid; /* != oid <==> snapshot or |
1474 | broken mirror exists */ | 1480 | broken mirror exists */ |
1481 | __le32 capacityhigh; | ||
1475 | }; | 1482 | }; |
1476 | 1483 | ||
1477 | #define FSCS_NOTCLEAN 0x0001 /* fsck is neccessary before mounting */ | 1484 | #define FSCS_NOTCLEAN 0x0001 /* fsck is neccessary before mounting */ |
@@ -1707,6 +1714,7 @@ extern struct aac_common aac_config; | |||
1707 | #define AifCmdJobProgress 2 /* Progress report */ | 1714 | #define AifCmdJobProgress 2 /* Progress report */ |
1708 | #define AifJobCtrZero 101 /* Array Zero progress */ | 1715 | #define AifJobCtrZero 101 /* Array Zero progress */ |
1709 | #define AifJobStsSuccess 1 /* Job completes */ | 1716 | #define AifJobStsSuccess 1 /* Job completes */ |
1717 | #define AifJobStsRunning 102 /* Job running */ | ||
1710 | #define AifCmdAPIReport 3 /* Report from other user of API */ | 1718 | #define AifCmdAPIReport 3 /* Report from other user of API */ |
1711 | #define AifCmdDriverNotify 4 /* Notify host driver of event */ | 1719 | #define AifCmdDriverNotify 4 /* Notify host driver of event */ |
1712 | #define AifDenMorphComplete 200 /* A morph operation completed */ | 1720 | #define AifDenMorphComplete 200 /* A morph operation completed */ |
@@ -1777,6 +1785,7 @@ int fib_adapter_complete(struct fib * fibptr, unsigned short size); | |||
1777 | struct aac_driver_ident* aac_get_driver_ident(int devtype); | 1785 | struct aac_driver_ident* aac_get_driver_ident(int devtype); |
1778 | int aac_get_adapter_info(struct aac_dev* dev); | 1786 | int aac_get_adapter_info(struct aac_dev* dev); |
1779 | int aac_send_shutdown(struct aac_dev *dev); | 1787 | int aac_send_shutdown(struct aac_dev *dev); |
1788 | int probe_container(struct aac_dev *dev, int cid); | ||
1780 | extern int numacb; | 1789 | extern int numacb; |
1781 | extern int acbsize; | 1790 | extern int acbsize; |
1782 | extern char aac_driver_version[]; | 1791 | extern char aac_driver_version[]; |