GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBD / V1-5-1 > lcbd / sun-gcc
Defines | |
#define | LCBD_OK 0 |
Success return code, note that this is not an LCBD message code, but may be used as one. | |
Functions | |
void | LCBD_pci_csr_write (const LCBD lcb, unsigned int val) |
writes 32-bit val into LCB CSR register | |
unsigned int | LCBD_pci_csr_read (const LCBD lcb) |
read 32-bit CSR register | |
void | LCBD_pci_irq_write (const LCBD lcb, unsigned int val) |
writes 32-bit val into LCB IRQ enable register | |
unsigned int | LCBD_pci_irq_read (const LCBD lcb) |
read 32-bit IRQ enable register | |
void | LCBD_pci_events_base_write (LCBD lcb, unsigned int val) |
writes 32-bit val into LCB EVENTS_BASE register | |
unsigned int | LCBD_pci_events_base_read (const LCBD lcb) |
read 32-bit EVENTS_BASE register | |
void | LCBD_pci_events_free_write (const LCBD lcb, unsigned int val) |
writes 32-bit val into LCB EVENTS_FREE register | |
unsigned int | LCBD_pci_events_free_read (const LCBD lcb) |
read 32-bit EVENTS_FREE register | |
unsigned int | LCBD_pci_resultq_read (const LCBD lcb) |
reads 32-bit result queue FIFO | |
unsigned int | LCBD_pci_eventq_read (const LCBD lcb) |
reads 32-bit event queue FIFO | |
unsigned int | LCBD_pci_requestq_read (const LCBD lcb) |
Read the LCB Export FIFO register. | |
void | LCBD_pci_requestq_write (const LCBD lcb, unsigned int val) |
writes 32-bit val into LCB Export FIFO register | |
unsigned int | LCBD_pci_fabric_select_read (const LCBD lcb) |
reads 32-bit fabric select register | |
void | LCBD_pci_fabric_select_write (const LCBD lcb, unsigned int val) |
writes 32-bit val into fabric select register | |
unsigned int | LCBD_pci_cfg_inWord (const LCBD lcb, int offset, unsigned short *word) |
Reads a 16-bit word from PCI Configuration space at the specificied byte offset. | |
unsigned int | LCBD_pci_cfg_inLong (const LCBD lcb, int offset, unsigned int *word) |
Reads a 32-bit word from PCI Configuration space at the specificied byte offset. | |
unsigned int | LCBD_pci_cfg_outWord (const LCBD lcb, int offset, unsigned short word) |
Writes word to PCI Configuration space at the specificied byte offset. | |
unsigned int | LCBD_pci_cfg_outLong (const LCBD lcb, int offset, unsigned int word) |
Writes a 32-bit word to PCI Configuration space at the specificied byte offset. | |
unsigned int | LCBD_pci_cfg_hdr_show (const LCBD lcb) |
Dumps the PCI Configuration Space to stdout. |
CVS $Id
These define the interface to the PCI registers. For the most these routines are useful only in a debugging and/or development environment. That is why they are broken off into a separate file.
unsigned int LCBD_pci_cfg_hdr_show | ( | const LCBD | lcb | ) |
Dumps the PCI Configuration Space to stdout.
lcb | Pointer to private LCBD structure |
unsigned int LCBD_pci_cfg_inLong | ( | const LCBD | lcb, | |
int | offset, | |||
unsigned int * | word | |||
) |
Reads a 32-bit word from PCI Configuration space at the specificied byte offset.
lcb | Pointer to private LCBD structure | |
offset | Byte offset in PCI Configuration space | |
word | Pointer to storage to hold configuration word |
unsigned int LCBD_pci_cfg_inWord | ( | const LCBD | lcb, | |
int | offset, | |||
unsigned short * | word | |||
) |
Reads a 16-bit word from PCI Configuration space at the specificied byte offset.
lcb | Pointer to private LCBD structure | |
offset | Byte offset in PCI Configuration space | |
word | Pointer to storage to hold configuration word |
unsigned int LCBD_pci_cfg_outLong | ( | const LCBD | lcb, | |
int | offset, | |||
unsigned int | word | |||
) |
Writes a 32-bit word to PCI Configuration space at the specificied byte offset.
lcb | Pointer to private LCBD structure | |
offset | Byte offset in PCI Configuration space | |
word | 32-bit value to write to configuration space |
unsigned int LCBD_pci_cfg_outWord | ( | const LCBD | lcb, | |
int | offset, | |||
unsigned short | word | |||
) |
Writes word to PCI Configuration space at the specificied byte offset.
lcb | Pointer to private LCBD structure | |
offset | Byte offset in PCI Configuration space | |
word | 16-bit value to write to configuration space |
unsigned int LCBD_pci_csr_read | ( | const LCBD | lcb | ) |
read 32-bit CSR register
lcb | Pointer to private LCBD structure |
void LCBD_pci_csr_write | ( | const LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into LCB CSR register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load |
unsigned int LCBD_pci_eventq_read | ( | const LCBD | lcb | ) |
reads 32-bit event queue FIFO
lcb | Pointer to private LCBD structure |
unsigned int LCBD_pci_events_base_read | ( | const LCBD | lcb | ) |
read 32-bit EVENTS_BASE register
lcb | Pointer to private LCBD structure |
void LCBD_pci_events_base_write | ( | LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into LCB EVENTS_BASE register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load. This should be a CPU address suitably transformed to PCI address space. |
unsigned int LCBD_pci_events_free_read | ( | const LCBD | lcb | ) |
read 32-bit EVENTS_FREE register
lcb | Pointer to private LCBD structure |
void LCBD_pci_events_free_write | ( | const LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into LCB EVENTS_FREE register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load |
unsigned int LCBD_pci_fabric_select_read | ( | const LCBD | lcb | ) |
reads 32-bit fabric select register
lcb | Pointer to private LCBD structure |
void LCBD_pci_fabric_select_write | ( | const LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into fabric select register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load |
unsigned int LCBD_pci_irq_read | ( | const LCBD | lcb | ) |
read 32-bit IRQ enable register
lcb | Pointer to private LCBD structure |
void LCBD_pci_irq_write | ( | const LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into LCB IRQ enable register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load |
unsigned int LCBD_pci_requestq_read | ( | const LCBD | lcb | ) |
Read the LCB Export FIFO register.
lcb | Pointer to private LCBD structure |
void LCBD_pci_requestq_write | ( | const LCBD | lcb, | |
unsigned int | val | |||
) |
writes 32-bit val into LCB Export FIFO register
lcb | Pointer to private LCBD structure | |
val | 32-bit value to load |
unsigned int LCBD_pci_resultq_read | ( | const LCBD | lcb | ) |
reads 32-bit result queue FIFO
lcb | Pointer to private LCBD structure |