ICH3_AC97Controller.h [plain text]
#ifndef __APPLE_INTEL_ICH3_AC97_CONTROLLER_H
#define __APPLE_INTEL_ICH3_AC97_CONTROLLER_H
#include <IOKit/pci/IOPCIDevice.h>
#include "AC97Controller.h"
class AppleIntelICH3AC97Controller : public AppleIntelAC97Controller
{
OSDeclareDefaultStructors( AppleIntelICH3AC97Controller )
protected:
UInt16 _mixerBase;
UInt16 _bmBase;
virtual bool configureProvider( IOService * provider );
virtual UInt32 bmRead32( UInt16 offset,
DMAChannel channel = 0 ) const;
virtual UInt16 bmRead16( UInt16 offset,
DMAChannel channel = 0 ) const;
virtual UInt8 bmRead8( UInt16 offset,
DMAChannel channel = 0 ) const;
virtual void bmWrite32( UInt16 offset,
UInt32 value,
DMAChannel channel = 0 );
virtual void bmWrite16( UInt16 offset,
UInt16 value,
DMAChannel channel = 0 );
virtual void bmWrite8( UInt16 offset,
UInt8 value,
DMAChannel channel = 0 );
virtual void free();
virtual AppleIntelAC97Codec * createCodec( CodecID codecID );
public:
virtual IOReturn mixerRead16( CodecID codecID,
UInt8 offset,
UInt16 * value );
virtual IOReturn mixerWrite16( CodecID codecID,
UInt8 offset,
UInt16 value );
};
#endif