1 #ifndef L4_CXX_UART_S3C2410_H__
2 #define L4_CXX_UART_S3C2410_H__
8 class Uart_s3c2410 : public Uart
13 inline unsigned long rd(unsigned long reg) const;
14 inline void wr(unsigned long reg, unsigned long val) const;
17 Uart_s3c2410(int rx_irq, int tx_irq)
18 : Uart(rx_irq, tx_irq), _base(~0UL) {}
19 bool startup(unsigned long base);
21 bool enable_rx_irq(bool enable = true);
22 bool enable_tx_irq(bool enable = true);
23 bool change_mode(Transfer_mode m, Baud_rate r);
24 int get_char(bool blocking = true) const;
25 int char_avail() const;
26 inline void out_char(char c) const;
27 int write(char const *s, unsigned long count) const;