#ifndef __VARS_H__ #define __VARS_H__ #include #include #include #ifdef KERNEL2_6 #include #endif #include "defs.h" #include "pcie_interface.h" unsigned int openair_irq_enabled[MAX_CARDS] = INIT_ZEROS; unsigned int openair_chrdev_registered = 0; unsigned int openair_pci_device_enabled[MAX_CARDS] = INIT_ZEROS; struct pci_dev *pdev[MAX_CARDS] = INIT_ZEROS; void __iomem *bar[MAX_CARDS] = INIT_ZEROS; resource_size_t mmio_start[MAX_CARDS] = INIT_ZEROS; resource_size_t mmio_length[MAX_CARDS]; unsigned int mmio_flags[MAX_CARDS]; int major; char number_of_cards; // bigshm allocs a single larger block, used for shared structures and pointers dma_addr_t bigshm_head_phys[MAX_CARDS] = INIT_ZEROS; void *bigshm_head[MAX_CARDS] = INIT_ZEROS; void *bigshm_currentptr[MAX_CARDS]; dma_addr_t pphys_exmimo_pci_phys[MAX_CARDS]; // phys pointer to pci_bot structure in shared mem exmimo_pci_interface_bot_t *p_exmimo_pci_phys[MAX_CARDS] = INIT_ZEROS; // inside struct has physical (DMA) pointers to pci_bot memory blocks exmimo_pci_interface_bot_virtual_t exmimo_pci_kvirt[MAX_CARDS]; // has virtual pointers to pci_bot memory blocks #endif