root/platform/a1100/sub/100c/stubs_entry.S

/* [<][>][^][v][top][bottom][index][help] */
   1 // !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
   2 #include "stubs_asm.h"
   3 
   4 // Camera info:
   5 //   DRYOS R31 (DRYOS version 2.3, release #0031)
   6 //   Firmware Ver GM1.00C   // Found @ 0xffc584f0, "GM1.00C" @ 0xffc584fd
   7 //   Firmware build timestamp: Apr 24 2009 19:12:45
   8 //   Canon PowerShot A1100 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 31
  12 //   PLATFORMID = 12739 (0x31c3) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0012ed1c
  15 //   KEYSYS = d4                 // Found @ 0xffff1d04
  16 //   NEED_ENCODED_DISKBOOT = 2   // Found @ 0xffff1d14
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xffd0346c
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffd0342c
  19 
  20 // Detected address ranges:
  21 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  22 // RAM data 0x00001900 - 0x0000b1b0 copied from 0xffed53a0 (  39088 bytes)
  23 
  24 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  25 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  26 //NHSTUB(ExpCtrlTool_StopContiAE              ,0xffc1f9c4) //104        *** != 0xffc1faac
  27 //NHSTUB(SetAE_ShutterSpeed                   ,0xffe425b8) //102        *** != 0xffe3d994
  28 //NHSTUB(kbd_pwr_off                          ,0xffc30b9c) //  2 64%    *** != 0xffc30bac
  29 NHSTUB(kbd_pwr_on                             ,0xffc30b5c) //  2 82%
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ffdfeb44 -> ffebbd0c
  33 // Mode 16398 in firmware but not in current modemap
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x0000c624) // Found @0xffc11a0c
  37 DEF(physw_run                               ,0x00001c24) // Found @0xffc11680
  38 DEF(physw_sleep_delay                       ,0x00001c22) // Found @0xffc11680
  39 DEF(levent_table                            ,0xffe93cdc) // Found @0xffe93cdc
  40 DEF(FlashParamsTable                        ,0xffebbee0) // Found @0xffebbee0
  41 DEF(movie_status                            ,0x00005630) // Found @0xffcf8080
  42 DEF(canon_menu_active                       ,0x00002b7c) // Found @0xffc59f18
  43 DEF(canon_shoot_menu_active                 ,0x000068c9) // Found @0xffd2bd58
  44 DEF(playrec_mode                            ,0x000028f0) // Found @0xffc4d504
  45 DEF(zoom_status                             ,0x000098d0) // Found @0xffe00374
  46 DEF(some_flag_for_af_scan                   ,0x00005af4) // Found @0xffcfa7a4
  47 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  48 // each entry contains 3 int value(s), the first is the zoom focus length.
  49 // there are 8 entries in the table - set NUM_FL to 8
  50 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  51 DEF(zoom_busy                               ,0x00005560) // Found @0xffcf4788
  52 DEF(focus_busy                              ,0x00005478) // Found @0xffcefa8c
  53 DEF(recreview_hold                          ,0x000030e0) // Found @0xffc65938
  54 // Palette colour tables  found @ 0xffea322c
  55 DEF(active_palette_buffer                   ,0x000075a4) // Found @0xffd67c68
  56 DEF(palette_buffer_ptr                      ,0x000075b8) // Found @0xffd67b1c
  57 // Offset from start of palette_buffer to color data = 16 (Found @0xffd669b0)
  58 // Camera appears to have only 1 RAW buffer @ 0x4139e56c (Found @0xffe458b4)
  59 DEF(fileio_semaphore                        ,0x000025fc) // Found @0xffc3d460
  60 DEF(exmem_alloc_table                       ,0x000125e8) // Found @0xffc538bc
  61 DEF(exmem_types_table                       ,0xffed6470) // Found @0x000029d0
  62 DEF_CONST(exmem_type_count                  ,0x00000012)
  63 DEF(imager_active                           ,0x00001e90) // Found @0xffc22090 (0x1e8c + 4)
  64 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xffd1c0f0
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xffc2c594
  68 //void *vid_get_viewport_fb()      { return (void*)0x4076fcc0; }             // Found @0xffe433a8
  69 DEF(viewport_fb_d                           ,0x00002688) // Found 0x2630 (@0xffc404f0) + 0x58 (@0xffc40528)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2630+0x58)); } // Found @0xffc404f0 & 0xffc40528
  71 DEF(jpeg_count_str                          ,0x0002f4a8) // Found @0xffd60210
  72 //char *camera_jpeg_count_str()    { return (char*)0x0002f4a8; }             // Found @0xffd60210
  73 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xffd1cb34
  74 
  75 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  76 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe70c7c, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00040000 // Found @0xffe70c88, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe70c64, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00001000 // Found @0xffe70c40, levent 0x900 (non-inverted logic)
  83 //#define ANALOG_AV_IDX       2
  84 
  85 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  86 //static KeyMap keymap[] = {
  87 //    { 1, KEY_UP              ,0x00000100 }, // Found @0xffe70b68, levent 0x04
  88 //    { 1, KEY_DOWN            ,0x00000200 }, // Found @0xffe70b74, levent 0x05
  89 //    { 1, KEY_RIGHT           ,0x00000400 }, // Found @0xffe70b80, levent 0x07
  90 //    { 1, KEY_LEFT            ,0x00000800 }, // Found @0xffe70b8c, levent 0x06
  91 //    { 1, KEY_SET             ,0x00001000 }, // Found @0xffe70b98, levent 0x08
  92 //    { 1, KEY_MENU            ,0x00002000 }, // Found @0xffe70ba4, levent 0x09
  93 //    { 1, KEY_DISPLAY         ,0x00004000 }, // Found @0xffe70bb0, levent 0x0a
  94 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe70c1c, levent 0x01
  95 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe70c1c, levent 0x01
  96 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe70c10, levent 0x00
  97 //    { 2, KEY_ZOOM_IN         ,0x00000040 }, // Found @0xffe70c28, levent 0x02
  98 //    { 2, KEY_ZOOM_OUT        ,0x00000080 }, // Found @0xffe70c34, levent 0x03
  99 //    { 2, KEY_POWER           ,0x00002000 }, // Found @0xffe70c4c, levent 0x600 (uses inverted logic in physw_status)
 100 //    { 2, KEY_PLAYBACK        ,0x00004000 }, // Found @0xffe70c58, levent 0x601 (uses inverted logic in physw_status)
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_RAW_ROWPIX    4104 // Found @0xffcc7c84
 107 //#define CAM_RAW_ROWS      3048 // Found @0xffcc7c8c
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xffc16e84
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffebdf44
 111 
 112 // Known propcases
 113 // //      PROPCASE_AFSTEP 13
 114 // #define PROPCASE_FOCUS_STATE 18
 115 // #define PROPCASE_AV 23
 116 // #define PROPCASE_BV 34
 117 // //      PROPCASE_DELTA_DIGITALGAIN 77
 118 // #define PROPCASE_DELTA_SV 79
 119 // //      PROPCASE_DELTA_ND 80
 120 // #define PROPCASE_EV_CORRECTION_2 207
 121 // #define PROPCASE_ORIENTATION_SENSOR 219
 122 // #define PROPCASE_SV_MARKET 246
 123 // //      PROPCASE_SVFIX 247
 124 // #define PROPCASE_TV 262
 125 // Guessed propset: 2
 126 
 127 // Misc stuff
 128 DEF(ctypes, 0xffe6fa66)
 129 
 130 // EXMEM types:
 131 // EXMEM_RAMDISK        0
 132 // EXMEM_COM            1
 133 // EXMEM_FORMATTER      2
 134 // EXMEM_SHADING        3
 135 // EXMEM_FAMODE         4
 136 // EXMEM_FIRMUP         5
 137 // EXMEM_FIRMUP_VRAM    6
 138 // EXMEM_FIRMUP_INFLATE 7
 139 // EXMEM_DVLPWORK       8
 140 // EXMEM_EVF            9
 141 // EXMEM_SCRIPT         10
 142 // EXMEM_FILESTORE      11
 143 // EXMEM_MOVIE_REC      12
 144 // EXMEM_MOVIE_PLY      13
 145 // EXMEM_WIDE           14
 146 // EXMEM_NARROW         15
 147 // EXMEM_CRAW_REC       16
 148 // EXMEM_PCEVF          17
 149 
 150 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 151 // pointer to TCB area: 0x19ec, found @ 0xffc0574c
 152 
 153 // LED table init @ 0xffcade78
 154 // LED #1: 0xc0220128, offset 0x84
 155 // LED #2: 0xc02200dc, offset 0x244
 156 // LED #3: 0xc02200cc, offset 0x204
 157 // LED #4: 0xc0220124, offset 0x4
 158 // LED #5: 0xc0220120, offset 0x44
 159 
 160 // For capt_seq.c
 161 DEF(_nrflag,0x5ad8) // Found @ ffcfc4d4 (0x5ae0) & ffcfc4f4 (-0x08)
 162 //static long *nrflag = (long*)(0x5ae0-0x08);  // Found @ ffcfc4d4 & ffcfc4f0
 163 
 164 // Stubs below matched 100%.
 165 //    Name                                     Address                Comp to stubs_entry_2.S
 166 NHSTUB(AllocateUncacheableMemory              ,0xffc16e40) //112
 167 NHSTUB(Close                                  ,0xffc138e0) //120
 168 NHSTUB(CreateBinarySemaphore                  ,0xffc16620) //115
 169 NHSTUB(CreateTask                             ,0xffc0afac) //120
 170 NHSTUB(DebugAssert                            ,0xffc0b284) //107
 171 NHSTUB(DeleteDirectory_Fut                    ,0xffc13270) //116
 172 NHSTUB(DeleteFile_Fut                         ,0xffc1318c) //112
 173 NHSTUB(DoAELock                               ,0xffc15088) //120
 174 NHSTUB(DoAFLock                               ,0xffc14f40) //120
 175 NHSTUB(EnterToCompensationEVF                 ,0xffc14ff0) //104
 176 NHSTUB(ExecuteEventProcedure                  ,0xffc555c0) //104
 177 NHSTUB(ExitFromCompensationEVF                ,0xffc15034) //104
 178 NHSTUB(ExitTask                               ,0xffc0b23c) //120
 179 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc1f880) //104
 180 NHSTUB(Fclose_Fut                             ,0xffc13308) //120
 181 NHSTUB(Feof_Fut                               ,0xffc134f4) //  1
 182 NHSTUB(Fflush_Fut                             ,0xffc13530) //  1
 183 NHSTUB(Fgets_Fut                              ,0xffc1345c) //  1
 184 NHSTUB(Fopen_Fut                              ,0xffc132c8) //120
 185 NHSTUB(Fread_Fut                              ,0xffc133b4) //120
 186 NHSTUB(FreeUncacheableMemory                  ,0xffc16e80) //112
 187 NHSTUB(Fseek_Fut                              ,0xffc134a8) //120
 188 NHSTUB(Fwrite_Fut                             ,0xffc13408) //120
 189 NHSTUB(GetBatteryTemperature                  ,0xffc32c44) //102
 190 NHSTUB(GetCCDTemperature                      ,0xffc32bd0) //102
 191 NHSTUB(GetCurrentAvValue                      ,0xffcf18a8) //120
 192 NHSTUB(GetCurrentShutterSpeed                 ,0xffc6ce34) //120
 193 NHSTUB(GetDrive_ClusterSize                   ,0xffc3ed84) //  5
 194 NHSTUB(GetDrive_FreeClusters                  ,0xffc3eddc) //  5
 195 NHSTUB(GetDrive_TotalClusters                 ,0xffc3edb0) //  5
 196 NHSTUB(GetFocusLensSubjectDistance            ,0xffcf08f4) //102
 197 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffcf0cd4) //  3
 198 NHSTUB(GetKbdState                            ,0xffc30b28) //109
 199 NHSTUB(GetMemInfo                             ,0xffc03be4) //115
 200 NHSTUB(GetOpticalTemperature                  ,0xffc32cbc) //120
 201 NHSTUB(GetParameterData                       ,0xffd1caf4) //101
 202 NHSTUB(GetPropertyCase                        ,0xffc593fc) //102
 203 NHSTUB(GetSystemTime                          ,0xffdf5404) //120
 204 NHSTUB(GetVRAMHPixelsSize                     ,0xffc959f0) //120
 205 NHSTUB(GetVRAMVPixelsSize                     ,0xffc959fc) //120
 206 NHSTUB(GetZoomLensCurrentPoint                ,0xffcf4b00) //120
 207 NHSTUB(GetZoomLensCurrentPosition             ,0xffded338) //102
 208 NHSTUB(GiveSemaphore                          ,0xffc1685c) //120
 209 NHSTUB(IsStrobeChargeCompleted                ,0xffc870ec) //102
 210 NHSTUB(LEDDrive                               ,0xffc30088) //120
 211 NHSTUB(LocalTime                              ,0xffc53284) //115
 212 NHSTUB(LockMainPower                          ,0xffc5cce8) //120
 213 NHSTUB(MakeDirectory_Fut                      ,0xffc13200) //116
 214 NHSTUB(MoveFocusLensToDistance                ,0xffe3fdd8) //102
 215 NHSTUB(MoveIrisWithAv                         ,0xffdf2648) //120
 216 NHSTUB(MoveZoomLensWithPoint                  ,0xffdf2bd4) //120
 217 NHSTUB(MoveOpticalZoomAt                      ,0xffc14b08) //109
 218 NHSTUB(Open                                   ,0xffc138b8) //120
 219 NHSTUB(PB2Rec                                 ,0xffc5e760) //104
 220 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc46da8) //120
 221 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc46d80) //120
 222 NHSTUB(PT_PlaySound                           ,0xffc469bc) //102
 223 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5c310) //120
 224 NHSTUB(PostLogicalEventToUI                   ,0xffc5c35c) //120
 225 NHSTUB(PutInNdFilter                          ,0xffdf2a38) //102
 226 NHSTUB(PutOutNdFilter                         ,0xffdf2a5c) //102
 227 NHSTUB(Read                                   ,0xffc09ae4) //120
 228 NHSTUB(ReadFastDir                            ,0xffddf844) //  1
 229 NHSTUB(Rec2PB                                 ,0xffc5fb48) //104
 230 NHSTUB(RefreshPhysicalScreen                  ,0xffd6b630) //104
 231 NHSTUB(RenameFile_Fut                         ,0xffc13138) //  1
 232 NHSTUB(Restart                                ,0xffc18594) //122
 233 NHSTUB(SetAutoShutdownTime                    ,0xffc5cd5c) //120
 234 NHSTUB(SetCurrentCaptureModeType              ,0xffc632cc) //120
 235 NHSTUB(SetFileAttributes                      ,0xffc13c0c) //  1
 236 NHSTUB(SetFileTimeStamp                       ,0xffc13bbc) //  1
 237 NHSTUB(SetLogicalEventActive                  ,0xffc5ca64) //120
 238 NHSTUB(SetParameterData                       ,0xffd1ca64) //101
 239 NHSTUB(SetPropertyCase                        ,0xffc592f8) //102
 240 NHSTUB(SetScriptMode                          ,0xffc5cab4) //120
 241 NHSTUB(SleepTask                              ,0xffc16ac4) //120
 242 NHSTUB(TakeSemaphore                          ,0xffc1678c) //120
 243 NHSTUB(TurnOffBackLight                       ,0xffc67d48) //104
 244 NHSTUB(TurnOnBackLight                        ,0xffc67d30) //104
 245 NHSTUB(TurnOnDisplay                          ,0xffc2c65c) //120
 246 NHSTUB(TurnOffDisplay                         ,0xffc2c66c) //120
 247 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd0d490) //120
 248 NHSTUB(UnlockAE                               ,0xffc150ac) //120
 249 NHSTUB(UnlockAF                               ,0xffc14f78) //120
 250 NHSTUB(UnlockMainPower                        ,0xffc5cc3c) //120
 251 NHSTUB(UnsetZoomForMovie                      ,0xffd226ec) //104
 252 NHSTUB(UpdateMBROnFlash                       ,0xffc3ebdc) //105
 253 NHSTUB(VbattGet                               ,0xffc10318) //120
 254 NHSTUB(Write                                  ,0xffc1398c) //120
 255 NHSTUB(WriteSDCard                            ,0xffce4748) //108
 256 NHSTUB(_log                                   ,0xffe6d86c) //111
 257 NHSTUB(_log10                                 ,0xffe6c7b0) //112
 258 NHSTUB(_pow                                   ,0xffe6c920) //121
 259 NHSTUB(_sqrt                                  ,0xffe6ebd4) //  1
 260 NHSTUB(add_ptp_handler                        ,0xffdb1584) //121
 261 NHSTUB(apex2us                                ,0xffd6c6e8) //121
 262 NHSTUB(close                                  ,0xffc098fc) //109
 263 NHSTUB(err_init_task                          ,0xffc04e2c) //111
 264 NHSTUB(exmem_alloc                            ,0xffc53eb8) //103
 265 NHSTUB(exmem_free                             ,0xffc53f30) //103
 266 NHSTUB(free                                   ,0xffc03a3c) //112
 267 NHSTUB(get_nd_value                           ,0xffdeaeec) //123
 268 NHSTUB(get_current_nd_value                   ,0xffdeaea8) //122
 269 NHSTUB(kbd_p1_f                               ,0xffc11a90) //109
 270 NHSTUB(kbd_p1_f_cont                          ,0xffc11a9c) //109
 271 NHSTUB(kbd_p2_f                               ,0xffc1134c) //109
 272 NHSTUB(kbd_read_keys                          ,0xffc11a0c) //109
 273 NHSTUB(kbd_read_keys_r2                       ,0xffc304a4) //109
 274 NHSTUB(lseek                                  ,0xffc13a20) //120
 275 NHSTUB(malloc                                 ,0xffc03968) //112
 276 NHSTUB(memcmp                                 ,0xffc0cc60) //120
 277 NHSTUB(memcpy                                 ,0xffc6b9dc) //120
 278 NHSTUB(memset                                 ,0xffd6b9d0) //120
 279 NHSTUB(mkdir                                  ,0xffc13c84) //109
 280 NHSTUB(mktime_ext                             ,0xffc6c248) //  1
 281 NHSTUB(open                                   ,0xffc0984c) //109
 282 NHSTUB(OpenFastDir                            ,0xffddf7b0) //  1
 283 NHSTUB(closedir                               ,0xffddf914) //  1
 284 NHSTUB(qsort                                  ,0xffe265e4) //  1
 285 NHSTUB(rand                                   ,0xffc0cd68) //121
 286 NHSTUB(realloc                                ,0xffc03b1c) //115
 287 NHSTUB(reboot_fw_update                       ,0xffde3328) //106
 288 NHSTUB(set_control_event                      ,0xffc5c798) //111
 289 NHSTUB(srand                                  ,0xffc0cd5c) //122
 290 NHSTUB(stat                                   ,0xffc13aec) //  1
 291 NHSTUB(strcat                                 ,0xffc6b7f0) //  1
 292 NHSTUB(strchr                                 ,0xffc6b878) //  1
 293 NHSTUB(strcmp                                 ,0xffc0cbf8) //120
 294 NHSTUB(strcpy                                 ,0xffc0cbe0) //120
 295 NHSTUB(strftime                               ,0xffc6bc50) //  1
 296 NHSTUB(strlen                                 ,0xffc0cc3c) //120
 297 NHSTUB(strncmp                                ,0xffc6b82c) //  1
 298 NHSTUB(strncpy                                ,0xffc1c67c) //  1
 299 NHSTUB(strrchr                                ,0xffd6b9a8) //  1
 300 NHSTUB(strtol                                 ,0xffc1c8b4) //101
 301 NHSTUB(strtolx                                ,0xffc1c6b8) //109
 302    DEF(task_CaptSeq                           ,0xffc49060) //120
 303    DEF(task_DvlpSeqTask                       ,0xffcfd1e4) //120
 304    DEF(task_ExpDrv                            ,0xffc7ddcc) //120
 305    DEF(task_FileWrite                         ,0xffddb384) //120
 306    DEF(task_InitFileModules                   ,0xffc60508) //120
 307    DEF(task_MovieRecord                       ,0xffcf82d4) //120
 308    DEF(task_PhySw                             ,0xffc1167c) //120
 309 NHSTUB(time                                   ,0xffc53138) //109
 310 NHSTUB(vsprintf                               ,0xffc0cba4) //115
 311 NHSTUB(EngDrvRead                             ,0xffc128cc) //102
 312 NHSTUB(PTM_GetCurrentItem                     ,0xffc5d718) //105
 313 NHSTUB(CancelHPTimer                          ,0xffc54ca8) //119
 314 NHSTUB(SetHPTimerAfterNow                     ,0xffc54ba0) //119
 315 NHSTUB(PT_MFOn                                ,0xffc46e20) //120
 316 NHSTUB(PT_MFOff                               ,0xffc46e30) //120
 317 NHSTUB(GetAdChValue                           ,0xffc2e0a4) //120
 318 NHSTUB(get_ptp_buf_size                       ,0xffc98580) //122
 319 NHSTUB(get_ptp_file_buf                       ,0xffdb3100) //121

/* [<][>][^][v][top][bottom][index][help] */