Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
intel_bios.c File Reference
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/gma_drm.h>
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#include "intel_bios.h"

Go to the source code of this file.


#define SLAVE_ADDR1   0x70
#define SLAVE_ADDR2   0x72


int psb_intel_init_bios (struct drm_device *dev)
void psb_intel_destroy_bios (struct drm_device *dev)

Macro Definition Documentation

#define SLAVE_ADDR1   0x70

Definition at line 29 of file intel_bios.c.

#define SLAVE_ADDR2   0x72

Definition at line 30 of file intel_bios.c.

Function Documentation

void psb_intel_destroy_bios ( struct drm_device dev)

Destroy and free VBT data

Definition at line 591 of file intel_bios.c.

int psb_intel_init_bios ( struct drm_device dev)

psb_intel_init_bios - initialize VBIOS settings & find VBT : DRM device

Loads the Video BIOS and checks that the VBT exists. Sets scratch registers to appropriate values.

VBT existence is a sanity check that is relied on by other i830_bios.c code. Note that it would be better to use a BIOS call to get the VBT, as BIOSes may feed an updated VBT back through that, compared to what we'll fetch using this method of groping around in the BIOS data.

Returns 0 on success, nonzero on failure.

Definition at line 527 of file intel_bios.c.