fn new(port: u16) -> Self {
        unsafe {
            write_port8(port + 1, 0x00);
            write_port8(port + 3, 0x80);
            write_port8(port, 0x01);
            write_port8(port + 1, 0x00);
            write_port8(port + 3, 0x03);
            write_port8(port + 2, 0xc7);
            write_port8(port + 4, 0x0b);
            write_port8(port + 1, 0x01);
        }

        Self { port }
    }
/// Inits and creates a serial port.
Inits and creates a serial port.
Inits and creates a serial port .
fn new(port: u16) -> Self {
        unsafe {
            write_port8(port + 1, 0x00);
            write_port8(port + 3, 0x80);
            write_port8(port, 0x01);
            write_port8(port + 1, 0x00);
            write_port8(port + 3, 0x03);
            write_port8(port + 2, 0xc7);
            write_port8(port + 4, 0x0b);
            write_port8(port + 1, 0x01);
        }
        Self { port }
    }
fn new ( port : u16 ) -> Self { unsafe { write_port8 ( port + 1 , 0x00 ) ; write_port8 ( port + 3 , 0x80 ) ; write_port8 ( port , 0x01 ) ; write_port8 ( port + 1 , 0x00 ) ; write_port8 ( port + 3 , 0x03 ) ; write_port8 ( port + 2 , 0xc7 ) ; write_port8 ( port + 4 , 0x0b ) ; write_port8 ( port + 1 , 0x01 ) ; } Self { port } }
Inits and creates a serial port.
Inits and creates a serial port .
port
u16
port
u16