coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
oxpcie.c File Reference
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci.h>
#include <console/console.h>
#include <console/uart.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
Include dependency graph for oxpcie.c:

Go to the source code of this file.

Functions

static void oxford_oxpcie_enable (struct device *dev)
 
static void oxford_oxpcie_set_resources (struct device *dev)
 

Variables

static struct device_operations oxford_oxpcie_ops
 
static const struct pci_driver oxford_oxpcie_driver __pci_driver
 

Function Documentation

◆ oxford_oxpcie_enable()

static void oxford_oxpcie_enable ( struct device dev)
static

Definition at line 11 of file oxpcie.c.

References resource::base, BIOS_DEBUG, BIOS_WARNING, PCI_BASE_ADDRESS_0, printk, probe_resource(), read32(), and res2mmio().

Here is the call graph for this function:

◆ oxford_oxpcie_set_resources()

static void oxford_oxpcie_set_resources ( struct device dev)
static

Definition at line 29 of file oxpcie.c.

Variable Documentation

◆ __pci_driver

static const struct pci_driver oxford_oxpcie_driver_2 __pci_driver
static
Initial value:
= {
.vendor = 0x1415,
.device = 0xc158,
}
static struct device_operations oxford_oxpcie_ops
Definition: oxpcie.c:38

Definition at line 29 of file oxpcie.c.

◆ oxford_oxpcie_ops

struct device_operations oxford_oxpcie_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = oxford_oxpcie_set_resources,
.enable_resources = pci_dev_enable_resources,
}
static void oxford_oxpcie_set_resources(struct device *dev)
Definition: oxpcie.c:29
static void oxford_oxpcie_enable(struct device *dev)
Definition: oxpcie.c:11
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

Definition at line 29 of file oxpcie.c.