coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
npk.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <device/device.h>
5 #include <device/pci.h>
6 #include <device/pci_ids.h>
7 
8 #include <soc/pci_devs.h>
9 #include <soc/ramstage.h>
10 
11 static void npk_init(struct device *dev)
12 {
13  printk(BIOS_DEBUG, "pch: %s\n", __func__);
14 
15  /* TODO */
16 }
17 
18 static void pci_npk_read_resources(struct device *dev)
19 {
20  /* Skip NorthPeak enumeration. */
21 }
22 
23 static struct device_operations pmc_ops = {
25  .set_resources = pci_dev_set_resources,
26  .enable_resources = pci_dev_enable_resources,
27  .init = npk_init,
28  .ops_pci = &soc_pci_ops,
29 };
30 
31 static const struct pci_driver pch_pmc __pci_driver = {
32  .ops = &pmc_ops,
33  .vendor = PCI_VID_INTEL,
35 };
#define printk(level,...)
Definition: stdlib.h:16
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
static void npk_init(struct device *dev)
Definition: npk.c:11
static void pci_npk_read_resources(struct device *dev)
Definition: npk.c:18
static struct device_operations pmc_ops
Definition: npk.c:23
static const struct pci_driver pch_pmc __pci_driver
Definition: npk.c:31
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
#define PCI_DID_INTEL_DNV_TRACEHUB
Definition: pci_ids.h:2792
#define PCI_VID_INTEL
Definition: pci_ids.h:2157
struct pci_operations soc_pci_ops
Definition: chip.c:51
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107