PlatformInterfaceSupportMappedCommon.h [plain text]
#include <IOKit/IOService.h>
#include <libkern/c++/OSString.h>
#include "AppleOnboardAudio.h"
#ifndef __PlatformInterfaceSupporotMappedCommon
#define __PlatformInterfaceSupporotMappedCommon
enum FCR1_Bit_Addresses { kI2S1Enable = 20, kI2S1ClkEnBit = 19, kI2S1SwReset = 18, kI2S1CellEn = 17, kI2S0Enable = 13, kI2S0ClkEnBit = 12, kI2S0SwReset = 11, kI2S0CellEn = 10, kChooseI2S0 = 9, kChooseAudio = 7, kAUDIOCellEN = 6, kAudioClkOut_EN_h = 5, kAudioSW_Reset_h = 4, kAudioClkEnBit_h = 3, kAudioClkDiv2_h = 2, kAudio_Sel22MClk = 1,
kAudioClkOut1X_h = 0
};
enum FCR1_Field_Width {
kI2S1Enable_bitWidth = 1, kI2S1ClkEnBit_bitWidth = 1, kI2S1SwReset_bitWidth = 1, kI2S1CellEn_bitWidth = 1, kI2S0Enable_bitWidth = 1, kI2S0ClkEnBit_bitWidth = 1, kI2S0SwReset_bitWidth = 1, kI2S0CellEn_bitWidth = 1, kChooseI2S0_bitWidth = 1, kChooseAudio_bitWidth = 1, kAUDIOCellEN_bitWidth = 1 };
enum FCR3_Bit_Addresses {
kClk18_EN_h = 14, kI2S1_Clk18_EN_h = 13, kClk45_EN_h = 10, kClk49_EN_h = 9, kShutdown_PLLKW4 = 2, kShutdown_PLLKW6 = 1, kShutdown_PLL_Total = 0 };
enum FCR3_FieldWidth {
kClk18_EN_h_bitWidth = 1, kI2S1_Clk18_EN_h_bitWidth = 1, kClk45_EN_h_bitWidth = 1, kClk49_EN_h_bitWidth = 1, kShutdown_PLLKW4_bitWidth = 1, kShutdown_PLLKW6_bitWidth = 1, kShutdown_PLL_Total_bitWidth = 1 };
#define kPlatformInterfaceSupportMappedCommon_FCR0Offset 0x00000038;
#define kPlatformInterfaceSupportMappedCommon_FCR1Offset 0x0000003C;
#define kPlatformInterfaceSupportMappedCommon_FCR2Offset 0x00000040;
#define kPlatformInterfaceSupportMappedCommon_FCR3Offset 0x00000044;
#define kPlatformInterfaceSupportMappedCommon_FCR4Offset 0x00000048;
#define kPlatformInterfaceSupportMappedCommon_APPLE_IO_CONFIGURATION_SIZE 256;
#define kPlatformInterfaceSupportMappedCommon_I2S_IO_CONFIGURATION_SIZE 256;
#define kPlatformInterfaceSupportMappedCommon_I2S0BaseOffset 0x10000;
#define kPlatformInterfaceSupportMappedCommon_I2S1BaseOffset 0x11000;
#define kPlatformInterfaceSupportMappedCommon_I2SIntCtlOffset 0x0000;
#define kPlatformInterfaceSupportMappedCommon_I2SSerialFormatOffset 0x0010;
#define kPlatformInterfaceSupportMappedCommon_I2SCodecMsgOutOffset 0x0020;
#define kPlatformInterfaceSupportMappedCommon_I2SCodecMsgInOffset 0x0030;
#define kPlatformInterfaceSupportMappedCommon_I2SFrameCountOffset 0x0040;
#define kPlatformInterfaceSupportMappedCommon_I2SFrameMatchOffset 0x0050;
#define kPlatformInterfaceSupportMappedCommon_I2SDataWordSizesOffset 0x0060;
#define kPlatformInterfaceSupportMappedCommon_I2SPeakLevelSelOffset 0x0070;
#define kPlatformInterfaceSupportMappedCommon_I2SPeakLevelIn0Offset 0x0080;
#define kPlatformInterfaceSupportMappedCommon_I2SPeakLevelIn1Offset 0x0090;
#define kPlatformInterfaceSupportMappedCommon_I2SClockOffset 0x0003C;
#define kPlatformInterfaceSupportMappedCommon_I2S0ClockEnable ( 1 << kI2S0ClkEnBit );
#define kPlatformInterfaceSupportMappedCommon_I2S1ClockEnable ( 1 << kI2S1ClkEnBit );
#define kPlatformInterfaceSupportMappedCommon_I2S0CellEnable ( 1 << kI2S0CellEn );
#define kPlatformInterfaceSupportMappedCommon_I2S1CellEnable ( 1 << kI2S1CellEn );
#define kPlatformInterfaceSupportMappedCommon_I2S0InterfaceEnable ( 1 << kI2S0Enable );
#define kPlatformInterfaceSupportMappedCommon_I2S1InterfaceEnable ( 1 << kI2S1Enable );
#define kPlatformInterfaceSupportMappedCommon_I2S0SwReset ( 1 << kI2S0SwReset );
#define kPlatformInterfaceSupportMappedCommon_I2S1SwReset ( 1 << kI2S1SwReset );
#define kPlatformInterfaceSupportMappedCommon_AmpMuteEntry "amp-mute";
#define kPlatformInterfaceSupportMappedCommon_AnalogHWResetEntry "audio-hw-reset";
#define kPlatformInterfaceSupportMappedCommon_ClockMuxEntry "codec-clock-mux";
#define kPlatformInterfaceSupportMappedCommon_CodecErrorIrqTypeEntry "codec-error-irq";
#define kPlatformInterfaceSupportMappedCommon_CodecIrqTypeEntry "codec-irq";
#define kPlatformInterfaceSupportMappedCommon_ComboInJackTypeEntry "combo-input-type";
#define kPlatformInterfaceSupportMappedCommon_ComboOutJackTypeEntry "combo-output-type";
#define kPlatformInterfaceSupportMappedCommon_DigitalHWResetEntry "audio-dig-hw-reset";
#define kPlatformInterfaceSupportMappedCommon_DigitalInDetectEntry "digital-input-detect";
#define kPlatformInterfaceSupportMappedCommon_DigitalOutDetectEntry "digital-output-detect";
#define kPlatformInterfaceSupportMappedCommon_HeadphoneDetectInt "headphone-detect";
#define kPlatformInterfaceSupportMappedCommon_HeadphoneMuteEntry "headphone-mute";
#define kPlatformInterfaceSupportMappedCommon_InternalMicrophoneIDEntry "internal-mic-id";
#define kPlatformInterfaceSupportMappedCommon_InternalSpeakerIDEntry "internal-speaker-id";
#define kPlatformInterfaceSupportMappedCommon_LineInDetectInt "line-input-detect";
#define kPlatformInterfaceSupportMappedCommon_LineOutDetectInt "line-output-detect";
#define kPlatformInterfaceSupportMappedCommon_LineOutMuteEntry "line-output-mute";
#define kPlatformInterfaceSupportMappedCommon_SpeakerDetectEntry "speaker-detect";
#define kPlatformInterfaceSupportMappedCommon_NumInputs "#-inputs";
#define kPlatformInterfaceSupportMappedCommon_I2CAddress "i2c-address";
#define kPlatformInterfaceSupportMappedCommon_AudioGPIO "audio-gpio";
#define kPlatformInterfaceSupportMappedCommon_AudioGPIOActiveState "audio-gpio-active-state";
#define kPlatformInterfaceSupportMappedCommon_IOInterruptControllers "IOInterruptControllers";
#endif