#include <ngcdrv_pci.h>
Public Attributes | |
| struct pci_dev * | pcidev |
| int | id |
| char | name [32] |
| volatile ngcdrv_reg_t * | reg_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 |
One ngcdrv_t per card keeps track of all driver information.
| int ngcdrv_t::btype |
board type
| ngcdrv_com_t ngcdrv_t::COM[NGCDRV_NUM_CHAN] |
communication sub-devices
| ngcdrv_dma_t ngcdrv_t::DMA |
DMA sub-device
| volatile unsigned int ngcdrv_t::dma_errors |
incr. if anything bad happens
| volatile unsigned int ngcdrv_t::dma_report |
compare with dma_errors outside RT
| int ngcdrv_t::dma_width |
PCI bus width for DMA
| volatile const char* ngcdrv_t::err_status |
string with last error or "OK"
| int ngcdrv_t::id |
0 or 1 or ...
| int ngcdrv_t::irq |
interrupt level for this card
| unsigned long ngcdrv_t::irq_count |
number of interrupts since init
| int ngcdrv_t::irq_init |
interrupt initialization done
| int ngcdrv_t::irq_realtime |
set to 1 if irq is hard real time
| int ngcdrv_t::irq_same |
realtime but same irq as other card
| int ngcdrv_t::irq_sharable |
set to 1 if irq requested with SA_SHIRQ
| int ngcdrv_t::latency |
PCI latency timer for this card
| spinlock_t ngcdrv_t::lock |
device lock
| char ngcdrv_t::name[32] |
name of the entry in "/dev/"
| struct pci_dev* ngcdrv_t::pcidev |
the result of pci_find_device()
| volatile ngcdrv_reg_t* ngcdrv_t::reg_base |
register base
| caddr_t ngcdrv_t::reg_page |
saved only for iounmap()
| int ngcdrv_t::version |
device version