Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/backlight.h>
#include <linux/acpi.h>
#include <linux/pnp.h>
#include <linux/apple_bl.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/vga_switcheroo.h>
#include <acpi/video.h>
#include <asm/io.h>
Go to the source code of this file.
Data Structures | |
struct | apple_gmux_data |
Functions | |
module_init (apple_gmux_init) | |
module_exit (apple_gmux_exit) | |
MODULE_AUTHOR ("Seth Forshee <[email protected]>") | |
MODULE_DESCRIPTION ("Apple Gmux Driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_DEVICE_TABLE (pnp, gmux_device_ids) | |
#define GMUX_BRIGHTNESS_MASK 0x00ffffff |
Definition at line 77 of file apple-gmux.c.
#define GMUX_INTERRUPT_DISABLE 0x00 |
Definition at line 70 of file apple-gmux.c.
#define GMUX_INTERRUPT_ENABLE 0xff |
Definition at line 69 of file apple-gmux.c.
#define GMUX_INTERRUPT_STATUS_ACTIVE 0 |
Definition at line 72 of file apple-gmux.c.
#define GMUX_INTERRUPT_STATUS_DISPLAY (1 << 0) |
Definition at line 73 of file apple-gmux.c.
#define GMUX_INTERRUPT_STATUS_HOTPLUG (1 << 3) |
Definition at line 75 of file apple-gmux.c.
#define GMUX_INTERRUPT_STATUS_POWER (1 << 2) |
Definition at line 74 of file apple-gmux.c.
#define GMUX_MAX_BRIGHTNESS GMUX_BRIGHTNESS_MASK |
Definition at line 78 of file apple-gmux.c.
#define GMUX_MIN_IO_LEN (GMUX_PORT_BRIGHTNESS + 4) |
Definition at line 67 of file apple-gmux.c.
#define GMUX_PORT_BRIGHTNESS 0x74 |
Definition at line 62 of file apple-gmux.c.
#define GMUX_PORT_DISCRETE_POWER 0x50 |
Definition at line 60 of file apple-gmux.c.
#define GMUX_PORT_INTERRUPT_ENABLE 0x14 |
Definition at line 55 of file apple-gmux.c.
#define GMUX_PORT_INTERRUPT_STATUS 0x16 |
Definition at line 56 of file apple-gmux.c.
#define GMUX_PORT_MAX_BRIGHTNESS 0x70 |
Definition at line 61 of file apple-gmux.c.
#define GMUX_PORT_READ 0xd0 |
Definition at line 64 of file apple-gmux.c.
#define GMUX_PORT_SWITCH_DDC 0x28 |
Definition at line 57 of file apple-gmux.c.
#define GMUX_PORT_SWITCH_DISPLAY 0x10 |
Definition at line 53 of file apple-gmux.c.
#define GMUX_PORT_SWITCH_EXTERNAL 0x40 |
Definition at line 58 of file apple-gmux.c.
#define GMUX_PORT_SWITCH_GET_DISPLAY 0x11 |
Definition at line 54 of file apple-gmux.c.
#define GMUX_PORT_SWITCH_GET_EXTERNAL 0x41 |
Definition at line 59 of file apple-gmux.c.
#define GMUX_PORT_VALUE 0xc2 |
Definition at line 63 of file apple-gmux.c.
#define GMUX_PORT_VERSION_MAJOR 0x04 |
Definition at line 50 of file apple-gmux.c.
#define GMUX_PORT_VERSION_MINOR 0x05 |
Definition at line 51 of file apple-gmux.c.
#define GMUX_PORT_VERSION_RELEASE 0x06 |
Definition at line 52 of file apple-gmux.c.
#define GMUX_PORT_WRITE 0xd4 |
Definition at line 65 of file apple-gmux.c.
Definition at line 12 of file apple-gmux.c.
MODULE_AUTHOR | ( | "Seth Forshee <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Apple Gmux Driver" | ) |
MODULE_DEVICE_TABLE | ( | pnp | , |
gmux_device_ids | |||
) |
module_exit | ( | apple_gmux_exit | ) |
module_init | ( | apple_gmux_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |