Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
3780i.h File Reference
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  DSP_ISA_SLAVE_CONTROL
 
struct  DSP_HBRIDGE_CONTROL
 
struct  DSP_UART_CFG_1
 
struct  DSP_UART_CFG_2
 
struct  DSP_HBRIDGE_CFG_1
 
struct  DSP_HBRIDGE_CFG_2
 
struct  DSP_BUSMASTER_CFG_1
 
struct  DSP_BUSMASTER_CFG_2
 
struct  DSP_ISA_PROT_CFG
 
struct  DSP_POWER_MGMT_CFG
 
struct  DSP_HBUS_TIMER_CFG
 
struct  DSP_BOOT_DOMAIN
 
struct  DSP_LBUS_TIMEOUT_DISABLE
 
struct  DSP_CHIP_RESET
 
struct  DSP_CLOCK_CONTROL_1
 
struct  DSP_CLOCK_CONTROL_2
 
struct  DSP_GPIO_OUTPUT_DATA_15_8
 
struct  DSP_GPIO_DRIVER_ENABLE_15_8
 
struct  DSP_GPIO_MODE_15_8
 
struct  _DSP_3780I_CONFIG_SETTINGS
 

Macros

#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) */
 
#define DSP_UartCfg1Index   0x0003 /* UART config register 1 */
 
#define DSP_UartCfg2Index   0x0004 /* UART config register 2 */
 
#define DSP_HBridgeCfg1Index   0x0007 /* HBridge config register 1 */
 
#define DSP_HBridgeCfg2Index   0x0008 /* HBridge config register 2 */
 
#define DSP_BusMasterCfg1Index   0x0009 /* ISA bus master config register 1 */
 
#define DSP_BusMasterCfg2Index   0x000A /* ISA bus master config register 2 */
 
#define DSP_IsaProtCfgIndex   0x000F /* ISA protocol control register */
 
#define DSP_PowerMgCfgIndex   0x0010 /* Low poser suspend/resume enable */
 
#define DSP_HBusTimerCfgIndex   0x0011 /* HBUS timer load value */
 
#define DSP_ChipID   0x80000000
 
#define DSP_MspBootDomain   0x80000580
 
#define DSP_LBusTimeoutDisable   0x80000580
 
#define DSP_ClockControl_1   0x8000058A
 
#define DSP_ClockControl_2   0x8000058C
 
#define DSP_ChipReset   0x80000588
 
#define DSP_GpioModeControl_15_8   0x80000082
 
#define DSP_GpioDriverEnable_15_8   0x80000076
 
#define DSP_GpioOutputData_15_8   0x80000072
 
#define MW_ADC_MASK   0x0001
 
#define MW_AIC2_MASK   0x0006
 
#define MW_MIDI_MASK   0x0008
 
#define MW_CDDAC_MASK   0x8001
 
#define MW_AIC1_MASK   0xE006
 
#define MW_UART_MASK   0xE00A
 
#define MW_ACI_MASK   0xE00B
 
#define MKWORD(var)   (*((unsigned short *)(&var)))
 
#define MKBYTE(var)   (*((unsigned char *)(&var)))
 
#define WriteMsaCfg(addr, value)   dsp3780I_WriteMsaCfg(usDspBaseIO,addr,value)
 
#define ReadMsaCfg(addr)   dsp3780I_ReadMsaCfg(usDspBaseIO,addr)
 
#define WriteGenCfg(index, value)   dsp3780I_WriteGenCfg(usDspBaseIO,index,value)
 
#define ReadGenCfg(index)   dsp3780I_ReadGenCfg(usDspBaseIO,index)
 
#define InWordDsp(index)   inw(usDspBaseIO+index)
 
#define InByteDsp(index)   inb(usDspBaseIO+index)
 
#define OutWordDsp(index, value)   outw(value,usDspBaseIO+index)
 
#define OutByteDsp(index, value)   outb(value,usDspBaseIO+index)
 

Typedefs

typedef struct
_DSP_3780I_CONFIG_SETTINGS 
DSP_3780I_CONFIG_SETTINGS
 

Functions

int dsp3780I_EnableDSP (DSP_3780I_CONFIG_SETTINGS *pSettings, unsigned short *pIrqMap, unsigned short *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 (unsigned short usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsigned long ulDSPAddr)
 
int dsp3780I_ReadAndClearDStore (unsigned short usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsigned long ulDSPAddr)
 
int dsp3780I_WriteDStore (unsigned short usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsigned long ulDSPAddr)
 
int dsp3780I_ReadIStore (unsigned short usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsigned long ulDSPAddr)
 
int dsp3780I_WriteIStore (unsigned short usDspBaseIO, void __user *pvBuffer, unsigned uCount, unsigned long ulDSPAddr)
 
unsigned short dsp3780I_ReadMsaCfg (unsigned short usDspBaseIO, unsigned long ulMsaAddr)
 
void dsp3780I_WriteMsaCfg (unsigned short usDspBaseIO, unsigned long ulMsaAddr, unsigned short usValue)
 
int dsp3780I_GetIPCSource (unsigned short usDspBaseIO, unsigned short *pusIPCSource)
 

Macro Definition Documentation

#define DSP_BusMasterCfg1Index   0x0009 /* ISA bus master config register 1 */

Definition at line 89 of file 3780i.h.

#define DSP_BusMasterCfg2Index   0x000A /* ISA bus master config register 2 */

Definition at line 90 of file 3780i.h.

#define DSP_ChipID   0x80000000

Definition at line 152 of file 3780i.h.

#define DSP_ChipReset   0x80000588

Definition at line 157 of file 3780i.h.

#define DSP_ClockControl_1   0x8000058A

Definition at line 155 of file 3780i.h.

#define DSP_ClockControl_2   0x8000058C

Definition at line 156 of file 3780i.h.

#define DSP_ConfigAddress   0x0002 /* General config address register */

Definition at line 57 of file 3780i.h.

#define DSP_ConfigData   0x0003 /* General config data register */

Definition at line 58 of file 3780i.h.

#define DSP_GpioDriverEnable_15_8   0x80000076

Definition at line 159 of file 3780i.h.

#define DSP_GpioModeControl_15_8   0x80000082

Definition at line 158 of file 3780i.h.

#define DSP_GpioOutputData_15_8   0x80000072

Definition at line 160 of file 3780i.h.

#define DSP_HBridgeCfg1Index   0x0007 /* HBridge config register 1 */

Definition at line 87 of file 3780i.h.

#define DSP_HBridgeCfg2Index   0x0008 /* HBridge config register 2 */

Definition at line 88 of file 3780i.h.

#define DSP_HBridgeControl   0x0002 /* HBridge control register */

Definition at line 59 of file 3780i.h.

#define DSP_HBusTimerCfgIndex   0x0011 /* HBUS timer load value */

Definition at line 93 of file 3780i.h.

#define DSP_Interrupt   0x000E /* Interrupt register (IPC source) */

Definition at line 65 of file 3780i.h.

#define DSP_IsaProtCfgIndex   0x000F /* ISA protocol control register */

Definition at line 91 of file 3780i.h.

#define DSP_IsaSlaveControl   0x0000 /* ISA slave control register */

Definition at line 55 of file 3780i.h.

#define DSP_IsaSlaveStatus   0x0001 /* ISA slave status register */

Definition at line 56 of file 3780i.h.

#define DSP_LBusTimeoutDisable   0x80000580

Definition at line 154 of file 3780i.h.

#define DSP_MsaAddrHigh   0x0006 /* MSP System Address, high word */

Definition at line 61 of file 3780i.h.

#define DSP_MsaAddrLow   0x0004 /* MSP System Address, low word */

Definition at line 60 of file 3780i.h.

#define DSP_MsaDataDSISHigh   0x0008 /* MSA data register: d-store word or high byte of i-store */

Definition at line 62 of file 3780i.h.

#define DSP_MsaDataISLow   0x000A /* MSA data register: low word of i-store */

Definition at line 63 of file 3780i.h.

#define DSP_MspBootDomain   0x80000580

Definition at line 153 of file 3780i.h.

#define DSP_PowerMgCfgIndex   0x0010 /* Low poser suspend/resume enable */

Definition at line 92 of file 3780i.h.

#define DSP_ReadAndClear   0x000C /* MSA read and clear data register */

Definition at line 64 of file 3780i.h.

#define DSP_UartCfg1Index   0x0003 /* UART config register 1 */

Definition at line 85 of file 3780i.h.

#define DSP_UartCfg2Index   0x0004 /* UART config register 2 */

Definition at line 86 of file 3780i.h.

#define InByteDsp (   index)    inb(usDspBaseIO+index)

Definition at line 354 of file 3780i.h.

#define InWordDsp (   index)    inw(usDspBaseIO+index)

Definition at line 353 of file 3780i.h.

#define MKBYTE (   var)    (*((unsigned char *)(&var)))

Definition at line 346 of file 3780i.h.

#define MKWORD (   var)    (*((unsigned short *)(&var)))

Definition at line 345 of file 3780i.h.

#define MW_ACI_MASK   0xE00B

Definition at line 256 of file 3780i.h.

#define MW_ADC_MASK   0x0001

Definition at line 250 of file 3780i.h.

#define MW_AIC1_MASK   0xE006

Definition at line 254 of file 3780i.h.

#define MW_AIC2_MASK   0x0006

Definition at line 251 of file 3780i.h.

#define MW_CDDAC_MASK   0x8001

Definition at line 253 of file 3780i.h.

#define MW_MIDI_MASK   0x0008

Definition at line 252 of file 3780i.h.

#define MW_UART_MASK   0xE00A

Definition at line 255 of file 3780i.h.

#define OutByteDsp (   index,
  value 
)    outb(value,usDspBaseIO+index)

Definition at line 356 of file 3780i.h.

#define OutWordDsp (   index,
  value 
)    outw(value,usDspBaseIO+index)

Definition at line 355 of file 3780i.h.

#define ReadGenCfg (   index)    dsp3780I_ReadGenCfg(usDspBaseIO,index)

Definition at line 351 of file 3780i.h.

#define ReadMsaCfg (   addr)    dsp3780I_ReadMsaCfg(usDspBaseIO,addr)

Definition at line 349 of file 3780i.h.

#define WriteGenCfg (   index,
  value 
)    dsp3780I_WriteGenCfg(usDspBaseIO,index,value)

Definition at line 350 of file 3780i.h.

#define WriteMsaCfg (   addr,
  value 
)    dsp3780I_WriteMsaCfg(usDspBaseIO,addr,value)

Definition at line 348 of file 3780i.h.

Typedef Documentation

Function Documentation

int dsp3780I_DisableDSP ( DSP_3780I_CONFIG_SETTINGS pSettings)

Definition at line 355 of file 3780i.c.

int dsp3780I_EnableDSP ( DSP_3780I_CONFIG_SETTINGS pSettings,
unsigned short pIrqMap,
unsigned short pDmaMap 
)

Definition at line 173 of file 3780i.c.

int dsp3780I_GetIPCSource ( unsigned short  usDspBaseIO,
unsigned short pusIPCSource 
)

Definition at line 699 of file 3780i.c.

int dsp3780I_ReadAndClearDStore ( unsigned short  usDspBaseIO,
void __user pvBuffer,
unsigned  uCount,
unsigned long  ulDSPAddr 
)

Definition at line 517 of file 3780i.c.

int dsp3780I_ReadDStore ( unsigned short  usDspBaseIO,
void __user pvBuffer,
unsigned  uCount,
unsigned long  ulDSPAddr 
)

Definition at line 476 of file 3780i.c.

int dsp3780I_ReadIStore ( unsigned short  usDspBaseIO,
void __user pvBuffer,
unsigned  uCount,
unsigned long  ulDSPAddr 
)

Definition at line 602 of file 3780i.c.

unsigned short dsp3780I_ReadMsaCfg ( unsigned short  usDspBaseIO,
unsigned long  ulMsaAddr 
)

Definition at line 73 of file 3780i.c.

int dsp3780I_Reset ( DSP_3780I_CONFIG_SETTINGS pSettings)

Definition at line 385 of file 3780i.c.

int dsp3780I_Run ( DSP_3780I_CONFIG_SETTINGS pSettings)

Definition at line 430 of file 3780i.c.

int dsp3780I_WriteDStore ( unsigned short  usDspBaseIO,
void __user pvBuffer,
unsigned  uCount,
unsigned long  ulDSPAddr 
)

Definition at line 560 of file 3780i.c.

int dsp3780I_WriteIStore ( unsigned short  usDspBaseIO,
void __user pvBuffer,
unsigned  uCount,
unsigned long  ulDSPAddr 
)

Definition at line 650 of file 3780i.c.

void dsp3780I_WriteMsaCfg ( unsigned short  usDspBaseIO,
unsigned long  ulMsaAddr,
unsigned short  usValue 
)

Definition at line 94 of file 3780i.c.