ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdrv_t Struct Reference

#include <ngcdrv_pci.h>

Public Attributes

struct pci_dev * pcidev
 
int id
 
char name [32]
 
volatile ngcdrv_reg_treg_base
 
caddr_t reg_page
 
ngcdrv_com_t COM [NGCDRV_NUM_CHAN]
 
ngcdrv_dma_t DMA
 
int irq
 
int irq_realtime
 
int irq_sharable
 
int irq_same
 
int irq_init
 
unsigned long irq_count
 
int latency
 
int version
 
int btype
 
int dma_width
 
spinlock_t lock
 
volatile const char * err_status
 
volatile unsigned int dma_errors
 
volatile unsigned int dma_report
 

Detailed Description

One ngcdrv_t per card keeps track of all driver information.

Member Data Documentation

◆ btype

int ngcdrv_t::btype

board type

◆ COM

ngcdrv_com_t ngcdrv_t::COM[NGCDRV_NUM_CHAN]

communication sub-devices

◆ DMA

ngcdrv_dma_t ngcdrv_t::DMA

DMA sub-device

◆ dma_errors

volatile unsigned int ngcdrv_t::dma_errors

incr. if anything bad happens

◆ dma_report

volatile unsigned int ngcdrv_t::dma_report

compare with dma_errors outside RT

◆ dma_width

int ngcdrv_t::dma_width

PCI bus width for DMA

◆ err_status

volatile const char* ngcdrv_t::err_status

string with last error or "OK"

◆ id

int ngcdrv_t::id

0 or 1 or ...

◆ irq

int ngcdrv_t::irq

interrupt level for this card

◆ irq_count

unsigned long ngcdrv_t::irq_count

number of interrupts since init

◆ irq_init

int ngcdrv_t::irq_init

interrupt initialization done

◆ irq_realtime

int ngcdrv_t::irq_realtime

set to 1 if irq is hard real time

◆ irq_same

int ngcdrv_t::irq_same

realtime but same irq as other card

◆ irq_sharable

int ngcdrv_t::irq_sharable

set to 1 if irq requested with SA_SHIRQ

◆ latency

int ngcdrv_t::latency

PCI latency timer for this card

◆ lock

spinlock_t ngcdrv_t::lock

device lock

◆ name

char ngcdrv_t::name[32]

name of the entry in "/dev/"

◆ pcidev

struct pci_dev* ngcdrv_t::pcidev

the result of pci_find_device()

◆ reg_base

volatile ngcdrv_reg_t* ngcdrv_t::reg_base

register base

◆ reg_page

caddr_t ngcdrv_t::reg_page

saved only for iounmap()

◆ version

int ngcdrv_t::version

device version


The documentation for this struct was generated from the following file: