![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <delay.h>
#include "dock.h"
#include <southbridge/intel/i82801gx/i82801gx.h>
#include <superio/nsc/pc87392/pc87392.h>
Go to the source code of this file.
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) |
int | dock_connect (void) |
void | dock_disconnect (void) |
int | dock_present (void) |
int | dock_ultrabay_device_present (void) |
Definition at line 48 of file dock.c.
References dlpc_gpio_set_mode(), and dlpc_write_register().
Referenced by dlpc_init().
|
static |
Definition at line 35 of file dock.c.
References dlpc_write_register().
Referenced by dlpc_gpio_init().
int dlpc_init | ( | void | ) |
Definition at line 69 of file dock.c.
References dlpc_gpio_init(), dlpc_read_register(), dlpc_write_register(), and udelay().
|
static |
Definition at line 17 of file dock.c.
Referenced by dlpc_init().
|
static |
Definition at line 11 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 94 of file dock.c.
References dlpc_write_register(), dock_gpio_set_mode(), dock_read_register(), dock_write_register(), inb(), outb(), PC87392_GPIO_PIN_DEBOUNCE, PC87392_GPIO_PIN_OE, PC87392_GPIO_PIN_PULLUP, PC87392_GPIO_PIN_TRIGGERS_SMI, PC87392_GPIO_PIN_TYPE_PUSH_PULL, and udelay().
|
static |
Definition at line 41 of file dock.c.
References dock_write_register().
Referenced by dock_connect().
int dock_present | ( | void | ) |
Definition at line 241 of file dock.c.
References DEFAULT_GPIOBASE, get_gpios(), and inw().
Referenced by bootblock_mainboard_early_init().
|
static |
Definition at line 29 of file dock.c.
Referenced by dock_connect().
int dock_ultrabay_device_present | ( | void | ) |
Definition at line 246 of file dock.c.
References inb().
Referenced by mainboard_init().
|
static |
Definition at line 23 of file dock.c.
Referenced by dock_connect(), and dock_gpio_set_mode().