1. 04 Jul, 2020 1 commit
  2. 27 Jan, 2018 1 commit
    • ROOL's avatar
      Defined return on error · cca81a1d
      ROOL authored
      Detail:
        Ensure the returned status is defined if USBDriver_InsertTransfer fails (because USBDriver has gone).
        See similar in DWCDriver-0_34.
      
      Version 0.35. Tagged as 'MUSBDriver-0_35'
      cca81a1d
  3. 25 Nov, 2017 1 commit
    • ROOL's avatar
      Root hub interval correction · e9c15a2c
      ROOL authored
      Detail:
        HSHUBSTT use 12 (see DWCDriver-0_33).
      Admin:
        Found by pattern matching.
      
      Version 0.34. Tagged as 'MUSBDriver-0_34'
      e9c15a2c
  4. 18 Nov, 2017 1 commit
    • ROOL's avatar
      Debug build fix · d6c472a5
      ROOL authored
      Detail:
        Add missing logprintf().
      Admin:
        Submission for USB bounty.
      
      Version 0.33. Tagged as 'MUSBDriver-0_33'
      d6c472a5
  5. 23 Sep, 2017 2 commits
    • ROOL's avatar
      Remove HAL library variant · 3e8f7ee2
      ROOL authored
      Detail:
        Simplify the makefile by not building a HAL variant.
        cmodule.c: 2 fewer warnings
        musb.c/musb_debug.c/musb_peri.c/musb_root.c/musb_util.c/tps.c: remove usbhal.h include
        cmodule.h/musb_usb.c: USBHAL is no longer defined
        CMHG file changed to make Makefile
      Admin:
        Submission for USB bounty.
      
      Version 0.32. Tagged as 'MUSBDriver-0_32'
      3e8f7ee2
    • ROOL's avatar
      Common up NetBSD supporting functions · bd563b29
      ROOL authored
      Detail:
        port.c -> bsd_fns.c, and use the copy from EHCI/OHCI driver, minus the bus access functions not needed here.
      Admin:
        Submission for USB bounty.
        Not tagged, part 2 follows shortly.
      bd563b29
  6. 19 Aug, 2017 1 commit
    • ROOL's avatar
      Changes to header imports · 52499e34
      ROOL authored
      Detail:
        Use those in C:USB rather than reaching inside the adjacent USBDriver.
      Admin:
        Requires USBDriver-1_21.
      
      Version 0.31. Tagged as 'MUSBDriver-0_31'
      52499e34
  7. 15 Jul, 2017 1 commit
    • ROOL's avatar
      Repoint include path · 229e1066
      ROOL authored
      Admin:
        Reach into USBDriver rather than NetBSD.
      
      Version 0.30. Tagged as 'MUSBDriver-0_30'
      229e1066
  8. 18 Dec, 2016 1 commit
    • Jeffrey Lee's avatar
      HAL build fix · 3b355c5f
      Jeffrey Lee authored
      Detail:
        c/musb_hal - Add a dummy messages_file_lookup implementation for use with HAL builds of the code (as required by musb_peri.c / musb_root.c)
      Admin:
        Tested on BB-xM
      
      
      Version 0.29. Tagged as 'MUSBDriver-0_29'
      3b355c5f
  9. 17 Dec, 2016 2 commits
    • ROOL's avatar
      Internationalised · 8d9d1841
      ROOL authored
      Detail:
        Add support for standalone messages registration, and actually use the messages rather than just exporting them in ROM builds.
        Changed to use allocated error bases rather than 0.
        Sync with other HC for ease of comparison where possible.
      Admin:
        Submission for USB bounty.
        Tested on a BBxM.
      
      Version 0.28. Tagged as 'MUSBDriver-0_28'
      8d9d1841
    • ROOL's avatar
      Remove unused include · ea60d17e
      ROOL authored
      Admin:
        Fewer depends. Not tagged.
      ea60d17e
  10. 10 Dec, 2016 1 commit
    • ROOL's avatar
      Build fix · 934afc46
      ROOL authored
      Admin:
        Requires NetBSD-1_17
      934afc46
  11. 02 May, 2016 1 commit
  12. 26 Mar, 2016 1 commit
    • Jeffrey Lee's avatar
      Delete unused code · fa6d61cf
      Jeffrey Lee authored
      Detail:
        c/port - Less code, less bugs
      Admin:
        Builds, untested
      
      
      Version 0.26. Tagged as 'MUSBDriver-0_26'
      fa6d61cf
  13. 18 Nov, 2015 1 commit
  14. 15 Nov, 2015 1 commit
  15. 21 Aug, 2015 1 commit
    • Robert Sprowson's avatar
      Don't reach into USBDriver's back pocket · 0596bcb8
      Robert Sprowson authored
      cmodule.c:
        Use USBDriver.h from interface exports
      Makefile:
        Remove duplicated libs from debug build
        Remove relative reference to NetBSD component from VPATH
      !MkDebug:
        Select debug target so the right compiler switches are used
      musb.c/musb_debug.c/musb_peri.c/musb_root.c/musb_usb.c/musb_util.c/tps.c:
        Unused reference to USBDriver.h removed
      Built, but not tested.
      
      Version 0.23. Tagged as 'MUSBDriver-0_23'
      0596bcb8
  16. 01 Jun, 2014 1 commit
    • Jeffrey Lee's avatar
      Fix to allow building against NetBSD-0_85 · 04b3c2b9
      Jeffrey Lee authored
      Detail:
        c/cmodule - Don't use NetBSD/build/service.h, it no longer exists. Use the exported USB/USBDevFS.h instead. Fix service call reason codes to use USBDevFS names.
        c/musb, c/musb_debug, c/musb_hal, c/musb_peri, c/musb_root, c/musb_usb, c/musb_util, c/tps - Strip redundant #includes
      Admin:
        Tested in OMAP3 ROM build
        Build output is binary-identical to previous version
        Requires NetBSD-0_85
      
      
      Version 0.22. Tagged as 'MUSBDriver-0_22'
      04b3c2b9
  17. 27 May, 2014 1 commit
    • Jeffrey Lee's avatar
      Fix handling of short control transfers · 7dd2c2bc
      Jeffrey Lee authored
      Detail:
        c/musb - Updated musb_ep0_host() to treat a short control packet as the end of the transfer, as mandated by the USB spec. Also updated a few other pieces of code to ensure the transfer length is reported correctly if an error occurs.
        c/cmodule - Fix potential null pointer dereference when debugging enabled
        Makefile - Fix lack of DPRINTF() debug output in debug builds due to USB_DEBUG not being defined
      Admin:
        Tested on BB-xM with high processor vectors
        Fixes 99% of connected devices failing to initialise following the change to the device initialisation logic made to USBDriver in NetBSD-0_82 (initial device descriptor requests now request more data than is likely to be available, triggering a short packet/xfer response)
      
      
      Version 0.21. Tagged as 'MUSBDriver-0_21'
      7dd2c2bc
  18. 06 May, 2014 1 commit
  19. 30 Mar, 2013 1 commit
    • Jeffrey Lee's avatar
      Add re-entrancy check to USBDriver registration · cdcbfd8a
      Jeffrey Lee authored
      Detail:
        c/cmodule - Added a re-entrancy check to USBDriver registration, to avoid any shenanigans if we receive "USBDriver has started" service calls while in the middle of registering
      Admin:
        Tested on BB-xM
        Doesn't fix any known MUSBDriver-related issue, but is the same fix as was made to DWCDriver after the above-mentioned problem was found to be the cause of a hang on boot in recent Pi ROMs
      
      
      Version 0.19. Tagged as 'MUSBDriver-0_19'
      cdcbfd8a
  20. 23 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Perform some missing PHY initialisation · a846826b
      Jeffrey Lee authored
      Detail:
        c/tps - Added some extra PHY initialisation steps that are needed to get things working on Pandora
      Admin:
        Tested on Pandora
      
      
      Version 0.18. Tagged as 'MUSBDriver-0_18'
      a846826b
  21. 06 Jun, 2012 1 commit
    • Jeffrey Lee's avatar
      Misc housekeeping · 510fba3f
      Jeffrey Lee authored
      Detail:
        Makefile, !MkDebug,fd7 - Debug version of module can now be built just by passing "DEBUG=TRUE" to amu
        c/cmodule, c/musb_hal - Only accept USB controllers if HAL_USBControllerInfo says the struct size is an exact match with what we expect
        s/bufman - Delete unused file
        s/call_veneer, s/triggercbs - Use Entry/EXIT macros to avoid single-reg LDM/STM performance warnings. Convert tabs to spaces.
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.17. Tagged as 'MUSBDriver-0_17'
      510fba3f
  22. 04 Dec, 2011 1 commit
    • Jeffrey Lee's avatar
      Fix memory overwrites in root hub emulation · 894346c0
      Jeffrey Lee authored
      Detail:
        c/musb_root - Fixed device descriptor and config descriptor reads writing outside the destination buffer if the buffer was small enough.
      Admin:
        Tested in OMAP3 ROM
      
      
      Version 0.16. Tagged as 'MUSBDriver-0_16'
      894346c0
  23. 22 Aug, 2011 1 commit
    • Jeffrey Lee's avatar
      Fix data aborts in HAL build · ee726340
      Jeffrey Lee authored
      Detail:
        c/musb_peri, c/musb_root - Fixed some code in the root hub emulation that was writing to a global struct before copying it into the destination buffer. Although this works fine in ROM modules, it was causing data aborts in the HAL build due to lack of automatic RW data relocation by the compiler.
        c/musb - Removed reference to an old extern variable
      Admin:
        Tested on rev C2 BB
      
      
      Version 0.15. Tagged as 'MUSBDriver-0_15'
      ee726340
  24. 05 Aug, 2011 1 commit
    • Jeffrey Lee's avatar
      Update to work with zero page relocation. Remove ability to cancel transfers by pressing escape · e097f844
      Jeffrey Lee authored
      Detail:
        c/cmodule - Rework driver init/shutdown code to avoid null pointer dereference during Service_PreReset/USBDriver_Dying
        c/port - Removed ability to cancel transfers by pressing escape. Too dangerous for things like mass storage devices, and the code won't work anyway for the common case of being in the wimp
        s/triggercbs - Try using OS_ReadSysInfo 6 to get IRQsema ptr before falling back on legacy address
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 0.14. Tagged as 'MUSBDriver-0_14'
      e097f844
  25. 11 Jul, 2011 1 commit
    • Jeffrey Lee's avatar
      Fix NAK timeout handling · 65b870d8
      Jeffrey Lee authored
      Detail:
        c/musb, c/musb_debug, h/musb - Fixed NAK timeouts to not be treated as errors. Attempted to make use of NAK timeouts for yielding to other pending transfers, but ran into difficulties getting the timeout condition to clear properly. Disabling NAK intervals/timeouts entirely seems to be the safest option for now.
      Admin:
        Tested on rev C2 BB, rev A2 BB-xM
      
      
      Version 0.13. Tagged as 'MUSBDriver-0_13'
      65b870d8
  26. 22 May, 2011 1 commit
    • Jeffrey Lee's avatar
      Add support for HAL builds of MUSBDriver · ba823e81
      Jeffrey Lee authored
      Detail:
        Makefile - Now builds a HAL-compatible static library during the export libs phase
        !MkHAL,fd7 - Handy script for building the HAL lib
        c/musb_hal - HAL version of cmodule.c
        c/musb, c/musb_debug, c/musb_peri, c/musb_root, c/musb_usb, c/musb_util, c/tps, h/cmodule, h/musb, h/musb_util, h/tps - Changed to support the HAL build. Biggest change was getting rid of all global vars; everything is now done via the bus ptr instead.
        c/port - Removed microtime and moved riscos_irq_clear here, to match change made in main USB drivers
      Admin:
        HAL & non-HAL versions tested on rev C2 BB, rev A2 BB-xM, rev C1 TouchBook
        Needs latest Kernel & NetBSD USB drivers
      
      
      Version 0.12. Tagged as 'MUSBDriver-0_12'
      ba823e81
  27. 11 Apr, 2011 1 commit
    • Jeffrey Lee's avatar
      Restructure MUSBDriver source code, rework host mode endpoint handling, plus other misc changes · d1735c7c
      Jeffrey Lee authored
      Detail:
        c/musb_debug - New file containing debug code.
        c/musb_peri - Contains the code for handling peripheral mode, taken from c/musb
        c/musb_root - Contains the code for handling the USBDriver-required 'soft' hub, taken from c/musb
        c/musb_usb - Contains initialisation code and other misc USBDriver-related code, mostly taken from c/musb
        c/musb_util - Misc utility functions from c/musb
        h/musb_util, h/musb_usb - A couple of new header files to help with breaking things up. Might make sense to break h/musb_usb down further (or just consolidate everything back into h/musb)
        c/musb - Stripped out pretty much everything except code related to host-mode endpoint and interrupt handling. Instances of the new musb_multiplexer struct are used to handle endpoint allocation, and allocation is now performed on a per-usbd_xfer basis instead of on a per-pipe basis. This should allow the code to cope better with situations where the number of pipes is greater than the number of physical endpoints, although much work is still required.
        c/cmodule, c/port, c/tps, h/cmodule, h/musb - Misc tweaks and changes
      Admin:
        Tested on rev A2 BB-xM.
      
      
      Version 0.11. Tagged as 'MUSBDriver-0_11'
      d1735c7c
  28. 08 Feb, 2011 1 commit
  29. 14 Sep, 2010 1 commit
  30. 14 Aug, 2010 1 commit
    • Jeffrey Lee's avatar
      Add timeout handling to MUSBDriver, tidy code a bit · e82c1fbf
      Jeffrey Lee authored
      Detail:
        Makefile - rewritten to use CModule fragment instead of deprecated RAMCModule & ROMCModule fragments. Link stage also outputs symbol table to aid in debugging.
        c/cmodule, c/musb, h/musb - Add code to handle transfer timeouts
        c/musb - Fix a couple of compiler warnings, including a bug in root hub handling
      Admin:
        Tested on rev C2 beagleboard.
        Machine no longer hangs on boot with hub + keyboard connected to OTG port, but keyboard often fails to initialise and needs to be *USBReset or re-plugged.
      
      
      Version 0.08. Tagged as 'MUSBDriver-0_08'
      e82c1fbf
  31. 22 Jul, 2010 1 commit
    • Jeffrey Lee's avatar
      Update to use new bus registration API introduced in USBDriver 0.49 · f95df2df
      Jeffrey Lee authored
      Detail:
        c/cmodule - Now uses USBDriver_Version to check USBDriver version number, and passes API version to USBDriver when calling USBDriver_RegisterBus to allow USBDriver to perform its side of the checks
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.07. Tagged as 'MUSBDriver-0_07'
      f95df2df
  32. 28 Jun, 2010 1 commit
    • Jeffrey Lee's avatar
      Improve reliability of OTG cable detection, add support for USBD_FORCE_SHORT_XFER, tidy code a bit · f227bd5f
      Jeffrey Lee authored
      Detail:
        c/musb, h/musb - Added support for USBD_FORCE_SHORT_XFER flag. Also tidied the source a bit to use bools instead of ints for storing flags.
        c/tps, cmhg/modhead - Made OTG cable detection 100% reliable by getting rid of the USB_PRES interrupt code and instead using a ticker event to poll the STS_HW_CONDITIONS.STS_USB bit at regular intervals
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.06. Tagged as 'MUSBDriver-0_06'
      f227bd5f
  33. 20 Oct, 2009 1 commit
    • Jeffrey Lee's avatar
      Fix a couple of nasty bugs in MUSBDriver · 52784427
      Jeffrey Lee authored
      Detail:
        Allocation of bulk/interrupt endpoints has now been fixed so that two pipes won't end up claiming the same endpoint if the endpoint is idle at the time the second pipe searches for a free endpoint. Connecting multiple devices which rely on bulk endpoints (e.g. a mass storage device and a USB-LAN adaptor) now works properly.
        musb_receive_host() has also been fixed to deal with short packets properly, so devices which rely on them (e.g. USB-LAN adaptors) should now work properly.
      Admin:
        Tested on rev C2 beagleboard.
      
      
      Version 0.05. Tagged as 'MUSBDriver-0_05'
      52784427
  34. 19 Oct, 2009 1 commit
    • Jeffrey Lee's avatar
      Fix queueing of control transfers in MUSBDriver · 21248759
      Jeffrey Lee authored
      Detail:
        The host_ep0_queue structure wasn't being initialised properly, leading to the driver failing to properly queue USB control transactions when acting in host mode. This fix should fix a number of serious soft-lock issues that can occur when using the driver (seen so far with USB mass storage devices)
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.04. Tagged as 'MUSBDriver-0_04'
      21248759
  35. 02 Oct, 2009 1 commit
    • Jeffrey Lee's avatar
      Fix MUSBDriver so compiled module has correct date + version, fix assembler... · 2d4501b0
      Jeffrey Lee authored
      Fix MUSBDriver so compiled module has correct date + version, fix assembler veneer setup code to sync the caches properly
      
      Detail:
        cmhg/modhead - Now corrected so that the module is built with the correct version number & date, taken from the VersionNum file
        c/cmodule, s/call_veneer - init_veneer and build_veneer fixed to call OS_SyncrhoniseCodeAreas after creating the veneers
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.03. Tagged as 'MUSBDriver-0_03'
      2d4501b0
  36. 28 Sep, 2009 1 commit
  37. 06 Sep, 2009 1 commit
    • Jeffrey Lee's avatar
      Initial version of USB host support for MUSBDriver · 1a847d27
      Jeffrey Lee authored
      Detail:
        c/tps, h/tps, Makefile - Some rather rough code to wake up the MUSB controller and cause it to enter host mode when the OTG cable is detected. Needs some tidying up and improvement to deal with any other drivers that need to interact with the TWL/TPS.
        c/musb, h/musb - Initial host-mode support for MUSBDriver. Control, bulk & interrupt endpoints are implemented. Isochronous is not. Lots of bits need improving, but it's stable enough for owners of rev B beagleboards to make use of.
        cmhg/modhead, c/cmodule - Improved debugging code
      Admin:
        Tested on rev C2 beagleboard
      
      
      Version 0.02. Tagged as 'MUSBDriver-0_02'
      1a847d27
  38. 07 Jul, 2009 1 commit