coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <cbfs.h>
#include <types.h>
#include <arch/io.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <device/device.h>
#include <fmap.h>
#include <variant/onboard.h>
Go to the source code of this file.
Functions | |
static unsigned int | search (char *p, u8 *a, unsigned int lengthp, unsigned int lengtha) |
static unsigned char | get_hex_digit (u8 *offset) |
static int | get_mac_address (u32 *high_dword, u32 *low_dword, u8 *search_address, u32 search_length) |
static void | program_mac_address (u16 io_base) |
void | lan_init (void) |
Definition at line 27 of file lan.c.
References BIOS_DEBUG, offset, and printk.
Referenced by get_mac_address().
|
static |
Definition at line 46 of file lan.c.
References BIOS_DEBUG, get_hex_digit(), offset, printk, and search().
Referenced by program_mac_address().
Definition at line 135 of file lan.c.
References dev_find_device(), NULL, outb(), pci_read_config16(), pci_write_config8(), program_mac_address(), SUMO_NIC_DEVICE_ID, SUMO_NIC_LED_MODE, and SUMO_NIC_VENDOR_ID.
Definition at line 93 of file lan.c.
References BIOS_DEBUG, BIOS_ERR, cbfs_map(), CONFIG, fmap_locate_area_as_rdev(), get_mac_address(), NULL, outb(), outl(), printk, rdev, rdev_mmap_full(), and region_device_sz().
Referenced by lan_init().