Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vgaarb.h File Reference
#include <video/vga.h>

Go to the source code of this file.

Macros

#define VGA_RSRC_NONE   0x00
 
#define VGA_RSRC_LEGACY_IO   0x01
 
#define VGA_RSRC_LEGACY_MEM   0x02
 
#define VGA_RSRC_LEGACY_MASK   (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)
 
#define VGA_RSRC_NORMAL_IO   0x04
 
#define VGA_RSRC_NORMAL_MEM   0x08
 
#define VGA_DEFAULT_DEVICE   (NULL)
 
#define vga_put(pdev, rsrc)
 

Functions

void vga_set_legacy_decoding (struct pci_dev *pdev, unsigned int decodes)
 

Macro Definition Documentation

#define VGA_DEFAULT_DEVICE   (NULL)

Definition at line 49 of file vgaarb.h.

#define vga_put (   pdev,
  rsrc 
)

vga_put - release lock on legacy VGA resources

: pci device of VGA card or NULL for system default : but mask of resource to release

This function releases resources previously locked by vga_get() or vga_tryget(). The resources aren't disabled right away, so that a subsequence vga_get() on the same card will succeed immediately. Resources have a counter, so locks are only released if the counter reaches 0.

Definition at line 162 of file vgaarb.h.

#define VGA_RSRC_LEGACY_IO   0x01

Definition at line 38 of file vgaarb.h.

#define VGA_RSRC_LEGACY_MASK   (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)

Definition at line 40 of file vgaarb.h.

#define VGA_RSRC_LEGACY_MEM   0x02

Definition at line 39 of file vgaarb.h.

#define VGA_RSRC_NONE   0x00

Definition at line 37 of file vgaarb.h.

#define VGA_RSRC_NORMAL_IO   0x04

Definition at line 42 of file vgaarb.h.

#define VGA_RSRC_NORMAL_MEM   0x08

Definition at line 43 of file vgaarb.h.

Function Documentation

void vga_set_legacy_decoding ( struct pci_dev pdev,
unsigned int  decodes 
)

vga_set_legacy_decoding

: pci device of the VGA card : bit mask of what legacy regions the card decodes

Indicates to the arbiter if the card decodes legacy VGA IOs, legacy VGA Memory, both, or none. All cards default to both, the card driver (fbdev for example) should tell the arbiter if it has disabled legacy decoding, so the card can be left out of the arbitration process (and can be safe to take interrupts at any time.

Definition at line 714 of file vgaarb.c.