Go to the source code of this file.
#define CSR_FULL 0xffffffff |
Definition at line 42 of file sis3801.h.
Referenced by sis3801_CSR_read(), sis3801_CSR_write(), sis3801_Status(), SIS3803_CSR_read(), sis3803_CSR_read(), and sis3803_CSR_write().
#define CSR_READ 0x0 |
Definition at line 41 of file sis3801.h.
Referenced by sis3803_CSR_read(), sis3803_input_mode(), and sis3803_ref1().
#define CSR_WRITE 0x0 |
Definition at line 43 of file sis3801.h.
Referenced by sis3803_CSR_write(), sis3803_input_mode(), sis3803_int_clear(), sis3803_int_source(), sis3803_int_source_disable(), sis3803_int_source_enable(), sis3803_test_disable(), and sis3803_test_enable().
#define DISABLE_IRQ_ALFULL 0x80000000 |
Definition at line 101 of file sis3801.h.
Referenced by sis3801_int_attach(), sis3801_int_clear(), sis3801_int_detach(), sis3801_int_source(), and sis3801_int_source_disable().
#define DISABLE_IRQ_CIP 0x10000000 |
Definition at line 98 of file sis3801.h.
Referenced by sis3801_int_attach(), sis3801_int_clear(), sis3801_int_detach(), sis3801_int_source(), and sis3801_int_source_disable().
#define DISABLE_IRQ_FULL 0x20000000 |
Definition at line 99 of file sis3801.h.
Referenced by sis3801_int_attach(), sis3801_int_clear(), sis3801_int_detach(), sis3801_int_source(), and sis3801_int_source_disable().
#define DISABLE_IRQ_HFULL 0x40000000 |
Definition at line 100 of file sis3801.h.
Referenced by sis3801_int_attach(), sis3801_int_clear(), sis3801_int_detach(), sis3801_int_source(), and sis3801_int_source_disable().
#define ENABLE_IRQ_ALFULL 0x00800000 |
Definition at line 97 of file sis3801.h.
Referenced by sis3801_int_clear(), sis3801_int_source(), and sis3801_int_source_enable().
#define ENABLE_IRQ_CIP 0x00100000 |
Definition at line 94 of file sis3801.h.
Referenced by sis3801_int_clear(), sis3801_int_source(), and sis3801_int_source_enable().
#define ENABLE_IRQ_FULL 0x00200000 |
Definition at line 95 of file sis3801.h.
Referenced by sis3801_int_clear(), sis3801_int_source(), and sis3801_int_source_enable().
#define ENABLE_IRQ_HFULL 0x00400000 |
Definition at line 96 of file sis3801.h.
Referenced by sis3801_int_clear(), sis3801_int_source(), and sis3801_int_source_enable().
#define GET_MODE 0x0000000C |
Definition at line 48 of file sis3801.h.
Referenced by sis3801_CSR_read(), sis3801_input_mode(), and sis3803_input_mode().
#define HALF_FIFO 16384 |
#define IS_102LNE 0x00000040 |
#define IS_25MHZ 0x00000010 |
#define IS_EXTERN_CLEAR 0x00020000 |
#define IS_EXTERN_DISABLE 0x00040000 |
#define IS_EXTERN_NEXT 0x00010000 |
#define IS_FIFO_ALMOST_EMPTY 0x00000200 |
#define IS_FIFO_EMPTY 0x00000100 |
#define IS_FIFO_FULL 0x00001000 |
Definition at line 69 of file sis3801.h.
Referenced by sis3801_FIFO_flush(), sis3801_HFIFO_read(), and sis3801_Status().
#define IS_FIFO_HALF_FULL 0x00000400 |
#define IS_IRQ_ALFULL 0x80000000 |
#define IS_IRQ_CIP 0x10000000 |
#define IS_IRQ_EN_ALFULL 0x00800000 |
#define IS_IRQ_EN_CIP 0x00100000 |
#define IS_IRQ_EN_FULL 0x00200000 |
#define IS_IRQ_EN_HFULL 0x00400000 |
#define IS_IRQ_FULL 0x20000000 |
#define IS_IRQ_HFULL 0x40000000 |
#define IS_LED 0x00000001 |
#define IS_LNE 0x00000080 |
#define IS_NEXT_LOGIC_ENABLE 0x00008000 |
#define IS_REF1 0x00002000 |
Definition at line 70 of file sis3801.h.
Referenced by sis3801_ref1(), sis3801_Status(), SIS3803_CSR_read(), and sis3803_ref1().
#define IS_SOFT_COUNTING 0x00080000 |
#define IS_TEST 0x00000020 |
#define MAX_FIFO_SIZE 2*HALF_FIFO |
#define SIS3801_COPY_REG_WO 0x00C |
#define SIS3801_CSR_RW 0x000 |
Definition at line 104 of file sis3801.h.
Referenced by sis3801_CSR_read(), sis3801_CSR_write(), sis3801_input_mode(), sis3801_int_clear(), sis3801_int_source(), sis3801_int_source_disable(), sis3801_int_source_enable(), sis3801_next_logic(), and sis3801_ref1().
#define SIS3801_DISABLE_NEXT_CLK_WO 0x02C |
#define SIS3801_DISABLE_REF_CH1_WO 0x054 |
#define SIS3801_ENABLE_NEXT_CLK_WO 0x028 |
#define SIS3801_ENABLE_REF_CH1_WO 0x050 |
#define SIS3801_FIFO_CLEAR_WO 0x020 |
#define SIS3801_FIFO_RO 0x100 |
Definition at line 118 of file sis3801.h.
Referenced by sis3801_FIFO_flush(), and sis3801_HFIFO_read().
#define SIS3801_IRQ_REG_RW 0x004 |
Definition at line 106 of file sis3801.h.
Referenced by sis3801_int_attach(), sis3801_IRQ_REG_read(), and sis3801_IRQ_REG_write().
#define SIS3801_MODULE_ID_RO 0x004 |
#define SIS3801_MODULE_RESET_WO 0x060 |
#define SIS3801_PRESCALE_REG_RW 0x080 |
#define VME_IRQ_ENABLE 0x00000800 |
Definition at line 102 of file sis3801.h.
Referenced by sis3801_int_attach(), and sis3803_int_attach().
void sis3801_channel_enable | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | nch | |||
) |
DWORD sis3801_CSR_read | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
const DWORD | what | |||
) |
Purpose: Read the CSR and return 1/0 based on what. except for what == CSR_FULL where it returns current CSR
Definition at line 224 of file sis3801.c.
Referenced by sis3801_CSR_write(), sis3801_FIFO_flush(), sis3801_HFIFO_read(), and sis3801_Status().
DWORD sis3801_CSR_write | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
const DWORD | what | |||
) |
DWORD sis3801_dwell_time | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | dwell | |||
) |
void sis3801_FIFO_clear | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
int sis3801_FIFO_flush | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD * | pfifo | |||
) |
int sis3801_HFIFO_read | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD * | pfifo | |||
) |
void sis3801_int_attach | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | base_vect, | |||
int | level, | |||
void(*)(void) | isr | |||
) |
Purpose: Book an ISR for a bitwise set of interrupt input (0xff). The interrupt vector is then the VECTOR_BASE+intnum Input: DWORD * base_addr : base address of the sis3801 DWORD base_vect : base vector of the module int level : IRQ level (1..7) DWORD isr_routine : interrupt routine pointer
void sis3801_int_clear | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
const int | intnum | |||
) |
void sis3801_int_detach | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | base_vect, | |||
int | level | |||
) |
void sis3801_int_source | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | int_source | |||
) |
Purpose: Enable the one of the 4 interrupt using the predefined parameters (see sis3801.h) DWORD * intnum : interrupt number (input 0..3)
Definition at line 422 of file sis3801.c.
Referenced by sis3801_int_attach(), and sis3801_int_detach().
void sis3801_int_source_disable | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
const int | intnum | |||
) |
void sis3801_int_source_enable | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
const int | intnum | |||
) |
DWORD sis3801_IRQ_REG_read | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
DWORD sis3801_IRQ_REG_write | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | vector | |||
) |
DWORD sis3801_module_ID | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
Module ID Purpose: return the Module ID number (I) version (V) IRQ level (L) IRQ vector# (BB) 0xIIIIVLBB
Definition at line 37 of file sis3801.c.
Referenced by sis3801_Status().
DWORD sis3801_module_mode | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
DWORD | mode | |||
) |
void sis3801_module_reset | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int sis3801_next_logic | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
DWORD | endis | |||
) |
int sis3801_ref1 | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | endis | |||
) |
int sis3801_Setup | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | mode | |||
) |
Sets all the necessary parameters for a given configuration. The configuration is provided by the mode argument. Add your own configuration in the case statement. Let me know your setting if you want to include it in the distribution.
*mvme | VME structure | |
base | Module base address | |
mode | Configuration mode number | |
*nentry | number of entries requested and returned. |
void sis3801_setup | ( | const MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
int | mode, | |||
int | dsp | |||
) |
void sis3801_Status | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |