gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

#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_IO_SPACE_BIT   0x1

Definition at line 63 of file device.hh.

#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().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6