coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dock.c File Reference
#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>
Include dependency graph for dock.c:

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)
 

Function Documentation

◆ dlpc_gpio_init()

static void dlpc_gpio_init ( void  )
static

Definition at line 48 of file dock.c.

References dlpc_gpio_set_mode(), and dlpc_write_register().

Referenced by dlpc_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dlpc_gpio_set_mode()

static void dlpc_gpio_set_mode ( int  port,
int  mode 
)
static

Definition at line 35 of file dock.c.

References dlpc_write_register().

Referenced by dlpc_gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dlpc_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().

Here is the call graph for this function:

◆ dlpc_read_register()

static u8 dlpc_read_register ( int  reg)
static

Definition at line 17 of file dock.c.

References inb(), and outb().

Referenced by dlpc_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dlpc_write_register()

static void dlpc_write_register ( int  reg,
int  value 
)
static

Definition at line 11 of file dock.c.

References outb(), and value.

Referenced by dlpc_gpio_init(), dlpc_gpio_set_mode(), dlpc_init(), and dock_connect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dock_connect()

◆ dock_disconnect()

void dock_disconnect ( void  )

Definition at line 223 of file dock.c.

References BIOS_DEBUG, outb(), printk, and udelay().

Here is the call graph for this function:

◆ dock_gpio_set_mode()

static void dock_gpio_set_mode ( int  port,
int  mode,
int  irq 
)
static

Definition at line 41 of file dock.c.

References dock_write_register().

Referenced by dock_connect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dock_present()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dock_read_register()

static u8 dock_read_register ( int  reg)
static

Definition at line 29 of file dock.c.

References inb(), and outb().

Referenced by dock_connect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dock_ultrabay_device_present()

int dock_ultrabay_device_present ( void  )

Definition at line 246 of file dock.c.

References inb().

Referenced by mainboard_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dock_write_register()

static void dock_write_register ( int  reg,
int  value 
)
static

Definition at line 23 of file dock.c.

References outb(), and value.

Referenced by dock_connect(), and dock_gpio_set_mode().

Here is the call graph for this function:
Here is the caller graph for this function: