FreeBSD Bugzilla – Attachment 18346 Details for
Bug 33004
Patch for USB (uhci)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
usb2.patch
usb2.patch (text/x-diff; charset="iso-8859-15"), 1.18 KB, created by
Thorsten Greiner
on 2002-02-22 09:25:18 UTC
(
hide
)
Description:
usb2.patch
Filename:
MIME Type:
Creator:
Thorsten Greiner
Created:
2002-02-22 09:25:18 UTC
Size:
1.18 KB
patch
obsolete
>Index: uhci_pci.c >=================================================================== >RCS file: /usr/CVS-Repository/src/sys/pci/uhci_pci.c,v >retrieving revision 1.26.2.4 >diff -u -r1.26.2.4 uhci_pci.c >--- uhci_pci.c 15 Aug 2001 17:03:08 -0000 1.26.2.4 >+++ uhci_pci.c 22 Feb 2002 08:55:18 -0000 >@@ -125,8 +125,13 @@ > uhci_pci_resume(device_t self) > { > uhci_softc_t *sc = device_get_softc(self); >+ u_int32_t csr; > > uhci_power(PWR_RESUME, sc); >+ /* Enable the device. */ >+ csr = pci_read_config(self, PCI_COMMAND_STATUS_REG, 4); >+ pci_write_config(self, PCI_COMMAND_STATUS_REG, >+ csr | PCIM_CMD_BUSMASTEREN, 4); > bus_generic_resume(self); > > return 0; >@@ -182,6 +187,7 @@ > uhci_softc_t *sc = device_get_softc(self); > int rid; > int err; >+ u_int32_t csr; > > rid = PCI_UHCI_BASE_REG; > sc->io_res = bus_alloc_resource(self, SYS_RES_IOPORT, &rid, >@@ -275,6 +281,11 @@ > uhci_pci_detach(self); > return ENXIO; > } >+ >+ /* Enable the device. */ >+ csr = pci_read_config(self, PCI_COMMAND_STATUS_REG, 4); >+ pci_write_config(self, PCI_COMMAND_STATUS_REG, >+ csr | PCIM_CMD_BUSMASTEREN, 4); > > /* Set the PIRQD enable bit and switch off all the others. We don't > * want legacy support to interfere with us
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 33004
:
18345
| 18346