[Voyageurs] Add a basic ps/2 keyboard driver.
This commit is contained in:
parent
7151a509ee
commit
8365d47cbe
18 changed files with 532 additions and 0 deletions
45
sys/voyageurs/lib/voyageurs/voyageurs.yunq.h
Normal file
45
sys/voyageurs/lib/voyageurs/voyageurs.yunq.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Generated file - DO NOT MODIFY
|
||||
#pragma once
|
||||
|
||||
#include <glacier/buffer/byte_buffer.h>
|
||||
#include <glacier/buffer/cap_buffer.h>
|
||||
#include <glacier/container/vector.h>
|
||||
#include <glacier/string/string.h>
|
||||
#include <ztypes.h>
|
||||
class KeyboardListener {
|
||||
public:
|
||||
KeyboardListener() {}
|
||||
// Delete copy and move until implemented.
|
||||
KeyboardListener(const KeyboardListener&) = delete;
|
||||
KeyboardListener(KeyboardListener&&) = delete;
|
||||
|
||||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset);
|
||||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset) const;
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&) const;
|
||||
const z_cap_t& port_capability() const { return port_capability_; }
|
||||
void set_port_capability(const z_cap_t& value) { port_capability_ = value; }
|
||||
|
||||
private:
|
||||
z_cap_t port_capability_;
|
||||
|
||||
// Parses everything except for caps.
|
||||
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);
|
||||
};
|
||||
class None {
|
||||
public:
|
||||
None() {}
|
||||
// Delete copy and move until implemented.
|
||||
None(const None&) = delete;
|
||||
None(None&&) = delete;
|
||||
|
||||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset);
|
||||
void ParseFromBytes(const glcr::ByteBuffer&, uint64_t offset, const glcr::CapBuffer&);
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset) const;
|
||||
uint64_t SerializeToBytes(glcr::ByteBuffer&, uint64_t offset, glcr::CapBuffer&) const;
|
||||
|
||||
private:
|
||||
|
||||
// Parses everything except for caps.
|
||||
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue