mbgtools-lx
4.2.8
|
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... | |
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.
|
static |
Read function for devices with AMCC S5920 PCI interface chip.
[in] | pddev | Pointer to the device structure |
[in] | cmd | The command code for the board, see PCPS_CMD_CODES |
[out] | buffer | A buffer to take the bytes to be read |
[in] | count | The number of bytes to be read into the buffer |
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().
|
static |
Read function for devices with AMCC S5933 PCI interface chip.
[in] | pddev | Pointer to the device structure |
[in] | cmd | The command code for the board, see PCPS_CMD_CODES |
[out] | buffer | A buffer to take the bytes to be read |
[in] | count | The number of bytes to be read into the buffer |
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().
|
static |
Read function for devices with Meinberg PCI interface ASIC.
[in] | pddev | Pointer to the device structure |
[in] | cmd | The command code for the board, see PCPS_CMD_CODES |
[out] | buffer | A buffer to take the bytes to be read |
[in] | count | The number of bytes to be read into the buffer |
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.
|
static |
Dummy read function.
Used if a clock is not properly initialized, in order to avoid I/O access on unspecified ports.
[in] | pddev | Pointer to the device structure |
[in] | cmd | The command code for the board, see PCPS_CMD_CODES |
[out] | buffer | A buffer to take the bytes to be read |
[in] | count | The number of bytes to be read into the buffer |
Definition at line 2059 of file pcpsdrvr.c.
References MBG_ERR_TIMEOUT.
|
static |
Read function for devices with ISA or micro channel bus.
[in] | pddev | Pointer to the device structure |
[in] | cmd | The command code for the board, see PCPS_CMD_CODES |
[out] | buffer | A buffer to take the bytes to be read |
[in] | count | The number of bytes to be read into the buffer |
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().
PCPS_READ_FNC pcps_read_amcc_s5920 |
Definition at line 2445 of file pcpsdrvr.c.
Referenced by pcps_probe_device().
PCPS_READ_FNC pcps_read_amcc_s5920 |
Definition at line 2445 of file pcpsdrvr.c.
PCPS_READ_FNC pcps_read_amcc_s5933 |
Definition at line 2301 of file pcpsdrvr.c.
Referenced by pcps_probe_device().
PCPS_READ_FNC pcps_read_amcc_s5933 |
Definition at line 2301 of file pcpsdrvr.c.
PCPS_READ_FNC pcps_read_asic |
Definition at line 2585 of file pcpsdrvr.c.
PCPS_READ_FNC pcps_read_asic |
Definition at line 2585 of file pcpsdrvr.c.
Referenced by pcps_probe_device().
PCPS_READ_FNC pcps_read_null |
Definition at line 2073 of file pcpsdrvr.c.
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_FNC pcps_read_std |
Definition at line 2180 of file pcpsdrvr.c.
Referenced by pcps_probe_device().
PCPS_READ_FNC pcps_read_std |
Definition at line 2180 of file pcpsdrvr.c.