|
μHAL
|
#include "pcie-defs.h"
Go to the source code of this file.
Functions | |
| void | dev_open_slot (struct pcie_bars &bars, int slot) |
| void | dev_open_slot (struct pcie_bars &bars, const char *slot) |
| void | dev_open (struct pcie_bars &bars, const char *pci_address) |
| void | dev_open_serial (struct pcie_bars &bars, const char *dev_file) |
| void | dev_close (struct pcie_bars &bars) |
This file contains the functions used to initialize and destroy a pcie_bars struct.
| void dev_open | ( | struct pcie_bars & | bars, |
| const char * | pci_address | ||
| ) |
Memory map the BARs of PCIe device with address pci_address, found in "/sys/bus/pci/devices/<pci_address>.0/"
| void dev_open_slot | ( | struct pcie_bars & | bars, |
| const char * | slot | ||
| ) |
Memory map the BARs of PCIe device in slot, when slot isn't a simple integer
| void dev_open_slot | ( | struct pcie_bars & | bars, |
| int | slot | ||
| ) |
Memory map the BARs of PCIe device in slot