![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/device.h>
#include <arch/io.h>
#include <delay.h>
#include "dock.h"
#include <superio/nsc/pc87384/pc87384.h>
#include "ec/acpi/ec.h"
#include "ec/lenovo/pmh7/pmh7.h"
#include <southbridge/intel/i82801gx/i82801gx.h>
Go to the source code of this file.
Macros | |
#define | DLPC_CONTROL 0x164c |
Functions | |
static void | dlpc_write_register (int reg, int value) |
static u8 | dlpc_read_register (int reg) |
static void | dock_write_register (int reg, int value) |
static u8 | dock_read_register (int reg) |
static void | dlpc_gpio_set_mode (int port, int mode) |
static void | dock_gpio_set_mode (int port, int mode, int irq) |
static void | dlpc_gpio_init (void) |
int | dlpc_init (void) |
static int | dock_superio_init (void) |
int | dock_connect (void) |
void | dock_disconnect (void) |
int | dock_present (void) |
int | legacy_io_present (void) |
void | legacy_io_init (void) |
Definition at line 51 of file dock.c.
References dlpc_gpio_set_mode(), and dlpc_write_register().
Referenced by dlpc_init().
|
static |
Definition at line 38 of file dock.c.
References dlpc_write_register().
Referenced by dlpc_gpio_init().
int dlpc_init | ( | void | ) |
Definition at line 72 of file dock.c.
References DLPC_CONTROL, dlpc_gpio_init(), dlpc_read_register(), dlpc_write_register(), outb(), and udelay().
Referenced by bootblock_mainboard_early_init().
|
static |
Definition at line 20 of file dock.c.
Referenced by dlpc_init().
|
static |
Definition at line 14 of file dock.c.
Referenced by dlpc_gpio_init(), dlpc_gpio_set_mode(), dlpc_init(), and dock_connect().
int dock_connect | ( | void | ) |
Definition at line 165 of file dock.c.
References DLPC_CONTROL, dlpc_write_register(), dock_superio_init(), inb(), outb(), and udelay().
Definition at line 193 of file dock.c.
References DLPC_CONTROL, and outb().
|
static |
Definition at line 44 of file dock.c.
References dock_write_register().
Referenced by dock_superio_init().
int dock_present | ( | void | ) |
Definition at line 201 of file dock.c.
References pmh7_register_read().
|
static |
Definition at line 32 of file dock.c.
Referenced by dock_superio_init().
|
static |
Definition at line 99 of file dock.c.
References dock_gpio_set_mode(), dock_read_register(), dock_write_register(), outb(), PC87384_GPIO, PC87384_GPIO_PIN_DEBOUNCE, PC87384_GPIO_PIN_OE, PC87384_GPIO_PIN_PULLUP, PC87384_GPIO_PIN_TYPE_PUSH_PULL, PC87384_SP1, and udelay().
Referenced by dock_connect(), and legacy_io_init().
|
static |
Definition at line 26 of file dock.c.
Referenced by dock_gpio_set_mode(), and dock_superio_init().
Definition at line 211 of file dock.c.
References dock_superio_init(), pmh7_ultrabay_power_enable(), and udelay().
Referenced by bootblock_mainboard_early_init().
int legacy_io_present | ( | void | ) |
Definition at line 206 of file dock.c.
References DEFAULT_GPIOBASE, and inb().
Referenced by bootblock_mainboard_early_init(), and mainboard_io_trap_handler().