mbgtools-lx  4.2.8
Device read functions

Functions

static int pcps_read_null (PCPS_DDEV *pddev, uint8_t cmd, void FAR *buffer, uint16_t count)
 Dummy read function. More...
 
static int pcps_read_std (PCPS_DDEV *pddev, uint8_t cmd, void FAR *buffer, uint16_t count)
 Read function for devices with ISA or micro channel bus. More...
 
static int pcps_read_amcc_s5933 (PCPS_DDEV *pddev, uint8_t cmd, void FAR *buffer, uint16_t count)
 Read function for devices with AMCC S5933 PCI interface chip. More...
 
static int pcps_read_amcc_s5920 (PCPS_DDEV *pddev, uint8_t cmd, void FAR *buffer, uint16_t count)
 Read function for devices with AMCC S5920 PCI interface chip. More...
 
static int pcps_read_asic (PCPS_DDEV *pddev, uint8_t cmd, void FAR *buffer, uint16_t count)
 Read function for devices with Meinberg PCI interface ASIC. More...
 

Variables

PCPS_READ_FNC pcps_read_null
 
PCPS_READ_FNC pcps_read_std
 
PCPS_READ_FNC pcps_read_amcc_s5933
 
PCPS_READ_FNC pcps_read_amcc_s5920
 
PCPS_READ_FNC pcps_read_asic
 
PCPS_READ_FNC pcps_read_null
 
PCPS_READ_FNC pcps_read_std
 
PCPS_READ_FNC pcps_read_amcc_s5933
 
PCPS_READ_FNC pcps_read_amcc_s5920
 
PCPS_READ_FNC pcps_read_asic
 

Detailed Description

These group of functions is used for low level access to Meinberg bus-level devices. Which of the function is actually to be used depends on the device's bus type and interface chip and is determined by the function pcps_probe_device which is called at device startup.

See also
pcps_read_null
pcps_read_std
pcps_read_amcc_s5933
pcps_read_amcc_s5920
pcps_read_asic
::pcps_read_asic_mm
::pcps_read_asic_mm16
::pcps_read_usb

Function Documentation

◆ pcps_read_amcc_s5920()

static int pcps_read_amcc_s5920 ( PCPS_DDEV pddev,
uint8_t  cmd,
void FAR buffer,
uint16_t  count 
)
static

Read function for devices with AMCC S5920 PCI interface chip.

Parameters
[in]pddevPointer to the device structure
[in]cmdThe command code for the board, see PCPS_CMD_CODES
[out]bufferA buffer to take the bytes to be read
[in]countThe number of bytes to be read into the buffer
Returns
MBG_SUCCESS on success, else one of the MBG_ERROR_CODES
See also
Device read functions

Definition at line 2324 of file pcpsdrvr.c.

References _mbg_inp32_native, _mbg_outp8, _mbg_put_unaligned, _pcps_ddev_io_base_mapped, _pcps_ddev_read_status_port(), _pcps_disb_local_irq_save, _pcps_irq_flags, _pcps_local_irq_restore, PCPS_DDEV_s::acc_cycles, AMCC_OP_REG_OMB, BYTE_OF, FAR, mbg_get_pc_cycles(), mbg_rc_is_error, pcps_dump_data(), pcps_wait_busy(), report_io_cmd(), and report_ret_val().

◆ pcps_read_amcc_s5933()

static int pcps_read_amcc_s5933 ( PCPS_DDEV pddev,
uint8_t  cmd,
void FAR buffer,
uint16_t  count 
)
static

Read function for devices with AMCC S5933 PCI interface chip.

Parameters
[in]pddevPointer to the device structure
[in]cmdThe command code for the board, see PCPS_CMD_CODES
[out]bufferA buffer to take the bytes to be read
[in]countThe number of bytes to be read into the buffer
Returns
MBG_SUCCESS on success, else one of the MBG_ERROR_CODES
See also
Device read functions

Definition at line 2201 of file pcpsdrvr.c.

References _mbg_inp16_to_cpu, _mbg_inp8, _mbg_outp8, _pcps_ddev_io_base_mapped, _pcps_ddev_read_status_port(), _pcps_disb_local_irq_save, _pcps_irq_flags, _pcps_local_irq_restore, PCPS_DDEV_s::acc_cycles, AMCC_OP_REG_FIFO, AMCC_OP_REG_INTCSR, AMCC_OP_REG_MCSR, AMCC_OP_REG_OMB1, FAR, MBG_ERR_NO_DATA, mbg_get_pc_cycles(), mbg_rc_is_error, pcps_dump_data(), pcps_wait_busy(), report_io_cmd(), and report_ret_val().

◆ pcps_read_asic()

static int pcps_read_asic ( PCPS_DDEV pddev,
uint8_t  cmd,
void FAR buffer,
uint16_t  count 
)
static

Read function for devices with Meinberg PCI interface ASIC.

Parameters
[in]pddevPointer to the device structure
[in]cmdThe command code for the board, see PCPS_CMD_CODES
[out]bufferA buffer to take the bytes to be read
[in]countThe number of bytes to be read into the buffer
Returns
MBG_SUCCESS on success, else one of the MBG_ERROR_CODES
See also
::pcps_read_asic_mm
::pcps_read_asic_mm16
Device read functions

Definition at line 2470 of file pcpsdrvr.c.

References _mbg_inp32_native, _mbg_inp32_to_cpu, _mbg_outp32_to_mbg, _mbg_put_unaligned, _pcps_ddev_io_base_mapped, _pcps_disb_local_irq_save, _pcps_irq_flags, _pcps_local_irq_restore, PCPS_DDEV_s::acc_cycles, PCI_ASIC_REG::b, FAR, mbg_get_pc_cycles(), mbg_rc_is_error, pcps_dump_data(), pcps_wait_busy(), report_io_cmd(), report_ret_val(), and PCI_ASIC_REG::ul.

◆ pcps_read_null()

static int pcps_read_null ( PCPS_DDEV pddev,
uint8_t  cmd,
void FAR buffer,
uint16_t  count 
)
static

Dummy read function.

Used if a clock is not properly initialized, in order to avoid I/O access on unspecified ports.

Parameters
[in]pddevPointer to the device structure
[in]cmdThe command code for the board, see PCPS_CMD_CODES
[out]bufferA buffer to take the bytes to be read
[in]countThe number of bytes to be read into the buffer
Returns
MBG_SUCCESS on success, else one of the MBG_ERROR_CODES
See also
Device read functions

Definition at line 2059 of file pcpsdrvr.c.

References MBG_ERR_TIMEOUT.

◆ pcps_read_std()

static int pcps_read_std ( PCPS_DDEV pddev,
uint8_t  cmd,
void FAR buffer,
uint16_t  count 
)
static

Read function for devices with ISA or micro channel bus.

Parameters
[in]pddevPointer to the device structure
[in]cmdThe command code for the board, see PCPS_CMD_CODES
[out]bufferA buffer to take the bytes to be read
[in]countThe number of bytes to be read into the buffer
Returns
MBG_SUCCESS on success, else one of the MBG_ERROR_CODES
See also
Device read functions

Definition at line 2091 of file pcpsdrvr.c.

References _mbg_inp8, _mbg_outp8, _pcps_ddev_io_base_mapped, _pcps_ddev_read_status_port(), _pcps_disb_local_irq_save, _pcps_irq_flags, _pcps_local_irq_restore, PCPS_DDEV_s::acc_cycles, FAR, mbg_get_pc_cycles(), mbg_rc_is_error, pcps_dump_data(), pcps_wait_busy(), report_io_cmd(), and report_ret_val().

Variable Documentation

◆ pcps_read_amcc_s5920 [1/2]

PCPS_READ_FNC pcps_read_amcc_s5920

Definition at line 2445 of file pcpsdrvr.c.

Referenced by pcps_probe_device().

◆ pcps_read_amcc_s5920 [2/2]

PCPS_READ_FNC pcps_read_amcc_s5920

Definition at line 2445 of file pcpsdrvr.c.

◆ pcps_read_amcc_s5933 [1/2]

PCPS_READ_FNC pcps_read_amcc_s5933

Definition at line 2301 of file pcpsdrvr.c.

Referenced by pcps_probe_device().

◆ pcps_read_amcc_s5933 [2/2]

PCPS_READ_FNC pcps_read_amcc_s5933

Definition at line 2301 of file pcpsdrvr.c.

◆ pcps_read_asic [1/2]

PCPS_READ_FNC pcps_read_asic

Definition at line 2585 of file pcpsdrvr.c.

◆ pcps_read_asic [2/2]

PCPS_READ_FNC pcps_read_asic

Definition at line 2585 of file pcpsdrvr.c.

Referenced by pcps_probe_device().

◆ pcps_read_null [1/2]

PCPS_READ_FNC pcps_read_null

Definition at line 2073 of file pcpsdrvr.c.

◆ pcps_read_null [2/2]

PCPS_READ_FNC pcps_read_null

Definition at line 2073 of file pcpsdrvr.c.

Referenced by pcps_cleanup_device(), and pcps_probe_device().

◆ pcps_read_std [1/2]

PCPS_READ_FNC pcps_read_std

Definition at line 2180 of file pcpsdrvr.c.

Referenced by pcps_probe_device().

◆ pcps_read_std [2/2]

PCPS_READ_FNC pcps_read_std

Definition at line 2180 of file pcpsdrvr.c.