Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
intelfbhw.h File Reference

Go to the source code of this file.

Macros

#define INTEL_85X_CAPID   0x44
 
#define INTEL_85X_VARIANT_MASK   0x7
 
#define INTEL_85X_VARIANT_SHIFT   5
 
#define INTEL_VAR_855GME   0x0
 
#define INTEL_VAR_855GM   0x4
 
#define INTEL_VAR_852GME   0x2
 
#define INTEL_VAR_852GM   0x5
 
#define DVOA_PORT   0x1
 
#define DVOB_PORT   0x2
 
#define DVOC_PORT   0x4
 
#define LVDS_PORT   0x8
 
#define INTEL_GMCH_CTRL   0x52
 
#define INTEL_GMCH_ENABLED   0x4
 
#define INTEL_GMCH_MEM_MASK   0x1
 
#define INTEL_GMCH_MEM_64M   0x1
 
#define INTEL_GMCH_MEM_128M   0
 
#define INTEL_830_GMCH_GMS_MASK   (0x7 << 4)
 
#define INTEL_830_GMCH_GMS_DISABLED   (0x0 << 4)
 
#define INTEL_830_GMCH_GMS_LOCAL   (0x1 << 4)
 
#define INTEL_830_GMCH_GMS_STOLEN_512   (0x2 << 4)
 
#define INTEL_830_GMCH_GMS_STOLEN_1024   (0x3 << 4)
 
#define INTEL_830_GMCH_GMS_STOLEN_8192   (0x4 << 4)
 
#define INTEL_855_GMCH_GMS_MASK   (0x7 << 4)
 
#define INTEL_855_GMCH_GMS_DISABLED   (0x0 << 4)
 
#define INTEL_855_GMCH_GMS_STOLEN_1M   (0x1 << 4)
 
#define INTEL_855_GMCH_GMS_STOLEN_4M   (0x2 << 4)
 
#define INTEL_855_GMCH_GMS_STOLEN_8M   (0x3 << 4)
 
#define INTEL_855_GMCH_GMS_STOLEN_16M   (0x4 << 4)
 
#define INTEL_855_GMCH_GMS_STOLEN_32M   (0x5 << 4)
 
#define INTEL_915G_GMCH_GMS_STOLEN_48M   (0x6 << 4)
 
#define INTEL_915G_GMCH_GMS_STOLEN_64M   (0x7 << 4)
 
#define FENCE   0x2000
 
#define FENCE_NUM   8
 
#define PRI_RING_TAIL   0x2030
 
#define RING_TAIL_MASK   0x001ffff8
 
#define RING_INUSE   0x1
 
#define PRI_RING_HEAD   0x2034
 
#define RING_HEAD_WRAP_MASK   0x7ff
 
#define RING_HEAD_WRAP_SHIFT   21
 
#define RING_HEAD_MASK   0x001ffffc
 
#define PRI_RING_START   0x2038
 
#define RING_START_MASK   0xfffff000
 
#define PRI_RING_LENGTH   0x203c
 
#define RING_LENGTH_MASK   0x001ff000
 
#define RING_REPORT_MASK   (0x3 << 1)
 
#define RING_NO_REPORT   (0x0 << 1)
 
#define RING_REPORT_64K   (0x1 << 1)
 
#define RING_REPORT_4K   (0x2 << 1)
 
#define RING_REPORT_128K   (0x3 << 1)
 
#define RING_ENABLE   0x1
 
#define RING_MIN_FREE   64
 
#define IPEHR   0x2088
 
#define INSTDONE   0x2090
 
#define PRI_RING_EMPTY   1
 
#define HWSTAM   0x2098
 
#define IER   0x20A0
 
#define IIR   0x20A4
 
#define IMR   0x20A8
 
#define VSYNC_PIPE_A_INTERRUPT   (1 << 7)
 
#define PIPE_A_EVENT_INTERRUPT   (1 << 6)
 
#define VSYNC_PIPE_B_INTERRUPT   (1 << 5)
 
#define PIPE_B_EVENT_INTERRUPT   (1 << 4)
 
#define HOST_PORT_EVENT_INTERRUPT   (1 << 3)
 
#define CAPTURE_EVENT_INTERRUPT   (1 << 2)
 
#define USER_DEFINED_INTERRUPT   (1 << 1)
 
#define BREAKPOINT_INTERRUPT   1
 
#define INSTPM   0x20c0
 
#define SYNC_FLUSH_ENABLE   (1 << 5)
 
#define INSTPS   0x20c4
 
#define MEM_MODE   0x20cc
 
#define MASK_SHIFT   16
 
#define FW_BLC_0   0x20d8
 
#define FW_DISPA_WM_SHIFT   0
 
#define FW_DISPA_WM_MASK   0x3f
 
#define FW_DISPA_BL_SHIFT   8
 
#define FW_DISPA_BL_MASK   0xf
 
#define FW_DISPB_WM_SHIFT   16
 
#define FW_DISPB_WM_MASK   0x1f
 
#define FW_DISPB_BL_SHIFT   24
 
#define FW_DISPB_BL_MASK   0x7
 
#define FW_BLC_1   0x20dc
 
#define FW_DISPC_WM_SHIFT   0
 
#define FW_DISPC_WM_MASK   0x1f
 
#define FW_DISPC_BL_SHIFT   8
 
#define FW_DISPC_BL_MASK   0x7
 
#define GPIOA   0x5010
 
#define GPIOB   0x5014
 
#define GPIOC   0x5018 /* this may be external DDC on i830 */
 
#define GPIOD   0x501C /* this is DVO DDC */
 
#define GPIOE   0x5020 /* this is DVO i2C */
 
#define GPIOF   0x5024
 
#define VGA0_DIVISOR   0x06000
 
#define VGA1_DIVISOR   0x06004
 
#define VGAPD   0x06010
 
#define VGAPD_0_P1_SHIFT   0
 
#define VGAPD_0_P1_FORCE_DIV2   (1 << 5)
 
#define VGAPD_0_P2_SHIFT   7
 
#define VGAPD_1_P1_SHIFT   8
 
#define VGAPD_1_P1_FORCE_DIV2   (1 << 13)
 
#define VGAPD_1_P2_SHIFT   15
 
#define DPLL_A   0x06014
 
#define DPLL_B   0x06018
 
#define DPLL_VCO_ENABLE   (1 << 31)
 
#define DPLL_2X_CLOCK_ENABLE   (1 << 30)
 
#define DPLL_SYNCLOCK_ENABLE   (1 << 29)
 
#define DPLL_VGA_MODE_DISABLE   (1 << 28)
 
#define DPLL_P2_MASK   1
 
#define DPLL_P2_SHIFT   23
 
#define DPLL_I9XX_P2_SHIFT   24
 
#define DPLL_P1_FORCE_DIV2   (1 << 21)
 
#define DPLL_P1_MASK   0x1f
 
#define DPLL_P1_SHIFT   16
 
#define DPLL_REFERENCE_SELECT_MASK   (0x3 << 13)
 
#define DPLL_REFERENCE_DEFAULT   (0x0 << 13)
 
#define DPLL_REFERENCE_TVCLK   (0x2 << 13)
 
#define DPLL_RATE_SELECT_MASK   (1 << 8)
 
#define DPLL_RATE_SELECT_FP0   (0 << 8)
 
#define DPLL_RATE_SELECT_FP1   (1 << 8)
 
#define FPA0   0x06040
 
#define FPA1   0x06044
 
#define FPB0   0x06048
 
#define FPB1   0x0604c
 
#define FP_DIVISOR_MASK   0x3f
 
#define FP_N_DIVISOR_SHIFT   16
 
#define FP_M1_DIVISOR_SHIFT   8
 
#define FP_M2_DIVISOR_SHIFT   0
 
#define PLL_REFCLK   48000
 
#define MIN_CLOCK   25000
 
#define MAX_CLOCK   350000
 
#define PIPE_A   0
 
#define PIPE_B   1
 
#define PIPE_MASK   1
 
#define PALETTE_A   0x0a000
 
#define PALETTE_B   0x0a800
 
#define PALETTE_8_ENTRIES   256
 
#define PALETTE_8_SIZE   (PALETTE_8_ENTRIES * 4)
 
#define PALETTE_10_ENTRIES   128
 
#define PALETTE_10_SIZE   (PALETTE_10_ENTRIES * 8)
 
#define PALETTE_8_MASK   0xff
 
#define PALETTE_8_RED_SHIFT   16
 
#define PALETTE_8_GREEN_SHIFT   8
 
#define PALETTE_8_BLUE_SHIFT   0
 
#define HTOTAL_A   0x60000
 
#define HBLANK_A   0x60004
 
#define HSYNC_A   0x60008
 
#define VTOTAL_A   0x6000c
 
#define VBLANK_A   0x60010
 
#define VSYNC_A   0x60014
 
#define SRC_SIZE_A   0x6001c
 
#define BCLRPAT_A   0x60020
 
#define HTOTAL_B   0x61000
 
#define HBLANK_B   0x61004
 
#define HSYNC_B   0x61008
 
#define VTOTAL_B   0x6100c
 
#define VBLANK_B   0x61010
 
#define VSYNC_B   0x61014
 
#define SRC_SIZE_B   0x6101c
 
#define BCLRPAT_B   0x61020
 
#define HTOTAL_MASK   0xfff
 
#define HTOTAL_SHIFT   16
 
#define HACTIVE_MASK   0x7ff
 
#define HACTIVE_SHIFT   0
 
#define HBLANKEND_MASK   0xfff
 
#define HBLANKEND_SHIFT   16
 
#define HBLANKSTART_MASK   0xfff
 
#define HBLANKSTART_SHIFT   0
 
#define HSYNCEND_MASK   0xfff
 
#define HSYNCEND_SHIFT   16
 
#define HSYNCSTART_MASK   0xfff
 
#define HSYNCSTART_SHIFT   0
 
#define VTOTAL_MASK   0xfff
 
#define VTOTAL_SHIFT   16
 
#define VACTIVE_MASK   0x7ff
 
#define VACTIVE_SHIFT   0
 
#define VBLANKEND_MASK   0xfff
 
#define VBLANKEND_SHIFT   16
 
#define VBLANKSTART_MASK   0xfff
 
#define VBLANKSTART_SHIFT   0
 
#define VSYNCEND_MASK   0xfff
 
#define VSYNCEND_SHIFT   16
 
#define VSYNCSTART_MASK   0xfff
 
#define VSYNCSTART_SHIFT   0
 
#define SRC_SIZE_HORIZ_MASK   0x7ff
 
#define SRC_SIZE_HORIZ_SHIFT   16
 
#define SRC_SIZE_VERT_MASK   0x7ff
 
#define SRC_SIZE_VERT_SHIFT   0
 
#define ADPA   0x61100
 
#define ADPA_DAC_ENABLE   (1 << 31)
 
#define ADPA_DAC_DISABLE   0
 
#define ADPA_PIPE_SELECT_SHIFT   30
 
#define ADPA_USE_VGA_HVPOLARITY   (1 << 15)
 
#define ADPA_SETS_HVPOLARITY   0
 
#define ADPA_DPMS_CONTROL_MASK   (0x3 << 10)
 
#define ADPA_DPMS_D0   (0x0 << 10)
 
#define ADPA_DPMS_D2   (0x1 << 10)
 
#define ADPA_DPMS_D1   (0x2 << 10)
 
#define ADPA_DPMS_D3   (0x3 << 10)
 
#define ADPA_VSYNC_ACTIVE_SHIFT   4
 
#define ADPA_HSYNC_ACTIVE_SHIFT   3
 
#define ADPA_SYNC_ACTIVE_MASK   1
 
#define ADPA_SYNC_ACTIVE_HIGH   1
 
#define ADPA_SYNC_ACTIVE_LOW   0
 
#define DVOA   0x61120
 
#define DVOB   0x61140
 
#define DVOC   0x61160
 
#define LVDS   0x61180
 
#define PORT_ENABLE   (1 << 31)
 
#define PORT_PIPE_SELECT_SHIFT   30
 
#define PORT_TV_FLAGS_MASK   0xFF
 
#define PORT_TV_FLAGS
 
#define DVOA_SRCDIM   0x61124
 
#define DVOB_SRCDIM   0x61144
 
#define DVOC_SRCDIM   0x61164
 
#define PIPEA_DSL   0x70000
 
#define PIPEB_DSL   0x71000
 
#define PIPEACONF   0x70008
 
#define PIPEBCONF   0x71008
 
#define PIPEASTAT   0x70024 /* bits 0-15 are "write 1 to clear" */
 
#define PIPEBSTAT   0x71024
 
#define PIPECONF_ENABLE   (1 << 31)
 
#define PIPECONF_DISABLE   0
 
#define PIPECONF_DOUBLE_WIDE   (1 << 30)
 
#define PIPECONF_SINGLE_WIDE   0
 
#define PIPECONF_LOCKED   (1 << 25)
 
#define PIPECONF_UNLOCKED   0
 
#define PIPECONF_GAMMA   (1 << 24)
 
#define PIPECONF_PALETTE   0
 
#define PIPECONF_PROGRESSIVE   (0 << 21)
 
#define PIPECONF_INTERLACE_W_FIELD_INDICATION   (6 << 21)
 
#define PIPECONF_INTERLACE_FIELD_0_ONLY   (7 << 21)
 
#define PIPECONF_INTERLACE_MASK   (7 << 21)
 
#define PIPESTAT_FIFO_UNDERRUN   (1 << 31)
 
#define PIPESTAT_CRC_ERROR_EN   (1 << 29)
 
#define PIPESTAT_CRC_DONE_EN   (1 << 28)
 
#define PIPESTAT_HOTPLUG_EN   (1 << 26)
 
#define PIPESTAT_VERTICAL_SYNC_EN   (1 << 25)
 
#define PIPESTAT_DISPLINE_COMP_EN   (1 << 24)
 
#define PIPESTAT_FLD_EVT_ODD_EN   (1 << 21)
 
#define PIPESTAT_FLD_EVT_EVEN_EN   (1 << 20)
 
#define PIPESTAT_TV_HOTPLUG_EN   (1 << 18)
 
#define PIPESTAT_VBLANK_EN   (1 << 17)
 
#define PIPESTAT_OVL_UPDATE_EN   (1 << 16)
 
#define PIPESTAT_HOTPLUG_STATE   (1 << 15)
 
#define PIPESTAT_CRC_ERROR   (1 << 13)
 
#define PIPESTAT_CRC_DONE   (1 << 12)
 
#define PIPESTAT_HOTPLUG   (1 << 10)
 
#define PIPESTAT_VSYNC   (1 << 9)
 
#define PIPESTAT_DISPLINE_COMP   (1 << 8)
 
#define PIPESTAT_FLD_EVT_ODD   (1 << 5)
 
#define PIPESTAT_FLD_EVT_EVEN   (1 << 4)
 
#define PIPESTAT_TV_HOTPLUG   (1 << 2)
 
#define PIPESTAT_VBLANK   (1 << 1)
 
#define PIPESTAT_OVL_UPDATE   (1 << 0)
 
#define DISPARB   0x70030
 
#define DISPARB_AEND_MASK   0x1ff
 
#define DISPARB_AEND_SHIFT   0
 
#define DISPARB_BEND_MASK   0x3ff
 
#define DISPARB_BEND_SHIFT   9
 
#define CURSOR_CONTROL   0x70080
 
#define CURSOR_ENABLE   (1 << 31)
 
#define CURSOR_GAMMA_ENABLE   (1 << 30)
 
#define CURSOR_STRIDE_MASK   (0x3 << 28)
 
#define CURSOR_STRIDE_256   (0x0 << 28)
 
#define CURSOR_STRIDE_512   (0x1 << 28)
 
#define CURSOR_STRIDE_1K   (0x2 << 28)
 
#define CURSOR_STRIDE_2K   (0x3 << 28)
 
#define CURSOR_FORMAT_MASK   (0x7 << 24)
 
#define CURSOR_FORMAT_2C   (0x0 << 24)
 
#define CURSOR_FORMAT_3C   (0x1 << 24)
 
#define CURSOR_FORMAT_4C   (0x2 << 24)
 
#define CURSOR_FORMAT_ARGB   (0x4 << 24)
 
#define CURSOR_FORMAT_XRGB   (0x5 << 24)
 
#define CURSOR_A_CONTROL   CURSOR_CONTROL
 
#define CURSOR_B_CONTROL   0x700c0
 
#define CURSOR_MODE_MASK   0x27
 
#define CURSOR_MODE_DISABLE   0
 
#define CURSOR_MODE_64_3C   0x04
 
#define CURSOR_MODE_64_4C_AX   0x05
 
#define CURSOR_MODE_64_4C   0x06
 
#define CURSOR_MODE_64_32B_AX   0x07
 
#define CURSOR_MODE_64_ARGB_AX   0x27
 
#define CURSOR_PIPE_SELECT_SHIFT   28
 
#define CURSOR_MOBILE_GAMMA_ENABLE   (1 << 26)
 
#define CURSOR_MEM_TYPE_LOCAL   (1 << 25)
 
#define CURSOR_A_BASEADDR   0x70084
 
#define CURSOR_B_BASEADDR   0x700c4
 
#define CURSOR_BASE_MASK   0xffffff00
 
#define CURSOR_A_POSITION   0x70088
 
#define CURSOR_B_POSITION   0x700c8
 
#define CURSOR_POS_SIGN   (1 << 15)
 
#define CURSOR_POS_MASK   0x7ff
 
#define CURSOR_X_SHIFT   0
 
#define CURSOR_Y_SHIFT   16
 
#define CURSOR_A_PALETTE0   0x70090
 
#define CURSOR_A_PALETTE1   0x70094
 
#define CURSOR_A_PALETTE2   0x70098
 
#define CURSOR_A_PALETTE3   0x7009c
 
#define CURSOR_B_PALETTE0   0x700d0
 
#define CURSOR_B_PALETTE1   0x700d4
 
#define CURSOR_B_PALETTE2   0x700d8
 
#define CURSOR_B_PALETTE3   0x700dc
 
#define CURSOR_COLOR_MASK   0xff
 
#define CURSOR_RED_SHIFT   16
 
#define CURSOR_GREEN_SHIFT   8
 
#define CURSOR_BLUE_SHIFT   0
 
#define CURSOR_PALETTE_MASK   0xffffff
 
#define CURSOR_SIZE   0x700a0
 
#define CURSOR_SIZE_MASK   0x3ff
 
#define CURSOR_SIZE_H_SHIFT   0
 
#define CURSOR_SIZE_V_SHIFT   12
 
#define DSPACNTR   0x70180
 
#define DSPBCNTR   0x71180
 
#define DISPPLANE_PLANE_ENABLE   (1 << 31)
 
#define DISPPLANE_PLANE_DISABLE   0
 
#define DISPPLANE_GAMMA_ENABLE   (1<<30)
 
#define DISPPLANE_GAMMA_DISABLE   0
 
#define DISPPLANE_PIXFORMAT_MASK   (0xf<<26)
 
#define DISPPLANE_8BPP   (0x2<<26)
 
#define DISPPLANE_15_16BPP   (0x4<<26)
 
#define DISPPLANE_16BPP   (0x5<<26)
 
#define DISPPLANE_32BPP_NO_ALPHA   (0x6<<26)
 
#define DISPPLANE_32BPP   (0x7<<26)
 
#define DISPPLANE_STEREO_ENABLE   (1<<25)
 
#define DISPPLANE_STEREO_DISABLE   0
 
#define DISPPLANE_SEL_PIPE_SHIFT   24
 
#define DISPPLANE_SRC_KEY_ENABLE   (1<<22)
 
#define DISPPLANE_SRC_KEY_DISABLE   0
 
#define DISPPLANE_LINE_DOUBLE   (1<<20)
 
#define DISPPLANE_NO_LINE_DOUBLE   0
 
#define DISPPLANE_STEREO_POLARITY_FIRST   0
 
#define DISPPLANE_STEREO_POLARITY_SECOND   (1<<18)
 
#define DISPPLANE_ALPHA_TRANS_ENABLE   (1<<15)
 
#define DISPPLANE_ALPHA_TRANS_DISABLE   0
 
#define DISPPLANE_SPRITE_ABOVE_DISPLAYA   0
 
#define DISPPLANE_SPRITE_ABOVE_OVERLAY   1
 
#define DSPABASE   0x70184
 
#define DSPASTRIDE   0x70188
 
#define DSPBBASE   0x71184
 
#define DSPBSTRIDE   0x71188
 
#define VGACNTRL   0x71400
 
#define VGA_DISABLE   (1 << 31)
 
#define VGA_ENABLE   0
 
#define VGA_PIPE_SELECT_SHIFT   29
 
#define VGA_PALETTE_READ_SELECT   23
 
#define VGA_PALETTE_A_WRITE_DISABLE   (1 << 22)
 
#define VGA_PALETTE_B_WRITE_DISABLE   (1 << 21)
 
#define VGA_LEGACY_PALETTE   (1 << 20)
 
#define VGA_6BIT_DAC   0
 
#define VGA_8BIT_DAC   (1 << 20)
 
#define ADD_ID   0x71408
 
#define ADD_ID_MASK   0xff
 
#define SWF0   0x71410
 
#define SWF1   0x71414
 
#define SWF2   0x71418
 
#define SWF3   0x7141c
 
#define SWF4   0x71420
 
#define SWF5   0x71424
 
#define SWF6   0x71428
 
#define SWF00   0x70410
 
#define SWF01   0x70414
 
#define SWF02   0x70418
 
#define SWF03   0x7041c
 
#define SWF04   0x70420
 
#define SWF05   0x70424
 
#define SWF06   0x70428
 
#define SWF10   SWF0
 
#define SWF11   SWF1
 
#define SWF12   SWF2
 
#define SWF13   SWF3
 
#define SWF14   SWF4
 
#define SWF15   SWF5
 
#define SWF16   SWF6
 
#define SWF30   0x72414
 
#define SWF31   0x72418
 
#define SWF32   0x7241c
 
#define MI_NOOP   (0x00 << 23)
 
#define MI_NOOP_WRITE_ID   (1 << 22)
 
#define MI_NOOP_ID_MASK   ((1 << 22) - 1)
 
#define MI_FLUSH   (0x04 << 23)
 
#define MI_WRITE_DIRTY_STATE   (1 << 4)
 
#define MI_END_SCENE   (1 << 3)
 
#define MI_INHIBIT_RENDER_CACHE_FLUSH   (1 << 2)
 
#define MI_INVALIDATE_MAP_CACHE   (1 << 0)
 
#define MI_STORE_DWORD_IMM   ((0x20 << 23) | 1)
 
#define COLOR_BLT_CMD   ((2 << 29) | (0x40 << 22) | 3)
 
#define XY_COLOR_BLT_CMD   ((2 << 29) | (0x50 << 22) | 4)
 
#define XY_SETUP_CLIP_BLT_CMD   ((2 << 29) | (0x03 << 22) | 1)
 
#define XY_SRC_COPY_BLT_CMD   ((2 << 29) | (0x53 << 22) | 6)
 
#define SRC_COPY_BLT_CMD   ((2 << 29) | (0x43 << 22) | 4)
 
#define XY_MONO_PAT_BLT_CMD   ((2 << 29) | (0x52 << 22) | 7)
 
#define XY_MONO_SRC_BLT_CMD   ((2 << 29) | (0x54 << 22) | 6)
 
#define XY_MONO_SRC_IMM_BLT_CMD   ((2 << 29) | (0x71 << 22) | 5)
 
#define TXT_IMM_BLT_CMD   ((2 << 29) | (0x30 << 22) | 2)
 
#define SETUP_BLT_CMD   ((2 << 29) | (0x00 << 22) | 6)
 
#define DW_LENGTH_MASK   0xff
 
#define WRITE_ALPHA   (1 << 21)
 
#define WRITE_RGB   (1 << 20)
 
#define VERT_SEED   (3 << 8)
 
#define HORIZ_SEED   (3 << 12)
 
#define COLOR_DEPTH_8   (0 << 24)
 
#define COLOR_DEPTH_16   (1 << 24)
 
#define COLOR_DEPTH_32   (3 << 24)
 
#define SRC_ROP_GXCOPY   0xcc
 
#define SRC_ROP_GXXOR   0x66
 
#define PAT_ROP_GXCOPY   0xf0
 
#define PAT_ROP_GXXOR   0x5a
 
#define PITCH_SHIFT   0
 
#define ROP_SHIFT   16
 
#define WIDTH_SHIFT   0
 
#define HEIGHT_SHIFT   16
 
#define MAX_MONO_IMM_SIZE   128
 
#define INREG8(addr)   readb((u8 __iomem *)(dinfo->mmio_base + (addr)))
 
#define INREG16(addr)   readw((u16 __iomem *)(dinfo->mmio_base + (addr)))
 
#define INREG(addr)   readl((u32 __iomem *)(dinfo->mmio_base + (addr)))
 
#define OUTREG8(addr, val)
 
#define OUTREG16(addr, val)
 
#define OUTREG(addr, val)
 
#define OUT_RING(n)
 
#define START_RING(n)
 
#define ADVANCE_RING()
 
#define DO_RING_IDLE()
 

Functions

int intelfbhw_get_chipset (struct pci_dev *pdev, struct intelfb_info *dinfo)
 
int intelfbhw_get_memory (struct pci_dev *pdev, int *aperture_size, int *stolen_size)
 
int intelfbhw_check_non_crt (struct intelfb_info *dinfo)
 
const charintelfbhw_dvo_to_string (int dvo)
 
int intelfbhw_validate_mode (struct intelfb_info *dinfo, struct fb_var_screeninfo *var)
 
int intelfbhw_pan_display (struct fb_var_screeninfo *var, struct fb_info *info)
 
void intelfbhw_do_blank (int blank, struct fb_info *info)
 
void intelfbhw_setcolreg (struct intelfb_info *dinfo, unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp)
 
int intelfbhw_read_hw_state (struct intelfb_info *dinfo, struct intelfb_hwstate *hw, int flag)
 
void intelfbhw_print_hw_state (struct intelfb_info *dinfo, struct intelfb_hwstate *hw)
 
int intelfbhw_mode_to_hw (struct intelfb_info *dinfo, struct intelfb_hwstate *hw, struct fb_var_screeninfo *var)
 
int intelfbhw_program_mode (struct intelfb_info *dinfo, const struct intelfb_hwstate *hw, int blank)
 
void intelfbhw_do_sync (struct intelfb_info *dinfo)
 
void intelfbhw_2d_stop (struct intelfb_info *dinfo)
 
void intelfbhw_2d_start (struct intelfb_info *dinfo)
 
void intelfbhw_do_fillrect (struct intelfb_info *dinfo, u32 x, u32 y, u32 w, u32 h, u32 color, u32 pitch, u32 bpp, u32 rop)
 
void intelfbhw_do_bitblt (struct intelfb_info *dinfo, u32 curx, u32 cury, u32 dstx, u32 dsty, u32 w, u32 h, u32 pitch, u32 bpp)
 
int intelfbhw_do_drawglyph (struct intelfb_info *dinfo, u32 fg, u32 bg, u32 w, u32 h, const u8 *cdat, u32 x, u32 y, u32 pitch, u32 bpp)
 
void intelfbhw_cursor_init (struct intelfb_info *dinfo)
 
void intelfbhw_cursor_hide (struct intelfb_info *dinfo)
 
void intelfbhw_cursor_show (struct intelfb_info *dinfo)
 
void intelfbhw_cursor_setpos (struct intelfb_info *dinfo, int x, int y)
 
void intelfbhw_cursor_setcolor (struct intelfb_info *dinfo, u32 bg, u32 fg)
 
void intelfbhw_cursor_load (struct intelfb_info *dinfo, int width, int height, u8 *data)
 
void intelfbhw_cursor_reset (struct intelfb_info *dinfo)
 
int intelfbhw_enable_irq (struct intelfb_info *dinfo)
 
void intelfbhw_disable_irq (struct intelfb_info *dinfo)
 
int intelfbhw_wait_for_vsync (struct intelfb_info *dinfo, u32 pipe)
 
int intelfbhw_active_pipe (const struct intelfb_hwstate *hw)
 

Macro Definition Documentation

#define ADD_ID   0x71408

Definition at line 435 of file intelfbhw.h.

#define ADD_ID_MASK   0xff

Definition at line 436 of file intelfbhw.h.

#define ADPA   0x61100

Definition at line 248 of file intelfbhw.h.

#define ADPA_DAC_DISABLE   0

Definition at line 250 of file intelfbhw.h.

#define ADPA_DAC_ENABLE   (1 << 31)

Definition at line 249 of file intelfbhw.h.

#define ADPA_DPMS_CONTROL_MASK   (0x3 << 10)

Definition at line 254 of file intelfbhw.h.

#define ADPA_DPMS_D0   (0x0 << 10)

Definition at line 255 of file intelfbhw.h.

#define ADPA_DPMS_D1   (0x2 << 10)

Definition at line 257 of file intelfbhw.h.

#define ADPA_DPMS_D2   (0x1 << 10)

Definition at line 256 of file intelfbhw.h.

#define ADPA_DPMS_D3   (0x3 << 10)

Definition at line 258 of file intelfbhw.h.

#define ADPA_HSYNC_ACTIVE_SHIFT   3

Definition at line 260 of file intelfbhw.h.

#define ADPA_PIPE_SELECT_SHIFT   30

Definition at line 251 of file intelfbhw.h.

#define ADPA_SETS_HVPOLARITY   0

Definition at line 253 of file intelfbhw.h.

#define ADPA_SYNC_ACTIVE_HIGH   1

Definition at line 262 of file intelfbhw.h.

#define ADPA_SYNC_ACTIVE_LOW   0

Definition at line 263 of file intelfbhw.h.

#define ADPA_SYNC_ACTIVE_MASK   1

Definition at line 261 of file intelfbhw.h.

#define ADPA_USE_VGA_HVPOLARITY   (1 << 15)

Definition at line 252 of file intelfbhw.h.

#define ADPA_VSYNC_ACTIVE_SHIFT   4

Definition at line 259 of file intelfbhw.h.

#define ADVANCE_RING ( )
Value:
do { \
OUTREG(PRI_RING_TAIL, dinfo->ring_tail); \
} while (0)

Definition at line 545 of file intelfbhw.h.

#define BCLRPAT_A   0x60020

Definition at line 208 of file intelfbhw.h.

#define BCLRPAT_B   0x61020

Definition at line 217 of file intelfbhw.h.

#define BREAKPOINT_INTERRUPT   1

Definition at line 102 of file intelfbhw.h.

#define CAPTURE_EVENT_INTERRUPT   (1 << 2)

Definition at line 100 of file intelfbhw.h.

#define COLOR_BLT_CMD   ((2 << 29) | (0x40 << 22) | 3)

Definition at line 482 of file intelfbhw.h.

#define COLOR_DEPTH_16   (1 << 24)

Definition at line 501 of file intelfbhw.h.

#define COLOR_DEPTH_32   (3 << 24)

Definition at line 502 of file intelfbhw.h.

#define COLOR_DEPTH_8   (0 << 24)

Definition at line 500 of file intelfbhw.h.

#define CURSOR_A_BASEADDR   0x70084

Definition at line 360 of file intelfbhw.h.

#define CURSOR_A_CONTROL   CURSOR_CONTROL

Definition at line 346 of file intelfbhw.h.

#define CURSOR_A_PALETTE0   0x70090

Definition at line 371 of file intelfbhw.h.

#define CURSOR_A_PALETTE1   0x70094

Definition at line 372 of file intelfbhw.h.

#define CURSOR_A_PALETTE2   0x70098

Definition at line 373 of file intelfbhw.h.

#define CURSOR_A_PALETTE3   0x7009c

Definition at line 374 of file intelfbhw.h.

#define CURSOR_A_POSITION   0x70088

Definition at line 364 of file intelfbhw.h.

#define CURSOR_B_BASEADDR   0x700c4

Definition at line 361 of file intelfbhw.h.

#define CURSOR_B_CONTROL   0x700c0

Definition at line 347 of file intelfbhw.h.

#define CURSOR_B_PALETTE0   0x700d0

Definition at line 375 of file intelfbhw.h.

#define CURSOR_B_PALETTE1   0x700d4

Definition at line 376 of file intelfbhw.h.

#define CURSOR_B_PALETTE2   0x700d8

Definition at line 377 of file intelfbhw.h.

#define CURSOR_B_PALETTE3   0x700dc

Definition at line 378 of file intelfbhw.h.

#define CURSOR_B_POSITION   0x700c8

Definition at line 365 of file intelfbhw.h.

#define CURSOR_BASE_MASK   0xffffff00

Definition at line 362 of file intelfbhw.h.

#define CURSOR_BLUE_SHIFT   0

Definition at line 382 of file intelfbhw.h.

#define CURSOR_COLOR_MASK   0xff

Definition at line 379 of file intelfbhw.h.

#define CURSOR_CONTROL   0x70080

Definition at line 330 of file intelfbhw.h.

#define CURSOR_ENABLE   (1 << 31)

Definition at line 331 of file intelfbhw.h.

#define CURSOR_FORMAT_2C   (0x0 << 24)

Definition at line 339 of file intelfbhw.h.

#define CURSOR_FORMAT_3C   (0x1 << 24)

Definition at line 340 of file intelfbhw.h.

#define CURSOR_FORMAT_4C   (0x2 << 24)

Definition at line 341 of file intelfbhw.h.

#define CURSOR_FORMAT_ARGB   (0x4 << 24)

Definition at line 342 of file intelfbhw.h.

#define CURSOR_FORMAT_MASK   (0x7 << 24)

Definition at line 338 of file intelfbhw.h.

#define CURSOR_FORMAT_XRGB   (0x5 << 24)

Definition at line 343 of file intelfbhw.h.

#define CURSOR_GAMMA_ENABLE   (1 << 30)

Definition at line 332 of file intelfbhw.h.

#define CURSOR_GREEN_SHIFT   8

Definition at line 381 of file intelfbhw.h.

#define CURSOR_MEM_TYPE_LOCAL   (1 << 25)

Definition at line 357 of file intelfbhw.h.

#define CURSOR_MOBILE_GAMMA_ENABLE   (1 << 26)

Definition at line 356 of file intelfbhw.h.

#define CURSOR_MODE_64_32B_AX   0x07

Definition at line 353 of file intelfbhw.h.

#define CURSOR_MODE_64_3C   0x04

Definition at line 350 of file intelfbhw.h.

#define CURSOR_MODE_64_4C   0x06

Definition at line 352 of file intelfbhw.h.

#define CURSOR_MODE_64_4C_AX   0x05

Definition at line 351 of file intelfbhw.h.

#define CURSOR_MODE_64_ARGB_AX   0x27

Definition at line 354 of file intelfbhw.h.

#define CURSOR_MODE_DISABLE   0

Definition at line 349 of file intelfbhw.h.

#define CURSOR_MODE_MASK   0x27

Definition at line 348 of file intelfbhw.h.

#define CURSOR_PALETTE_MASK   0xffffff

Definition at line 383 of file intelfbhw.h.

#define CURSOR_PIPE_SELECT_SHIFT   28

Definition at line 355 of file intelfbhw.h.

#define CURSOR_POS_MASK   0x7ff

Definition at line 367 of file intelfbhw.h.

#define CURSOR_POS_SIGN   (1 << 15)

Definition at line 366 of file intelfbhw.h.

#define CURSOR_RED_SHIFT   16

Definition at line 380 of file intelfbhw.h.

#define CURSOR_SIZE   0x700a0

Definition at line 386 of file intelfbhw.h.

#define CURSOR_SIZE_H_SHIFT   0

Definition at line 388 of file intelfbhw.h.

#define CURSOR_SIZE_MASK   0x3ff

Definition at line 387 of file intelfbhw.h.

#define CURSOR_SIZE_V_SHIFT   12

Definition at line 389 of file intelfbhw.h.

#define CURSOR_STRIDE_1K   (0x2 << 28)

Definition at line 336 of file intelfbhw.h.

#define CURSOR_STRIDE_256   (0x0 << 28)

Definition at line 334 of file intelfbhw.h.

#define CURSOR_STRIDE_2K   (0x3 << 28)

Definition at line 337 of file intelfbhw.h.

#define CURSOR_STRIDE_512   (0x1 << 28)

Definition at line 335 of file intelfbhw.h.

#define CURSOR_STRIDE_MASK   (0x3 << 28)

Definition at line 333 of file intelfbhw.h.

#define CURSOR_X_SHIFT   0

Definition at line 368 of file intelfbhw.h.

#define CURSOR_Y_SHIFT   16

Definition at line 369 of file intelfbhw.h.

#define DISPARB   0x70030

Definition at line 323 of file intelfbhw.h.

#define DISPARB_AEND_MASK   0x1ff

Definition at line 324 of file intelfbhw.h.

#define DISPARB_AEND_SHIFT   0

Definition at line 325 of file intelfbhw.h.

#define DISPARB_BEND_MASK   0x3ff

Definition at line 326 of file intelfbhw.h.

#define DISPARB_BEND_SHIFT   9

Definition at line 327 of file intelfbhw.h.

#define DISPPLANE_15_16BPP   (0x4<<26)

Definition at line 399 of file intelfbhw.h.

#define DISPPLANE_16BPP   (0x5<<26)

Definition at line 400 of file intelfbhw.h.

#define DISPPLANE_32BPP   (0x7<<26)

Definition at line 402 of file intelfbhw.h.

#define DISPPLANE_32BPP_NO_ALPHA   (0x6<<26)

Definition at line 401 of file intelfbhw.h.

#define DISPPLANE_8BPP   (0x2<<26)

Definition at line 398 of file intelfbhw.h.

#define DISPPLANE_ALPHA_TRANS_DISABLE   0

Definition at line 414 of file intelfbhw.h.

#define DISPPLANE_ALPHA_TRANS_ENABLE   (1<<15)

Definition at line 413 of file intelfbhw.h.

#define DISPPLANE_GAMMA_DISABLE   0

Definition at line 396 of file intelfbhw.h.

#define DISPPLANE_GAMMA_ENABLE   (1<<30)

Definition at line 395 of file intelfbhw.h.

#define DISPPLANE_LINE_DOUBLE   (1<<20)

Definition at line 408 of file intelfbhw.h.

#define DISPPLANE_NO_LINE_DOUBLE   0

Definition at line 409 of file intelfbhw.h.

#define DISPPLANE_PIXFORMAT_MASK   (0xf<<26)

Definition at line 397 of file intelfbhw.h.

#define DISPPLANE_PLANE_DISABLE   0

Definition at line 394 of file intelfbhw.h.

#define DISPPLANE_PLANE_ENABLE   (1 << 31)

Definition at line 393 of file intelfbhw.h.

#define DISPPLANE_SEL_PIPE_SHIFT   24

Definition at line 405 of file intelfbhw.h.

#define DISPPLANE_SPRITE_ABOVE_DISPLAYA   0

Definition at line 415 of file intelfbhw.h.

#define DISPPLANE_SPRITE_ABOVE_OVERLAY   1

Definition at line 416 of file intelfbhw.h.

#define DISPPLANE_SRC_KEY_DISABLE   0

Definition at line 407 of file intelfbhw.h.

#define DISPPLANE_SRC_KEY_ENABLE   (1<<22)

Definition at line 406 of file intelfbhw.h.

#define DISPPLANE_STEREO_DISABLE   0

Definition at line 404 of file intelfbhw.h.

#define DISPPLANE_STEREO_ENABLE   (1<<25)

Definition at line 403 of file intelfbhw.h.

#define DISPPLANE_STEREO_POLARITY_FIRST   0

Definition at line 410 of file intelfbhw.h.

#define DISPPLANE_STEREO_POLARITY_SECOND   (1<<18)

Definition at line 411 of file intelfbhw.h.

#define DO_RING_IDLE ( )
Value:
do { \
do { \
udelay(10); \
} while (head != tail); \
} while (0)

Definition at line 549 of file intelfbhw.h.

#define DPLL_2X_CLOCK_ENABLE   (1 << 30)

Definition at line 150 of file intelfbhw.h.

#define DPLL_A   0x06014

Definition at line 147 of file intelfbhw.h.

#define DPLL_B   0x06018

Definition at line 148 of file intelfbhw.h.

#define DPLL_I9XX_P2_SHIFT   24

Definition at line 155 of file intelfbhw.h.

#define DPLL_P1_FORCE_DIV2   (1 << 21)

Definition at line 156 of file intelfbhw.h.

#define DPLL_P1_MASK   0x1f

Definition at line 157 of file intelfbhw.h.

#define DPLL_P1_SHIFT   16

Definition at line 158 of file intelfbhw.h.

#define DPLL_P2_MASK   1

Definition at line 153 of file intelfbhw.h.

#define DPLL_P2_SHIFT   23

Definition at line 154 of file intelfbhw.h.

#define DPLL_RATE_SELECT_FP0   (0 << 8)

Definition at line 163 of file intelfbhw.h.

#define DPLL_RATE_SELECT_FP1   (1 << 8)

Definition at line 164 of file intelfbhw.h.

#define DPLL_RATE_SELECT_MASK   (1 << 8)

Definition at line 162 of file intelfbhw.h.

#define DPLL_REFERENCE_DEFAULT   (0x0 << 13)

Definition at line 160 of file intelfbhw.h.

#define DPLL_REFERENCE_SELECT_MASK   (0x3 << 13)

Definition at line 159 of file intelfbhw.h.

#define DPLL_REFERENCE_TVCLK   (0x2 << 13)

Definition at line 161 of file intelfbhw.h.

#define DPLL_SYNCLOCK_ENABLE   (1 << 29)

Definition at line 151 of file intelfbhw.h.

#define DPLL_VCO_ENABLE   (1 << 31)

Definition at line 149 of file intelfbhw.h.

#define DPLL_VGA_MODE_DISABLE   (1 << 28)

Definition at line 152 of file intelfbhw.h.

#define DSPABASE   0x70184

Definition at line 418 of file intelfbhw.h.

#define DSPACNTR   0x70180

Definition at line 391 of file intelfbhw.h.

#define DSPASTRIDE   0x70188

Definition at line 419 of file intelfbhw.h.

#define DSPBBASE   0x71184

Definition at line 421 of file intelfbhw.h.

#define DSPBCNTR   0x71180

Definition at line 392 of file intelfbhw.h.

#define DSPBSTRIDE   0x71188

Definition at line 422 of file intelfbhw.h.

#define DVOA   0x61120

Definition at line 265 of file intelfbhw.h.

#define DVOA_PORT   0x1

Definition at line 19 of file intelfbhw.h.

#define DVOA_SRCDIM   0x61124

Definition at line 274 of file intelfbhw.h.

#define DVOB   0x61140

Definition at line 266 of file intelfbhw.h.

#define DVOB_PORT   0x2

Definition at line 20 of file intelfbhw.h.

#define DVOB_SRCDIM   0x61144

Definition at line 275 of file intelfbhw.h.

#define DVOC   0x61160

Definition at line 267 of file intelfbhw.h.

#define DVOC_PORT   0x4

Definition at line 21 of file intelfbhw.h.

#define DVOC_SRCDIM   0x61164

Definition at line 276 of file intelfbhw.h.

#define DW_LENGTH_MASK   0xff

Definition at line 493 of file intelfbhw.h.

#define FENCE   0x2000

Definition at line 55 of file intelfbhw.h.

#define FENCE_NUM   8

Definition at line 56 of file intelfbhw.h.

#define FP_DIVISOR_MASK   0x3f

Definition at line 170 of file intelfbhw.h.

#define FP_M1_DIVISOR_SHIFT   8

Definition at line 172 of file intelfbhw.h.

#define FP_M2_DIVISOR_SHIFT   0

Definition at line 173 of file intelfbhw.h.

#define FP_N_DIVISOR_SHIFT   16

Definition at line 171 of file intelfbhw.h.

#define FPA0   0x06040

Definition at line 166 of file intelfbhw.h.

#define FPA1   0x06044

Definition at line 167 of file intelfbhw.h.

#define FPB0   0x06048

Definition at line 168 of file intelfbhw.h.

#define FPB1   0x0604c

Definition at line 169 of file intelfbhw.h.

#define FW_BLC_0   0x20d8

Definition at line 113 of file intelfbhw.h.

#define FW_BLC_1   0x20dc

Definition at line 123 of file intelfbhw.h.

#define FW_DISPA_BL_MASK   0xf

Definition at line 117 of file intelfbhw.h.

#define FW_DISPA_BL_SHIFT   8

Definition at line 116 of file intelfbhw.h.

#define FW_DISPA_WM_MASK   0x3f

Definition at line 115 of file intelfbhw.h.

#define FW_DISPA_WM_SHIFT   0

Definition at line 114 of file intelfbhw.h.

#define FW_DISPB_BL_MASK   0x7

Definition at line 121 of file intelfbhw.h.

#define FW_DISPB_BL_SHIFT   24

Definition at line 120 of file intelfbhw.h.

#define FW_DISPB_WM_MASK   0x1f

Definition at line 119 of file intelfbhw.h.

#define FW_DISPB_WM_SHIFT   16

Definition at line 118 of file intelfbhw.h.

#define FW_DISPC_BL_MASK   0x7

Definition at line 127 of file intelfbhw.h.

#define FW_DISPC_BL_SHIFT   8

Definition at line 126 of file intelfbhw.h.

#define FW_DISPC_WM_MASK   0x1f

Definition at line 125 of file intelfbhw.h.

#define FW_DISPC_WM_SHIFT   0

Definition at line 124 of file intelfbhw.h.

#define GPIOA   0x5010

Definition at line 129 of file intelfbhw.h.

#define GPIOB   0x5014

Definition at line 130 of file intelfbhw.h.

#define GPIOC   0x5018 /* this may be external DDC on i830 */

Definition at line 131 of file intelfbhw.h.

#define GPIOD   0x501C /* this is DVO DDC */

Definition at line 132 of file intelfbhw.h.

#define GPIOE   0x5020 /* this is DVO i2C */

Definition at line 133 of file intelfbhw.h.

#define GPIOF   0x5024

Definition at line 134 of file intelfbhw.h.

#define HACTIVE_MASK   0x7ff

Definition at line 221 of file intelfbhw.h.

#define HACTIVE_SHIFT   0

Definition at line 222 of file intelfbhw.h.

#define HBLANK_A   0x60004

Definition at line 202 of file intelfbhw.h.

#define HBLANK_B   0x61004

Definition at line 211 of file intelfbhw.h.

#define HBLANKEND_MASK   0xfff

Definition at line 223 of file intelfbhw.h.

#define HBLANKEND_SHIFT   16

Definition at line 224 of file intelfbhw.h.

#define HBLANKSTART_MASK   0xfff

Definition at line 225 of file intelfbhw.h.

#define HBLANKSTART_SHIFT   0

Definition at line 226 of file intelfbhw.h.

#define HEIGHT_SHIFT   16

Definition at line 513 of file intelfbhw.h.

#define HORIZ_SEED   (3 << 12)

Definition at line 498 of file intelfbhw.h.

#define HOST_PORT_EVENT_INTERRUPT   (1 << 3)

Definition at line 99 of file intelfbhw.h.

#define HSYNC_A   0x60008

Definition at line 203 of file intelfbhw.h.

#define HSYNC_B   0x61008

Definition at line 212 of file intelfbhw.h.

#define HSYNCEND_MASK   0xfff

Definition at line 227 of file intelfbhw.h.

#define HSYNCEND_SHIFT   16

Definition at line 228 of file intelfbhw.h.

#define HSYNCSTART_MASK   0xfff

Definition at line 229 of file intelfbhw.h.

#define HSYNCSTART_SHIFT   0

Definition at line 230 of file intelfbhw.h.

#define HTOTAL_A   0x60000

Definition at line 201 of file intelfbhw.h.

#define HTOTAL_B   0x61000

Definition at line 210 of file intelfbhw.h.

#define HTOTAL_MASK   0xfff

Definition at line 219 of file intelfbhw.h.

#define HTOTAL_SHIFT   16

Definition at line 220 of file intelfbhw.h.

#define HWSTAM   0x2098

Definition at line 91 of file intelfbhw.h.

#define IER   0x20A0

Definition at line 92 of file intelfbhw.h.

#define IIR   0x20A4

Definition at line 93 of file intelfbhw.h.

#define IMR   0x20A8

Definition at line 94 of file intelfbhw.h.

#define INREG (   addr)    readl((u32 __iomem *)(dinfo->mmio_base + (addr)))

Definition at line 524 of file intelfbhw.h.

#define INREG16 (   addr)    readw((u16 __iomem *)(dinfo->mmio_base + (addr)))

Definition at line 523 of file intelfbhw.h.

#define INREG8 (   addr)    readb((u8 __iomem *)(dinfo->mmio_base + (addr)))

Definition at line 522 of file intelfbhw.h.

#define INSTDONE   0x2090

Definition at line 88 of file intelfbhw.h.

#define INSTPM   0x20c0

Definition at line 104 of file intelfbhw.h.

#define INSTPS   0x20c4

Definition at line 107 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_DISABLED   (0x0 << 4)

Definition at line 35 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_LOCAL   (0x1 << 4)

Definition at line 36 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_MASK   (0x7 << 4)

Definition at line 34 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_STOLEN_1024   (0x3 << 4)

Definition at line 38 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_STOLEN_512   (0x2 << 4)

Definition at line 37 of file intelfbhw.h.

#define INTEL_830_GMCH_GMS_STOLEN_8192   (0x4 << 4)

Definition at line 39 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_DISABLED   (0x0 << 4)

Definition at line 42 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_MASK   (0x7 << 4)

Definition at line 41 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_STOLEN_16M   (0x4 << 4)

Definition at line 46 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_STOLEN_1M   (0x1 << 4)

Definition at line 43 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_STOLEN_32M   (0x5 << 4)

Definition at line 47 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_STOLEN_4M   (0x2 << 4)

Definition at line 44 of file intelfbhw.h.

#define INTEL_855_GMCH_GMS_STOLEN_8M   (0x3 << 4)

Definition at line 45 of file intelfbhw.h.

#define INTEL_85X_CAPID   0x44

Definition at line 10 of file intelfbhw.h.

#define INTEL_85X_VARIANT_MASK   0x7

Definition at line 11 of file intelfbhw.h.

#define INTEL_85X_VARIANT_SHIFT   5

Definition at line 12 of file intelfbhw.h.

#define INTEL_915G_GMCH_GMS_STOLEN_48M   (0x6 << 4)

Definition at line 49 of file intelfbhw.h.

#define INTEL_915G_GMCH_GMS_STOLEN_64M   (0x7 << 4)

Definition at line 50 of file intelfbhw.h.

#define INTEL_GMCH_CTRL   0x52

Definition at line 28 of file intelfbhw.h.

#define INTEL_GMCH_ENABLED   0x4

Definition at line 29 of file intelfbhw.h.

#define INTEL_GMCH_MEM_128M   0

Definition at line 32 of file intelfbhw.h.

#define INTEL_GMCH_MEM_64M   0x1

Definition at line 31 of file intelfbhw.h.

#define INTEL_GMCH_MEM_MASK   0x1

Definition at line 30 of file intelfbhw.h.

#define INTEL_VAR_852GM   0x5

Definition at line 16 of file intelfbhw.h.

#define INTEL_VAR_852GME   0x2

Definition at line 15 of file intelfbhw.h.

#define INTEL_VAR_855GM   0x4

Definition at line 14 of file intelfbhw.h.

#define INTEL_VAR_855GME   0x0

Definition at line 13 of file intelfbhw.h.

#define IPEHR   0x2088

Definition at line 86 of file intelfbhw.h.

#define LVDS   0x61180

Definition at line 268 of file intelfbhw.h.

#define LVDS_PORT   0x8

Definition at line 22 of file intelfbhw.h.

#define MASK_SHIFT   16

Definition at line 111 of file intelfbhw.h.

#define MAX_CLOCK   350000

Definition at line 179 of file intelfbhw.h.

#define MAX_MONO_IMM_SIZE   128

Definition at line 516 of file intelfbhw.h.

#define MEM_MODE   0x20cc

Definition at line 109 of file intelfbhw.h.

#define MI_END_SCENE   (1 << 3)

Definition at line 475 of file intelfbhw.h.

#define MI_FLUSH   (0x04 << 23)

Definition at line 473 of file intelfbhw.h.

#define MI_INHIBIT_RENDER_CACHE_FLUSH   (1 << 2)

Definition at line 476 of file intelfbhw.h.

#define MI_INVALIDATE_MAP_CACHE   (1 << 0)

Definition at line 477 of file intelfbhw.h.

#define MI_NOOP   (0x00 << 23)

Definition at line 469 of file intelfbhw.h.

#define MI_NOOP_ID_MASK   ((1 << 22) - 1)

Definition at line 471 of file intelfbhw.h.

#define MI_NOOP_WRITE_ID   (1 << 22)

Definition at line 470 of file intelfbhw.h.

#define MI_STORE_DWORD_IMM   ((0x20 << 23) | 1)

Definition at line 479 of file intelfbhw.h.

#define MI_WRITE_DIRTY_STATE   (1 << 4)

Definition at line 474 of file intelfbhw.h.

#define MIN_CLOCK   25000

Definition at line 178 of file intelfbhw.h.

#define OUT_RING (   n)
Value:
do { \
writel((n), (u32 __iomem *)(dinfo->ring.virtual + dinfo->ring_tail));\
dinfo->ring_tail += 4; \
dinfo->ring_tail &= dinfo->ring_tail_mask; \
} while (0)

Definition at line 533 of file intelfbhw.h.

#define OUTREG (   addr,
  val 
)
Value:
writel((val),(u32 __iomem *)(dinfo->mmio_base + \
(addr)))

Definition at line 529 of file intelfbhw.h.

#define OUTREG16 (   addr,
  val 
)
Value:
writew((val),(u16 __iomem *)(dinfo->mmio_base + \
(addr)))

Definition at line 527 of file intelfbhw.h.

#define OUTREG8 (   addr,
  val 
)
Value:
writeb((val),(u8 __iomem *)(dinfo->mmio_base + \
(addr)))

Definition at line 525 of file intelfbhw.h.

#define PALETTE_10_ENTRIES   128

Definition at line 193 of file intelfbhw.h.

#define PALETTE_10_SIZE   (PALETTE_10_ENTRIES * 8)

Definition at line 194 of file intelfbhw.h.

#define PALETTE_8_BLUE_SHIFT   0

Definition at line 198 of file intelfbhw.h.

#define PALETTE_8_ENTRIES   256

Definition at line 190 of file intelfbhw.h.

#define PALETTE_8_GREEN_SHIFT   8

Definition at line 197 of file intelfbhw.h.

#define PALETTE_8_MASK   0xff

Definition at line 195 of file intelfbhw.h.

#define PALETTE_8_RED_SHIFT   16

Definition at line 196 of file intelfbhw.h.

#define PALETTE_8_SIZE   (PALETTE_8_ENTRIES * 4)

Definition at line 192 of file intelfbhw.h.

#define PALETTE_A   0x0a000

Definition at line 187 of file intelfbhw.h.

#define PALETTE_B   0x0a800

Definition at line 188 of file intelfbhw.h.

#define PAT_ROP_GXCOPY   0xf0

Definition at line 507 of file intelfbhw.h.

#define PAT_ROP_GXXOR   0x5a

Definition at line 508 of file intelfbhw.h.

#define PIPE_A   0

Definition at line 182 of file intelfbhw.h.

#define PIPE_A_EVENT_INTERRUPT   (1 << 6)

Definition at line 96 of file intelfbhw.h.

#define PIPE_B   1

Definition at line 183 of file intelfbhw.h.

#define PIPE_B_EVENT_INTERRUPT   (1 << 4)

Definition at line 98 of file intelfbhw.h.

#define PIPE_MASK   1

Definition at line 184 of file intelfbhw.h.

#define PIPEA_DSL   0x70000

Definition at line 278 of file intelfbhw.h.

#define PIPEACONF   0x70008

Definition at line 280 of file intelfbhw.h.

#define PIPEASTAT   0x70024 /* bits 0-15 are "write 1 to clear" */

Definition at line 282 of file intelfbhw.h.

#define PIPEB_DSL   0x71000

Definition at line 279 of file intelfbhw.h.

#define PIPEBCONF   0x71008

Definition at line 281 of file intelfbhw.h.

#define PIPEBSTAT   0x71024

Definition at line 283 of file intelfbhw.h.

#define PIPECONF_DISABLE   0

Definition at line 286 of file intelfbhw.h.

#define PIPECONF_DOUBLE_WIDE   (1 << 30)

Definition at line 287 of file intelfbhw.h.

#define PIPECONF_ENABLE   (1 << 31)

Definition at line 285 of file intelfbhw.h.

#define PIPECONF_GAMMA   (1 << 24)

Definition at line 291 of file intelfbhw.h.

#define PIPECONF_INTERLACE_FIELD_0_ONLY   (7 << 21)

Definition at line 295 of file intelfbhw.h.

#define PIPECONF_INTERLACE_MASK   (7 << 21)

Definition at line 296 of file intelfbhw.h.

#define PIPECONF_INTERLACE_W_FIELD_INDICATION   (6 << 21)

Definition at line 294 of file intelfbhw.h.

#define PIPECONF_LOCKED   (1 << 25)

Definition at line 289 of file intelfbhw.h.

#define PIPECONF_PALETTE   0

Definition at line 292 of file intelfbhw.h.

#define PIPECONF_PROGRESSIVE   (0 << 21)

Definition at line 293 of file intelfbhw.h.

#define PIPECONF_SINGLE_WIDE   0

Definition at line 288 of file intelfbhw.h.

#define PIPECONF_UNLOCKED   0

Definition at line 290 of file intelfbhw.h.

#define PIPESTAT_CRC_DONE   (1 << 12)

Definition at line 313 of file intelfbhw.h.

#define PIPESTAT_CRC_DONE_EN   (1 << 28)

Definition at line 301 of file intelfbhw.h.

#define PIPESTAT_CRC_ERROR   (1 << 13)

Definition at line 312 of file intelfbhw.h.

#define PIPESTAT_CRC_ERROR_EN   (1 << 29)

Definition at line 300 of file intelfbhw.h.

#define PIPESTAT_DISPLINE_COMP   (1 << 8)

Definition at line 316 of file intelfbhw.h.

#define PIPESTAT_DISPLINE_COMP_EN   (1 << 24)

Definition at line 304 of file intelfbhw.h.

#define PIPESTAT_FIFO_UNDERRUN   (1 << 31)

Definition at line 299 of file intelfbhw.h.

#define PIPESTAT_FLD_EVT_EVEN   (1 << 4)

Definition at line 318 of file intelfbhw.h.

#define PIPESTAT_FLD_EVT_EVEN_EN   (1 << 20)

Definition at line 306 of file intelfbhw.h.

#define PIPESTAT_FLD_EVT_ODD   (1 << 5)

Definition at line 317 of file intelfbhw.h.

#define PIPESTAT_FLD_EVT_ODD_EN   (1 << 21)

Definition at line 305 of file intelfbhw.h.

#define PIPESTAT_HOTPLUG   (1 << 10)

Definition at line 314 of file intelfbhw.h.

#define PIPESTAT_HOTPLUG_EN   (1 << 26)

Definition at line 302 of file intelfbhw.h.

#define PIPESTAT_HOTPLUG_STATE   (1 << 15)

Definition at line 311 of file intelfbhw.h.

#define PIPESTAT_OVL_UPDATE   (1 << 0)

Definition at line 321 of file intelfbhw.h.

#define PIPESTAT_OVL_UPDATE_EN   (1 << 16)

Definition at line 309 of file intelfbhw.h.

#define PIPESTAT_TV_HOTPLUG   (1 << 2)

Definition at line 319 of file intelfbhw.h.

#define PIPESTAT_TV_HOTPLUG_EN   (1 << 18)

Definition at line 307 of file intelfbhw.h.

#define PIPESTAT_VBLANK   (1 << 1)

Definition at line 320 of file intelfbhw.h.

#define PIPESTAT_VBLANK_EN   (1 << 17)

Definition at line 308 of file intelfbhw.h.

#define PIPESTAT_VERTICAL_SYNC_EN   (1 << 25)

Definition at line 303 of file intelfbhw.h.

#define PIPESTAT_VSYNC   (1 << 9)

Definition at line 315 of file intelfbhw.h.

#define PITCH_SHIFT   0

Definition at line 510 of file intelfbhw.h.

#define PLL_REFCLK   48000

Definition at line 177 of file intelfbhw.h.

#define PORT_ENABLE   (1 << 31)

Definition at line 269 of file intelfbhw.h.

#define PORT_PIPE_SELECT_SHIFT   30

Definition at line 270 of file intelfbhw.h.

#define PORT_TV_FLAGS
Value:
0xC4 /* ripped from my BIOS
to understand and correct */

Definition at line 272 of file intelfbhw.h.

#define PORT_TV_FLAGS_MASK   0xFF

Definition at line 271 of file intelfbhw.h.

#define PRI_RING_EMPTY   1

Definition at line 89 of file intelfbhw.h.

#define PRI_RING_HEAD   0x2034

Definition at line 63 of file intelfbhw.h.

#define PRI_RING_LENGTH   0x203c

Definition at line 71 of file intelfbhw.h.

#define PRI_RING_START   0x2038

Definition at line 68 of file intelfbhw.h.

#define PRI_RING_TAIL   0x2030

Definition at line 59 of file intelfbhw.h.

#define RING_ENABLE   0x1

Definition at line 78 of file intelfbhw.h.

#define RING_HEAD_MASK   0x001ffffc

Definition at line 66 of file intelfbhw.h.

#define RING_HEAD_WRAP_MASK   0x7ff

Definition at line 64 of file intelfbhw.h.

#define RING_HEAD_WRAP_SHIFT   21

Definition at line 65 of file intelfbhw.h.

#define RING_INUSE   0x1

Definition at line 61 of file intelfbhw.h.

#define RING_LENGTH_MASK   0x001ff000

Definition at line 72 of file intelfbhw.h.

#define RING_MIN_FREE   64

Definition at line 84 of file intelfbhw.h.

#define RING_NO_REPORT   (0x0 << 1)

Definition at line 74 of file intelfbhw.h.

#define RING_REPORT_128K   (0x3 << 1)

Definition at line 77 of file intelfbhw.h.

#define RING_REPORT_4K   (0x2 << 1)

Definition at line 76 of file intelfbhw.h.

#define RING_REPORT_64K   (0x1 << 1)

Definition at line 75 of file intelfbhw.h.

#define RING_REPORT_MASK   (0x3 << 1)

Definition at line 73 of file intelfbhw.h.

#define RING_START_MASK   0xfffff000

Definition at line 69 of file intelfbhw.h.

#define RING_TAIL_MASK   0x001ffff8

Definition at line 60 of file intelfbhw.h.

#define ROP_SHIFT   16

Definition at line 511 of file intelfbhw.h.

#define SETUP_BLT_CMD   ((2 << 29) | (0x00 << 22) | 6)

Definition at line 491 of file intelfbhw.h.

#define SRC_COPY_BLT_CMD   ((2 << 29) | (0x43 << 22) | 4)

Definition at line 486 of file intelfbhw.h.

#define SRC_ROP_GXCOPY   0xcc

Definition at line 504 of file intelfbhw.h.

#define SRC_ROP_GXXOR   0x66

Definition at line 505 of file intelfbhw.h.

#define SRC_SIZE_A   0x6001c

Definition at line 207 of file intelfbhw.h.

#define SRC_SIZE_B   0x6101c

Definition at line 216 of file intelfbhw.h.

#define SRC_SIZE_HORIZ_MASK   0x7ff

Definition at line 243 of file intelfbhw.h.

#define SRC_SIZE_HORIZ_SHIFT   16

Definition at line 244 of file intelfbhw.h.

#define SRC_SIZE_VERT_MASK   0x7ff

Definition at line 245 of file intelfbhw.h.

#define SRC_SIZE_VERT_SHIFT   0

Definition at line 246 of file intelfbhw.h.

#define START_RING (   n)
Value:
do { \
if (dinfo->ring_space < (n) * 4) \
wait_ring(dinfo,(n) * 4); \
dinfo->ring_space -= (n) * 4; \
} while (0)

Definition at line 539 of file intelfbhw.h.

#define SWF0   0x71410

Definition at line 439 of file intelfbhw.h.

#define SWF00   0x70410

Definition at line 448 of file intelfbhw.h.

#define SWF01   0x70414

Definition at line 449 of file intelfbhw.h.

#define SWF02   0x70418

Definition at line 450 of file intelfbhw.h.

#define SWF03   0x7041c

Definition at line 451 of file intelfbhw.h.

#define SWF04   0x70420

Definition at line 452 of file intelfbhw.h.

#define SWF05   0x70424

Definition at line 453 of file intelfbhw.h.

#define SWF06   0x70428

Definition at line 454 of file intelfbhw.h.

#define SWF1   0x71414

Definition at line 440 of file intelfbhw.h.

#define SWF10   SWF0

Definition at line 456 of file intelfbhw.h.

#define SWF11   SWF1

Definition at line 457 of file intelfbhw.h.

#define SWF12   SWF2

Definition at line 458 of file intelfbhw.h.

#define SWF13   SWF3

Definition at line 459 of file intelfbhw.h.

#define SWF14   SWF4

Definition at line 460 of file intelfbhw.h.

#define SWF15   SWF5

Definition at line 461 of file intelfbhw.h.

#define SWF16   SWF6

Definition at line 462 of file intelfbhw.h.

#define SWF2   0x71418

Definition at line 441 of file intelfbhw.h.

#define SWF3   0x7141c

Definition at line 442 of file intelfbhw.h.

#define SWF30   0x72414

Definition at line 464 of file intelfbhw.h.

#define SWF31   0x72418

Definition at line 465 of file intelfbhw.h.

#define SWF32   0x7241c

Definition at line 466 of file intelfbhw.h.

#define SWF4   0x71420

Definition at line 443 of file intelfbhw.h.

#define SWF5   0x71424

Definition at line 444 of file intelfbhw.h.

#define SWF6   0x71428

Definition at line 445 of file intelfbhw.h.

#define SYNC_FLUSH_ENABLE   (1 << 5)

Definition at line 105 of file intelfbhw.h.

#define TXT_IMM_BLT_CMD   ((2 << 29) | (0x30 << 22) | 2)

Definition at line 490 of file intelfbhw.h.

#define USER_DEFINED_INTERRUPT   (1 << 1)

Definition at line 101 of file intelfbhw.h.

#define VACTIVE_MASK   0x7ff

Definition at line 233 of file intelfbhw.h.

#define VACTIVE_SHIFT   0

Definition at line 234 of file intelfbhw.h.

#define VBLANK_A   0x60010

Definition at line 205 of file intelfbhw.h.

#define VBLANK_B   0x61010

Definition at line 214 of file intelfbhw.h.

#define VBLANKEND_MASK   0xfff

Definition at line 235 of file intelfbhw.h.

#define VBLANKEND_SHIFT   16

Definition at line 236 of file intelfbhw.h.

#define VBLANKSTART_MASK   0xfff

Definition at line 237 of file intelfbhw.h.

#define VBLANKSTART_SHIFT   0

Definition at line 238 of file intelfbhw.h.

#define VERT_SEED   (3 << 8)

Definition at line 497 of file intelfbhw.h.

#define VGA0_DIVISOR   0x06000

Definition at line 137 of file intelfbhw.h.

#define VGA1_DIVISOR   0x06004

Definition at line 138 of file intelfbhw.h.

#define VGA_6BIT_DAC   0

Definition at line 432 of file intelfbhw.h.

#define VGA_8BIT_DAC   (1 << 20)

Definition at line 433 of file intelfbhw.h.

#define VGA_DISABLE   (1 << 31)

Definition at line 425 of file intelfbhw.h.

#define VGA_ENABLE   0

Definition at line 426 of file intelfbhw.h.

#define VGA_LEGACY_PALETTE   (1 << 20)

Definition at line 431 of file intelfbhw.h.

#define VGA_PALETTE_A_WRITE_DISABLE   (1 << 22)

Definition at line 429 of file intelfbhw.h.

#define VGA_PALETTE_B_WRITE_DISABLE   (1 << 21)

Definition at line 430 of file intelfbhw.h.

#define VGA_PALETTE_READ_SELECT   23

Definition at line 428 of file intelfbhw.h.

#define VGA_PIPE_SELECT_SHIFT   29

Definition at line 427 of file intelfbhw.h.

#define VGACNTRL   0x71400

Definition at line 424 of file intelfbhw.h.

#define VGAPD   0x06010

Definition at line 139 of file intelfbhw.h.

#define VGAPD_0_P1_FORCE_DIV2   (1 << 5)

Definition at line 141 of file intelfbhw.h.

#define VGAPD_0_P1_SHIFT   0

Definition at line 140 of file intelfbhw.h.

#define VGAPD_0_P2_SHIFT   7

Definition at line 142 of file intelfbhw.h.

#define VGAPD_1_P1_FORCE_DIV2   (1 << 13)

Definition at line 144 of file intelfbhw.h.

#define VGAPD_1_P1_SHIFT   8

Definition at line 143 of file intelfbhw.h.

#define VGAPD_1_P2_SHIFT   15

Definition at line 145 of file intelfbhw.h.

#define VSYNC_A   0x60014

Definition at line 206 of file intelfbhw.h.

#define VSYNC_B   0x61014

Definition at line 215 of file intelfbhw.h.

#define VSYNC_PIPE_A_INTERRUPT   (1 << 7)

Definition at line 95 of file intelfbhw.h.

#define VSYNC_PIPE_B_INTERRUPT   (1 << 5)

Definition at line 97 of file intelfbhw.h.

#define VSYNCEND_MASK   0xfff

Definition at line 239 of file intelfbhw.h.

#define VSYNCEND_SHIFT   16

Definition at line 240 of file intelfbhw.h.

#define VSYNCSTART_MASK   0xfff

Definition at line 241 of file intelfbhw.h.

#define VSYNCSTART_SHIFT   0

Definition at line 242 of file intelfbhw.h.

#define VTOTAL_A   0x6000c

Definition at line 204 of file intelfbhw.h.

#define VTOTAL_B   0x6100c

Definition at line 213 of file intelfbhw.h.

#define VTOTAL_MASK   0xfff

Definition at line 231 of file intelfbhw.h.

#define VTOTAL_SHIFT   16

Definition at line 232 of file intelfbhw.h.

#define WIDTH_SHIFT   0

Definition at line 512 of file intelfbhw.h.

#define WRITE_ALPHA   (1 << 21)

Definition at line 495 of file intelfbhw.h.

#define WRITE_RGB   (1 << 20)

Definition at line 496 of file intelfbhw.h.

#define XY_COLOR_BLT_CMD   ((2 << 29) | (0x50 << 22) | 4)

Definition at line 483 of file intelfbhw.h.

#define XY_MONO_PAT_BLT_CMD   ((2 << 29) | (0x52 << 22) | 7)

Definition at line 487 of file intelfbhw.h.

#define XY_MONO_SRC_BLT_CMD   ((2 << 29) | (0x54 << 22) | 6)

Definition at line 488 of file intelfbhw.h.

#define XY_MONO_SRC_IMM_BLT_CMD   ((2 << 29) | (0x71 << 22) | 5)

Definition at line 489 of file intelfbhw.h.

#define XY_SETUP_CLIP_BLT_CMD   ((2 << 29) | (0x03 << 22) | 1)

Definition at line 484 of file intelfbhw.h.

#define XY_SRC_COPY_BLT_CMD   ((2 << 29) | (0x53 << 22) | 6)

Definition at line 485 of file intelfbhw.h.

Function Documentation

void intelfbhw_2d_start ( struct intelfb_info dinfo)

Definition at line 1637 of file intelfbhw.c.

void intelfbhw_2d_stop ( struct intelfb_info dinfo)

Definition at line 1618 of file intelfbhw.c.

int intelfbhw_active_pipe ( const struct intelfb_hwstate hw)

Definition at line 472 of file intelfbhw.c.

int intelfbhw_check_non_crt ( struct intelfb_info dinfo)

Definition at line 280 of file intelfbhw.c.

void intelfbhw_cursor_hide ( struct intelfb_info dinfo)

Definition at line 1871 of file intelfbhw.c.

void intelfbhw_cursor_init ( struct intelfb_info dinfo)

Definition at line 1840 of file intelfbhw.c.

void intelfbhw_cursor_load ( struct intelfb_info dinfo,
int  width,
int  height,
u8 data 
)

Definition at line 1959 of file intelfbhw.c.

void intelfbhw_cursor_reset ( struct intelfb_info dinfo)

Definition at line 1988 of file intelfbhw.c.

void intelfbhw_cursor_setcolor ( struct intelfb_info dinfo,
u32  bg,
u32  fg 
)

Definition at line 1947 of file intelfbhw.c.

void intelfbhw_cursor_setpos ( struct intelfb_info dinfo,
int  x,
int  y 
)

Definition at line 1925 of file intelfbhw.c.

void intelfbhw_cursor_show ( struct intelfb_info dinfo)

Definition at line 1896 of file intelfbhw.c.

void intelfbhw_disable_irq ( struct intelfb_info dinfo)

Definition at line 2073 of file intelfbhw.c.

void intelfbhw_do_bitblt ( struct intelfb_info dinfo,
u32  curx,
u32  cury,
u32  dstx,
u32  dsty,
u32  w,
u32  h,
u32  pitch,
u32  bpp 
)

Definition at line 1706 of file intelfbhw.c.

void intelfbhw_do_blank ( int  blank,
struct fb_info info 
)

Definition at line 415 of file intelfbhw.c.

int intelfbhw_do_drawglyph ( struct intelfb_info dinfo,
u32  fg,
u32  bg,
u32  w,
u32  h,
const u8 cdat,
u32  x,
u32  y,
u32  pitch,
u32  bpp 
)

Definition at line 1751 of file intelfbhw.c.

void intelfbhw_do_fillrect ( struct intelfb_info dinfo,
u32  x,
u32  y,
u32  w,
u32  h,
u32  color,
u32  pitch,
u32  bpp,
u32  rop 
)

Definition at line 1661 of file intelfbhw.c.

void intelfbhw_do_sync ( struct intelfb_info dinfo)

Definition at line 1558 of file intelfbhw.c.

const char* intelfbhw_dvo_to_string ( int  dvo)

Definition at line 296 of file intelfbhw.c.

int intelfbhw_enable_irq ( struct intelfb_info dinfo)

Definition at line 2044 of file intelfbhw.c.

int intelfbhw_get_chipset ( struct pci_dev pdev,
struct intelfb_info dinfo 
)

Definition at line 67 of file intelfbhw.c.

int intelfbhw_get_memory ( struct pci_dev pdev,
int aperture_size,
int stolen_size 
)

Definition at line 173 of file intelfbhw.c.

int intelfbhw_mode_to_hw ( struct intelfb_info dinfo,
struct intelfb_hwstate hw,
struct fb_var_screeninfo var 
)

Definition at line 1043 of file intelfbhw.c.

int intelfbhw_pan_display ( struct fb_var_screeninfo var,
struct fb_info info 
)

Definition at line 381 of file intelfbhw.c.

void intelfbhw_print_hw_state ( struct intelfb_info dinfo,
struct intelfb_hwstate hw 
)

Definition at line 710 of file intelfbhw.c.

int intelfbhw_program_mode ( struct intelfb_info dinfo,
const struct intelfb_hwstate hw,
int  blank 
)

Definition at line 1281 of file intelfbhw.c.

int intelfbhw_read_hw_state ( struct intelfb_info dinfo,
struct intelfb_hwstate hw,
int  flag 
)

Definition at line 516 of file intelfbhw.c.

void intelfbhw_setcolreg ( struct intelfb_info dinfo,
unsigned  regno,
unsigned  red,
unsigned  green,
unsigned  blue,
unsigned  transp 
)

Definition at line 497 of file intelfbhw.c.

int intelfbhw_validate_mode ( struct intelfb_info dinfo,
struct fb_var_screeninfo var 
)

Definition at line 311 of file intelfbhw.c.

int intelfbhw_wait_for_vsync ( struct intelfb_info dinfo,
u32  pipe 
)

Definition at line 2092 of file intelfbhw.c.