TwiceAsNice  2019-02-18
Classes | Functions | Variables
irq_enable.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 irq_enable.c:

Classes

struct  irq_func_t
 

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 _tx_data (int fd, int setup)
 
static int _frame_valid_start (int fd, int setup)
 
static int _frame_valid_end (int fd, int setup)
 
static int _command_d1 (int fd, int setup)
 
static int _command_d2 (int fd, int setup)
 
static int _command_d3 (int fd, int setup)
 
static int _command_d4 (int fd, int setup)
 
static int _command_d5 (int fd, int setup)
 
static int _command_d6 (int fd, int setup)
 
static int _tx_fifo_empty (int fd, int setup)
 
static int _tx_fifo_almost_empty (int fd, int setup)
 
static int _tx_fifo_almost_full (int fd, int setup)
 
static int _tx_fifo_full (int fd, int setup)
 
static int _rx_fifo_empty (int fd, int setup)
 
static int _rx_fifo_almost_empty (int fd, int setup)
 
static int _rx_fifo_almost_full (int fd, int setup)
 
static int _rx_fifo_full (int fd, int setup)
 
static int _wait_thread (void *arg)
 
static int _irq_enable_test (int fd, int index)
 
static int _irq_disable_test (int fd, int index)
 
static int _function_test (int fd)
 
int irq_enable_test (int fd)
 

Variables

static sem_t sem_enter
 
static sem_t sem_exit
 
static gsc_wait_t wait_dst
 
static int wait_fd
 
static const irq_func_t irq_list []
 

Function Documentation

◆ _command_d1()

static int _command_d1 ( int  fd,
int  setup 
)
static

◆ _command_d2()

static int _command_d2 ( int  fd,
int  setup 
)
static

◆ _command_d3()

static int _command_d3 ( int  fd,
int  setup 
)
static

◆ _command_d4()

static int _command_d4 ( int  fd,
int  setup 
)
static

◆ _command_d5()

static int _command_d5 ( int  fd,
int  setup 
)
static

◆ _command_d6()

static int _command_d6 ( int  fd,
int  setup 
)
static

◆ _frame_valid_end()

static int _frame_valid_end ( int  fd,
int  setup 
)
static

◆ _frame_valid_start()

static int _frame_valid_start ( int  fd,
int  setup 
)
static

◆ _function_test()

static int _function_test ( int  fd)
static

◆ _irq_disable_test()

static int _irq_disable_test ( int  fd,
int  index 
)
static

◆ _irq_enable_test()

static int _irq_enable_test ( int  fd,
int  index 
)
static

◆ _rx_fifo_almost_empty()

static int _rx_fifo_almost_empty ( int  fd,
int  setup 
)
static

◆ _rx_fifo_almost_full()

static int _rx_fifo_almost_full ( int  fd,
int  setup 
)
static

◆ _rx_fifo_empty()

static int _rx_fifo_empty ( int  fd,
int  setup 
)
static

◆ _rx_fifo_fill()

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

◆ _rx_fifo_full()

static int _rx_fifo_full ( int  fd,
int  setup 
)
static

◆ _service_test()

static int _service_test ( int  fd)
static

◆ _tx_data()

static int _tx_data ( int  fd,
int  setup 
)
static

◆ _tx_fifo_almost_empty()

static int _tx_fifo_almost_empty ( int  fd,
int  setup 
)
static

◆ _tx_fifo_almost_full()

static int _tx_fifo_almost_full ( int  fd,
int  setup 
)
static

◆ _tx_fifo_empty()

static int _tx_fifo_empty ( int  fd,
int  setup 
)
static

◆ _tx_fifo_fill()

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

◆ _tx_fifo_full()

static int _tx_fifo_full ( int  fd,
int  setup 
)
static

◆ _wait_thread()

static int _wait_thread ( void *  arg)
static

◆ irq_enable_test()

int irq_enable_test ( int  fd)

Variable Documentation

◆ irq_list

const irq_func_t irq_list[]
static
Initial value:
=
{
{ "Frame Valid Start", _frame_valid_start, 0x0001 },
{ "Frame Valid End", _frame_valid_end, 0x0002 },
{ "Cable Command D1", _command_d1, 0x0004 },
{ "Cable Command D2", _command_d2, 0x0008 },
{ "Cable Command D3", _command_d3, 0x0010 },
{ "Cable Command D4", _command_d4, 0x0020 },
{ "Cable Command D5", _command_d5, 0x0040 },
{ "Cable Command D6", _command_d6, 0x0080 },
{ "Tx FIFO Empty", _tx_fifo_empty, 0x0100 },
{ "Tx FIFO Almost Empty", _tx_fifo_almost_empty, 0x0200 },
{ "Tx FIFO Almost Full", _tx_fifo_almost_full, 0x0400 },
{ "Tx FIFO Full", _tx_fifo_full, 0x0800 },
{ "Rx FIFO Empty", _rx_fifo_empty, 0x1000 },
{ "Rx FIFO Almost Empty", _rx_fifo_almost_empty, 0x2000 },
{ "Rx FIFO Almost Full", _rx_fifo_almost_full, 0x4000 },
{ "Rx FIFO Full", _rx_fifo_full, 0x8000 },
{ NULL },
}
static int _tx_fifo_empty(int fd, int setup)
Definition: irq_enable.c:1008
static int _rx_fifo_almost_empty(int fd, int setup)
Definition: irq_enable.c:1242
static int _rx_fifo_empty(int fd, int setup)
Definition: irq_enable.c:1186
static int _command_d6(int fd, int setup)
Definition: irq_enable.c:888
static int _command_d4(int fd, int setup)
Definition: irq_enable.c:648
#define NULL
Definition: PciTypes.h:160
static int _tx_fifo_almost_empty(int fd, int setup)
Definition: irq_enable.c:1064
static int _rx_fifo_almost_full(int fd, int setup)
Definition: irq_enable.c:1298
static int _command_d1(int fd, int setup)
Definition: irq_enable.c:422
static int _tx_fifo_full(int fd, int setup)
Definition: irq_enable.c:1153
static int _rx_fifo_full(int fd, int setup)
Definition: irq_enable.c:1331
static int _tx_fifo_almost_full(int fd, int setup)
Definition: irq_enable.c:1120
static int _command_d3(int fd, int setup)
Definition: irq_enable.c:550
static int _command_d5(int fd, int setup)
Definition: irq_enable.c:768
static int _command_d2(int fd, int setup)
Definition: irq_enable.c:486
static int _frame_valid_start(int fd, int setup)
Definition: irq_enable.c:294
static int _frame_valid_end(int fd, int setup)
Definition: irq_enable.c:358

◆ sem_enter

sem_t sem_enter
static

◆ sem_exit

sem_t sem_exit
static

◆ wait_dst

gsc_wait_t wait_dst
static

◆ wait_fd

int wait_fd
static