#ifndef LINUX_VGA_H
#define LINUX_VGA_H
#include <video/vga.h>
struct pci_dev;
#define VGA_RSRC_NONE …
#define VGA_RSRC_LEGACY_IO …
#define VGA_RSRC_LEGACY_MEM …
#define VGA_RSRC_LEGACY_MASK …
#define VGA_RSRC_NORMAL_IO …
#define VGA_RSRC_NORMAL_MEM …
#ifdef CONFIG_VGA_ARB
void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes);
int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible);
void vga_put(struct pci_dev *pdev, unsigned int rsrc);
struct pci_dev *vga_default_device(void);
void vga_set_default_device(struct pci_dev *pdev);
int vga_remove_vgacon(struct pci_dev *pdev);
int vga_client_register(struct pci_dev *pdev,
unsigned int (*set_decode)(struct pci_dev *pdev, bool state));
#else
static inline void vga_set_legacy_decoding(struct pci_dev *pdev,
unsigned int decodes)
{
};
static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc,
int interruptible)
{
return 0;
}
static inline void vga_put(struct pci_dev *pdev, unsigned int rsrc)
{
}
static inline struct pci_dev *vga_default_device(void)
{
return NULL;
}
static inline void vga_set_default_device(struct pci_dev *pdev)
{
}
static inline int vga_remove_vgacon(struct pci_dev *pdev)
{
return 0;
}
static inline int vga_client_register(struct pci_dev *pdev,
unsigned int (*set_decode)(struct pci_dev *pdev, bool state))
{
return 0;
}
#endif
static inline int vga_get_interruptible(struct pci_dev *pdev,
unsigned int rsrc)
{ … }
static inline int vga_get_uninterruptible(struct pci_dev *pdev,
unsigned int rsrc)
{ … }
static inline void vga_client_unregister(struct pci_dev *pdev)
{ … }
#endif