ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IOFireWireCompareSwapCommandInterface_v3 |
Declared In: |
Use the links in the table of contents to the left to access the documentation.
Was the last lock operation successful?
Get the 32-bit value returned on the last compare swap operation.
Get the 64-bit value returned on the last compare swap operation.
Set values for 32-bit compare swap operation. 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.
Set values for 64-bit compare swap operation. 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.
DidLock |
Was the last lock operation 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.
Available in v2 and newer.
Locked |
Get 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.
Available in v2 and newer.
Locked64 |
Get 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.
Available in v2 and newer.
SetValues |
Set values for 32-bit compare swap operation. 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.
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
Available in v2 and newer.
SetValues64 |
Set values for 64-bit compare swap operation. 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.
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
Available in v2 and newer.
|
Last Updated: 2009-02-23