Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
qmgr.h File Reference
#include <linux/io.h>
#include <linux/kernel.h>

Go to the source code of this file.

Data Structures

struct  qmgr_regs
 

Macros

#define DEBUG_QMGR   0
 
#define HALF_QUEUES   32
 
#define QUEUES   64
 
#define MAX_QUEUE_LENGTH   4 /* in dwords */
 
#define QUEUE_STAT1_EMPTY   1 /* queue status bits */
 
#define QUEUE_STAT1_NEARLY_EMPTY   2
 
#define QUEUE_STAT1_NEARLY_FULL   4
 
#define QUEUE_STAT1_FULL   8
 
#define QUEUE_STAT2_UNDERFLOW   1
 
#define QUEUE_STAT2_OVERFLOW   2
 
#define QUEUE_WATERMARK_0_ENTRIES   0
 
#define QUEUE_WATERMARK_1_ENTRY   1
 
#define QUEUE_WATERMARK_2_ENTRIES   2
 
#define QUEUE_WATERMARK_4_ENTRIES   3
 
#define QUEUE_WATERMARK_8_ENTRIES   4
 
#define QUEUE_WATERMARK_16_ENTRIES   5
 
#define QUEUE_WATERMARK_32_ENTRIES   6
 
#define QUEUE_WATERMARK_64_ENTRIES   7
 
#define QUEUE_IRQ_SRC_EMPTY   0
 
#define QUEUE_IRQ_SRC_NEARLY_EMPTY   1
 
#define QUEUE_IRQ_SRC_NEARLY_FULL   2
 
#define QUEUE_IRQ_SRC_FULL   3
 
#define QUEUE_IRQ_SRC_NOT_EMPTY   4
 
#define QUEUE_IRQ_SRC_NOT_NEARLY_EMPTY   5
 
#define QUEUE_IRQ_SRC_NOT_NEARLY_FULL   6
 
#define QUEUE_IRQ_SRC_NOT_FULL   7
 
#define qmgr_request_queue(queue, len, nearly_empty_watermark,nearly_full_watermark, desc_format, name)
 

Functions

void qmgr_set_irq (unsigned int queue, int src, void(*handler)(void *pdev), void *pdev)
 
void qmgr_enable_irq (unsigned int queue)
 
void qmgr_disable_irq (unsigned int queue)
 
int __qmgr_request_queue (unsigned int queue, unsigned int len, unsigned int nearly_empty_watermark, unsigned int nearly_full_watermark)
 
void qmgr_release_queue (unsigned int queue)
 

Macro Definition Documentation

#define DEBUG_QMGR   0

Definition at line 15 of file qmgr.h.

#define HALF_QUEUES   32

Definition at line 17 of file qmgr.h.

#define MAX_QUEUE_LENGTH   4 /* in dwords */

Definition at line 19 of file qmgr.h.

#define qmgr_request_queue (   queue,
  len,
  nearly_empty_watermark,
  nearly_full_watermark,
  desc_format,
  name 
)
Value:
__qmgr_request_queue(queue, len, nearly_empty_watermark, \
nearly_full_watermark)

Definition at line 78 of file qmgr.h.

#define QUEUE_IRQ_SRC_EMPTY   0

Definition at line 38 of file qmgr.h.

#define QUEUE_IRQ_SRC_FULL   3

Definition at line 41 of file qmgr.h.

#define QUEUE_IRQ_SRC_NEARLY_EMPTY   1

Definition at line 39 of file qmgr.h.

#define QUEUE_IRQ_SRC_NEARLY_FULL   2

Definition at line 40 of file qmgr.h.

#define QUEUE_IRQ_SRC_NOT_EMPTY   4

Definition at line 42 of file qmgr.h.

#define QUEUE_IRQ_SRC_NOT_FULL   7

Definition at line 45 of file qmgr.h.

#define QUEUE_IRQ_SRC_NOT_NEARLY_EMPTY   5

Definition at line 43 of file qmgr.h.

#define QUEUE_IRQ_SRC_NOT_NEARLY_FULL   6

Definition at line 44 of file qmgr.h.

#define QUEUE_STAT1_EMPTY   1 /* queue status bits */

Definition at line 21 of file qmgr.h.

#define QUEUE_STAT1_FULL   8

Definition at line 24 of file qmgr.h.

#define QUEUE_STAT1_NEARLY_EMPTY   2

Definition at line 22 of file qmgr.h.

#define QUEUE_STAT1_NEARLY_FULL   4

Definition at line 23 of file qmgr.h.

#define QUEUE_STAT2_OVERFLOW   2

Definition at line 26 of file qmgr.h.

#define QUEUE_STAT2_UNDERFLOW   1

Definition at line 25 of file qmgr.h.

#define QUEUE_WATERMARK_0_ENTRIES   0

Definition at line 28 of file qmgr.h.

#define QUEUE_WATERMARK_16_ENTRIES   5

Definition at line 33 of file qmgr.h.

#define QUEUE_WATERMARK_1_ENTRY   1

Definition at line 29 of file qmgr.h.

#define QUEUE_WATERMARK_2_ENTRIES   2

Definition at line 30 of file qmgr.h.

#define QUEUE_WATERMARK_32_ENTRIES   6

Definition at line 34 of file qmgr.h.

#define QUEUE_WATERMARK_4_ENTRIES   3

Definition at line 31 of file qmgr.h.

#define QUEUE_WATERMARK_64_ENTRIES   7

Definition at line 35 of file qmgr.h.

#define QUEUE_WATERMARK_8_ENTRIES   4

Definition at line 32 of file qmgr.h.

#define QUEUES   64

Definition at line 18 of file qmgr.h.

Function Documentation

int __qmgr_request_queue ( unsigned int  queue,
unsigned int  len,
unsigned int  nearly_empty_watermark,
unsigned int  nearly_full_watermark 
)

Definition at line 154 of file ixp4xx_qmgr.c.

void qmgr_disable_irq ( unsigned int  queue)

Definition at line 127 of file ixp4xx_qmgr.c.

void qmgr_enable_irq ( unsigned int  queue)

Definition at line 115 of file ixp4xx_qmgr.c.

void qmgr_release_queue ( unsigned int  queue)

Definition at line 239 of file ixp4xx_qmgr.c.

void qmgr_set_irq ( unsigned int  queue,
int  src,
void(*)(void *pdev handler,
void pdev 
)

Definition at line 28 of file ixp4xx_qmgr.c.