mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
Kernel: Specify I/O size for BMIDEChannel
This commit is contained in:
parent
32840dfa17
commit
a0c1af4327
2 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,7 @@ public:
|
|||
template<typename T>
|
||||
ALWAYS_INLINE T in()
|
||||
{
|
||||
static_assert(sizeof(T) <= 4);
|
||||
if constexpr (sizeof(T) == 4)
|
||||
return IO::in32(get());
|
||||
if constexpr (sizeof(T) == 2)
|
||||
|
@ -94,6 +95,7 @@ public:
|
|||
template<typename T>
|
||||
ALWAYS_INLINE void out(T value)
|
||||
{
|
||||
static_assert(sizeof(T) <= 4);
|
||||
if constexpr (sizeof(T) == 4) {
|
||||
IO::out32(get(), value);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue