device.cc (11260:bedcc64f6145) device.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2013, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 49 unchanged lines hidden (view full) ---

58#include "base/str.hh"
59#include "base/trace.hh"
60#include "debug/PciDevice.hh"
61#include "mem/packet.hh"
62#include "mem/packet_access.hh"
63#include "sim/byteswap.hh"
64#include "sim/core.hh"
65
1/*
2 * Copyright (c) 2013, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 49 unchanged lines hidden (view full) ---

58#include "base/str.hh"
59#include "base/trace.hh"
60#include "debug/PciDevice.hh"
61#include "mem/packet.hh"
62#include "mem/packet_access.hh"
63#include "sim/byteswap.hh"
64#include "sim/core.hh"
65
66
67PciDevice::PciDevice(const PciDeviceParams *p)
68 : DmaDevice(p),
69 _busAddr(p->pci_bus, p->pci_dev, p->pci_func),
70 PMCAP_BASE(p->PMCAPBaseOffset),
71 PMCAP_ID_OFFSET(p->PMCAPBaseOffset+PMCAP_ID),
72 PMCAP_PC_OFFSET(p->PMCAPBaseOffset+PMCAP_PC),
73 PMCAP_PMCS_OFFSET(p->PMCAPBaseOffset+PMCAP_PMCS),
74 MSICAP_BASE(p->MSICAPBaseOffset),

--- 507 unchanged lines hidden ---
66PciDevice::PciDevice(const PciDeviceParams *p)
67 : DmaDevice(p),
68 _busAddr(p->pci_bus, p->pci_dev, p->pci_func),
69 PMCAP_BASE(p->PMCAPBaseOffset),
70 PMCAP_ID_OFFSET(p->PMCAPBaseOffset+PMCAP_ID),
71 PMCAP_PC_OFFSET(p->PMCAPBaseOffset+PMCAP_PC),
72 PMCAP_PMCS_OFFSET(p->PMCAPBaseOffset+PMCAP_PMCS),
73 MSICAP_BASE(p->MSICAPBaseOffset),

--- 507 unchanged lines hidden ---