Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vga_switcheroo.c File Reference
#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <linux/debugfs.h>
#include <linux/fb.h>
#include <linux/pci.h>
#include <linux/vga_switcheroo.h>
#include <linux/vgaarb.h>

Go to the source code of this file.

Data Structures

struct  vga_switcheroo_client
struct  vgasr_priv


#define ID_BIT_AUDIO   0x100
#define client_is_audio(c)   ((c)->id & ID_BIT_AUDIO)
#define client_is_vga(c)   ((c)->id == -1 || !client_is_audio(c))
#define client_id(c)   ((c)->id & ~ID_BIT_AUDIO)


int vga_switcheroo_register_handler (struct vga_switcheroo_handler *handler)
 EXPORT_SYMBOL (vga_switcheroo_register_handler)
void vga_switcheroo_unregister_handler (void)
 EXPORT_SYMBOL (vga_switcheroo_unregister_handler)
int vga_switcheroo_register_client (struct pci_dev *pdev, const struct vga_switcheroo_client_ops *ops)
 EXPORT_SYMBOL (vga_switcheroo_register_client)
int vga_switcheroo_register_audio_client (struct pci_dev *pdev, const struct vga_switcheroo_client_ops *ops, int id, bool active)
 EXPORT_SYMBOL (vga_switcheroo_register_audio_client)
int vga_switcheroo_get_client_state (struct pci_dev *pdev)
 EXPORT_SYMBOL (vga_switcheroo_get_client_state)
void vga_switcheroo_unregister_client (struct pci_dev *pdev)
 EXPORT_SYMBOL (vga_switcheroo_unregister_client)
void vga_switcheroo_client_fb_set (struct pci_dev *pdev, struct fb_info *info)
 EXPORT_SYMBOL (vga_switcheroo_client_fb_set)
int vga_switcheroo_process_delayed_switch (void)
 EXPORT_SYMBOL (vga_switcheroo_process_delayed_switch)

Macro Definition Documentation

#define client_id (   c)    ((c)->id & ~ID_BIT_AUDIO)

Definition at line 63 of file vga_switcheroo.c.

#define client_is_audio (   c)    ((c)->id & ID_BIT_AUDIO)

Definition at line 61 of file vga_switcheroo.c.

#define client_is_vga (   c)    ((c)->id == -1 || !client_is_audio(c))

Definition at line 62 of file vga_switcheroo.c.

#define ID_BIT_AUDIO   0x100

Definition at line 60 of file vga_switcheroo.c.

Function Documentation

EXPORT_SYMBOL ( vga_switcheroo_register_handler  )
EXPORT_SYMBOL ( vga_switcheroo_unregister_handler  )
EXPORT_SYMBOL ( vga_switcheroo_register_client  )
EXPORT_SYMBOL ( vga_switcheroo_get_client_state  )
EXPORT_SYMBOL ( vga_switcheroo_unregister_client  )
EXPORT_SYMBOL ( vga_switcheroo_client_fb_set  )
void vga_switcheroo_client_fb_set ( struct pci_dev pdev,
struct fb_info info 

Definition at line 242 of file vga_switcheroo.c.

int vga_switcheroo_get_client_state ( struct pci_dev pdev)

Definition at line 208 of file vga_switcheroo.c.

int vga_switcheroo_process_delayed_switch ( void  )

Definition at line 540 of file vga_switcheroo.c.

int vga_switcheroo_register_audio_client ( struct pci_dev pdev,
const struct vga_switcheroo_client_ops ops,
int  id,
bool  active 

Definition at line 170 of file vga_switcheroo.c.

int vga_switcheroo_register_client ( struct pci_dev pdev,
const struct vga_switcheroo_client_ops ops 

Definition at line 162 of file vga_switcheroo.c.

int vga_switcheroo_register_handler ( struct vga_switcheroo_handler handler)

Definition at line 102 of file vga_switcheroo.c.

void vga_switcheroo_unregister_client ( struct pci_dev pdev)

Definition at line 221 of file vga_switcheroo.c.

void vga_switcheroo_unregister_handler ( void  )

Definition at line 120 of file vga_switcheroo.c.