X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fio_device.cc;h=6ab876ab86a3b00882b884f6cd70746462201507;hb=60e92986f739a025a6534972b8e1cf9498ce3fd2;hp=65a18aec60f07cfb9ff9f5ab8aae7fb4f76dae1f;hpb=26d0cf70eacee277bf25fd2ab9c2b2839e729f4c;p=gem5.git diff --git a/dev/io_device.cc b/dev/io_device.cc index 65a18aec6..6ab876ab8 100644 --- a/dev/io_device.cc +++ b/dev/io_device.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003 The Regents of The University of Michigan + * Copyright (c) 2004-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -28,9 +28,11 @@ #include "dev/io_device.hh" #include "mem/bus/base_interface.hh" +#include "mem/bus/dma_interface.hh" +#include "sim/builder.hh" -PioDevice::PioDevice(const std::string &name) - : FunctionalMemory(name), pioInterface(NULL) +PioDevice::PioDevice(const std::string &name, Platform *p) + : FunctionalMemory(name), platform(p), pioInterface(NULL), pioLatency(0) {} PioDevice::~PioDevice() @@ -39,8 +41,10 @@ PioDevice::~PioDevice() delete pioInterface; } -DmaDevice::DmaDevice(const std::string &name) - : PioDevice(name), dmaInterface(NULL) +DEFINE_SIM_OBJECT_CLASS_NAME("PioDevice", PioDevice) + +DmaDevice::DmaDevice(const std::string &name, Platform *p) + : PioDevice(name, p), dmaInterface(NULL) {} DmaDevice::~DmaDevice() @@ -49,3 +53,5 @@ DmaDevice::~DmaDevice() delete dmaInterface; } +DEFINE_SIM_OBJECT_CLASS_NAME("DmaDevice", DmaDevice) +