coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lv2.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
#include <device/pci.h>
#include <device/pciexp.h>
#include <device/pci_ops.h>
#include <device/pci_ids.h>
#include "chip.h"
#include "lv2.h"
Include dependency graph for lv2.c:

Go to the source code of this file.

Functions

static void lv2_enable_ltr (struct device *dev)
 
static void lv2_enable (struct device *dev)
 

Variables

static struct device_operations lv2_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver bayhub_lv2 __pci_driver
 
struct chip_operations drivers_generic_bayhub_lv2_ops
 

Function Documentation

◆ lv2_enable()

◆ lv2_enable_ltr()

static void lv2_enable_ltr ( struct device dev)
static

Definition at line 20 of file lv2.c.

References BIOS_INFO, dev_path(), PCI_LTR_MAX_SNOOP, pci_write_config32(), PCIE_EXT_CAP_LTR_ID, pciexp_find_extended_cap(), pciexp_get_ltr_max_latencies(), and printk.

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver bayhub_lv2 __pci_driver
static
Initial value:
= {
.ops = &lv2_ops,
.vendor = PCI_VID_O2,
.devices = pci_device_ids,
}
static const unsigned short pci_device_ids[]
Definition: lv2.c:72
static struct device_operations lv2_ops
Definition: lv2.c:63
#define PCI_VID_O2
Definition: pci_ids.h:1772

Definition at line 72 of file lv2.c.

◆ drivers_generic_bayhub_lv2_ops

struct chip_operations drivers_generic_bayhub_lv2_ops
Initial value:
= {
}

Definition at line 72 of file lv2.c.

◆ lv2_ops

struct device_operations lv2_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.ops_pci = &pci_dev_ops_pci,
.enable = lv2_enable,
.final = lv2_enable_ltr,
}
static void lv2_enable_ltr(struct device *dev)
Definition: lv2.c:20
static void lv2_enable(struct device *dev)
Definition: lv2.c:35
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 35 of file lv2.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0
}
#define PCI_DID_O2_LV2
Definition: pci_ids.h:1778

Definition at line 72 of file lv2.c.