X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Ftsunami.cc;h=f98254354fde1a6abcc0de037cce09d22b6b8eff;hb=2e0695ec9ae9bbc798c8164e9dd66f59fef93b4e;hp=8956ee557f8a2ee96cb4077c50d0046938558127;hpb=f89043293faf336cd7270ecb6d96bfbb9bdcce4b;p=gem5.git diff --git a/dev/tsunami.cc b/dev/tsunami.cc index 8956ee557..f98254354 100644 --- a/dev/tsunami.cc +++ b/dev/tsunami.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003 The Regents of The University of Michigan + * Copyright (c) 2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -31,7 +31,7 @@ #include #include "cpu/intr_control.hh" -#include "dev/console.hh" +#include "dev/simconsole.hh" #include "dev/etherdev.hh" #include "dev/ide_ctrl.hh" #include "dev/tlaser_clock.hh" @@ -56,6 +56,12 @@ Tsunami::Tsunami(const string &name, System *s, intr_sum_type[i] = 0; } +Tick +Tsunami::intrFrequency() +{ + return io->frequency(); +} + void Tsunami::postConsoleInt() { @@ -68,6 +74,24 @@ Tsunami::clearConsoleInt() io->clearPIC(0x10); } +void +Tsunami::postPciInt(int line) +{ + cchip->postDRIR(line); +} + +void +Tsunami::clearPciInt(int line) +{ + cchip->clearDRIR(line); +} + +Addr +Tsunami::pciToDma(Addr pciAddr) const +{ + return pchip->translatePciToDma(pciAddr); +} + void Tsunami::serialize(std::ostream &os) {