coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <device/device.h>
#include <cbfs.h>
#include <console/console.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <types.h>
Go to the source code of this file.
Macros | |
#define | REG_SPI_FLASH_CTRL 0x200 |
#define | SPI_FLASH_CTRL_EN_VPD 0x2000 |
#define | REG_PCIE_CAP_LIST 0x58 |
#define | REG_MAC_STA_ADDR 0x1488 |
#define | MACLEN 17 |
Functions | |
static u8 | get_hex_digit (const u8 c) |
static enum cb_err | fetch_mac_string_cbfs (u8 *macstrbuf) |
static void | get_mac_address (u8 *macaddr, const u8 *strbuf) |
static void | program_mac_address (u32 mem_base) |
static int | atl1e_eeprom_exist (u32 mem_base) |
static void | atl1e_init (struct device *dev) |
Variables | |
static struct device_operations | atl1e_ops |
static const struct pci_driver atl1e_driver | __pci_driver |
struct chip_operations | drivers_net_ops |
|
static |
Definition at line 95 of file atl1e.c.
References read32(), REG_PCIE_CAP_LIST, REG_SPI_FLASH_CTRL, SPI_FLASH_CTRL_EN_VPD, value, and write32().
Definition at line 22 of file atl1e.c.
Referenced by get_mac_address().
Definition at line 51 of file atl1e.c.
References BIOS_ERR, get_hex_digit(), offset, and printk.
Referenced by program_mac_address().
Definition at line 71 of file atl1e.c.
References BIOS_DEBUG, BIOS_ERR, CB_SUCCESS, fetch_mac_string_cbfs(), get_mac_address(), MACLEN, printk, REG_MAC_STA_ADDR, value, and write32().
|
static |
|
static |
struct chip_operations drivers_net_ops |