HomeFreeBSD

Don't expose the uart_ops structure directly, but instead have
rS168281Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Don't expose the uart_ops structure directly, but instead have
it obtained through the uart_class structure. This allows us
to declare the uart_class structure as weak and as such allows
us to reference it even when it's not compiled-in.
It also allows is to get the uart_ops structure by name, which
makes it possible to implement the dt tag handling in uart_getenv().
The side-effect of all this is that we're using the uart_class
structure more consistently which means that we now also have
access to the size of the bus space block needed by the hardware
when we map the bus space, eliminating any hardcoding.

Details

Provenance
marcelAuthored on
Parents
rS168280: Introduce a variable TARGETS that can be set on the make command line
Branches
Unknown
Tags
Unknown

Event Timeline