Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
nv_type.h File Reference
#include <linux/fb.h>
#include <linux/types.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <video/vga.h>

Go to the source code of this file.

Data Structures

struct  NVFBLayout
 
struct  nvidia_i2c_chan
 
struct  _riva_hw_state
 
struct  riva_regs
 
struct  nvidia_par
 

Macros

#define NV_ARCH_04   0x04
 
#define NV_ARCH_10   0x10
 
#define NV_ARCH_20   0x20
 
#define NV_ARCH_30   0x30
 
#define NV_ARCH_40   0x40
 
#define BITMASK(t, b)   (((unsigned)(1U << (((t)-(b)+1)))-1) << (b))
 
#define MASKEXPAND(mask)   BITMASK(1?mask,0?mask)
 
#define SetBF(mask, value)   ((value) << (0?mask))
 
#define GetBF(var, mask)   (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) )
 
#define SetBitField(value, from, to)   SetBF(to, GetBF(value,from))
 
#define SetBit(n)   (1<<(n))
 
#define Set8Bits(value)   ((value)&0xff)
 
#define V_DBLSCAN   1
 
#define NUM_SEQ_REGS   0x05
 
#define NUM_CRT_REGS   0x41
 
#define NUM_GRC_REGS   0x09
 
#define NUM_ATC_REGS   0x15
 

Typedefs

typedef struct _riva_hw_state RIVA_HW_STATE
 

Macro Definition Documentation

#define BITMASK (   t,
  b 
)    (((unsigned)(1U << (((t)-(b)+1)))-1) << (b))

Definition at line 16 of file nv_type.h.

#define GetBF (   var,
  mask 
)    (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) )

Definition at line 19 of file nv_type.h.

#define MASKEXPAND (   mask)    BITMASK(1?mask,0?mask)

Definition at line 17 of file nv_type.h.

#define NUM_ATC_REGS   0x15

Definition at line 36 of file nv_type.h.

#define NUM_CRT_REGS   0x41

Definition at line 34 of file nv_type.h.

#define NUM_GRC_REGS   0x09

Definition at line 35 of file nv_type.h.

#define NUM_SEQ_REGS   0x05

Definition at line 33 of file nv_type.h.

#define NV_ARCH_04   0x04

Definition at line 10 of file nv_type.h.

#define NV_ARCH_10   0x10

Definition at line 11 of file nv_type.h.

#define NV_ARCH_20   0x20

Definition at line 12 of file nv_type.h.

#define NV_ARCH_30   0x30

Definition at line 13 of file nv_type.h.

#define NV_ARCH_40   0x40

Definition at line 14 of file nv_type.h.

#define Set8Bits (   value)    ((value)&0xff)

Definition at line 22 of file nv_type.h.

#define SetBF (   mask,
  value 
)    ((value) << (0?mask))

Definition at line 18 of file nv_type.h.

#define SetBit (   n)    (1<<(n))

Definition at line 21 of file nv_type.h.

#define SetBitField (   value,
  from,
  to 
)    SetBF(to, GetBF(value,from))

Definition at line 20 of file nv_type.h.

#define V_DBLSCAN   1

Definition at line 24 of file nv_type.h.

Typedef Documentation