mbgtools-lx
4.2.8
|
#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/interrupt.h>
#include <linux/proc_fs.h>
#include <linux/param.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/sched/task_stack.h>
#include <linux/cdev.h>
#include <linux/kthread.h>
Go to the source code of this file.
Macros | |
#define | clock() jiffies |
#define | _MBG_INIT_CODE_ATTR __init |
#define | __devinit |
#define | __devinitdata |
#define | __devexit |
#define | __devexit_p(_x) _x |
#define | _DEFAULT_MBG_TGT_LINUX_USE_PCI_PNP ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define | _DEFAULT_MBG_TGT_LINUX_USE_USB |
#define | _USE_LINUX_SYSFS ( defined( CONFIG_SYSFS ) ) |
#define | _USE_LINUX_DEVFS ( defined( CONFIG_DEVFS_FS ) ) |
#define | _USE_LINUX_DEVFS_26 |
#define | _USE_LINUX_DEVFS_24 |
#define | _PCPS_CHK_BUFFER_DMA_CAPABLE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 27 ) ) |
#define | _pcps_buffer_is_dma_capable(_b) ( !is_vmalloc_addr( _b ) && !object_is_on_stack( _b ) ) |
#define | _PCPS_USB_TIMEOUT_IS_MS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 12 ) ) |
#define | _PCPS_USB_FULL_CYCLIC_INTV ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 11 ) ) |
#define | _PCPS_USE_LINUX_KTHREAD ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 10 ) ) |
#define | NEW_FASYNC ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 2, 18 ) ) |
#define | NEW_FASYNC2 ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define | NEW_WAIT_QUEUE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 2, 18 ) ) |
#define | NEW_FILE_OPS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define | USE_WAIT_EVENT ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 20 ) ) |
#define | ESPIPE_BY_VFS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 8 ) ) |
#define | FLUSH_WITH_LOCK_OWNER_ID |
#define | REQUEST_IRQ_WO_REGS |
#define | IRQ_NONE |
#define | IRQ_HANDLED |
#define | GENERIC_GPIO_SUPPORTED ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 34 ) ) |
#define | _PCPS_MUST_UPDATE_USE_COUNT ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 0 ) ) |
#define | _PCPS_HAVE_LINUX_CLASS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 0 ) ) |
#define | _PCPS_HAVE_LINUX_CLASS_SIMPLE ( _PCPS_HAVE_LINUX_CLASS && ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 13 ) ) ) |
#define | _PCPS_HAVE_LINUX_CLASS_CREATE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 13 ) ) |
#define | _PCPS_CLASS_DEVICE_CREATE_WITH_PARENT ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 14 ) ) |
#define | _PCPS_CLASS_DEV_OBSOLETED ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 26 ) ) |
#define | _PCPS_DEVICE_CREATE_WITH_DEV_DATA ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 27 ) ) |
#define | STRUCT_USB_DEVICE_HAS_SERIAL ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 12 ) ) |
#define | STRUCT_USB_DEVICE_HAS_STATIC_SERIAL 0 |
#define | VMA_HAS_VM_PGOFF ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 0 ) ) |
#define | _PCPS_HAS_REMAP_PFN ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 10 ) ) |
#define | NEED_IMINOR ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 4, 0 ) ) |
Typedefs | |
typedef void | irqreturn_t |
Variables | |
unsigned long volatile | jiffies |
#define _DEFAULT_MBG_TGT_LINUX_USE_PCI_PNP ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define _DEFAULT_MBG_TGT_LINUX_USE_USB |
#define _PCPS_CHK_BUFFER_DMA_CAPABLE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 27 ) ) |
#define _PCPS_CLASS_DEV_OBSOLETED ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 26 ) ) |
#define _PCPS_CLASS_DEVICE_CREATE_WITH_PARENT ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 14 ) ) |
#define _PCPS_DEVICE_CREATE_WITH_DEV_DATA ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 27 ) ) |
#define _PCPS_HAS_REMAP_PFN ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 10 ) ) |
#define _PCPS_HAVE_LINUX_CLASS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 0 ) ) |
#define _PCPS_HAVE_LINUX_CLASS_CREATE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 13 ) ) |
#define _PCPS_HAVE_LINUX_CLASS_SIMPLE ( _PCPS_HAVE_LINUX_CLASS && ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 13 ) ) ) |
#define _PCPS_MUST_UPDATE_USE_COUNT ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 0 ) ) |
#define _PCPS_USB_FULL_CYCLIC_INTV ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 6, 11 ) ) |
#define _PCPS_USB_TIMEOUT_IS_MS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 12 ) ) |
#define _PCPS_USE_LINUX_KTHREAD ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 10 ) ) |
#define _USE_LINUX_DEVFS_24 |
#define _USE_LINUX_DEVFS_26 |
#define clock | ( | ) | jiffies |
Definition at line 89 of file mbg_lx.h.
Referenced by pcps_wait_busy().
#define ESPIPE_BY_VFS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 8 ) ) |
#define FLUSH_WITH_LOCK_OWNER_ID |
#define GENERIC_GPIO_SUPPORTED ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 34 ) ) |
#define IRQ_HANDLED |
Definition at line 262 of file mbg_lx.h.
Referenced by mbgclock_irq_handler().
#define IRQ_NONE |
Definition at line 261 of file mbg_lx.h.
Referenced by mbgclock_irq_handler().
#define NEED_IMINOR ( LINUX_VERSION_CODE < KERNEL_VERSION( 2, 4, 0 ) ) |
#define NEW_FASYNC ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 2, 18 ) ) |
#define NEW_FASYNC2 ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define NEW_FILE_OPS ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 0 ) ) |
#define NEW_WAIT_QUEUE ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 2, 18 ) ) |
#define REQUEST_IRQ_WO_REGS |
#define STRUCT_USB_DEVICE_HAS_SERIAL ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 12 ) ) |
#define USE_WAIT_EVENT ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 4, 20 ) ) |
#define VMA_HAS_VM_PGOFF ( LINUX_VERSION_CODE >= KERNEL_VERSION( 2, 6, 0 ) ) |
typedef void irqreturn_t |
unsigned long volatile jiffies |
Referenced by mbgclock_irq_handler(), mbgclock_poll(), mbgdrvr_enable_cyclic(), and release_cyclic_lock().