gem5  v20.1.0.0
Classes | Macros
device.hh File Reference
#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);
 

Macro Definition Documentation

◆ BAR_IO_MASK

#define BAR_IO_MASK   0x3

Definition at line 57 of file device.hh.

◆ BAR_IO_SPACE

#define BAR_IO_SPACE (   x)    ((x) & BAR_IO_SPACE_BIT)

Definition at line 60 of file device.hh.

◆ BAR_IO_SPACE_BIT

#define BAR_IO_SPACE_BIT   0x1

Definition at line 59 of file device.hh.

◆ BAR_MEM_MASK

#define BAR_MEM_MASK   0xF

Definition at line 58 of file device.hh.

◆ BAR_NUMBER

#define BAR_NUMBER (   x)    (((x) - PCI0_BASE_ADDR0) >> 0x2);

Definition at line 61 of file device.hh.


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17