FreeBSD Bugzilla – Attachment 144016 Details for
Bug 191266
[patch] support Broadcom virtual UART
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add support for Broadcom 5725/5761/5762 UART
bge-uart-support.patch (text/plain), 1.68 KB, created by
Stephen Hurd
on 2014-06-22 09:32:46 UTC
(
hide
)
Description:
Add support for Broadcom 5725/5761/5762 UART
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2014-06-22 09:32:46 UTC
Size:
1.68 KB
patch
obsolete
>Index: uart_bus_pci.c >=================================================================== >--- uart_bus_pci.c (revision 267714) >+++ uart_bus_pci.c (working copy) >@@ -69,6 +69,7 @@ > const char *desc; > int rid; > int rclk; >+ int regshft; > }; > > static const struct pci_id pci_ns8250_ids[] = { >@@ -113,6 +114,7 @@ > { 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 UART", > 0x10, 16384000 }, > { 0x14e4, 0x4344, 0xffff, 0, "Sony Ericsson GC89 PC Card", 0x10}, >+{ 0x14e4, 0x160a, 0xffff, 0, "Broadcom TruManage UART", 0x10, 128 * DEFAULT_RCLK, 2}, > { 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 }, > { 0x1fd4, 0x1999, 0x1fd4, 0x0001, "Sunix SER5xxxx Serial Port", 0x10, > 8 * DEFAULT_RCLK }, >@@ -182,7 +184,7 @@ > return (ENXIO); > > match: >- result = uart_bus_probe(dev, 0, id->rclk, id->rid, 0); >+ result = uart_bus_probe(dev, id->regshft, id->rclk, id->rid, 0); > /* Bail out on error. */ > if (result > 0) > return (result); >Index: uart_core.c >=================================================================== >--- uart_core.c (revision 267714) >+++ uart_core.c (working copy) >@@ -352,12 +352,12 @@ > sc->sc_rrid = rid; > sc->sc_rtype = SYS_RES_IOPORT; > sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, &sc->sc_rrid, >- 0, ~0, uart_getrange(sc->sc_class), RF_ACTIVE); >+ 0, ~0, uart_getrange(sc->sc_class) << regshft, RF_ACTIVE); > if (sc->sc_rres == NULL) { > sc->sc_rrid = rid; > sc->sc_rtype = SYS_RES_MEMORY; > sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, >- &sc->sc_rrid, 0, ~0, uart_getrange(sc->sc_class), >+ &sc->sc_rrid, 0, ~0, uart_getrange(sc->sc_class) << regshft, > RF_ACTIVE); > if (sc->sc_rres == NULL) > return (ENXIO);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191266
: 144016