Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
hpios.h File Reference
#include <linux/io.h>
#include <linux/ioctl.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>

Go to the source code of this file.

Data Structures

struct  consistent_dma_area
 
struct  hpi_ioctl_linux
 
struct  hpios_spinlock
 
struct  hpi_adapter
 

Macros

#define HPI_OS_LINUX_KERNEL
 
#define HPI_OS_DEFINED
 
#define HPI_BUILD_KERNEL_MODE
 
#define HPI_NO_OS_FILE_OPS
 
#define HPI_IOCTL_LINUX   _IOWR('H', 0xFC, struct hpi_ioctl_linux)
 
#define HPI_DEBUG_FLAG_ERROR   KERN_ERR
 
#define HPI_DEBUG_FLAG_WARNING   KERN_WARNING
 
#define HPI_DEBUG_FLAG_NOTICE   KERN_NOTICE
 
#define HPI_DEBUG_FLAG_INFO   KERN_INFO
 
#define HPI_DEBUG_FLAG_DEBUG   KERN_DEBUG
 
#define HPI_DEBUG_FLAG_VERBOSE   KERN_DEBUG /* kernel has no verbose */
 
#define HPI_LOCKING
 
#define IN_LOCK_BH   1
 
#define IN_LOCK_IRQ   0
 
#define hpios_msgxlock_init(obj)   spin_lock_init(&(obj)->lock)
 
#define hpios_msgxlock_lock(obj)   cond_lock(obj)
 
#define hpios_msgxlock_unlock(obj)   cond_unlock(obj)
 
#define hpios_dsplock_init(obj)   spin_lock_init(&(obj)->dsp_lock.lock)
 
#define hpios_dsplock_lock(obj)   cond_lock(&(obj)->dsp_lock)
 
#define hpios_dsplock_unlock(obj)   cond_unlock(&(obj)->dsp_lock)
 
#define HPI_ALIST_LOCKING
 
#define hpios_alistlock_init(obj)   spin_lock_init(&((obj)->list_lock.lock))
 
#define hpios_alistlock_lock(obj)   spin_lock(&((obj)->list_lock.lock))
 
#define hpios_alistlock_unlock(obj)   spin_unlock(&((obj)->list_lock.lock))
 

Macro Definition Documentation

#define HPI_ALIST_LOCKING

Definition at line 146 of file hpios.h.

#define HPI_BUILD_KERNEL_MODE

Definition at line 30 of file hpios.h.

#define HPI_DEBUG_FLAG_DEBUG   KERN_DEBUG

Definition at line 93 of file hpios.h.

#define HPI_DEBUG_FLAG_ERROR   KERN_ERR

Definition at line 89 of file hpios.h.

#define HPI_DEBUG_FLAG_INFO   KERN_INFO

Definition at line 92 of file hpios.h.

#define HPI_DEBUG_FLAG_NOTICE   KERN_NOTICE

Definition at line 91 of file hpios.h.

#define HPI_DEBUG_FLAG_VERBOSE   KERN_DEBUG /* kernel has no verbose */

Definition at line 94 of file hpios.h.

#define HPI_DEBUG_FLAG_WARNING   KERN_WARNING

Definition at line 90 of file hpios.h.

#define HPI_IOCTL_LINUX   _IOWR('H', 0xFC, struct hpi_ioctl_linux)

Definition at line 87 of file hpios.h.

#define HPI_LOCKING

Definition at line 98 of file hpios.h.

#define HPI_NO_OS_FILE_OPS

Definition at line 42 of file hpios.h.

#define HPI_OS_DEFINED

Definition at line 29 of file hpios.h.

#define HPI_OS_LINUX_KERNEL

Definition at line 27 of file hpios.h.

#define hpios_alistlock_init (   obj)    spin_lock_init(&((obj)->list_lock.lock))

Definition at line 147 of file hpios.h.

#define hpios_alistlock_lock (   obj)    spin_lock(&((obj)->list_lock.lock))

Definition at line 148 of file hpios.h.

#define hpios_alistlock_unlock (   obj)    spin_unlock(&((obj)->list_lock.lock))

Definition at line 149 of file hpios.h.

#define hpios_dsplock_init (   obj)    spin_lock_init(&(obj)->dsp_lock.lock)

Definition at line 138 of file hpios.h.

#define hpios_dsplock_lock (   obj)    cond_lock(&(obj)->dsp_lock)

Definition at line 139 of file hpios.h.

#define hpios_dsplock_unlock (   obj)    cond_unlock(&(obj)->dsp_lock)

Definition at line 140 of file hpios.h.

#define hpios_msgxlock_init (   obj)    spin_lock_init(&(obj)->lock)

Definition at line 134 of file hpios.h.

#define hpios_msgxlock_lock (   obj)    cond_lock(obj)

Definition at line 135 of file hpios.h.

#define hpios_msgxlock_unlock (   obj)    cond_unlock(obj)

Definition at line 136 of file hpios.h.

#define IN_LOCK_BH   1

Definition at line 110 of file hpios.h.

#define IN_LOCK_IRQ   0

Definition at line 111 of file hpios.h.