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

Go to the source code of this file.

Functions

static void rce822_enable (struct device *dev)
 
static void rce822_init (struct device *dev)
 
static void rce822_set_subsystem (struct device *dev, unsigned int vendor, unsigned int device)
 

Variables

static struct pci_operations lops_pci
 
static struct device_operations rce822_ops
 
static const unsigned short pci_device_ids [] = { 0xe822, 0xe823, 0 }
 
static const struct pci_driver rce822 __pci_driver
 
struct chip_operations drivers_ricoh_rce822_ops
 

Function Documentation

◆ rce822_enable()

static void rce822_enable ( struct device dev)
static

Definition at line 9 of file rce822.c.

References device::chip_info, config, and pci_write_config8().

Here is the call graph for this function:

◆ rce822_init()

static void rce822_init ( struct device dev)
static

Definition at line 18 of file rce822.c.

References device::chip_info, config, and pci_write_config8().

Here is the call graph for this function:

◆ rce822_set_subsystem()

static void rce822_set_subsystem ( struct device dev,
unsigned int  vendor,
unsigned int  device 
)
static

Definition at line 27 of file rce822.c.

Variable Documentation

◆ __pci_driver

const struct pci_driver rce822 __pci_driver
static
Initial value:
= {
.ops = &rce822_ops,
.vendor = PCI_VID_RICOH,
.devices = pci_device_ids,
}
#define PCI_VID_RICOH
Definition: pci_ids.h:1656
static struct device_operations rce822_ops
Definition: rce822.c:43
static const unsigned short pci_device_ids[]
Definition: rce822.c:52

Definition at line 52 of file rce822.c.

◆ drivers_ricoh_rce822_ops

struct chip_operations drivers_ricoh_rce822_ops
Initial value:
= {
}

Definition at line 52 of file rce822.c.

◆ lops_pci

struct pci_operations lops_pci
static
Initial value:
= {
.set_subsystem = rce822_set_subsystem,
}
static void rce822_set_subsystem(struct device *dev, unsigned int vendor, unsigned int device)
Definition: rce822.c:27

Definition at line 27 of file rce822.c.

◆ pci_device_ids

const unsigned short pci_device_ids[] = { 0xe822, 0xe823, 0 }
static

Definition at line 52 of file rce822.c.

◆ rce822_ops

struct device_operations rce822_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = rce822_init,
.enable = rce822_enable,
.ops_pci = &lops_pci,
}
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
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
static struct pci_operations lops_pci
Definition: rce822.c:39
static void rce822_init(struct device *dev)
Definition: rce822.c:18
static void rce822_enable(struct device *dev)
Definition: rce822.c:9

Definition at line 27 of file rce822.c.