From eb11613da6b258f10bc20bef63ee0a6519814714 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 16 Jan 2015 01:18:47 +0100 Subject: [PATCH] Add interface to wait for IO port changes. --- kernel/include/sortix/kernel/ioport.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/include/sortix/kernel/ioport.h b/kernel/include/sortix/kernel/ioport.h index 06022e3e..e62aa8a7 100644 --- a/kernel/include/sortix/kernel/ioport.h +++ b/kernel/include/sortix/kernel/ioport.h @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2014. + Copyright(C) Jonas 'Sortie' Termansen 2014, 2015. This file is part of Sortix. @@ -78,6 +78,9 @@ static inline uint32_t inport32(uint16_t port) return result; } +bool wait_inport8_clear(uint16_t ioport, uint8_t bits, bool any, unsigned int msecs); +bool wait_inport8_set(uint16_t ioport, uint8_t bits, bool any, unsigned int msecs); + } // namespace Sortix #endif