ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IOFireWireCompareSwapCommandInterface |
Declared In: |
Use the links in the table of contents to the left to access the documentation.
Determines if the last lock operation was successful.
Gets the 32-bit value returned on the last compare swap operation.
Gets the 64-bit value returned on the last compare swap operation.
Sets flags governing this command's execution.
Sets values for 32-bit compare swap operation.
Sets values for 64-bit compare swap operation.
DidLock |
Determines if the last lock operation was successful.
Boolean ( *DidLock)( IOFireWireLibCompareSwapCommandRef self);
self
The command object interface of interest.
Returns true if the last lock operation performed by this command object was successful, false otherwise.
Locked |
Gets the 32-bit value returned on the last compare swap operation.
IOReturn ( *Locked)( IOFireWireLibCompareSwapCommandRef self, UInt32 *oldValue);
self
The command object interface of interest.
oldValue
A pointer to contain the value returned by the target of this command on the last compare swap operation.
Returns kIOReturnBadArgument if the last compare swap operation performed was 64-bit.
Locked64 |
Gets the 64-bit value returned on the last compare swap operation.
IOReturn ( *Locked64)( IOFireWireLibCompareSwapCommandRef self, UInt64 *oldValue);
self
The command object interface of interest.
oldValue
A pointer to contain the value returned by the target of this command on the last compare swap operation.
Returns kIOReturnBadArgument if the last compare swap performed was 32-bit.
SetFlags |
Sets flags governing this command's execution.
void ( *SetFlags)( IOFireWireLibCompareSwapCommandRef self, UInt32 inFlags);
self
The command object interface of interest.
inFlags
A UInt32 with bits set corresponding to the flags that should be set.
Same as SetFlags() above.
SetValues |
Sets values for 32-bit compare swap operation.
void ( *SetValues)( IOFireWireLibCompareSwapCommandRef self, UInt32 cmpVal, UInt32 newVal);
self
The command object interface of interest.
cmpVal
The value expected at the address targeted by this command object.
newVal
The value to be written at the address targeted by this command object.
Calling this function will make the command object perform 32-bit compare swap transactions on the bus. To perform 64-bit compare swap operations, use the SetValues64() call, below.
SetValues64 |
Sets values for 64-bit compare swap operation.
void ( *SetValues64)( IOFireWireLibCompareSwapCommandRef self, UInt64 cmpVal, UInt64 newVal);
self
The command object interface of interest.
cmpVal
The value expected at the address targeted by this command object.
newVal
The value to be written at the address targeted by this command object.
Calling this function will make the command object perform 64-bit compare swap transactions on the bus. To perform 32-bit compare swap operations, use the SetValues() call, above.
|
Last Updated: 2009-02-23