coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pcie_common.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef SOC_MEDIATEK_PCIE_COMMON_H
4
#define SOC_MEDIATEK_PCIE_COMMON_H
5
6
#include <
device/device.h
>
7
#include <types.h>
8
9
struct
mtk_pcie_mmio_res
{
10
uint32_t
cpu_addr
;
11
uint32_t
pci_addr
;
12
uint32_t
size
;
13
unsigned
long
type
;
14
};
15
16
struct
mtk_pcie_config
{
17
uintptr_t
base
;
/* MAC physical address */
18
const
struct
mtk_pcie_mmio_res
mmio_res_io
;
19
const
struct
mtk_pcie_mmio_res
mmio_res_mem
;
20
};
21
22
void
mtk_pcie_domain_read_resources
(
struct
device
*dev);
23
void
mtk_pcie_domain_set_resources
(
struct
device
*dev);
24
void
mtk_pcie_domain_enable
(
struct
device
*dev);
25
26
#endif
device.h
mtk_pcie_domain_set_resources
void mtk_pcie_domain_set_resources(struct device *dev)
Definition:
pcie.c:193
mtk_pcie_domain_read_resources
void mtk_pcie_domain_read_resources(struct device *dev)
Definition:
pcie.c:181
mtk_pcie_domain_enable
void mtk_pcie_domain_enable(struct device *dev)
Definition:
pcie.c:213
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
device
Definition:
device.h:107
mtk_pcie_config
Definition:
pcie_common.h:16
mtk_pcie_config::mmio_res_mem
const struct mtk_pcie_mmio_res mmio_res_mem
Definition:
pcie_common.h:19
mtk_pcie_config::base
uintptr_t base
Definition:
pcie_common.h:17
mtk_pcie_config::mmio_res_io
const struct mtk_pcie_mmio_res mmio_res_io
Definition:
pcie_common.h:18
mtk_pcie_mmio_res
Definition:
pcie_common.h:9
mtk_pcie_mmio_res::type
unsigned long type
Definition:
pcie_common.h:13
mtk_pcie_mmio_res::pci_addr
uint32_t pci_addr
Definition:
pcie_common.h:11
mtk_pcie_mmio_res::size
uint32_t size
Definition:
pcie_common.h:12
mtk_pcie_mmio_res::cpu_addr
uint32_t cpu_addr
Definition:
pcie_common.h:10
src
soc
mediatek
common
include
soc
pcie_common.h
Generated by
1.9.1