summaryrefslogtreecommitdiff
path: root/kernel/src/arch/x86_64/drivers/serial.hpp
blob: 453ed3ae6ae6543b11ec42c366d34292bcc0c4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

namespace x86_64 {
    namespace serial {
        void init();
        void write(char c);
        char read();

        static inline void write_data(char* buffer, int size) {
            for(int i = 0;i < size;i++) {
                write(buffer[i]);
            }
        }
    }
};