Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   fvdl
Date:           Tue Dec 21 16:41:24 UTC 2004

Modified Files:
        src/sys/dev/pci: usb_pci.c
        src/sys/dev/usb: ehci.c ehcivar.h ohci.c ohcivar.h uhci.c uhcivar.h
            usb_mem.c usb_mem.h

Log Message:
Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.

The amount can be configured as USB_MEM_RESERVE. The default value is
256k.

Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/sys/dev/pci/usb_pci.c
cvs rdiff -r1.89 -r1.90 src/sys/dev/usb/ehci.c
cvs rdiff -r1.15 -r1.16 src/sys/dev/usb/ehcivar.h
cvs rdiff -r1.152 -r1.153 src/sys/dev/usb/ohci.c
cvs rdiff -r1.33 -r1.34 src/sys/dev/usb/ohcivar.h
cvs rdiff -r1.182 -r1.183 src/sys/dev/usb/uhci.c
cvs rdiff -r1.36 -r1.37 src/sys/dev/usb/uhcivar.h
cvs rdiff -r1.27 -r1.28 src/sys/dev/usb/usb_mem.c
cvs rdiff -r1.20 -r1.21 src/sys/dev/usb/usb_mem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index