coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/pci_def.h
>
4
#include <
device/pci_ids.h
>
5
#include <
device/pci_ops.h
>
6
#include <
device/device.h
>
7
#include <baseboard/variants.h>
8
9
void
variant_mainboard_final
(
void
)
10
{
11
struct
device
*dev;
12
13
if
(
CONFIG
(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) {
14
/* Set Master Enable for on-board PCI device if allowed. */
15
dev =
dev_find_device
(
PCI_VID_SIEMENS
, 0x403e, 0);
16
if
(dev) {
17
pci_or_config16
(dev,
PCI_COMMAND
,
PCI_COMMAND_MASTER
);
18
}
19
}
20
}
dev_find_device
struct device * dev_find_device(u16 vendor, u16 device, struct device *from)
Find a device of a given vendor and type.
Definition:
device_util.c:42
CONFIG
@ CONFIG
Definition:
dsi_common.h:201
device.h
pci_ops.h
pci_or_config16
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
Definition:
pci_ops.h:180
pci_def.h
PCI_COMMAND_MASTER
#define PCI_COMMAND_MASTER
Definition:
pci_def.h:13
PCI_COMMAND
#define PCI_COMMAND
Definition:
pci_def.h:10
pci_ids.h
PCI_VID_SIEMENS
#define PCI_VID_SIEMENS
Definition:
pci_ids.h:1491
variant_mainboard_final
void __weak variant_mainboard_final(void)
Definition:
mainboard.c:245
device
Definition:
device.h:107
src
mainboard
siemens
mc_apl1
variants
mc_apl2
mainboard.c
Generated by
1.9.1