Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nouveau_bios.c File Reference
#include <subdev/bios.h>
#include <drm/drmP.h>
#include "nouveau_drm.h"
#include "nouveau_reg.h"
#include "nouveau_hw.h"
#include "nouveau_encoder.h"
#include <linux/io-mapping.h>
#include <linux/firmware.h>

Go to the source code of this file.

Data Structures

struct  init_exec
 
struct  lvdstableheader
 
struct  bit_table
 

Macros

#define NV_CIO_CRE_44_HEADA   0x0
 
#define NV_CIO_CRE_44_HEADB   0x3
 
#define FEATURE_MOBILE   0x10 /* also FEATURE_QUADRO for BMP */
 
#define EDID1_LEN   128
 
#define BIOSLOG(sip, fmt, arg...)   NV_DEBUG(sip->dev, fmt, ##arg)
 
#define LOG_OLD_VALUE(x)
 
#define BIT_TABLE(id, funcid)   ((struct bit_table){ id, parse_bit_##funcid##_tbl_entry })
 

Functions

int call_lvds_script (struct drm_device *dev, struct dcb_output *dcbent, int head, enum LVDS_script script, int pxclk)
 
bool nouveau_bios_fp_mode (struct drm_device *dev, struct drm_display_mode *mode)
 
int nouveau_bios_parse_lvds_table (struct drm_device *dev, int pxclk, bool *dl, bool *if_is_24bit)
 
bool bios_encoder_match (struct dcb_output *dcb, u32 hash)
 
int nouveau_bios_run_display_table (struct drm_device *dev, u16 type, int pclk, struct dcb_output *dcbent, int crtc)
 
int run_tmds_table (struct drm_device *dev, struct dcb_output *dcbent, int head, int pxclk)
 
int bit_table (struct drm_device *dev, u8 id, struct bit_entry *bit)
 
voidolddcb_table (struct drm_device *dev)
 
voidolddcb_outp (struct drm_device *dev, u8 idx)
 
int olddcb_outp_foreach (struct drm_device *dev, void *data, int(*exec)(struct drm_device *, void *, int idx, u8 *outp))
 
u8olddcb_conntab (struct drm_device *dev)
 
u8olddcb_conn (struct drm_device *dev, u8 idx)
 
uint8_tnouveau_bios_embedded_edid (struct drm_device *dev)
 
int nouveau_run_vbios_init (struct drm_device *dev)
 
int nouveau_bios_init (struct drm_device *dev)
 
void nouveau_bios_takedown (struct drm_device *dev)
 

Macro Definition Documentation

#define BIOSLOG (   sip,
  fmt,
  arg... 
)    NV_DEBUG(sip->dev, fmt, ##arg)

Definition at line 44 of file nouveau_bios.c.

#define BIT_TABLE (   id,
  funcid 
)    ((struct bit_table){ id, parse_bit_##funcid##_tbl_entry })

Definition at line 1245 of file nouveau_bios.c.

#define EDID1_LEN   128

Definition at line 42 of file nouveau_bios.c.

#define FEATURE_MOBILE   0x10 /* also FEATURE_QUADRO for BMP */

Definition at line 40 of file nouveau_bios.c.

#define LOG_OLD_VALUE (   x)

Definition at line 45 of file nouveau_bios.c.

#define NV_CIO_CRE_44_HEADA   0x0

Definition at line 38 of file nouveau_bios.c.

#define NV_CIO_CRE_44_HEADB   0x3

Definition at line 39 of file nouveau_bios.c.

Function Documentation

bool bios_encoder_match ( struct dcb_output dcb,
u32  hash 
)

Definition at line 633 of file nouveau_bios.c.

int bit_table ( struct drm_device dev,
u8  id,
struct bit_entry bit 
)

Definition at line 1248 of file nouveau_bios.c.

int call_lvds_script ( struct drm_device dev,
struct dcb_output dcbent,
int  head,
enum LVDS_script  script,
int  pxclk 
)

Definition at line 211 of file nouveau_bios.c.

uint8_t* nouveau_bios_embedded_edid ( struct drm_device dev)

Definition at line 2247 of file nouveau_bios.c.

bool nouveau_bios_fp_mode ( struct drm_device dev,
struct drm_display_mode mode 
)

Definition at line 450 of file nouveau_bios.c.

int nouveau_bios_init ( struct drm_device dev)

Definition at line 2373 of file nouveau_bios.c.

int nouveau_bios_parse_lvds_table ( struct drm_device dev,
int  pxclk,
bool dl,
bool if_is_24bit 
)

Definition at line 496 of file nouveau_bios.c.

int nouveau_bios_run_display_table ( struct drm_device dev,
u16  type,
int  pclk,
struct dcb_output dcbent,
int  crtc 
)

Definition at line 656 of file nouveau_bios.c.

void nouveau_bios_takedown ( struct drm_device dev)

Definition at line 2422 of file nouveau_bios.c.

int nouveau_run_vbios_init ( struct drm_device dev)

Definition at line 2323 of file nouveau_bios.c.

u8* olddcb_conn ( struct drm_device dev,
u8  idx 
)

Definition at line 1645 of file nouveau_bios.c.

u8* olddcb_conntab ( struct drm_device dev)

Definition at line 1633 of file nouveau_bios.c.

void* olddcb_outp ( struct drm_device dev,
u8  idx 
)

Definition at line 1584 of file nouveau_bios.c.

int olddcb_outp_foreach ( struct drm_device dev,
void data,
int(*)(struct drm_device *, void *, int idx, u8 *outp exec 
)

Definition at line 1608 of file nouveau_bios.c.

void* olddcb_table ( struct drm_device dev)

Definition at line 1530 of file nouveau_bios.c.

int run_tmds_table ( struct drm_device dev,
struct dcb_output dcbent,
int  head,
int  pxclk 
)

Definition at line 827 of file nouveau_bios.c.