Re: USB output in ucom

Emmanuel Dreyfus <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Tue, Jul 15, 2025 at 03:41:16PM -0000, Michael van Elst wrote:
> It can only work if USB is used in polling mode, which usually also means
> that you must not use that USB controller for anything else.

I note support for USB polling is already present for ukbd to be
used as console input. It seeùs it would not be very complicated
to use the same logic for console input.

On the ouput side, I got some success with cnputc feeding a
thread through a ring buffer, and the thread takes care of USB
output. That will not work in DDB though, since the thread 
will not have the opportunity to get sceduled.

-- 
Emmanuel Dreyfus
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.