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

Go to the source code of this file.

Data Structures

struct  intelfb_hwstate
 
struct  intelfb_heap_data
 
struct  intelfb_output_rec
 
struct  intelfb_vsync
 
struct  intelfb_info
 

Macros

#define INTELFB_VERSION   "0.9.6"
 
#define INTELFB_MODULE_NAME   "intelfb"
 
#define SUPPORTED_CHIPSETS   "830M/845G/852GM/855GM/865G/915G/915GM/945G/945GM/945GME/965G/965GM"
 
#define DEBUG   0
 
#define VERBOSE   0
 
#define REGDUMP   0
 
#define DETECT_VGA_CLASS_ONLY   1
 
#define ALLOCATE_FOR_PANNING   1
 
#define PREFERRED_MODE   "1024x768-32@70"
 
#define INTELFB_FB_ACQUIRED   1
 
#define INTELFB_MMIO_ACQUIRED   2
 
#define PCI_DEVICE_ID_INTEL_830M   0x3577
 
#define PCI_DEVICE_ID_INTEL_845G   0x2562
 
#define PCI_DEVICE_ID_INTEL_85XGM   0x3582
 
#define PCI_DEVICE_ID_INTEL_854   0x358E
 
#define PCI_DEVICE_ID_INTEL_865G   0x2572
 
#define PCI_DEVICE_ID_INTEL_915G   0x2582
 
#define PCI_DEVICE_ID_INTEL_915GM   0x2592
 
#define PCI_DEVICE_ID_INTEL_945G   0x2772
 
#define PCI_DEVICE_ID_INTEL_945GM   0x27A2
 
#define PCI_DEVICE_ID_INTEL_945GME   0x27AE
 
#define PCI_DEVICE_ID_INTEL_965G   0x29A2
 
#define PCI_DEVICE_ID_INTEL_965GM   0x2A02
 
#define INTEL_REG_SIZE   0x80000
 
#define STRIDE_ALIGNMENT   16
 
#define STRIDE_ALIGNMENT_I9XX   64
 
#define PALETTE_8_ENTRIES   256
 
#define KB(x)   ((x) * 1024)
 
#define MB(x)   ((x) * 1024 * 1024)
 
#define BtoKB(x)   ((x) / 1024)
 
#define BtoMB(x)   ((x) / 1024 / 1024)
 
#define GTT_PAGE_SIZE   KB(4)
 
#define ROUND_UP_TO(x, y)   (((x) + (y) - 1) / (y) * (y))
 
#define ROUND_DOWN_TO(x, y)   ((x) / (y) * (y))
 
#define ROUND_UP_TO_PAGE(x)   ROUND_UP_TO((x), GTT_PAGE_SIZE)
 
#define ROUND_DOWN_TO_PAGE(x)   ROUND_DOWN_TO((x), GTT_PAGE_SIZE)
 
#define PFX   INTELFB_MODULE_NAME ": "
 
#define ERR_MSG(fmt, args...)   printk(KERN_ERR PFX fmt, ## args)
 
#define WRN_MSG(fmt, args...)   printk(KERN_WARNING PFX fmt, ## args)
 
#define NOT_MSG(fmt, args...)   printk(KERN_NOTICE PFX fmt, ## args)
 
#define INF_MSG(fmt, args...)   printk(KERN_INFO PFX fmt, ## args)
 
#define DBG_MSG(fmt, args...)   while (0) printk(fmt, ## args)
 
#define GET_DINFO(info)   (info)->par
 
#define ACCEL(d, i)
 
#define NOACCEL_CHIPSET(d)   (0)
 
#define FIXED_MODE(d)   ((d)->fixed_mode)
 
#define RINGBUFFER_SIZE   KB(64)
 
#define HW_CURSOR_SIZE   KB(4)
 
#define AGP_PHYSICAL_MEMORY   2
 
#define MAX_OUTPUTS   6
 
#define INTELFB_OUTPUT_UNUSED   0
 
#define INTELFB_OUTPUT_ANALOG   1
 
#define INTELFB_OUTPUT_DVO   2
 
#define INTELFB_OUTPUT_SDVO   3
 
#define INTELFB_OUTPUT_LVDS   4
 
#define INTELFB_OUTPUT_TVOUT   5
 
#define INTELFB_DVO_CHIP_NONE   0
 
#define INTELFB_DVO_CHIP_LVDS   1
 
#define INTELFB_DVO_CHIP_TMDS   2
 
#define INTELFB_DVO_CHIP_TVOUT   4
 
#define INTELFB_OUTPUT_PIPE_NC   0
 
#define INTELFB_OUTPUT_PIPE_A   1
 
#define INTELFB_OUTPUT_PIPE_B   2
 
#define IS_I9XX(dinfo)
 

Enumerations

enum  intel_chips {
  INTEL_830M, INTEL_845G, INTEL_85XGM, INTEL_852GM,
  INTEL_852GME, INTEL_854, INTEL_855GM, INTEL_855GME,
  INTEL_865G, INTEL_915G, INTEL_915GM, INTEL_945G,
  INTEL_945GM, INTEL_945GME, INTEL_965G, INTEL_965GM
}
 

Functions

int intelfb_var_to_depth (const struct fb_var_screeninfo *var)
 

Macro Definition Documentation

#define ACCEL (   d,
  i 
)
Value:
((d)->accel && !(d)->ring_lockup && \
((i)->var.accel_flags & FB_ACCELF_TEXT))

Definition at line 107 of file intelfb.h.

#define AGP_PHYSICAL_MEMORY   2

Definition at line 124 of file intelfb.h.

#define ALLOCATE_FOR_PANNING   1

Definition at line 39 of file intelfb.h.

#define BtoKB (   x)    ((x) / 1024)

Definition at line 80 of file intelfb.h.

#define BtoMB (   x)    ((x) / 1024 / 1024)

Definition at line 81 of file intelfb.h.

#define DBG_MSG (   fmt,
  args... 
)    while (0) printk(fmt, ## args)

Definition at line 100 of file intelfb.h.

#define DEBUG   0

Definition at line 23 of file intelfb.h.

#define DETECT_VGA_CLASS_ONLY   1

Definition at line 35 of file intelfb.h.

#define ERR_MSG (   fmt,
  args... 
)    printk(KERN_ERR PFX fmt, ## args)

Definition at line 93 of file intelfb.h.

#define FIXED_MODE (   d)    ((d)->fixed_mode)

Definition at line 116 of file intelfb.h.

#define GET_DINFO (   info)    (info)->par

Definition at line 104 of file intelfb.h.

#define GTT_PAGE_SIZE   KB(4)

Definition at line 83 of file intelfb.h.

#define HW_CURSOR_SIZE   KB(4)

Definition at line 121 of file intelfb.h.

#define INF_MSG (   fmt,
  args... 
)    printk(KERN_INFO PFX fmt, ## args)

Definition at line 96 of file intelfb.h.

#define INTEL_REG_SIZE   0x80000

Definition at line 67 of file intelfb.h.

#define INTELFB_DVO_CHIP_LVDS   1

Definition at line 141 of file intelfb.h.

#define INTELFB_DVO_CHIP_NONE   0

Definition at line 140 of file intelfb.h.

#define INTELFB_DVO_CHIP_TMDS   2

Definition at line 142 of file intelfb.h.

#define INTELFB_DVO_CHIP_TVOUT   4

Definition at line 143 of file intelfb.h.

#define INTELFB_FB_ACQUIRED   1

Definition at line 49 of file intelfb.h.

#define INTELFB_MMIO_ACQUIRED   2

Definition at line 50 of file intelfb.h.

#define INTELFB_MODULE_NAME   "intelfb"

Definition at line 16 of file intelfb.h.

#define INTELFB_OUTPUT_ANALOG   1

Definition at line 134 of file intelfb.h.

#define INTELFB_OUTPUT_DVO   2

Definition at line 135 of file intelfb.h.

#define INTELFB_OUTPUT_LVDS   4

Definition at line 137 of file intelfb.h.

#define INTELFB_OUTPUT_PIPE_A   1

Definition at line 146 of file intelfb.h.

#define INTELFB_OUTPUT_PIPE_B   2

Definition at line 147 of file intelfb.h.

#define INTELFB_OUTPUT_PIPE_NC   0

Definition at line 145 of file intelfb.h.

#define INTELFB_OUTPUT_SDVO   3

Definition at line 136 of file intelfb.h.

#define INTELFB_OUTPUT_TVOUT   5

Definition at line 138 of file intelfb.h.

#define INTELFB_OUTPUT_UNUSED   0

Definition at line 133 of file intelfb.h.

#define INTELFB_VERSION   "0.9.6"

Definition at line 15 of file intelfb.h.

#define IS_I9XX (   dinfo)
Value:
(((dinfo)->chipset == INTEL_915G) || \
((dinfo)->chipset == INTEL_915GM) || \
((dinfo)->chipset == INTEL_945G) || \
((dinfo)->chipset == INTEL_945GM) || \
((dinfo)->chipset == INTEL_945GME) || \
((dinfo)->chipset == INTEL_965G) || \
((dinfo)->chipset == INTEL_965GM))

Definition at line 366 of file intelfb.h.

#define KB (   x)    ((x) * 1024)

Definition at line 78 of file intelfb.h.

#define MAX_OUTPUTS   6

Definition at line 129 of file intelfb.h.

#define MB (   x)    ((x) * 1024 * 1024)

Definition at line 79 of file intelfb.h.

#define NOACCEL_CHIPSET (   d)    (0)

Definition at line 113 of file intelfb.h.

#define NOT_MSG (   fmt,
  args... 
)    printk(KERN_NOTICE PFX fmt, ## args)

Definition at line 95 of file intelfb.h.

#define PALETTE_8_ENTRIES   256

Definition at line 72 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_830M   0x3577

Definition at line 53 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_845G   0x2562

Definition at line 54 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_854   0x358E

Definition at line 56 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_85XGM   0x3582

Definition at line 55 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_865G   0x2572

Definition at line 57 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_915G   0x2582

Definition at line 58 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_915GM   0x2592

Definition at line 59 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_945G   0x2772

Definition at line 60 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_945GM   0x27A2

Definition at line 61 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_945GME   0x27AE

Definition at line 62 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_965G   0x29A2

Definition at line 63 of file intelfb.h.

#define PCI_DEVICE_ID_INTEL_965GM   0x2A02

Definition at line 64 of file intelfb.h.

#define PFX   INTELFB_MODULE_NAME ": "

Definition at line 91 of file intelfb.h.

#define PREFERRED_MODE   "1024x768-32@70"

Definition at line 43 of file intelfb.h.

#define REGDUMP   0

Definition at line 31 of file intelfb.h.

#define RINGBUFFER_SIZE   KB(64)

Definition at line 120 of file intelfb.h.

#define ROUND_DOWN_TO (   x,
  y 
)    ((x) / (y) * (y))

Definition at line 86 of file intelfb.h.

#define ROUND_DOWN_TO_PAGE (   x)    ROUND_DOWN_TO((x), GTT_PAGE_SIZE)

Definition at line 88 of file intelfb.h.

#define ROUND_UP_TO (   x,
  y 
)    (((x) + (y) - 1) / (y) * (y))

Definition at line 85 of file intelfb.h.

#define ROUND_UP_TO_PAGE (   x)    ROUND_UP_TO((x), GTT_PAGE_SIZE)

Definition at line 87 of file intelfb.h.

#define STRIDE_ALIGNMENT   16

Definition at line 69 of file intelfb.h.

#define STRIDE_ALIGNMENT_I9XX   64

Definition at line 70 of file intelfb.h.

#define SUPPORTED_CHIPSETS   "830M/845G/852GM/855GM/865G/915G/915GM/945G/945GM/945GME/965G/965GM"

Definition at line 17 of file intelfb.h.

#define VERBOSE   0

Definition at line 27 of file intelfb.h.

#define WRN_MSG (   fmt,
  args... 
)    printk(KERN_WARNING PFX fmt, ## args)

Definition at line 94 of file intelfb.h.

Enumeration Type Documentation

Enumerator:
INTEL_830M 
INTEL_845G 
INTEL_85XGM 
INTEL_852GM 
INTEL_852GME 
INTEL_854 
INTEL_855GM 
INTEL_855GME 
INTEL_865G 
INTEL_915G 
INTEL_915GM 
INTEL_945G 
INTEL_945GM 
INTEL_945GME 
INTEL_965G 
INTEL_965GM 

Definition at line 152 of file intelfb.h.

Function Documentation

int intelfb_var_to_depth ( const struct fb_var_screeninfo var)

Definition at line 943 of file intelfbdrv.c.