ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


IOPCCardEjectController

Inherits from:
Declared In:

Overview

Skeleton class for supporting software-controlled PC Card ejection mechanisms.

Discussion

This is an optional skeleton class that you may subclass if you wish to support a software-controlled PC Card ejection mechanism and/or software-controlled card socket ejection buttons. There should be an instance of your subclassed driver attached to the CardBus Controller's provider for each socket. The CardBus bridge driver, IOPCCardBridge, uses the matching category "IOPCCardEjectController" to find this driver and call it. This class is both responsible for receiving external requests for ejections, such as platform-specific eject buttons, and for the execution of the actual software initiated ejection.



Functions

ejectCard

Physically ejects a card from its socket.

requestCardEjection

Makes a request for a card to be ejected.


ejectCard


Physically ejects a card from its socket.

public

virtual IOReturn ejectCard();
Return Value

Returns kIOReturnSuccess if the card is ejected.

Discussion

This method is called to initiate the physical ejection of a card. It is called by its peer, the IOPCCardBridge driver, after the bridge driver has terminated the socket's driver(s) and the socket has been powered down.


requestCardEjection


Makes a request for a card to be ejected.

public

virtual bool requestCardEjection();
Return Value

Returns true if the ejection request was accepted by all drivers and the ejection was successful.

Discussion

This method is used to start a request for a card ejection by routing Card Services EjectCard call to the driver(s) for this socket. Normally, this would be called after an external event was detected, such as a platform-specific PC Card eject button press.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19