Mac Developer Library

Developer

IOATAController Class Reference

Options
Deployment Target:

On This Page
Language:

IOATAController

The base class for ata controller family. Provides the interface common to all ata bus controllers. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable @import Kernel;

Availability


Available in OS X v10.0 and later.
  • answers whether the bus is in state such that the next command can be dispatched.

    Declaration

    C++

    virtual bool busCanDispatch( void );

    Return Value

    true - bus is free to issue commands. false - bus cannot issue commands at this time.

    Import Statement

  • Causes the command at the front of the queue to dequeue, made the current command and begin execution.

    Declaration

    C++

    virtual IOReturn dispatchNext( void );

    Return Value

    noErr indicates successful dispatch.

    Import Statement

  • Called by executeCommand() to handle the client command from the workloop context.

    Declaration

    C++

    virtual IOReturn handleCommand( void *command, void *param1 = 0, void *param2 = 0, void *param3 = 0);

    Parameters

    command

    The command code.

    param1

    Command parameter.

    param2

    Command parameter.

    param3

    Command parameter.

    Return Value

    kIOReturnSuccess on success, or an error code otherwise.

    Import Statement

Data Types

  • Declaration

    CPlusPlus

    typedef struct ExpansionData { IOBufferMemoryDescriptor *_doubleBufferDesc; } ExpansionData;

    Discussion

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

    Import Statement

    Availability

    Available in OS X v10.2 through OS X v10.5.

Instance Variables

  • Reserved for future use. (Internal use only)

    Declaration

    C++

    ExpansionData *reserved;