coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
p2sblib.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_INTEL_COMMON_BLOCK_P2SBLIB_H
4 #define SOC_INTEL_COMMON_BLOCK_P2SBLIB_H
5 
6 #include <stddef.h>
7 #include <stdint.h>
8 
9 /* P2SB generic configuration register */
10 #define P2SBC 0xe0
11 #define P2SBC_HIDE_BIT (1 << 0)
12 
16 void p2sb_dev_hide(pci_devfn_t dev);
19 
20 #endif /* SOC_INTEL_COMMON_BLOCK_P2SBLIB_H */
bool p2sb_dev_is_hidden(pci_devfn_t dev)
Definition: p2sblib.c:23
uint32_t p2sb_dev_sbi_read(pci_devfn_t dev, uint8_t pid, uint16_t reg)
Definition: p2sblib.c:92
void p2sb_dev_unhide(pci_devfn_t dev)
Definition: p2sblib.c:48
void p2sb_dev_enable_bar(pci_devfn_t dev, uint64_t bar)
Definition: p2sblib.c:13
void p2sb_dev_sbi_write(pci_devfn_t dev, uint8_t pid, uint16_t reg, uint32_t val)
Definition: p2sblib.c:99
void p2sb_dev_hide(pci_devfn_t dev)
Definition: p2sblib.c:57
u32 pci_devfn_t
Definition: pci_type.h:8
unsigned short uint16_t
Definition: stdint.h:11
unsigned int uint32_t
Definition: stdint.h:14
unsigned long long uint64_t
Definition: stdint.h:17
unsigned char uint8_t
Definition: stdint.h:8
u8 val
Definition: sys.c:300