Files
MentOS/mentos/inc/drivers/ps2.h
T
Enrico Fraccaroli (Galfurian) 0130725518 Just add missing comments.
2022-04-08 10:05:21 -04:00

18 lines
492 B
C

/// @file ps2.h
/// @brief PS/2 drivers.
/// @copyright (c) 2014-2022 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#pragma once
/// @brief Initializes ps2 devices.
/// @return 0 on success, 1 on failure.
int ps2_initialize();
/// @brief Writes data to the PS/2 port.
/// @param data the data to write.
void ps2_write(unsigned char data);
/// @brief Reads data from the PS/2 port.
/// @return the data coming from the PS/2 port.
unsigned char ps2_read();