Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo device management #52

Open
azertyfun opened this issue Apr 15, 2016 · 3 comments
Open

Redo device management #52

azertyfun opened this issue Apr 15, 2016 · 3 comments
Labels

Comments

@azertyfun
Copy link
Member

Current state is : Support of multiple devices is pretty much non existent.

@azertyfun
Copy link
Member Author

OK I tried to better things, but it is a complete mess and compilcated the driver writing very much, so here is a proposal for how things would work :

Userland has NO access to drivers/devices. Apps would communicate with devices through a device manager. From the user perspective, the code would look like this :

set PUSH, DEVICE_GENERICSCREEN
set PUSH, PRINTF
set PUSH, str_hello
set PUSH 0 ; With support for multiple devices at a time, each device has a number, so if you have three keyboards, you can access them with 0, 1, 2. 0xFFFF would be for "All of them"
int INT_DEVICE

Any suggestions ?

@L3nn0x
Copy link
Member

L3nn0x commented Apr 16, 2016

I don't know about the device_genericscreen

For me it would be stdout/stdin and a write function to a specified fd. So we can also write to a file.
Printf would be calling write with stdout

@azertyfun
Copy link
Member Author

Yeah, I know, once we have filesystem and stdin/stdout support you can add that to the screen driver, it won't change how the device manager works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants