Mac OS X Reference Library Apple Developer
Search

ATADeviceNub

Inherits from:
Declared In:

Overview

ATADeviceNub is a concrete implementation of IOATADevice.

Discussion

clients of IOATA (disk drivers) should use the interface presented by IOATADevice. Concrete nubs are private to the IOATA family and specific subclasses of IOATADevice are instantiated by controller drivers to provide the abstract interface to clients.



Functions

allocCommand

create command objects for clients.

ataDeviceNub

static creator function - used by IOATAControllers to create nubs.

attach

override of IOService method.

executeCommand

Submit IO requests

freeCommand

Clients use this method to dispose of command objects.

getDeviceID

get the unit id of this drive (0 or 1)

init

used after creating the nub.

MyATACallback

to be deprecated.

processCallback

to be deprecated.

publishBusProperties

puts info about this device's bus capability in the device tree.

publishProperties

publish the nub's properties in the device tree.

publishVendorProperties

will be deprecated.

swapBytes16

to be deprecated.


allocCommand


create command objects for clients.

public

virtual IOATACommand* allocCommand( void );

ataDeviceNub


static creator function - used by IOATAControllers to create nubs.

public

static ATADeviceNub* ataDeviceNub( IOATAController *provider, ataUnitID unit, ataDeviceType devType);

attach


override of IOService method.

public

virtual bool attach( IOService *provider );

executeCommand


Submit IO requests

public

virtual IOReturn executeCommand( IOATACommand *command);

freeCommand


Clients use this method to dispose of command objects.

public

virtual void freeCommand( IOATACommand *inCommand);

getDeviceID


get the unit id of this drive (0 or 1)

protected

virtual IOReturn getDeviceID( void);

init


used after creating the nub.

protected

virtual bool init( IOATAController *provider, ataUnitID unit, ataDeviceType devType);

MyATACallback


to be deprecated.

protected

static void MyATACallback( IOATACommand *command );

processCallback


to be deprecated.

protected

void processCallback( IOATACommand *command );

publishBusProperties


puts info about this device's bus capability in the device tree.

protected

virtual void publishBusProperties( void);

publishProperties


publish the nub's properties in the device tree.

protected

virtual void publishProperties( void );

publishVendorProperties


will be deprecated.

protected

virtual void publishVendorProperties( void );

swapBytes16


to be deprecated.

protected

void swapBytes16( UInt8 *dataBuffer, IOByteCount length);

Structs and Unions

ExpansionData

ExpansionData


protected

struct ExpansionData { };
Discussion

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

Member Data

reserved

reserved


protected

ExpansionData *reserved;
Discussion

Reserved for future use. (Internal use only)

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-07-29