Commit e152c758 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Sanitise HAL_USBControllerInfo

Detail:
  s/Boot - For valid controllers, HAL_USBControllerInfo now always returns the correct USB struct size and fills in the controller type. The rest of the buffer is filled in only if the supplied size is large enough. This allows for proper probing of controllers without knowing the required buffer sizes beforehand.
Admin:
  Builds but untested at runtime


Version 0.03. Tagged as 'S3C2440-0_03'
parent 2c06725e
/* (0.02)
/* (0.03)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.02
#define Module_MajorVersion_CMHG 0.03
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 Jun 2011
#define Module_Date_CMHG 07 Jun 2012
#define Module_MajorVersion "0.02"
#define Module_Version 2
#define Module_MajorVersion "0.03"
#define Module_Version 3
#define Module_MinorVersion ""
#define Module_Date "04 Jun 2011"
#define Module_Date "07 Jun 2012"
#define Module_ApplicationDate "04-Jun-11"
#define Module_ApplicationDate "07-Jun-12"
#define Module_ComponentName "S3C2440"
#define Module_ComponentPath "castle/RiscOS/Sources/HAL/S3C2440"
#define Module_FullVersion "0.02"
#define Module_HelpVersion "0.02 (04 Jun 2011)"
#define Module_LibraryVersionInfo "0:2"
#define Module_FullVersion "0.03"
#define Module_HelpVersion "0.03 (07 Jun 2012)"
#define Module_LibraryVersionInfo "0:3"
......@@ -863,12 +863,15 @@ HAL_USBControllerInfo
; BL serialn
; LDMIA sp!,{r0-r4,lr}
STR r0,[r1] ;OHCI controller
STR r0,[r1,#4] ;Flags
LDR r0,USB_Address
STR r0,[r1,#8] ;Address
MOV r0, #26
STR r0,[r1,#12] ;Device
CMP r2,#16
MOV r0,#16
MOVLT pc,lr
STR r3,[r1] ;OHCI controller
STR r3,[r1,#4] ;Flags
LDR r3,USB_Address
STR r3,[r1,#8] ;Address
MOV r3, #26
STR r3,[r1,#12] ;Device
MOV pc,lr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment