diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/vga_switcheroo.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/vga_switcheroo.h')
-rw-r--r-- | ANDROID_3.4.5/include/linux/vga_switcheroo.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/ANDROID_3.4.5/include/linux/vga_switcheroo.h b/ANDROID_3.4.5/include/linux/vga_switcheroo.h deleted file mode 100644 index 4b9a7f59..00000000 --- a/ANDROID_3.4.5/include/linux/vga_switcheroo.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2010 Red Hat Inc. - * Author : Dave Airlie <airlied@redhat.com> - * - * Licensed under GPLv2 - * - * vga_switcheroo.h - Support for laptop with dual GPU using one set of outputs - */ - -#include <linux/fb.h> - -enum vga_switcheroo_state { - VGA_SWITCHEROO_OFF, - VGA_SWITCHEROO_ON, -}; - -enum vga_switcheroo_client_id { - VGA_SWITCHEROO_IGD, - VGA_SWITCHEROO_DIS, - VGA_SWITCHEROO_MAX_CLIENTS, -}; - -struct vga_switcheroo_handler { - int (*switchto)(enum vga_switcheroo_client_id id); - int (*power_state)(enum vga_switcheroo_client_id id, - enum vga_switcheroo_state state); - int (*init)(void); - int (*get_client_id)(struct pci_dev *pdev); -}; - - -#if defined(CONFIG_VGA_SWITCHEROO) -void vga_switcheroo_unregister_client(struct pci_dev *dev); -int vga_switcheroo_register_client(struct pci_dev *dev, - void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state), - void (*reprobe)(struct pci_dev *dev), - bool (*can_switch)(struct pci_dev *dev)); - -void vga_switcheroo_client_fb_set(struct pci_dev *dev, - struct fb_info *info); - -int vga_switcheroo_register_handler(struct vga_switcheroo_handler *handler); -void vga_switcheroo_unregister_handler(void); - -int vga_switcheroo_process_delayed_switch(void); - -#else - -static inline void vga_switcheroo_unregister_client(struct pci_dev *dev) {} -static inline int vga_switcheroo_register_client(struct pci_dev *dev, - void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state), - void (*reprobe)(struct pci_dev *dev), - bool (*can_switch)(struct pci_dev *dev)) { return 0; } -static inline void vga_switcheroo_client_fb_set(struct pci_dev *dev, struct fb_info *info) {} -static inline int vga_switcheroo_register_handler(struct vga_switcheroo_handler *handler) { return 0; } -static inline void vga_switcheroo_unregister_handler(void) {} -static inline int vga_switcheroo_process_delayed_switch(void) { return 0; } - -#endif |