Stubs 3.11 KB
Newer Older
Jeffrey Lee's avatar
Jeffrey Lee committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
; Copyright 2009 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
; Stub functions for unsupported/unimplemented HAL features

        GET     Hdr:ListOpts
        GET     Hdr:Macros
        GET     Hdr:System
        GET     Hdr:Machine.<Machine>
        GET     Hdr:ImageSize.<ImageSize>

        GET     Hdr:Proc
        GET     Hdr:OSEntries

        GET     hdr.omap3530
27
        GET     hdr.StaticWS
Jeffrey Lee's avatar
Jeffrey Lee committed
28 29 30 31 32 33 34 35
        GET     hdr.UART

        AREA    |Asm$$Code|, CODE, READONLY, PIC

        EXPORT   HAL_IICBuses
        EXPORT   HAL_NVMemoryType
        EXPORT   HAL_ATAControllerInfo

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
;        EXPORT  HAL_VideoFlybackDevice
;        EXPORT  HAL_Video_SetMode
;        EXPORT  HAL_Video_WritePaletteEntry
;        EXPORT  HAL_Video_WritePaletteEntries
;        EXPORT  HAL_Video_ReadPaletteEntry
;        EXPORT  HAL_Video_SetInterlace
;        EXPORT  HAL_Video_SetBlank
;        EXPORT  HAL_Video_SetPowerSave
;        EXPORT  HAL_Video_UpdatePointer
;        EXPORT  HAL_Video_SetDAG
;        EXPORT  HAL_Video_VetMode
;        EXPORT  HAL_Video_PixelFormats
;        EXPORT  HAL_Video_Features
;        EXPORT  HAL_Video_BufferAlignment
;        EXPORT  HAL_Video_OutputFormat
Jeffrey Lee's avatar
Jeffrey Lee committed
51 52 53 54 55 56
        EXPORT  HAL_KbdScanSetup
        EXPORT  HAL_KbdScan
        EXPORT  HAL_KbdScanFinish
        EXPORT  HAL_KbdScanInterrupt
        EXPORT  HAL_Reset

57
;        EXPORT  Video_init
Jeffrey Lee's avatar
Jeffrey Lee committed
58 59 60 61 62 63 64 65 66 67 68 69 70

HAL_NVMemoryType
        MOV     a1, #0 ; none available
        MOV     pc, lr

HAL_IICBuses
        MOV     a1, #0 ; none available
        MOV     pc, lr

HAL_ATAControllerInfo
        MOV     a1, #0
        MOV     pc, lr

71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
;Video_init
;HAL_Video_SetMode
;HAL_Video_WritePaletteEntry
;HAL_Video_WritePaletteEntries
;HAL_Video_SetInterlace
;HAL_Video_SetBlank
;HAL_Video_SetPowerSave
;HAL_Video_UpdatePointer
;HAL_Video_SetDAG
;        MOV     pc, lr
;
;HAL_Video_OutputFormat
;HAL_Video_VetMode
;        MOV     r0, #0
;        MOV     pc, lr
;
;HAL_VideoFlybackDevice
;        MOV     a1, #-1
;        MOV     pc, lr
;
;HAL_Video_PixelFormats
;        MOV     a1, #2_111111
;        MOV     pc, lr
;
;HAL_Video_ReadPaletteEntry ROUT
;        TEQ     a1, #0
;        TEQNE   a1, #2
;        BICEQ   a1, a2, #&000000FF      ; BBGGRR00
;        MOVNE   a1, #0
;        MOV     pc, lr
;
;HAL_Video_Features
;        MOV     a1, #2_010            ; no hw scroll, hw pointer, no interlace
;        MOV     pc, lr
;
;HAL_Video_BufferAlignment
;        MOV     a1, #4
;        MOV     pc, lr
Jeffrey Lee's avatar
Jeffrey Lee committed
109 110 111 112 113 114 115 116 117 118 119 120

HAL_KbdScan
        MOV     a1, #&80000000 ; scan complete, no keyboard
HAL_KbdScanSetup
HAL_KbdScanInterrupt
HAL_KbdScanFinish
        MOV     pc, lr

HAL_Reset
        B       HAL_Reset

        END