aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial.h')
-rw-r--r--drivers/serial.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/serial.h b/drivers/serial.h
index 0579dd4..896d831 100644
--- a/drivers/serial.h
+++ b/drivers/serial.h
@@ -16,20 +16,22 @@ public:
SerialPort();
~SerialPort() = default;
+ bool self_check() const { return self_check_okay; }
+
bool ready_read();
uint8_t read();
bool ready_write();
void write(char c) override;
void write(ViewIterator& iter) override {
- while (iter) {
- write(iter.next());
- }
+ while (iter) write(iter.next());
}
void update_cursor() override {}
private:
+ bool self_check_okay;
+
enum PortOffset : uint16_t {
BaudDiv_l = 0, // if dlab is set
BaudDiv_h = 1, // if dlab is set