io_device.hh revision 1762
11689SN/A/*
212143Sanouk.vanlaer@arm.com * Copyright (c) 2004-2005 The Regents of The University of Michigan
39916Ssteve.reinhardt@amd.com * All rights reserved.
48707Sandreas.hansson@arm.com *
58707Sandreas.hansson@arm.com * Redistribution and use in source and binary forms, with or without
68707Sandreas.hansson@arm.com * modification, are permitted provided that the following conditions are
78707Sandreas.hansson@arm.com * met: redistributions of source code must retain the above copyright
88707Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer;
98707Sandreas.hansson@arm.com * redistributions in binary form must reproduce the above copyright
108707Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer in the
118707Sandreas.hansson@arm.com * documentation and/or other materials provided with the distribution;
128707Sandreas.hansson@arm.com * neither the name of the copyright holders nor the names of its
138707Sandreas.hansson@arm.com * contributors may be used to endorse or promote products derived from
148707Sandreas.hansson@arm.com * this software without specific prior written permission.
152325SN/A *
167897Shestness@cs.utexas.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
271689SN/A */
281689SN/A
291689SN/A#ifndef __DEV_IO_DEVICE_HH__
301689SN/A#define __DEV_IO_DEVICE_HH__
311689SN/A
321689SN/A#include "mem/functional/functional.hh"
331689SN/A
341689SN/Aclass BaseInterface;
351689SN/Aclass Bus;
361689SN/Aclass HierParams;
371689SN/Aclass Platform;
381689SN/Atemplate <class BusType> class DMAInterface;
391689SN/A
401689SN/Aclass PioDevice : public FunctionalMemory
412665Ssaidi@eecs.umich.edu{
422665Ssaidi@eecs.umich.edu  protected:
432756Sksewell@umich.edu    Platform *platform;
447897Shestness@cs.utexas.edu    BaseInterface *pioInterface;
451689SN/A    Tick pioLatency;
461689SN/A
4711793Sbrandon.potter@amd.com  public:
4811793Sbrandon.potter@amd.com    PioDevice(const std::string &name, Platform *p);
4912109SRekai.GonzalezAlberquilla@arm.com    virtual ~PioDevice();
508779Sgblack@eecs.umich.edu};
516658Snate@binkert.org
5211793Sbrandon.potter@amd.comclass DmaDevice : public PioDevice
538887Sgeoffrey.blake@arm.com{
548887Sgeoffrey.blake@arm.com  protected:
558229Snate@binkert.org    DMAInterface<Bus> *dmaInterface;
568229Snate@binkert.org
578779Sgblack@eecs.umich.edu  public:
584762Snate@binkert.org    DmaDevice(const std::string &name, Platform *p);
594762Snate@binkert.org    virtual ~DmaDevice();
608232Snate@binkert.org};
619152Satgutier@umich.edu
628232Snate@binkert.org#endif // __DEV_IO_DEVICE_HH__
638232Snate@binkert.org