added some comments
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 5 Feb 2004 18:05:20 +0000 (13:05 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 5 Feb 2004 18:05:20 +0000 (13:05 -0500)
--HG--
extra : convert_revision : b33c94984f8d9ac2baf8d7b45fa79460846b1755

dev/tsunami.cc
dev/tsunami.hh
dev/tsunami_cchip.cc
dev/tsunami_cchip.hh

index c6823ffa4fdc2f413c562877f9fc8ff61f495d6d..15f48914f33ecf509f43084f146f1fc232b6be11 100644 (file)
@@ -80,7 +80,7 @@ BEGIN_INIT_SIM_OBJECT_PARAMS(Tsunami)
     INIT_PARAM(ethernet, "ethernet controller"),
     INIT_PARAM(cons, "system console"),
     INIT_PARAM(intrctrl, "interrupt controller"),
-    INIT_PARAM_DFLT(interrupt_frequency, "frequency of interrupts", 1200)
+    INIT_PARAM_DFLT(interrupt_frequency, "frequency of interrupts", 1024)
 
 END_INIT_SIM_OBJECT_PARAMS(Tsunami)
 
index f45bb205969c0c151a9adb8585b9fc648f05d58a..710cb4b497ab7501b6094d3763667d82c31df372 100644 (file)
@@ -28,8 +28,8 @@
 
 /**
  * @file
- * Declaration of top level class for the Tsunami chipset. This class just retains pointers
- * to all its children so the children can communicate
+ * Declaration of top level class for the Tsunami chipset. This class just
+ * retains pointers to all its children so the children can communicate.
  */
 
 #ifndef __TSUNAMI_HH__
@@ -45,7 +45,7 @@ class TlaserClock;
 class EtherDev;
 class TsunamiCChip;
 class TsunamiPChip;
-class TsunamiPCIConfig;
+class PCIConfigAll;
 
 /**
   * Top level class for Tsunami Chipset emulation.
@@ -87,7 +87,7 @@ class Tsunami : public SimObject
       * The config space in tsunami all needs to return
       * -1 if a device is not there.
       */
-    TsunamiPCIConfig *pciconfig;
+    PCIConfigAll *pciconfig;
 
     int intr_sum_type[Tsunami::Max_CPUs];
     int ipi_pending[Tsunami::Max_CPUs];
@@ -97,11 +97,15 @@ class Tsunami : public SimObject
   public:
     /**
       * Constructor for the Tsunami Class.
-      * @param
+      * @param name name of the object
+      * @param scsi pointer to scsi controller object
+      * @param con pointer to the console
+      * @param intrcontrol pointer to the interrupt controller
+      * @param intrFreq frequency that interrupts happen
       */
     Tsunami(const std::string &name, AdaptecController *scsi,
                EtherDev *ethernet,
-               SimConsole *, IntrControl *intctrl, int intrFreq);
+               SimConsole *con, IntrControl *intctrl, int intrFreq);
 
     virtual void serialize(std::ostream &os);
     virtual void unserialize(Checkpoint *cp, const std::string &section);
index 17b0f1c48bfe1b96006b81e31c4d5b179e79aad5..ceac5300f156e0aed0770716cb3c26fa9c861333 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$ */
 
 /* @file
- * Tsunami CChip (processor, memory, or IO)
+ * Emulation of the Tsunami CChip CSRs
  */
 
 #include <deque>
index a79e60cfcf1ffad622bb2c631877855207d16b29..16d795afbec261716506b4e0a406e12a85b5ae32 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 /* @file
- * Turbolaser system bus node (processor, memory, or IO)
+ * Emulation of the Tsunami CChip CSRs
  */
 
 #ifndef __TSUNAMI_CCHIP_HH__
@@ -44,10 +44,30 @@ class TsunamiCChip : public MmapDevice
   public:
 
   protected:
+      /**
+       * pointer to the tsunami object.
+       * This is our access to all the other tsunami
+       * devices.
+       */
     Tsunami *tsunami;
+
+    /**
+     * The dims are device interrupt mask registers.
+     * One exists for each CPU, the DRIR X DIM = DIR
+     */
     uint64_t dim[Tsunami::Max_CPUs];
+
+    /**
+     * The dirs are device interrupt registers.
+     * One exists for each CPU, the DRIR X DIM = DIR
+     */
     uint64_t dir[Tsunami::Max_CPUs];
     bool dirInterrupting[Tsunami::Max_CPUs];
+
+    /**
+     * This register contains bits for each PCI interrupt
+     * that can occur.
+     */
     uint64_t drir;
 
   public: