diff options
Diffstat (limited to 'src/dev/uart8250.hh')
-rw-r--r-- | src/dev/uart8250.hh | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/dev/uart8250.hh b/src/dev/uart8250.hh index ccccac1e9..b7fefc534 100644 --- a/src/dev/uart8250.hh +++ b/src/dev/uart8250.hh @@ -73,20 +73,11 @@ class Uart8250 : public Uart uint8_t IER, DLAB, LCR, MCR; Tick lastTxInt; - class IntrEvent : public Event - { - protected: - Uart8250 *uart; - int intrBit; - public: - IntrEvent(Uart8250 *u, int bit); - virtual void process(); - virtual const char *description() const; - void scheduleIntr(); - }; - - IntrEvent txIntrEvent; - IntrEvent rxIntrEvent; + void processIntrEvent(int intrBit); + void scheduleIntr(Event *event); + + EventFunctionWrapper txIntrEvent; + EventFunctionWrapper rxIntrEvent; public: typedef Uart8250Params Params; |