Linux Kernel
3.7.1
|
#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) |
#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.
#define VGA_RSRC_LEGACY_MASK (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM) |
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.