IOFireWirePCRSpace

Inherits from
IOFWPseudoAddressSpace
Availability
Available in OS X v10.2 and later.
Declared in
IOFireWirePCRSpace.h

Overview

object to multiplex users of the PCR plug registers

Tasks

Miscellaneous

Instance Methods

allocateInputPlug

allocates an input plug.

virtual IOReturn allocateInputPlug( void *refcon, IOFireWirePCRCallback func, UInt32 &plug);
Parameters
refcon

arbitrary value passed back as first argument of callback.

func

callback function when a successful lock transaction to the plug has been performed

plug

set to the plug number if a plug is successfully allocated

allocateOutputPlug

allocates an output plug.

virtual IOReturn allocateOutputPlug( void *refcon, IOFireWirePCRCallback func, UInt32 &plug);
Parameters
refcon

arbitrary value passed back as first argument of callback.

func

callback function when a successful lock transaction to the plug has been performed

plug

set to the plug number if a plug is successfully allocated

clearAllP2PConnections

virtual void clearAllP2PConnections( void);

freeInputPlug

deallocates an input plug.

virtual void freeInputPlug( UInt32 plug);
Parameters
plug

value returned by allocateInputPlug.

freeOutputPlug

deallocates an output plug.

virtual void freeOutputPlug( UInt32 plug);
Parameters
plug

value returned by allocateOutputPlug.

getPCRAddressSpace

returns the IOFireWirePCRSpace object for the given FireWire bus

static IOFireWirePCRSpace *getPCRAddressSpace( IOFireWireBus *bus);
Parameters
bus

The FireWire bus

init

initializes the IOFireWirePCRSpace object

virtual bool init( IOFireWireBus *bus);

readInputMasterPlug

returns the current value of the input master plug.

virtual UInt32 readInputMasterPlug();

readInputPlug

returns the current value of an input plug.

virtual UInt32 readInputPlug( UInt32 plug);
Parameters
plug

value returned by allocateInputPlug.

readOutputMasterPlug

returns the current value of the output master plug.

virtual UInt32 readOutputMasterPlug();

readOutputPlug

returns the current value of an output plug.

virtual UInt32 readOutputPlug( UInt32 plug);
Parameters
plug

value returned by allocateOutputPlug.

setAVCTargetSpacePointer

virtual void setAVCTargetSpacePointer( IOFireWireAVCTargetSpace *pAVCTargetSpace);

updateInputMasterPlug

updates the value of the master input plug (simulating a lock transaction).

virtual IOReturn updateInputMasterPlug( UInt32 oldVal, UInt32 newVal);
Parameters
oldVal

value returned by readInputMasterPlug.

newVal

new value to store in plug if it's current value is oldVal.

updateInputPlug

updates the value of an input plug (simulating a lock transaction).

virtual IOReturn updateInputPlug( UInt32 plug, UInt32 oldVal, UInt32 newVal);
Parameters
plug

value returned by allocateInputPlug.

oldVal

value returned by readInputPlug.

newVal

new value to store in plug if it's current value is oldVal.

updateOutputMasterPlug

updates the value of the master output plug (simulating a lock transaction).

virtual IOReturn updateOutputMasterPlug( UInt32 oldVal, UInt32 newVal);
Parameters
oldVal

value returned by readOutputMasterPlug.

newVal

new value to store in plug if it's current value is oldVal.

updateOutputPlug

updates the value of an output plug (simulating a lock transaction).

virtual IOReturn updateOutputPlug( UInt32 plug, UInt32 oldVal, UInt32 newVal);
Parameters
plug

value returned by allocateOutputPlug.

oldVal

value returned by readOutputPlug.

newVal

new value to store in plug if it's current value is oldVal.

ExpansionData

struct ExpansionData {
};
Discussion

This structure will be used to expand the capablilties of the class in the future.

Instance Variables

reserved

ExpansionData *reserved;

Reserved for future use. (Internal use only)