TwiceAsNice  2019-02-18
Macros | Functions | Variables
gsc_util_reg_pex8111.c File Reference
#include <stdio.h>
#include <asm/types.h>
#include "gsc_pex8111.h"
#include "gsc_utils.h"
Include dependency graph for gsc_util_reg_pex8111.c:

Macros

#define _PCI_REG(a)   "PCI " #a, GSC_PCI_8111_##a, 0, 0, 0, NULL
 
#define _PLX_REG(a)   "PLX " #a, GSC_PLX_8111_##a, 0, 0, 0, NULL
 

Functions

static const gsc_reg_def_t_find_reg (unsigned long reg, const gsc_reg_def_t *list)
 
int gsc_reg_pex8111_list_pci (int fd)
 
int gsc_reg_pex8111_list_plx (int fd)
 
const char * gsc_reg_pex8111_get_desc (unsigned long reg)
 
const char * gsc_reg_pex8111_get_name (unsigned long reg)
 

Variables

static gsc_reg_def_t _pci []
 
static gsc_reg_def_t _plx []
 

Macro Definition Documentation

◆ _PCI_REG

#define _PCI_REG (   a)    "PCI " #a, GSC_PCI_8111_##a, 0, 0, 0, NULL

◆ _PLX_REG

#define _PLX_REG (   a)    "PLX " #a, GSC_PLX_8111_##a, 0, 0, 0, NULL

Function Documentation

◆ _find_reg()

static const gsc_reg_def_t* _find_reg ( unsigned long  reg,
const gsc_reg_def_t list 
)
static

◆ gsc_reg_pex8111_get_desc()

const char* gsc_reg_pex8111_get_desc ( unsigned long  reg)

◆ gsc_reg_pex8111_get_name()

const char* gsc_reg_pex8111_get_name ( unsigned long  reg)

◆ gsc_reg_pex8111_list_pci()

int gsc_reg_pex8111_list_pci ( int  fd)

◆ gsc_reg_pex8111_list_plx()

int gsc_reg_pex8111_list_plx ( int  fd)

Variable Documentation

◆ _pci

gsc_reg_def_t _pci[]
static

◆ _plx

gsc_reg_def_t _plx[]
static
Initial value:
=
{
{ _PLX_REG(DIR), "Device Initialization Register" },
{ _PLX_REG(SECR), "Serial EEPROM Control Register" },
{ _PLX_REG(SECFR), "Serial EEPROM Clock Frequency Register" },
{ _PLX_REG(PCR), "PCI Control Register" },
{ _PLX_REG(PEIRER), "PCI Express Interrupt Request Enable Register" },
{ _PLX_REG(IRER), "Interrupt Request Enable Register" },
{ _PLX_REG(IRSR), "Interrupt Request Status Register" },
{ _PLX_REG(PR), "Power Register" },
{ _PLX_REG(GPIOCR), "General Purpose I/O Control Register" },
{ _PLX_REG(GPIOSR), "General Purpose I/O Status Register" },
{ _PLX_REG(M0R), "Mailbox 0 Register" },
{ _PLX_REG(M1R), "Mailbox 1 Register" },
{ _PLX_REG(M2R), "Mailbox 2 Register" },
{ _PLX_REG(M3R), "Mailbox 3 Register" },
{ _PLX_REG(CSRR), "Chip Silicon Revision Register" },
{ _PLX_REG(DCR), "Diagnostics Control Register" },
{ _PLX_REG(TCC0R), "TLP Controller Configuration 0 Register" },
{ _PLX_REG(TCC1R), "TLP Controller Configuration 1 Register" },
{ _PLX_REG(TCC2R), "TLP Controller Configuration 2 Register" },
{ _PLX_REG(TCTR), "TLP Controller Tag Register" },
{ _PLX_REG(TCTL0R), "TLP Controller Time Limit 0 Regiter" },
{ _PLX_REG(TCTL1R), "TLP Controller Time Limit 1 Regiter" },
{ _PLX_REG(CTR), "CSR Timer Register" },
{ _PLX_REG(ECAR), "Enhanced Configuration Address Register" },
{ NULL, 0, 0, 0, 0, NULL }
}
#define _PLX_REG(a)
Definition: gsc_util_reg_pex8111.c:16
#define NULL
Definition: PciTypes.h:160
unsigned char DIR
Definition: inovaplx_ccd.cpp:15