|
@@ -283,58 +283,41 @@ union str_ModuleInfo {
|
|
|
|
|
|
/* Private structure for the addi_apci3120 driver */
|
|
|
struct addi_private {
|
|
|
-
|
|
|
int iobase;
|
|
|
int i_IobaseAmcc; /* base+size for AMCC chip */
|
|
|
int i_IobaseAddon; /* addon base address */
|
|
|
int i_IobaseReserved;
|
|
|
- void __iomem *dw_AiBase;
|
|
|
unsigned char b_AiContinuous; /* we do unlimited AI */
|
|
|
- unsigned char b_AiInitialisation;
|
|
|
unsigned int ui_AiActualScan; /* how many scans we finished */
|
|
|
- unsigned int ui_AiBufferPtr; /* data buffer ptr in samples */
|
|
|
unsigned int ui_AiNbrofChannels; /* how many channels is measured */
|
|
|
unsigned int ui_AiScanLength; /* Length of actual scanlist */
|
|
|
- unsigned int ui_AiActualScanPosition; /* position in actual scan */
|
|
|
unsigned int *pui_AiChannelList; /* actual chanlist */
|
|
|
unsigned int ui_AiChannelList[32]; /* actual chanlist */
|
|
|
- unsigned char b_AiChannelConfiguration[32]; /* actual chanlist */
|
|
|
unsigned int ui_AiReadData[32];
|
|
|
- unsigned int dw_AiInitialised;
|
|
|
unsigned int ui_AiTimer0; /* Timer Constant for Timer0 */
|
|
|
unsigned int ui_AiTimer1; /* Timer constant for Timer1 */
|
|
|
unsigned int ui_AiFlags;
|
|
|
unsigned int ui_AiDataLength;
|
|
|
- short *AiData; /* Pointer to sample data */
|
|
|
unsigned int ui_AiNbrofScans; /* number of scans to do */
|
|
|
unsigned short us_UseDma; /* To use Dma or not */
|
|
|
unsigned char b_DmaDoubleBuffer; /* we can use double buffering */
|
|
|
unsigned int ui_DmaActualBuffer; /* which buffer is used now */
|
|
|
- /* UPDATE-0.7.57->0.7.68 */
|
|
|
- /* unsigned int ul_DmaBufferVirtual[2]; pointers to begin of DMA buffer */
|
|
|
short *ul_DmaBufferVirtual[2]; /* pointers to begin of DMA buffer */
|
|
|
unsigned int ul_DmaBufferHw[2]; /* hw address of DMA buff */
|
|
|
unsigned int ui_DmaBufferSize[2]; /* size of dma buffer in bytes */
|
|
|
unsigned int ui_DmaBufferUsesize[2]; /* which size we may now used for transfer */
|
|
|
- unsigned int ui_DmaBufferSamples[2]; /* size in samples */
|
|
|
unsigned int ui_DmaBufferPages[2]; /* number of pages in buffer */
|
|
|
unsigned char b_DigitalOutputRegister; /* Digital Output Register */
|
|
|
unsigned char b_OutputMemoryStatus;
|
|
|
- unsigned char b_AnalogInputChannelNbr; /* Analog input channel Nbr */
|
|
|
- unsigned char b_AnalogOutputChannelNbr; /* Analog input Output Nbr */
|
|
|
unsigned char b_TimerSelectMode; /* Contain data written at iobase + 0C */
|
|
|
unsigned char b_ModeSelectRegister; /* Contain data written at iobase + 0E */
|
|
|
unsigned short us_OutputRegister; /* Contain data written at iobase + 0 */
|
|
|
- unsigned char b_InterruptState;
|
|
|
- unsigned char b_TimerInit; /* Specify if InitTimerWatchdog was load */
|
|
|
- unsigned char b_TimerStarted; /* Specify if timer 2 is running or not */
|
|
|
unsigned char b_Timer2Mode; /* Specify the timer 2 mode */
|
|
|
unsigned char b_Timer2Interrupt; /* Timer2 interrupt enable or disable */
|
|
|
unsigned char b_AiCyclicAcquisition; /* indicate cyclic acquisition */
|
|
|
unsigned char b_InterruptMode; /* eoc eos or dma */
|
|
|
unsigned char b_EocEosInterrupt; /* Enable disable eoc eos interrupt */
|
|
|
unsigned int ui_EocEosConversionTime;
|
|
|
- unsigned char b_EocEosConversionTimeBase;
|
|
|
unsigned char b_SingelDiff;
|
|
|
unsigned char b_ExttrigEnable; /* To enable or disable external trigger */
|
|
|
|
|
@@ -365,7 +348,6 @@ struct addi_private {
|
|
|
} s_InterruptParameters;
|
|
|
|
|
|
union str_ModuleInfo s_ModuleInfo[4];
|
|
|
- unsigned int ul_TTLPortConfiguration[10];
|
|
|
|
|
|
/* Parameters read from EEPROM overriding static board info */
|
|
|
struct {
|