|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
#include <linux/init.h>#include <linux/module.h>#include <linux/pci.h>#include <linux/interrupt.h>#include <linux/fs.h>#include <linux/poll.h>#include <linux/cdev.h>#include <asm/uaccess.h>#include <linux/types.h>#include <linux/spinlock.h>#include <asm/spinlock.h>#include "../include/PgpCardMod.h"#include "../include/PgpCardG3Status.h"Classes | |
| struct | PgpCardG3Reg |
| struct | TxBuffer |
| struct | RxBuffer |
| struct | Client |
| struct | PgpDevice |
| struct | PgpCardG3Tx32 |
| struct | PgpCardG3Rx32 |
Enumerations | |
| enum | MODELS { SmallMemoryModel =4 , LargeMemoryModel =8 } |
Functions | |
| int | PgpCardG3_Open (struct inode *inode, struct file *filp) |
| int | PgpCardG3_Release (struct inode *inode, struct file *filp) |
| ssize_t | PgpCardG3_Write (struct file *filp, const char *buf, size_t count, loff_t *f_pos) |
| ssize_t | PgpCardG3_Read (struct file *filp, char *buf, size_t count, loff_t *f_pos) |
| int | PgpCardG3_Ioctl (struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) |
| int | my_Ioctl (struct file *filp, __u32 cmd, __u64 argument) |
| unsigned | countRXFirmwareBuffers (struct PgpDevice *, __u32) |
| unsigned | countRxBuffers (struct PgpDevice *, __u32) |
| unsigned | countTxBuffers (struct PgpDevice *) |
| static irqreturn_t | PgpCardG3_IRQHandler (int irq, void *dev_id, struct pt_regs *regs) |
| static unsigned int | PgpCardG3_Poll (struct file *filp, poll_table *wait) |
| static int | PgpCardG3_Probe (struct pci_dev *pcidev, const struct pci_device_id *dev_id) |
| static void | PgpCardG3_Remove (struct pci_dev *pcidev) |
| static int | PgpCardG3_Init (void) |
| static void | PgpCardG3_Exit (void) |
| int | dumpWarning (struct PgpDevice *) |
| int | PgpCardG3_Mmap (struct file *filp, struct vm_area_struct *vma) |
| int | PgpCardG3_Fasync (int fd, struct file *filp, int mode) |
| void | PgpCardG3_VmOpen (struct vm_area_struct *vma) |
| void | PgpCardG3_VmClose (struct vm_area_struct *vma) |
Variables | |
| static struct pci_device_id | PgpCardG3_Ids [] |
| static struct pci_driver | PgpCardG3Driver |
| struct file_operations | PgpCardG3_Intf |
| static struct vm_operations_struct | PgpCardG3_VmOps |
| #define ALL_LANES_MASK ((1<<NUMBER_OF_LANES)-1) |
| #define ALMOST_FULL_ASSERT 0x1FF |
| #define ALMOST_FULL_THRESH 8 |
| #define DEF_RX_BUF_SIZE 2097152 |
| #define DEF_TX_BUF_SIZE 2097152 |
| #define DEF_TX_QUEUE_CNT (NUMBER_OF_TX_BUFFERS) |
| #define IRQ_HISTO_SIZE 1024 |
| #define MAX_NUMBER_OPEN_CLIENTS (NUMBER_OF_LANE_CLIENTS + 1) |
| #define MAX_PCI_DEVICES 8 |
| #define MAXIMUM_NUMBER_LANES_PER_CLIENT NUMBER_OF_LANES |
| #define MOD_NAME "pgpcardG3" |
| #define NOT_INTIALIZED 0xffffff |
| #define NUMBER_OF_LANE_CLIENTS (NUMBER_OF_LANES*2) |
| #define NUMBER_OF_LANES 8 |
| #define NUMBER_OF_MINOR_DEVICES (NUMBER_OF_LANES + 1) |
| #define NUMBER_OF_RX_BUFFERS 512 |
| #define NUMBER_OF_RX_CLIENT_BUFFERS ((NUMBER_OF_RX_BUFFERS*MAXIMUM_NUMBER_LANES_PER_CLIENT)/NUMBER_OF_LANES) |
| #define NUMBER_OF_TX_BUFFERS 128 |
| #define NUMBER_OF_VC 4 |
| #define PCI_DEVICE_ID_SLAC_PGPCARD 0x2020 |
| #define PCI_DEVICE_ID_XILINX_PCIE 0x0007 |
| #define PCI_VENDOR_ID_SLAC 0x1a4a |
| #define PCI_VENDOR_ID_XILINX 0x10ee |
| #define PGPCARD_VERSION "pgpcardG3 driver v02.02.13" |
| #define RHEL7 1 |
| enum MODELS |
| unsigned countRxBuffers | ( | struct PgpDevice * | , |
| __u32 | |||
| ) |
| unsigned countRXFirmwareBuffers | ( | struct PgpDevice * | , |
| __u32 | |||
| ) |
| unsigned countTxBuffers | ( | struct PgpDevice * | ) |
| int dumpWarning | ( | struct PgpDevice * | ) |
| int my_Ioctl | ( | struct file * | filp, |
| __u32 | cmd, | ||
| __u64 | argument | ||
| ) |
|
static |
| int PgpCardG3_Fasync | ( | int | fd, |
| struct file * | filp, | ||
| int | mode | ||
| ) |
|
static |
| int PgpCardG3_Ioctl | ( | struct inode * | inode, |
| struct file * | filp, | ||
| unsigned int | cmd, | ||
| unsigned long | arg | ||
| ) |
|
static |
| int PgpCardG3_Mmap | ( | struct file * | filp, |
| struct vm_area_struct * | vma | ||
| ) |
| int PgpCardG3_Open | ( | struct inode * | inode, |
| struct file * | filp | ||
| ) |
|
static |
|
static |
| ssize_t PgpCardG3_Read | ( | struct file * | filp, |
| char * | buf, | ||
| size_t | count, | ||
| loff_t * | f_pos | ||
| ) |
| int PgpCardG3_Release | ( | struct inode * | inode, |
| struct file * | filp | ||
| ) |
|
static |
| void PgpCardG3_VmClose | ( | struct vm_area_struct * | vma | ) |
| void PgpCardG3_VmOpen | ( | struct vm_area_struct * | vma | ) |
| ssize_t PgpCardG3_Write | ( | struct file * | filp, |
| const char * | buf, | ||
| size_t | count, | ||
| loff_t * | f_pos | ||
| ) |
|
static |
| struct file_operations PgpCardG3_Intf |
|
static |
|
static |