Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
efifb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/fb.h>
#include <linux/platform_device.h>
#include <linux/screen_info.h>
#include <linux/dmi.h>
#include <linux/pci.h>
#include <video/vga.h>

Go to the source code of this file.

Data Structures

struct  efifb_dmi_info
 

Macros

#define OVERRIDE_NONE   0x0
 
#define OVERRIDE_BASE   0x1
 
#define OVERRIDE_STRIDE   0x2
 
#define OVERRIDE_HEIGHT   0x4
 
#define OVERRIDE_WIDTH   0x8
 
#define EFIFB_DMI_SYSTEM_ID(vendor, name, enumid)
 
#define choose_value(dmivalue, fwvalue, field, flags)
 

Enumerations

enum  {
  M_I17, M_I20, M_I20_SR, M_I24,
  M_I24_8_1, M_I24_10_1, M_I27_11_1, M_MINI,
  M_MINI_3_1, M_MINI_4_1, M_MB, M_MB_2,
  M_MB_3, M_MB_5_1, M_MB_6_1, M_MB_7_1,
  M_MB_SR, M_MBA, M_MBA_3, M_MBP,
  M_MBP_2, M_MBP_2_2, M_MBP_SR, M_MBP_4,
  M_MBP_5_1, M_MBP_5_2, M_MBP_5_3, M_MBP_6_1,
  M_MBP_6_2, M_MBP_7_1, M_MBP_8_2, M_UNKNOWN
}
 

Functions

struct pci_devvga_default_device (void)
 
 EXPORT_SYMBOL_GPL (vga_default_device)
 
void vga_set_default_device (struct pci_dev *pdev)
 
 module_init (efifb_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define choose_value (   dmivalue,
  fwvalue,
  field,
  flags 
)
Value:
({ \
typeof(fwvalue) _ret_ = fwvalue; \
if ((flags) & (field)) \
_ret_ = dmivalue; \
else if ((fwvalue) == 0) \
_ret_ = dmivalue; \
_ret_; \
})

Definition at line 175 of file efifb.c.

#define EFIFB_DMI_SYSTEM_ID (   vendor,
  name,
  enumid 
)
Value:
{ set_system, name, { \
DMI_MATCH(DMI_BIOS_VENDOR, vendor), \
DMI_MATCH(DMI_PRODUCT_NAME, name) }, \
&dmi_list[enumid] }

Definition at line 124 of file efifb.c.

#define OVERRIDE_BASE   0x1

Definition at line 77 of file efifb.c.

#define OVERRIDE_HEIGHT   0x4

Definition at line 79 of file efifb.c.

#define OVERRIDE_NONE   0x0

Definition at line 76 of file efifb.c.

#define OVERRIDE_STRIDE   0x2

Definition at line 78 of file efifb.c.

#define OVERRIDE_WIDTH   0x8

Definition at line 80 of file efifb.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
M_I17 
M_I20 
M_I20_SR 
M_I24 
M_I24_8_1 
M_I24_10_1 
M_I27_11_1 
M_MINI 
M_MINI_3_1 
M_MINI_4_1 
M_MB 
M_MB_2 
M_MB_3 
M_MB_5_1 
M_MB_6_1 
M_MB_7_1 
M_MB_SR 
M_MBA 
M_MBA_3 
M_MBP 
M_MBP_2 
M_MBP_2_2 
M_MBP_SR 
M_MBP_4 
M_MBP_5_1 
M_MBP_5_2 
M_MBP_5_3 
M_MBP_6_1 
M_MBP_6_2 
M_MBP_7_1 
M_MBP_8_2 
M_UNKNOWN 

Definition at line 41 of file efifb.c.

Function Documentation

EXPORT_SYMBOL_GPL ( vga_default_device  )
module_init ( efifb_init  )
MODULE_LICENSE ( "GPL"  )
struct pci_dev* vga_default_device ( void  )
read

Definition at line 303 of file efifb.c.

void vga_set_default_device ( struct pci_dev pdev)

Definition at line 310 of file efifb.c.