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

Go to the source code of this file.

Data Structures

struct  RivaRop
 
struct  RivaPattern
 
struct  RivaClip
 
struct  RivaRectangle
 
struct  RivaScreenBlt
 
struct  RivaPixmap
 
struct  RivaBitmap
 
struct  RivaTexturedTriangle03
 
struct  RivaTexturedTriangle05
 
struct  RivaLine
 
struct  RivaSurface
 
struct  RivaSurface3D
 
struct  _riva_hw_inst
 
struct  _riva_hw_state
 

Macros

#define RIVA_SW_VERSION   0x00010003
 
#define TRUE   1
 
#define FALSE   0
 
#define NULL   0
 
#define NV_WR08(p, i, d)   (__raw_writeb((d), (void __iomem *)(p) + (i)))
 
#define NV_RD08(p, i)   (__raw_readb((void __iomem *)(p) + (i)))
 
#define NV_WR16(p, i, d)   (__raw_writew((d), (void __iomem *)(p) + (i)))
 
#define NV_RD16(p, i)   (__raw_readw((void __iomem *)(p) + (i)))
 
#define NV_WR32(p, i, d)   (__raw_writel((d), (void __iomem *)(p) + (i)))
 
#define NV_RD32(p, i)   (__raw_readl((void __iomem *)(p) + (i)))
 
#define VGA_WR08(p, i, d)   (writeb((d), (void __iomem *)(p) + (i)))
 
#define VGA_RD08(p, i)   (readb((void __iomem *)(p) + (i)))
 
#define NV_ARCH_03   0x03
 
#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 FP_ENABLE   1
 
#define FP_DITHER   2
 
#define RIVA_FIFO_FREE(hwinst, hwptr, cnt)
 

Typedefs

typedef int Bool
 
typedef unsigned char U008
 
typedef unsigned short U016
 
typedef unsigned int U032
 
typedef struct _riva_hw_inst RIVA_HW_INST
 
typedef struct _riva_hw_state RIVA_HW_STATE
 

Functions

int CalcStateExt (RIVA_HW_INST *chip, RIVA_HW_STATE *state, int bpp, int width, int hDisplaySize, int height, int dotClock)
 
int RivaGetConfig (RIVA_HW_INST *, unsigned int)
 

Macro Definition Documentation

#define FALSE   0

Definition at line 60 of file riva_hw.h.

#define FP_DITHER   2

Definition at line 414 of file riva_hw.h.

#define FP_ENABLE   1

Definition at line 413 of file riva_hw.h.

#define NULL   0

Definition at line 63 of file riva_hw.h.

#define NV_ARCH_03   0x03

Definition at line 91 of file riva_hw.h.

#define NV_ARCH_04   0x04

Definition at line 92 of file riva_hw.h.

#define NV_ARCH_10   0x10

Definition at line 93 of file riva_hw.h.

#define NV_ARCH_20   0x20

Definition at line 94 of file riva_hw.h.

#define NV_ARCH_30   0x30

Definition at line 95 of file riva_hw.h.

#define NV_ARCH_40   0x40

Definition at line 96 of file riva_hw.h.

#define NV_RD08 (   p,
  i 
)    (__raw_readb((void __iomem *)(p) + (i)))

Definition at line 79 of file riva_hw.h.

#define NV_RD16 (   p,
  i 
)    (__raw_readw((void __iomem *)(p) + (i)))

Definition at line 81 of file riva_hw.h.

#define NV_RD32 (   p,
  i 
)    (__raw_readl((void __iomem *)(p) + (i)))

Definition at line 83 of file riva_hw.h.

#define NV_WR08 (   p,
  i,
  d 
)    (__raw_writeb((d), (void __iomem *)(p) + (i)))

Definition at line 78 of file riva_hw.h.

#define NV_WR16 (   p,
  i,
  d 
)    (__raw_writew((d), (void __iomem *)(p) + (i)))

Definition at line 80 of file riva_hw.h.

#define NV_WR32 (   p,
  i,
  d 
)    (__raw_writel((d), (void __iomem *)(p) + (i)))

Definition at line 82 of file riva_hw.h.

#define RIVA_FIFO_FREE (   hwinst,
  hwptr,
  cnt 
)
Value:
{ \
while ((hwinst).FifoFreeCount < (cnt)) { \
mb();mb(); \
(hwinst).FifoFreeCount = NV_RD32(&(hwinst).hwptr->FifoFree, 0) >> 2; \
} \
(hwinst).FifoFreeCount -= (cnt); \
}

Definition at line 554 of file riva_hw.h.

#define RIVA_SW_VERSION   0x00010003

Definition at line 50 of file riva_hw.h.

#define TRUE   1

Definition at line 57 of file riva_hw.h.

#define VGA_RD08 (   p,
  i 
)    (readb((void __iomem *)(p) + (i)))

Definition at line 86 of file riva_hw.h.

#define VGA_WR08 (   p,
  i,
  d 
)    (writeb((d), (void __iomem *)(p) + (i)))

Definition at line 85 of file riva_hw.h.

Typedef Documentation

typedef int Bool

Definition at line 53 of file riva_hw.h.

typedef unsigned char U008

Definition at line 69 of file riva_hw.h.

typedef unsigned short U016

Definition at line 70 of file riva_hw.h.

typedef unsigned int U032

Definition at line 71 of file riva_hw.h.

Function Documentation

int CalcStateExt ( RIVA_HW_INST chip,
RIVA_HW_STATE state,
int  bpp,
int  width,
int  hDisplaySize,
int  height,
int  dotClock 
)

Definition at line 1235 of file riva_hw.c.

int RivaGetConfig ( RIVA_HW_INST ,
unsigned  int 
)

Definition at line 2226 of file riva_hw.c.