gem5
|
#include <cstring>
#include <vector>
#include "dev/dma_device.hh"
#include "dev/pci/host.hh"
#include "dev/pci/pcireg.h"
#include "params/PciDevice.hh"
#include "sim/byteswap.hh"
Go to the source code of this file.
Classes | |
class | PciDevice |
PCI device, base implementation is only config space. More... | |
Macros | |
#define | BAR_IO_MASK 0x3 |
#define | BAR_MEM_MASK 0xF |
#define | BAR_IO_SPACE_BIT 0x1 |
#define | BAR_IO_SPACE(x) ((x) & BAR_IO_SPACE_BIT) |
#define | BAR_NUMBER(x) (((x) - PCI0_BASE_ADDR0) >> 0x2); |
#define BAR_IO_MASK 0x3 |
Definition at line 61 of file device.hh.
Referenced by IdeController::IdeController(), and PciDevice::writeConfig().
#define BAR_IO_SPACE | ( | x | ) | ((x) & BAR_IO_SPACE_BIT) |
Definition at line 64 of file device.hh.
Referenced by PciDevice::writeConfig().
#define BAR_MEM_MASK 0xF |
Definition at line 62 of file device.hh.
Referenced by PciDevice::writeConfig().
#define BAR_NUMBER | ( | x | ) | (((x) - PCI0_BASE_ADDR0) >> 0x2); |
Definition at line 65 of file device.hh.
Referenced by PciDevice::writeConfig().