Add a proper device interface #18
Labels
arch: none
Not architecture specific
target: kernel
Kernel related features
type: new
Implement a new feature
Devices
Everything, from the mouse to the network controller, is a device, and implementing a generic interface to easily declare and interact with these device is one of the most crucial part of the kernel. Ideally a the higher level APIs should not have to care about which device they are communicating with, nor should it impact their result.
Goals
What I want from this interface is:
Current state
Together with #17, we added a stub device interface.
It represents a contiguous array of memory (since this is the only thing we interact with as of now), and a basic read/write wrapper around a memcpy.
PoC
Once this interface is ready, it should be easily possible to treat #10. The console should simply write to the device representing the UART/Framebuffer, depending on the requested output device``
The text was updated successfully, but these errors were encountered: