Renamed OpClass enum members: they all end in 'Op' now.
[gem5.git] / dev / console.hh
index f443afe4ff54b32a533a8ada5c08b188b894e039..d2bba46123da5c5e2569364bc31240069c0c33db 100644 (file)
@@ -109,9 +109,21 @@ class SimConsole : public SimObject
     // OS interface
 
     // Get a character from the console.
-    // return of -1 means there is no character pending.
+    bool in(uint8_t &value);
+
+    // get a character from the console in the console specific format
+    // corresponds to GETC:
+    // retval<63:61>
+    //     000: success: character received
+    //     001: success: character received, more pending
+    //     100: failure: no character ready
+    //     110: failure: character received with error
+    //     111: failure: character received with error, more pending
+    // retval<31:0>
+    //     character read from console
+    //
     // Interrupts are cleared when the buffer is empty.
-    int in();
+    uint64_t console_in();
 
     // Send a character to the console
     void out(char c, bool raise_int = true);