Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
mantis_common.h File Reference
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include "mantis_uart.h"
#include "mantis_link.h"

Go to the source code of this file.

Data Structures

struct  mantis_hwconfig
 
struct  mantis_pci
 

Macros

#define MANTIS_ERROR   0
 
#define MANTIS_NOTICE   1
 
#define MANTIS_INFO   2
 
#define MANTIS_DEBUG   3
 
#define MANTIS_TMG   9
 
#define dprintk(y, z, format, arg...)
 
#define mwrite(dat, addr)   writel((dat), addr)
 
#define mread(addr)   readl(addr)
 
#define mmwrite(dat, addr)   mwrite((dat), (mantis->mmio + (addr)))
 
#define mmread(addr)   mread(mantis->mmio + (addr))
 
#define MANTIS_TS_188   0
 
#define MANTIS_TS_204   1
 
#define TWINHAN_TECHNOLOGIES   0x1822
 
#define MANTIS   0x4e35
 
#define TECHNISAT   0x1ae4
 
#define TERRATEC   0x153b
 
#define MAKE_ENTRY(__subven, __subdev, __configptr)
 
#define MANTIS_HIF_STATUS   (mantis->gpio_status)
 

Enumerations

enum  mantis_i2c_mode { MANTIS_PAGE_MODE = 0, MANTIS_BYTE_MODE }
 

Macro Definition Documentation

#define dprintk (   y,
  z,
  format,
  arg... 
)
Value:
do { \
if (z) { \
if ((mantis->verbose > MANTIS_ERROR) && (mantis->verbose > y)) \
printk(KERN_ERR "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
else if ((mantis->verbose > MANTIS_NOTICE) && (mantis->verbose > y)) \
printk(KERN_NOTICE "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
else if ((mantis->verbose > MANTIS_INFO) && (mantis->verbose > y)) \
printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
else if ((mantis->verbose > MANTIS_DEBUG) && (mantis->verbose > y)) \
printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
else if ((mantis->verbose > MANTIS_TMG) && (mantis->verbose > y)) \
printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \
} else { \
if (mantis->verbose > y) \
printk(format , ##arg); \
} \
} while(0)

Definition at line 38 of file mantis_common.h.

#define MAKE_ENTRY (   __subven,
  __subdev,
  __configptr 
)
Value:
{ \
.vendor = TWINHAN_TECHNOLOGIES, \
.device = MANTIS, \
.subvendor = (__subven), \
.subdevice = (__subdev), \
.driver_data = (unsigned long) (__configptr) \
}

Definition at line 71 of file mantis_common.h.

#define MANTIS   0x4e35

Definition at line 66 of file mantis_common.h.

#define MANTIS_DEBUG   3

Definition at line 35 of file mantis_common.h.

#define MANTIS_ERROR   0

Definition at line 32 of file mantis_common.h.

#define MANTIS_HIF_STATUS   (mantis->gpio_status)

Definition at line 177 of file mantis_common.h.

#define MANTIS_INFO   2

Definition at line 34 of file mantis_common.h.

#define MANTIS_NOTICE   1

Definition at line 33 of file mantis_common.h.

#define MANTIS_TMG   9

Definition at line 36 of file mantis_common.h.

#define MANTIS_TS_188   0

Definition at line 62 of file mantis_common.h.

#define MANTIS_TS_204   1

Definition at line 63 of file mantis_common.h.

#define mmread (   addr)    mread(mantis->mmio + (addr))

Definition at line 60 of file mantis_common.h.

#define mmwrite (   dat,
  addr 
)    mwrite((dat), (mantis->mmio + (addr)))

Definition at line 59 of file mantis_common.h.

#define mread (   addr)    readl(addr)

Definition at line 57 of file mantis_common.h.

#define mwrite (   dat,
  addr 
)    writel((dat), addr)

Definition at line 56 of file mantis_common.h.

#define TECHNISAT   0x1ae4

Definition at line 68 of file mantis_common.h.

#define TERRATEC   0x153b

Definition at line 69 of file mantis_common.h.

#define TWINHAN_TECHNOLOGIES   0x1822

Definition at line 65 of file mantis_common.h.

Enumeration Type Documentation

Enumerator:
MANTIS_PAGE_MODE 
MANTIS_BYTE_MODE 

Definition at line 79 of file mantis_common.h.