Advertisement
Guest User

Untitled

a guest
Jul 25th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. diff --git a/sys/dev/uart/uart_bus.h b/sys/dev/uart/uart_bus.h
  2. index 556a9228493c..e3078c8bd0eb 100644
  3. --- a/sys/dev/uart/uart_bus.h
  4. +++ b/sys/dev/uart/uart_bus.h
  5. @@ -83,6 +83,7 @@ struct uart_softc {
  6. struct resource *sc_ires; /* Interrupt resource. */
  7. void *sc_icookie;
  8. int sc_irid;
  9. + int sc_quirks;
  10. struct callout sc_timer;
  11.  
  12. int sc_callout:1; /* This UART is opened for callout. */
  13. diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c
  14. index fe722cb3eb2d..ba59df892a96 100644
  15. --- a/sys/dev/uart/uart_core.c
  16. +++ b/sys/dev/uart/uart_core.c
  17. @@ -493,7 +493,8 @@ uart_bus_sysdev(device_t dev)
  18. }
  19.  
  20. int
  21. -uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan)
  22. +uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int chan,
  23. + int quirks)
  24. {
  25. struct uart_softc *sc;
  26. struct uart_devinfo *sysdev;
  27. @@ -563,6 +564,7 @@ uart_bus_probe(device_t dev, int regshft, int regiowidth, int rclk, int rid, int
  28. }
  29. }
  30.  
  31. + sc->sc_quirks = quirks;
  32. error = UART_PROBE(sc);
  33. bus_release_resource(dev, sc->sc_rtype, sc->sc_rrid, sc->sc_rres);
  34. return ((error) ? error : BUS_PROBE_DEFAULT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement