coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pcixx12.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/device.h>
4 #include <device/pci.h>
5 #include <console/console.h>
6 #include <device/cardbus.h>
7 
8 static void pcixx12_init(struct device *dev)
9 {
10  /* cardbus controller function 1 for CF Socket */
11  printk(BIOS_DEBUG, "TI PCIxx12 init\n");
12 }
13 
14 static void pcixx12_read_resources(struct device *dev)
15 {
17 }
18 
19 static void pcixx12_set_resources(struct device *dev)
20 {
21  printk(BIOS_DEBUG, "%s In set resources\n",dev_path(dev));
22 
24 
25  printk(BIOS_DEBUG, "%s done set resources\n",dev_path(dev));
26 }
27 
28 static struct device_operations ti_pcixx12_ops = {
30  .set_resources = pcixx12_set_resources,
31  .enable_resources = cardbus_enable_resources,
32  .init = pcixx12_init,
33  .scan_bus = pci_scan_bridge,
34 };
35 
36 static const struct pci_driver ti_pcixx12_driver __pci_driver = {
37  .ops = &ti_pcixx12_ops,
38  .vendor = 0x104c,
39  .device = 0x8039,
40 };
void cardbus_enable_resources(struct device *dev)
void cardbus_read_resources(struct device *dev)
#define printk(level,...)
Definition: stdlib.h:16
const char * dev_path(const struct device *dev)
Definition: device_util.c:149
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
void pci_scan_bridge(struct device *dev)
Scan a PCI bridge and the buses behind the bridge.
Definition: pci_device.c:1598
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
static void pcixx12_set_resources(struct device *dev)
Definition: pcixx12.c:19
static struct device_operations ti_pcixx12_ops
Definition: pcixx12.c:28
static void pcixx12_read_resources(struct device *dev)
Definition: pcixx12.c:14
static void pcixx12_init(struct device *dev)
Definition: pcixx12.c:8
static const struct pci_driver ti_pcixx12_driver __pci_driver
Definition: pcixx12.c:36
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107