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

Macros

#define _PCI_REG(a)   "PCI " #a, GSC_PCI_9080_##a, 0, 0, 0
 
#define _PLX_REG(a)   "PLX " #a, GSC_PLX_9080_##a, 0, 0, 0
 

Functions

int gsc_reg_plx9080_list_pci (int fd)
 
int gsc_reg_plx9080_list_plx (int fd)
 

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_9080_##a, 0, 0, 0

◆ _PLX_REG

#define _PLX_REG (   a)    "PLX " #a, GSC_PLX_9080_##a, 0, 0, 0

Function Documentation

◆ gsc_reg_plx9080_list_pci()

int gsc_reg_plx9080_list_pci ( int  fd)

◆ gsc_reg_plx9080_list_plx()

int gsc_reg_plx9080_list_plx ( int  fd)

Variable Documentation

◆ _pci

gsc_reg_def_t _pci[]
static
Initial value:
=
{
{ _PCI_REG(BAR0), NULL },
{ _PCI_REG(BAR1), NULL },
{ _PCI_REG(BAR2), NULL },
{ _PCI_REG(BAR3), NULL },
{ _PCI_REG(BAR4), NULL },
{ _PCI_REG(BAR5), NULL },
{ _PCI_REG(BISTR), NULL },
{ _PCI_REG(CCR), NULL },
{ _PCI_REG(CIS), NULL },
{ _PCI_REG(CLSR), NULL },
{ _PCI_REG(CR), NULL },
{ _PCI_REG(DIDR), NULL },
{ _PCI_REG(ERBAR), NULL },
{ _PCI_REG(HTR), NULL },
{ _PCI_REG(ILR), NULL },
{ _PCI_REG(IPR), NULL },
{ _PCI_REG(LTR), NULL },
{ _PCI_REG(MGR), NULL },
{ _PCI_REG(MLR), NULL },
{ _PCI_REG(REV), NULL },
{ _PCI_REG(SID), NULL },
{ _PCI_REG(SR), NULL },
{ _PCI_REG(SVID), NULL },
{ _PCI_REG(VIDR), NULL },
{ NULL, 0, 0, 0, 0, NULL }
}
#define CR
Definition: HitachiHighProtocol.cpp:35
#define NULL
Definition: PciTypes.h:160
#define _PCI_REG(a)
Definition: gsc_util_reg_plx9080.c:15

◆ _plx

gsc_reg_def_t _plx[]
static