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

Go to the source code of this file.

Functions

static void wifi_pci_dev_init (struct device *dev)
 
static bool is_cnvi (const struct device *dev)
 
bool wifi_generic_cnvi_ddr_rfim_enabled (const struct device *dev)
 
static void wifi_generic_enable (struct device *dev)
 

Variables

struct device_operations wifi_pcie_ops
 
struct device_operations wifi_cnvi_ops
 
struct device_operations wifi_generic_ops
 
struct chip_operations drivers_wifi_generic_ops
 
static const unsigned short intel_pci_device_ids []
 
static const struct pci_driver intel_wifi_pci_driver __pci_driver
 

Function Documentation

◆ is_cnvi()

static bool is_cnvi ( const struct device dev)
static

Definition at line 50 of file generic.c.

References DEVICE_PATH_PCI, device::path, and device_path::type.

Referenced by wifi_generic_cnvi_ddr_rfim_enabled().

Here is the caller graph for this function:

◆ wifi_generic_cnvi_ddr_rfim_enabled()

bool wifi_generic_cnvi_ddr_rfim_enabled ( const struct device dev)

Definition at line 55 of file generic.c.

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

Referenced by fill_fspm_misc_params().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wifi_generic_enable()

static void wifi_generic_enable ( struct device dev)
static

Definition at line 66 of file generic.c.

◆ wifi_pci_dev_init()

static void wifi_pci_dev_init ( struct device dev)
static

Definition at line 12 of file generic.c.

Variable Documentation

◆ __pci_driver

const struct pci_driver intel_wifi_pci_driver __pci_driver
static
Initial value:
= {
.ops = &wifi_pcie_ops,
.vendor = PCI_VID_INTEL,
}
static const unsigned short intel_pci_device_ids[]
Definition: generic.c:82
struct device_operations wifi_pcie_ops
Definition: generic.c:18
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 82 of file generic.c.

◆ drivers_wifi_generic_ops

struct chip_operations drivers_wifi_generic_ops
Initial value:
= {
.enable_dev = wifi_generic_enable
}
static void wifi_generic_enable(struct device *dev)
Definition: generic.c:66

Definition at line 66 of file generic.c.

◆ intel_pci_device_ids

const unsigned short intel_pci_device_ids[]
static

Definition at line 82 of file generic.c.

◆ wifi_cnvi_ops

struct device_operations wifi_cnvi_ops
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74

Definition at line 12 of file generic.c.

◆ wifi_generic_ops

struct device_operations wifi_generic_ops
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
}

Definition at line 12 of file generic.c.

◆ wifi_pcie_ops

struct device_operations wifi_pcie_ops
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,
.scan_bus = scan_static_bus,
}
static void wifi_pci_dev_init(struct device *dev)
Definition: generic.c:12
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
void scan_static_bus(struct device *bus)
Definition: root_device.c:89

Definition at line 12 of file generic.c.