blob: 1451434f442b3737a6701e0733d396a0c6f4ade0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#ifndef PCI_INTERNAL
#error "do not include <sys/pci.h>, only use <pci.h>"
#endif
#include <stdint.h>
#include <pci.h>
uint32_t pci_sys_rcfg_d(struct pci_device dev, uint8_t offset);
uint16_t pci_sys_rcfg_w(struct pci_device dev, uint8_t offset);
uint8_t pci_sys_rcfg_b(struct pci_device dev, uint8_t offset);
void pci_sys_wcfg_d(struct pci_device dev, uint8_t offset, uint32_t dword);
void pci_sys_wcfg_w(struct pci_device dev, uint8_t offset, uint16_t word);
void pci_sys_wcfg_b(struct pci_device dev, uint8_t offset, uint8_t byte);
|