Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sys/dev/uart/uart_bus.h b/sys/dev/uart/uart_bus.h
- index 556a9228493c..e3078c8bd0eb 100644
- --- a/sys/dev/uart/uart_bus.h
- +++ b/sys/dev/uart/uart_bus.h
- @@ -83,6 +83,7 @@ struct uart_softc {
- struct resource *sc_ires; /* Interrupt resource. */
- void *sc_icookie;
- int sc_irid;
- + int sc_quirks;
- struct callout sc_timer;
- int sc_callout:1; /* This UART is opened for callout. */
- diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c
- index fe722cb3eb2d..ba59df892a96 100644
- --- a/sys/dev/uart/uart_core.c
- +++ b/sys/dev/uart/uart_core.c
- @@ -493,7 +493,8 @@ uart_bus_sysdev(device_t dev)
- }
- int
- -uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan)
- +uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan,
- + int quirks)
- {
- struct uart_softc *sc;
- struct uart_devinfo *sysdev;
- @@ -563,6 +564,7 @@ uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int
- }
- }
- + sc->sc_quirks = quirks;
- error = UART_PROBE(sc);
- bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres);
- return ((error) ? error : BUS_PROBE_DEFAULT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement