|
ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IOFireWireSBP2Lib.h |
| Include Path : | <IOKit/sbp2> |
| Path: | /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/sbp2/IOFireWireSBP2Lib.h |
| Includes: |
The IOFireWireSBP2Lib contains a library of interfaces and functions you can use to control the SBP-2 functions of your device.
Supplies the login maintenance and Normal Command ORB execution portions of the API.
Initial interface disovered for all drivers.
Supplies non login related management ORBs. Management ORBs can be executed independent of a login, if necessary. Management ORBs are created using the IOFireWireSBP2LibLUNInterface.
Represents an SBP2 normal command ORB. Supplies the APIs for configuring normal command ORBs. This includes setting the command block and writing the page tables for I/O. The ORBs are executed using the submitORB method in IOFireWireSBP2LibLoginInterface.
FWSBP2LoginCompleteParams |
typedef struct { void *refCon; // refCon from login object UInt32 generation; // generation this login was attempted in IOReturn status; // status of login attempt FWSBP2LoginResponse *loginResponse; // pointer to loginResponse buffer FWSBP2StatusBlock *statusBlock; // pointer to statusBlock buffer UInt32 statusBlockLength; // size of statusBlock buffer } FWSBP2LoginCompleteParams;
refConrefCon set on login object.
generationFireWire generation value.
statusStatus of login attempt.
loginResponsePointer to login response struct.
statusBlockPointer to status block buffer.
statusBlockLengthLength of entire status block.
FWSBP2LoginResponse |
typedef struct { UInt16 length; UInt16 loginID; UInt32 commandBlockAgentAddressHi; UInt32 commandBlockAgentAddressLo; UInt16 reserved; UInt16 reconnectHold; } FWSBP2LoginResponse;
lengthLength of login response.
loginIDUnique ID representing this login.
commandBlockAgentAddressHiHigh 32 bits of command block agent address.
commandBlockAgentAddressLoLow 32 bits of command block agent address.
reservedReserved.
reconnectHoldReconnect timeout encoded as 2^reconnectHold seconds.
FWSBP2LogoutCompleteParams |
typedef struct { void *refCon; // refCon from login object UInt32 generation; // generation this login was attempted in IOReturn status; // status of login attempt FWSBP2StatusBlock *statusBlock; // pointer to statusBlock buffer UInt32 statusBlockLength; // size of statusBlock buffer } FWSBP2LogoutCompleteParams;
refConrefCon set on login object.
generationFireWire generation value.
statusStatus of login attempt.
statusBlockPointer to status block buffer.
statusBlockLengthLength of entire status block.
FWSBP2NotifyParams |
typedef struct { void *refCon; // refCon from ORB object UInt32 notificationEvent; const void * message; UInt32 length; UInt32 generation; } FWSBP2NotifyParams;
refConrefCon set on Login object for unsolicited status or refCon set ORB for normal status.
notificationEventType of event we are being notified of.
messagebuffer containing message.
lengthlength of message field.
generationFireWire generation value.
FWSBP2ReconnectParams |
typedef struct { void *refCon; // refCon from lun object UInt32 generation; // generation this login was attempted in IOReturn status; // status of reconnect attempt FWSBP2StatusBlock *reconnectStatusBlock; // pointer to statusBlock buffer UInt32 reconnectStatusBlockLength; // size of statusBlock buffer } FWSBP2ReconnectParams;
refConrefCon set on LUN object.
generationFireWire generation value.
statusStatus of reconnect attempt.
reconnectStatusBlockPointer to status block buffer.
reconnectStatusBlockLengthLength of entire status block.
FWSBP2StatusBlock |
typedef struct { UInt8 details; UInt8 sbpStatus; UInt16 orbOffsetHi; UInt32 orbOffsetLo; UInt32 status[6]; } FWSBP2StatusBlock;
detailsSrc, Resp, D, Len fields of status block format
sbpStatusSBP2 specific status
orbOffsetHiHigh 32 bits of address of orb status is for.
orbOffsetLoLow 32 bits of address of orb status is for.
status[6]Up to 48 bytes of additional data. Length is determined by len field.
IOFWSBP2FetchAgentWriteCallback |
typedef void ( *IOFWSBP2FetchAgentWriteCallback)( void *refCon, IOReturn status, void *orbRefCon );
refConReference constant supplied when the notification was registered.
statusIndicates success or failure of operation.
orbRefConrefCon from last orb in chain.
IOFWSBP2LoginCallback |
typedef void ( *IOFWSBP2LoginCallback)( void *refCon, FWSBP2LoginCompleteParams *params );
refConReference constant supplied when the notification was registered.
paramsStructure containing additional information about the status of the login.
IOFWSBP2LogoutCallback |
typedef void ( *IOFWSBP2LogoutCallback)( void *refCon, FWSBP2LogoutCompleteParams *params );
refConReference constant supplied when the notification was registered.
paramsStructure containing additional information about the status of the logout.
IOFWSBP2NotifyCallback |
typedef void ( *IOFWSBP2NotifyCallback)( void *refCon, FWSBP2NotifyParams *params);
refConReference constant supplied when the notification was registered.
paramsFWSBP2NotifyParams containing notification information.
IOFWSBP2ORBAppendCallback |
typedef void ( *IOFWSBP2ORBAppendCallback)( void *refCon, IOReturn status, void *orb );
refConReference constant supplied when the notification was registered.
statusIndicates success or failure of operation.
orbrefCon set on management orb.
IOFWSBP2ORBCompleteCallback |
typedef void ( *IOFWSBP2ORBCompleteCallback)( void *refCon, IOReturn status, void *orb );
refConReference constant supplied when the notification was registered.
statusIndicates success or failure of operation.
orbrefCon set on management orb.
IOFWSBP2StatusCallback |
typedef void ( *IOFWSBP2StatusCallback)( void *refCon, IOReturn status);
refConReference constant supplied when the notification was registered.
statusIndicates success or failure of operation.
|
Last Updated: 2009-02-23