/* DSP I/O port offsets and definitions */ #define DSP_IsaSlaveControl 0x0000 /* ISA slave control register */ #define DSP_IsaSlaveStatus 0x0001 /* ISA slave status register */ #define DSP_ConfigAddress 0x0002 /* General config address register */ #define DSP_ConfigData 0x0003 /* General config data register */ #define DSP_HBridgeControl 0x0002 /* HBridge control register */ #define DSP_MsaAddrLow 0x0004 /* MSP System Address, low word */ #define DSP_MsaAddrHigh 0x0006 /* MSP System Address, high word */ #define DSP_MsaDataDSISHigh 0x0008 /* MSA data register: d-store word or high byte of i-store */ #define DSP_MsaDataISLow 0x000A /* MSA data register: low word of i-store */ #define DSP_ReadAndClear 0x000C /* MSA read and clear data register */ #define DSP_Interrupt 0x000E /* Interrupt register (IPC source) */
typedefstruct { unsignedchar Dma:3; /* RW: DMA channel selection */ unsignedchar NumTransfers:2; /* RW: Maximum # of transfers once being granted the ISA bus */ unsignedchar ReRequest:2; /* RW: Minimum delay between releasing the ISA bus and requesting it again */ unsignedchar MEMCS16:1; /* RW: ISA signal MEMCS16: 0=disabled, 1=enabled */
} DSP_BUSMASTER_CFG_1;
/* Adapter specific 3780i settings */ unsignedshort usNumTransfers; unsignedshort usReRequest; int bEnableMEMCS16; unsignedshort usIsaMemCmdWidth; int bGateIOCHRDY; int bEnablePwrMgmt; unsignedshort usHBusTimerLoadValue; int bDisableLBusTimeout; unsignedshort usN_Divisor; unsignedshort usM_Multiplier; int bPllBypass; unsignedshort usChipletEnable; /* Used with the chip reset register to enable specific chiplets */
/* Saved UART registers. These are maintained by the 3780i support layer. */ int bUartSaved; /* True after a successful save of the UART registers */ unsignedchar ucIER; /* Interrupt enable register */ unsignedchar ucFCR; /* FIFO control register */ unsignedchar ucLCR; /* Line control register */ unsignedchar ucMCR; /* Modem control register */ unsignedchar ucSCR; /* Scratch register */ unsignedchar ucDLL; /* Divisor latch, low byte */ unsignedchar ucDLM; /* Divisor latch, high byte */
} DSP_3780I_CONFIG_SETTINGS;
/* 3780i support functions */ int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, unsignedshort *pIrqMap, unsignedshort *pDmaMap); int dsp3780I_DisableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings); int dsp3780I_Reset(DSP_3780I_CONFIG_SETTINGS * pSettings); int dsp3780I_Run(DSP_3780I_CONFIG_SETTINGS * pSettings); int dsp3780I_ReadDStore(unsignedshort usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsignedlong ulDSPAddr); int dsp3780I_ReadAndClearDStore(unsignedshort usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsignedlong ulDSPAddr); int dsp3780I_WriteDStore(unsignedshort usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsignedlong ulDSPAddr); int dsp3780I_ReadIStore(unsignedshort usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsignedlong ulDSPAddr); int dsp3780I_WriteIStore(unsignedshort usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsignedlong ulDSPAddr); unsignedshort dsp3780I_ReadMsaCfg(unsignedshort usDspBaseIO, unsignedlong ulMsaAddr); void dsp3780I_WriteMsaCfg(unsignedshort usDspBaseIO, unsignedlong ulMsaAddr, unsignedshort usValue); int dsp3780I_GetIPCSource(unsignedshort usDspBaseIO, unsignedshort *pusIPCSource);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.