Commit 28d8193f authored by ROOL's avatar ROOL 🤖

Participate in keyboard scan dependencies

Detail:
  Add keyboard scan code with list of modules that the kernel needs to do the same.
  Reorder the HALEntries to match Kernel-5_89.
Admin:
  Submission for USB bounty.

Version 0.03. Tagged as 'Titanium-0_03'
parent 0d6e2e11
/* (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 06 Feb 2016
#define Module_Date_CMHG 09 Sep 2017
#define Module_MajorVersion "0.02"
#define Module_Version 2
#define Module_MajorVersion "0.03"
#define Module_Version 3
#define Module_MinorVersion ""
#define Module_Date "06 Feb 2016"
#define Module_Date "09 Sep 2017"
#define Module_ApplicationDate "06-Feb-16"
#define Module_ApplicationDate "09-Sep-17"
#define Module_ComponentName "Titanium"
#define Module_ComponentPath "cddl/RiscOS/Sources/HAL/Titanium"
#define Module_FullVersion "0.02"
#define Module_HelpVersion "0.02 (06 Feb 2016)"
#define Module_LibraryVersionInfo "0:02"
#define Module_FullVersion "0.03"
#define Module_HelpVersion "0.03 (09 Sep 2017)"
#define Module_LibraryVersionInfo "0:3"
......@@ -66,7 +66,7 @@
IMPORT HAL_NVMemorySize
IMPORT HAL_NVMemoryPageSize
IMPORT HAL_NVMemoryIICAddress
IMPORT HAL_KbdScan
IMPORT HAL_KbdScanDependencies
IMPORT HAL_USBControllerInfo
IMPORT HAL_USBPortPower
IMPORT HAL_USBPortIRQStatus
......@@ -227,8 +227,8 @@ EntryTable
HALEntry HAL_UARTModemControl
HALEntry HAL_UARTModemStatus
HALEntry HAL_UARTDevice
HALEntry HAL_UARTDefault
HALEntry HAL_Reset
HALEntry HAL_DebugRX
HALEntry HAL_DebugTX
......@@ -249,39 +249,26 @@ EntryTable
HALEntry HAL_InitDevices
NullEntry ;HAL_KbdScanSetup
HALEntry HAL_KbdScan
NullEntry ;HAL_KbdScanFinish
NullEntry ;HAL_KbdScanInterrupt
HALEntry HAL_KbdScanDependencies
NullEntry ;Unused
NullEntry ;Unused
NullEntry ;Unused
HALEntry HAL_PhysInfo
HALEntry HAL_USBControllerInfo
HALEntry HAL_Reset
HALEntry HAL_IRQMax
NullEntry ;HAL_VideoRender
HALEntry HAL_USBControllerInfo
HALEntry HAL_USBPortPower
HALEntry HAL_USBPortIRQStatus
HALEntry HAL_USBPortIRQClear
NullEntry ;HAL_VideoIICOp
HALEntry HAL_USBPortDevice
HALEntry HAL_TimerIRQClear
HALEntry HAL_TimerIRQStatus
NullEntry ;HAL_ExtMachineID
NullEntry ;HAL_VideoFramestoreAddress
HALEntry HAL_UARTDefault
NullEntry ;HAL_VideoStartupMode
NullEntry ;HAL_VideoPixelFormatList
HALEntry HAL_USBPortDevice
EntryTableSize * (. - EntryTable):SHR:2
; HAL_Null
......
......@@ -30,13 +30,17 @@
AREA |KbdScan$$Code|, CODE, READONLY, PIC
EXPORT HAL_KbdScan
EXPORT HAL_KbdScanDependencies
; HAL_KbdScan
; <= a1 = scan result so far
HAL_KbdScan ROUT
MOV a1, #KbdFlag_Done
! 0, "TODO! Never finding a keyboard present"
; HAL_KbdScanDependencies
; <= a1 = list of modules
HAL_KbdScanDependencies ROUT
ADR a1, %FT10
MOV pc, lr
10
; Modules needed for keyboard scanning, no need to list those
; before 'FirstUnpluggableModule' since they can't be unplugged
DCB "SharedCLibrary,BufferManager,DeviceFS,USBDriver,"
DCB "XHCIDriver,InternationalKeyboard", 0
END
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