21 #include "SignalData.hpp"
40 STATIC_CONST( SignalLength = 8 );
59 static Uint32 getLockMode(
const Uint32 & requestInfo);
60 static Uint32 getReadCommittedFlag(
const Uint32 & requestInfo);
61 static Uint32 getDescendingFlag(
const Uint32 & requestInfo);
63 static void setLockMode(Uint32 & requestInfo, Uint32 lockMode);
64 static void setReadCommittedFlag(Uint32 & requestInfo, Uint32 readCommitted);
65 static void setDescendingFlag(Uint32 & requestInfo, Uint32 descending);
67 static Uint32 getNoDiskScanFlag(
const Uint32 & requestInfo);
68 static void setNoDiskScanFlag(Uint32 & requestInfo, Uint32 nodisk);
70 static Uint32 getNRScanFlag(
const Uint32 & requestInfo);
71 static void setNRScanFlag(Uint32 & requestInfo, Uint32 nr);
73 static Uint32 getLcpScanFlag(
const Uint32 & requestInfo);
74 static void setLcpScanFlag(Uint32 & requestInfo, Uint32 nr);
76 static Uint32 getStatScanFlag(
const Uint32 & requestInfo);
77 static void setStatScanFlag(Uint32 & requestInfo, Uint32 nr);
95 #define AS_LOCK_MODE_SHIFT (2)
96 #define AS_LOCK_MODE_MASK (1)
97 #define AS_READ_COMMITTED_SHIFT (5)
98 #define AS_DESCENDING_SHIFT (6)
99 #define AS_NO_DISK_SCAN (7)
100 #define AS_NR_SCAN (8)
101 #define AS_LCP_SCAN (9)
102 #define AS_STAT_SCAN (4)
106 AccScanReq::getLockMode(
const Uint32 & requestInfo){
107 return (requestInfo >> AS_LOCK_MODE_SHIFT) & AS_LOCK_MODE_MASK;
112 AccScanReq::getReadCommittedFlag(
const Uint32 & requestInfo){
113 return (requestInfo >> AS_READ_COMMITTED_SHIFT) & 1;
118 AccScanReq::getDescendingFlag(
const Uint32 & requestInfo){
119 return (requestInfo >> AS_DESCENDING_SHIFT) & 1;
124 AccScanReq::setLockMode(UintR & requestInfo, UintR val){
125 ASSERT_MAX(val, AS_LOCK_MODE_MASK,
"AccScanReq::setLockMode");
126 requestInfo |= (val << AS_LOCK_MODE_SHIFT);
131 AccScanReq::setReadCommittedFlag(UintR & requestInfo, UintR val){
132 ASSERT_BOOL(val,
"AccScanReq::setReadCommittedFlag");
133 requestInfo |= (val << AS_READ_COMMITTED_SHIFT);
138 AccScanReq::setDescendingFlag(UintR & requestInfo, UintR val){
139 ASSERT_BOOL(val,
"AccScanReq::setDescendingFlag");
140 requestInfo |= (val << AS_DESCENDING_SHIFT);
145 AccScanReq::getNoDiskScanFlag(
const Uint32 & requestInfo){
146 return (requestInfo >> AS_NO_DISK_SCAN) & 1;
151 AccScanReq::setNoDiskScanFlag(UintR & requestInfo, UintR val){
152 ASSERT_BOOL(val,
"AccScanReq::setNoDiskScanFlag");
153 requestInfo |= (val << AS_NO_DISK_SCAN);
158 AccScanReq::getNRScanFlag(
const Uint32 & requestInfo){
159 return (requestInfo >> AS_NR_SCAN) & 1;
164 AccScanReq::setNRScanFlag(UintR & requestInfo, UintR val){
165 ASSERT_BOOL(val,
"AccScanReq::setNoDiskScanFlag");
166 requestInfo |= (val << AS_NR_SCAN);
171 AccScanReq::getLcpScanFlag(
const Uint32 & requestInfo){
172 return (requestInfo >> AS_LCP_SCAN) & 1;
177 AccScanReq::setLcpScanFlag(UintR & requestInfo, UintR val){
178 ASSERT_BOOL(val,
"AccScanReq::setNoDiskScanFlag");
179 requestInfo |= (val << AS_LCP_SCAN);
184 AccScanReq::getStatScanFlag(
const Uint32 & requestInfo){
185 return (requestInfo >> AS_STAT_SCAN) & 1;
190 AccScanReq::setStatScanFlag(UintR & requestInfo, UintR val){
191 ASSERT_BOOL(val,
"AccScanReq::setStatScanScanFlag");
192 requestInfo |= (val << AS_STAT_SCAN);
210 ZNOT_EMPTY_FRAGMENT = 1
214 STATIC_CONST( SignalLength = 8 );
232 TuxNoFreeScanOp = 909,
233 TuxIndexNotOnline = 910,
234 TuxNoFreeStatOp = 911,
235 TuxInvalidLockMode = 912
239 STATIC_CONST( SignalLength = 3 );
254 ZNOT_CHECK_LCP_STOP = 1
257 STATIC_CONST( SignalLength = 2 );