coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
i915.h File Reference
Include dependency graph for i915.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTEL_OUTPUT_UNUSED   0
 
#define INTEL_OUTPUT_ANALOG   1
 
#define INTEL_OUTPUT_DVO   2
 
#define INTEL_OUTPUT_SDVO   3
 
#define INTEL_OUTPUT_LVDS   4
 
#define INTEL_OUTPUT_TVOUT   5
 
#define INTEL_OUTPUT_HDMI   6
 
#define INTEL_OUTPUT_DISPLAYPORT   7
 
#define INTEL_OUTPUT_EDP   8
 
#define PCH_PP_UNLOCK   0xabcd0000
 
#define WMx_LP_SR_EN   (1UL<<31)
 
#define PRB0_TAIL   0x02030
 
#define PRB0_HEAD   0x02034
 
#define PRB0_START   0x02038
 
#define PRB0_CTL   0x0203c
 

Enumerations

enum  port {
  PORT_A = 0 , PORT_B , PORT_C , PORT_D ,
  PORT_E , I915_NUM_PORTS
}
 
enum  pipe { PIPE_A = 0 , PIPE_B , PIPE_C , I915_NUM_PIPES }
 
enum  transcoder { TRANSCODER_A = 0 , TRANSCODER_B , TRANSCODER_C , TRANSCODER_EDP = 0xF }
 
enum  plane { PLANE_A = 0 , PLANE_B , PLANE_C }
 
enum  { vio = 2 , vspin = 4 }
 

Functions

unsigned long io_i915_read32 (unsigned long addr)
 
void io_i915_write32 (unsigned long val, unsigned long addr)
 
void intel_prepare_ddi (void)
 
int gtt_poll (u32 reg, u32 mask, u32 value)
 
void gtt_write (u32 reg, u32 data)
 
u32 gtt_read (u32 reg)
 
void generate_fake_intel_oprom (const struct i915_gpu_controller_info *conf, struct device *dev, const char *idstr)
 

Macro Definition Documentation

◆ INTEL_OUTPUT_ANALOG

#define INTEL_OUTPUT_ANALOG   1

Definition at line 12 of file i915.h.

◆ INTEL_OUTPUT_DISPLAYPORT

#define INTEL_OUTPUT_DISPLAYPORT   7

Definition at line 18 of file i915.h.

◆ INTEL_OUTPUT_DVO

#define INTEL_OUTPUT_DVO   2

Definition at line 13 of file i915.h.

◆ INTEL_OUTPUT_EDP

#define INTEL_OUTPUT_EDP   8

Definition at line 19 of file i915.h.

◆ INTEL_OUTPUT_HDMI

#define INTEL_OUTPUT_HDMI   6

Definition at line 17 of file i915.h.

◆ INTEL_OUTPUT_LVDS

#define INTEL_OUTPUT_LVDS   4

Definition at line 15 of file i915.h.

◆ INTEL_OUTPUT_SDVO

#define INTEL_OUTPUT_SDVO   3

Definition at line 14 of file i915.h.

◆ INTEL_OUTPUT_TVOUT

#define INTEL_OUTPUT_TVOUT   5

Definition at line 16 of file i915.h.

◆ INTEL_OUTPUT_UNUSED

#define INTEL_OUTPUT_UNUSED   0

Definition at line 11 of file i915.h.

◆ PCH_PP_UNLOCK

#define PCH_PP_UNLOCK   0xabcd0000

Definition at line 22 of file i915.h.

◆ PRB0_CTL

#define PRB0_CTL   0x0203c

Definition at line 27 of file i915.h.

◆ PRB0_HEAD

#define PRB0_HEAD   0x02034

Definition at line 25 of file i915.h.

◆ PRB0_START

#define PRB0_START   0x02038

Definition at line 26 of file i915.h.

◆ PRB0_TAIL

#define PRB0_TAIL   0x02030

Definition at line 24 of file i915.h.

◆ WMx_LP_SR_EN

#define WMx_LP_SR_EN   (1UL<<31)

Definition at line 23 of file i915.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
vio 
vspin 

Definition at line 62 of file i915.h.

◆ pipe

enum pipe
Enumerator
PIPE_A 
PIPE_B 
PIPE_C 
I915_NUM_PIPES 

Definition at line 38 of file i915.h.

◆ plane

enum plane
Enumerator
PLANE_A 
PLANE_B 
PLANE_C 

Definition at line 52 of file i915.h.

◆ port

enum port
Enumerator
PORT_A 
PORT_B 
PORT_C 
PORT_D 
PORT_E 
I915_NUM_PORTS 

Definition at line 29 of file i915.h.

◆ transcoder

enum transcoder
Enumerator
TRANSCODER_A 
TRANSCODER_B 
TRANSCODER_C 
TRANSCODER_EDP 

Definition at line 45 of file i915.h.

Function Documentation

◆ generate_fake_intel_oprom()

void generate_fake_intel_oprom ( const struct i915_gpu_controller_info conf,
struct device dev,
const char *  idstr 
)

Definition at line 62 of file vbt.c.

References device::class, device::device, DIV_ROUND_UP, generate_vbt(), memset(), PCI_CLASS_REVISION, pci_read_config8(), PCI_ROM_HDR, PCI_VGA_RAM_IMAGE_START, and device::vendor.

Referenced by gma_func0_init(), and gma_ngi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gtt_poll()

int gtt_poll ( u32  reg,
u32  mask,
u32  value 
)

Definition at line 154 of file gma.c.

References BIOS_ERR, GT_RETRY, gtt_read(), GTT_RETRY, mask, printk, udelay(), and value.

Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), igd_get_cdclk_broadwell(), and power_well_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gtt_read()

u32 gtt_read ( u32  reg)

Definition at line 22 of file gma.c.

References gtt_res, read32(), res2mmio(), and val.

Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), gma_setup_panel(), gtt_poll(), gtt_rmw(), igd_get_cdclk_broadwell(), and igd_get_cdclk_haswell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gtt_write()

void gtt_write ( u32  reg,
u32  data 
)

Definition at line 27 of file gma.c.

References gtt_res, res2mmio(), and write32().

Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), gma_setup_panel(), gtt_rmw(), gtt_write_powermeter(), gtt_write_regs(), igd_cdclk_init(), igd_get_cdclk_broadwell(), igd_init(), init_display_planes(), intel_prepare_ddi_buffers(), and power_well_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intel_prepare_ddi()

void intel_prepare_ddi ( void  )

Definition at line 61 of file intel_ddi.c.

References intel_prepare_ddi_buffers(), PORT_A, and PORT_E.

Referenced by gma_setup_panel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ io_i915_read32()

unsigned long io_i915_read32 ( unsigned long  addr)

◆ io_i915_write32()

void io_i915_write32 ( unsigned long  val,
unsigned long  addr 
)