TwiceAsNice  2019-02-18
Macros | Functions | Variables
wait_event.c File Reference
#include <errno.h>
#include <semaphore.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include "main.h"
Include dependency graph for wait_event.c:

Macros

#define _1_SEC   (1000L)
 
#define _15_SEC   (15L * _1_SEC)
 
#define _30_SEC   (30L * _1_SEC)
 

Functions

static int _service_test (int fd)
 
static int _rx_fifo_fill (int fd, __u32 bsr_mask, __u32 bsr_value)
 
static int _tx_fifo_fill (int fd, __u32 bsr_mask, __u32 bsr_value)
 
static int _wait_thread (void *arg)
 
static int _wait_main_dma (int fd)
 
static int _wait_main_gsc (int fd)
 
static int _tx_data (int fd)
 
static int _wait_gsc_frame_valid_start (int fd)
 
static int _wait_gsc_frame_valid_end (int fd)
 
static int _wait_gsc_cable_command_d1 (int fd)
 
static int _wait_gsc_cable_command_d2 (int fd)
 
static int _wait_gsc_cable_command_d3 (int fd)
 
static int _wait_gsc_cable_command_d4 (int fd)
 
static int _wait_gsc_cable_command_d5 (int fd)
 
static int _wait_gsc_cable_command_d6 (int fd)
 
static int _wait_gsc_tx_fifo_empty (int fd)
 
static int _wait_gsc_tx_fifo_almost_empty (int fd)
 
static int _wait_gsc_tx_fifo_almost_full (int fd)
 
static int _wait_gsc_tx_fifo_full (int fd)
 
static int _wait_gsc_rx_fifo_empty (int fd)
 
static int _wait_gsc_rx_fifo_almost_empty (int fd)
 
static int _wait_gsc_rx_fifo_almost_full (int fd)
 
static int _wait_gsc_rx_fifo_full (int fd)
 
static int _wait_io_tx_done (int fd)
 
static int _wait_io_tx_error (int fd)
 
static int _wait_io_tx_timeout (int fd)
 
static int _write_thread (void *arg)
 
static int _wait_io_tx_abort (int fd)
 
static int _wait_io_rx_done (int fd)
 
static int _wait_io_rx_error (int fd)
 
static int _wait_io_rx_timeout (int fd)
 
static int _read_thread (void *arg)
 
static int _wait_io_rx_abort (int fd)
 
static int _wait_timeout (int fd)
 
static int _wait_cancel (int fd)
 
static int _process_thread (int fd, int index)
 
static int _function_test (int fd)
 
int wait_event_test (int fd)
 

Variables

static int rx_stat
 
static sem_t sem_enter
 
static sem_t sem_exit
 
static int tx_stat
 
static gsc_wait_t wait_dst
 
static int wait_fd
 
struct {
   const char *   name
 
   int(*   function )(int fd)
 
   gsc_wait_t   wait
 
wait_src []
 

Macro Definition Documentation

◆ _15_SEC

#define _15_SEC   (15L * _1_SEC)

◆ _1_SEC

#define _1_SEC   (1000L)

◆ _30_SEC

#define _30_SEC   (30L * _1_SEC)

Function Documentation

◆ _function_test()

static int _function_test ( int  fd)
static

◆ _process_thread()

static int _process_thread ( int  fd,
int  index 
)
static

◆ _read_thread()

static int _read_thread ( void *  arg)
static

◆ _rx_fifo_fill()

static int _rx_fifo_fill ( int  fd,
__u32  bsr_mask,
__u32  bsr_value 
)
static

◆ _service_test()

static int _service_test ( int  fd)
static

◆ _tx_data()

static int _tx_data ( int  fd)
static

◆ _tx_fifo_fill()

static int _tx_fifo_fill ( int  fd,
__u32  bsr_mask,
__u32  bsr_value 
)
static

◆ _wait_cancel()

static int _wait_cancel ( int  fd)
static

◆ _wait_gsc_cable_command_d1()

static int _wait_gsc_cable_command_d1 ( int  fd)
static

◆ _wait_gsc_cable_command_d2()

static int _wait_gsc_cable_command_d2 ( int  fd)
static

◆ _wait_gsc_cable_command_d3()

static int _wait_gsc_cable_command_d3 ( int  fd)
static

◆ _wait_gsc_cable_command_d4()

static int _wait_gsc_cable_command_d4 ( int  fd)
static

◆ _wait_gsc_cable_command_d5()

static int _wait_gsc_cable_command_d5 ( int  fd)
static

◆ _wait_gsc_cable_command_d6()

static int _wait_gsc_cable_command_d6 ( int  fd)
static

◆ _wait_gsc_frame_valid_end()

static int _wait_gsc_frame_valid_end ( int  fd)
static

◆ _wait_gsc_frame_valid_start()

static int _wait_gsc_frame_valid_start ( int  fd)
static

◆ _wait_gsc_rx_fifo_almost_empty()

static int _wait_gsc_rx_fifo_almost_empty ( int  fd)
static

◆ _wait_gsc_rx_fifo_almost_full()

static int _wait_gsc_rx_fifo_almost_full ( int  fd)
static

◆ _wait_gsc_rx_fifo_empty()

static int _wait_gsc_rx_fifo_empty ( int  fd)
static

◆ _wait_gsc_rx_fifo_full()

static int _wait_gsc_rx_fifo_full ( int  fd)
static

◆ _wait_gsc_tx_fifo_almost_empty()

static int _wait_gsc_tx_fifo_almost_empty ( int  fd)
static

◆ _wait_gsc_tx_fifo_almost_full()

static int _wait_gsc_tx_fifo_almost_full ( int  fd)
static

◆ _wait_gsc_tx_fifo_empty()

static int _wait_gsc_tx_fifo_empty ( int  fd)
static

◆ _wait_gsc_tx_fifo_full()

static int _wait_gsc_tx_fifo_full ( int  fd)
static

◆ _wait_io_rx_abort()

static int _wait_io_rx_abort ( int  fd)
static

◆ _wait_io_rx_done()

static int _wait_io_rx_done ( int  fd)
static

◆ _wait_io_rx_error()

static int _wait_io_rx_error ( int  fd)
static

◆ _wait_io_rx_timeout()

static int _wait_io_rx_timeout ( int  fd)
static

◆ _wait_io_tx_abort()

static int _wait_io_tx_abort ( int  fd)
static

◆ _wait_io_tx_done()

static int _wait_io_tx_done ( int  fd)
static

◆ _wait_io_tx_error()

static int _wait_io_tx_error ( int  fd)
static

◆ _wait_io_tx_timeout()

static int _wait_io_tx_timeout ( int  fd)
static

◆ _wait_main_dma()

static int _wait_main_dma ( int  fd)
static

◆ _wait_main_gsc()

static int _wait_main_gsc ( int  fd)
static

◆ _wait_thread()

static int _wait_thread ( void *  arg)
static

◆ _wait_timeout()

static int _wait_timeout ( int  fd)
static

◆ _write_thread()

static int _write_thread ( void *  arg)
static

◆ wait_event_test()

int wait_event_test ( int  fd)

Variable Documentation

◆ function

int(* function) (int fd)

◆ name

const char* name

◆ rx_stat

int rx_stat
static

◆ sem_enter

sem_t sem_enter
static

◆ sem_exit

sem_t sem_exit
static

◆ tx_stat

int tx_stat
static

◆ wait

gsc_wait_t wait

◆ wait_dst

gsc_wait_t wait_dst
static

◆ wait_fd

int wait_fd
static

◆ wait_src

const { ... } wait_src[]