Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
chipsfb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/pm.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/console.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  chips_init_reg
 

Macros

#define write_ind(num, val, ap, dp)
 
#define read_ind(num, var, ap, dp)
 
#define write_xr(num, val)   write_ind(num, val, 0x3d6, 0x3d7)
 
#define read_xr(num, var)   read_ind(num, var, 0x3d6, 0x3d7)
 
#define write_fr(num, val)   write_ind(num, val, 0x3d0, 0x3d1)
 
#define read_fr(num, var)   read_ind(num, var, 0x3d0, 0x3d1)
 
#define write_cr(num, val)   write_ind(num, val, 0x3d4, 0x3d5)
 
#define read_cr(num, var)   read_ind(num, var, 0x3d4, 0x3d5)
 
#define write_gr(num, val)   write_ind(num, val, 0x3ce, 0x3cf)
 
#define read_gr(num, var)   read_ind(num, var, 0x3ce, 0x3cf)
 
#define write_sr(num, val)   write_ind(num, val, 0x3c4, 0x3c5)
 
#define read_sr(num, var)   read_ind(num, var, 0x3c4, 0x3c5)
 
#define write_ar(num, val)
 
#define read_ar(num, var)
 

Functions

int chips_init (void)
 
 MODULE_DEVICE_TABLE (pci, chipsfb_pci_tbl)
 
 module_init (chips_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define read_ar (   num,
  var 
)
Value:
do { \
inb(0x3da); read_ind(num, var, 0x3c0, 0x3c1); \
} while (0)

Definition at line 66 of file chipsfb.c.

#define read_cr (   num,
  var 
)    read_ind(num, var, 0x3d4, 0x3d5)

Definition at line 55 of file chipsfb.c.

#define read_fr (   num,
  var 
)    read_ind(num, var, 0x3d0, 0x3d1)

Definition at line 52 of file chipsfb.c.

#define read_gr (   num,
  var 
)    read_ind(num, var, 0x3ce, 0x3cf)

Definition at line 58 of file chipsfb.c.

#define read_ind (   num,
  var,
  ap,
  dp 
)
Value:
do { \
outb((num), (ap)); var = inb((dp)); \
} while (0)

Definition at line 43 of file chipsfb.c.

#define read_sr (   num,
  var 
)    read_ind(num, var, 0x3c4, 0x3c5)

Definition at line 61 of file chipsfb.c.

#define read_xr (   num,
  var 
)    read_ind(num, var, 0x3d6, 0x3d7)

Definition at line 49 of file chipsfb.c.

#define write_ar (   num,
  val 
)
Value:
do { \
inb(0x3da); write_ind(num, val, 0x3c0, 0x3c0); \
} while (0)

Definition at line 63 of file chipsfb.c.

#define write_cr (   num,
  val 
)    write_ind(num, val, 0x3d4, 0x3d5)

Definition at line 54 of file chipsfb.c.

#define write_fr (   num,
  val 
)    write_ind(num, val, 0x3d0, 0x3d1)

Definition at line 51 of file chipsfb.c.

#define write_gr (   num,
  val 
)    write_ind(num, val, 0x3ce, 0x3cf)

Definition at line 57 of file chipsfb.c.

#define write_ind (   num,
  val,
  ap,
  dp 
)
Value:
do { \
outb((num), (ap)); outb((val), (dp)); \
} while (0)

Definition at line 40 of file chipsfb.c.

#define write_sr (   num,
  val 
)    write_ind(num, val, 0x3c4, 0x3c5)

Definition at line 60 of file chipsfb.c.

#define write_xr (   num,
  val 
)    write_ind(num, val, 0x3d6, 0x3d7)

Definition at line 48 of file chipsfb.c.

Function Documentation

int __init chips_init ( void  )

Definition at line 505 of file chipsfb.c.

MODULE_DEVICE_TABLE ( pci  ,
chipsfb_pci_tbl   
)
module_init ( chips_init  )
MODULE_LICENSE ( "GPL"  )