pub fn new(reset_evt: EventFd, kbd_interrupt_evt: EventFd) -> I8042Device {
        I8042Device {
            reset_evt,
            kbd_interrupt_evt,
            control: CB_POST_OK | CB_KBD_INT,
            cmd: 0,
            outp: 0,
            status: SB_KBD_ENABLED,
            buf: [0; BUF_SIZE],
            bhead: Wrapping(0),
            btail: Wrapping(0),
        }
    }
/// Constructs an i8042 device that will signal the given event when the guest requests it.
Constructs an i8042 device that will signal the given event when the guest requests it.
Constructs an i8042 device that will signal the given event when the guest requests it .
pub fn new(reset_evt: EventFd, kbd_interrupt_evt: EventFd) -> I8042Device {
        I8042Device {
            reset_evt,
            kbd_interrupt_evt,
            control: CB_POST_OK | CB_KBD_INT,
            cmd: 0,
            outp: 0,
            status: SB_KBD_ENABLED,
            buf: [0; BUF_SIZE],
            bhead: Wrapping(0),
            btail: Wrapping(0),
        }
    }
pub fn new ( reset_evt : EventFd , kbd_interrupt_evt : EventFd ) -> I8042Device { I8042Device { reset_evt , kbd_interrupt_evt , control : CB_POST_OK | CB_KBD_INT , cmd : 0 , outp : 0 , status : SB_KBD_ENABLED , buf : [ 0 ; BUF_SIZE ] , bhead : Wrapping ( 0 ) , btail : Wrapping ( 0 ) , } }
Constructs an i8042 device that will signal the given event when the guest requests it.
Constructs an i8042 device that will signal the given event when the guest requests it .
reset_evt
EventFd
kbd_interrupt_evt
EventFd
reset_evt
EventFd
kbd_interrupt_evt
EventFd