root/platform/a2400/sub/100d/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 R50 (DRYOS version 2.3, release #0050)
   6 //   Firmware Ver GM1.00D   // Found @ 0xff8801e0, "GM1.00D" @ 0xff8801ed
   7 //   Firmware build timestamp: Feb 10 2012 15:47:42
   8 //   Canon PowerShot A2400 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 50
  12 //   PLATFORMID = 12873 (0x3249) // Found @ 0xfffe0040
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x00158080
  15 //   KEYSYS = d4c                // Found @ 0xffff1d28
  16 //   NEED_ENCODED_DISKBOOT = 8   // Found @ 0xffff1d38
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff96e150
  18 //   ARAM_HEAP_SIZE  = 0x22000   // Found @ 0xff96e114
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM code 0x003f1000 - 0x004005d4 copied from 0xffc022ac (  62932 bytes)
  23 // RAM data 0x00001900 - 0x0000d2bc copied from 0xffbf68f0 (  47548 bytes)
  24 
  25 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  26 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  27 //NHSTUB(DeleteFile_Fut                       ,0xff830e44) //  1 90%        == 0xff830e44
  28 // ERROR: MakeDirectory_Fut is not found.                  //--- ---    *** != 0xff831954
  29 // ERROR: rand is not found.                               //--- ---    *** != 0x00000000
  30 // ERROR: srand is not found.                              //--- ---    *** != 0x00000000
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa83524 -> ffb9f4b8
  34 // No problems found with modemap table.
  35 
  36 // Values below can be overridden in 'stubs_min.S':
  37 DEF(physw_status                            ,0x00031440) // Found @0xff82edb0
  38 DEF(physw_run                               ,0x00001c18) // Found @0xff82e960
  39 DEF(physw_sleep_delay                       ,0x00001c20) // Found @0xff82e960
  40 DEF(levent_table                            ,0xffb5b640) // Found @0xffb5b640
  41 DEF(FlashParamsTable                        ,0xffb9f710) // Found @0xffb9f710
  42 DEF(movie_status                            ,0x0000645c) // Found @0xff95e388
  43 DEF(video_compression_rate                  ,0x0000649c) // Found @0xff95efa4
  44 DEF(full_screen_refresh                     ,0x00008768) // Found @0xff9d83ac
  45 DEF(canon_menu_active                       ,0x00002ed0) // Found @0xff881c78
  46 DEF(canon_shoot_menu_active                 ,0x000078b9) // Found @0xff9a05b0
  47 DEF(playrec_mode                            ,0x00002c20) // Found @0xff875b90
  48 DEF(zoom_status                             ,0x0000b790) // Found @0xffa86cbc
  49 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  50 // each entry contains 2 int value(s), the first is the zoom focus length.
  51 // there are 64 entries in the table - set NUM_FL to 64
  52 DEF(focus_len_table                         ,0xfffeabc8) // Found @0xfffeabc8
  53 DEF(zoom_busy                               ,0x000062ec) // Found @0xff959250
  54 DEF(focus_busy                              ,0x00006158) // Found @0xff95468c
  55 DEF(recreview_hold                          ,0x0000347c) // Found @0xff88f588
  56 // Palette colour tables  found @ 0xffb6c5f8
  57 DEF(palette_control                         ,0x00008768) // Found @0xff9d8328
  58 DEF(active_palette_buffer                   ,0x00008770) // Found @0xff9d832c
  59 DEF(palette_buffer_ptr                      ,0x00008774) // Found @0xff9d86c0
  60 DEF(palette_buffer                          ,0x000b2628) // Found @0xff9d86d0
  61 // Offset from start of palette_buffer to color data = 4 (Found @0xffab9e1c)
  62 DEF(viewport_buffers                        ,0xffb102a4) // Found @0xff849c9c
  63 DEF(active_viewport_buffer                  ,0x000020b4) // Found @0xff849a04
  64 // Camera appears to have only 1 RAW buffer @ 0x420b7fc0 (Found @0xffae2e40)
  65 DEF(fileio_semaphore                        ,0x00002910) // Found @0xff864944
  66 DEF(exmem_alloc_table                       ,0x00037354) // Found @0xff87b580
  67 DEF(exmem_types_table                       ,0xffbf7cf4) // Found @0x00002d04
  68 DEF_CONST(exmem_type_count                  ,0x00000017)
  69 DEF(imager_active                           ,0x00001fec) // Found @0xff846544 (0x1fe8 + 4)
  70 DEF_CONST(uiprop_count                      ,0x0000008d) // Found @0xff989cc8
  71 
  72 // Values below go in 'lib.c':
  73 //void *vid_get_bitmap_fb()        { return (void*)0x40411000; }             // Found @0xff852df0
  74 //void *vid_get_viewport_fb()      { return (void*)0x40566b80; }             // Found @0xffae0064
  75 DEF(viewport_fb_d                           ,0x000029b4) // Found 0x2960 (@0xff867a78) + 0x54 (@0xff867ab0)
  76 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2960+0x54)); } // Found @0xff867a78 & 0xff867ab0
  77 DEF(jpeg_count_str                          ,0x000b1ebc) // Found @0xff9ce53c
  78 //char *camera_jpeg_count_str()    { return (char*)0x000b1ebc; }             // Found @0xff9ce53c
  79 //int get_flash_params_count(void) { return 0xa6; }                          // Found @0xff98a6a0
  80 
  81 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  82 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffb1076c, levent 0x20a
  83 //#define SD_READONLY_IDX     2
  84 //#define USB_MASK            0x00040000 // Found @0xffb10774, levent 0x202
  85 //#define USB_IDX             2
  86 //#define BATTCOVER_FLAG      0x00080000 // Found @0xffb1077c, levent 0x205
  87 //#define BATTCOVER_IDX       2
  88 //#define ANALOG_AV_FLAG      0x00000200 // Found @0xffb106ec, levent 0x200 (non-inverted logic)
  89 //#define ANALOG_AV_IDX       0
  90 
  91 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  92 //static KeyMap keymap[] = {
  93 //    { 0, KEY_ZOOM_OUT        ,0x00001000 }, // Found @0xffb106f4, levent 0x03
  94 //    { 0, KEY_ZOOM_IN         ,0x00002000 }, // Found @0xffb106fc, levent 0x02
  95 //    { 1, KEY_SHOOT_FULL      ,0x00300000 }, // Found @0xffb1070c, levent 0x01
  96 //    { 1, KEY_SHOOT_FULL_ONLY ,0x00200000 }, // Found @0xffb1070c, levent 0x01
  97 //    { 1, KEY_SHOOT_HALF      ,0x00100000 }, // Found @0xffb10704, levent 0x00
  98 //    { 1, KEY_UP              ,0x00400000 }, // Found @0xffb10714, levent 0x04
  99 //    { 1, KEY_DOWN            ,0x00800000 }, // Found @0xffb1071c, levent 0x05
 100 //    { 1, KEY_RIGHT           ,0x01000000 }, // Found @0xffb10724, levent 0x07
 101 //    { 1, KEY_LEFT            ,0x02000000 }, // Found @0xffb1072c, levent 0x06
 102 //    { 1, KEY_MENU            ,0x04000000 }, // Found @0xffb10734, levent 0x09
 103 //    { 1, KEY_SET             ,0x08000000 }, // Found @0xffb1073c, levent 0x08
 104 //    { 1, KEY_VIDEO           ,0x10000000 }, // Found @0xffb10744, levent 0x1a
 105 //    { 1, KEY_HELP            ,0x20000000 }, // Found @0xffb1074c, levent 0x14
 106 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffb10754, levent 0x100
 107 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffb1075c, levent 0x101
 108 //    { 0, 0, 0 }
 109 //};
 110 
 111 // Values below go in 'platform_camera.h':
 112 //#define CAM_DRYOS         1
 113 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 114 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
 115 //#define CAM_RAW_ROWPIX    4704 // Found @0xff92f42c
 116 //#define CAM_RAW_ROWS      3504 // Found @0xff92f438
 117 //#undef  CAM_UNCACHED_BIT
 118 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8342dc
 119 //#define CAM_DATE_FOLDER_NAMING 0x400 // Found @0xffa4a0d8 (pass as 3rd param to GetImageFolder)
 120 //#define PARAM_CAMERA_NAME 4 // Found @0xffb9e820
 121 
 122 // Known propcases
 123 // //      PROPCASE_AFSTEP 13
 124 // #define PROPCASE_FOCUS_STATE 18
 125 // #define PROPCASE_AV 23
 126 // #define PROPCASE_BV 34
 127 // //      PROPCASE_DELTA_DIGITALGAIN 77
 128 // #define PROPCASE_DELTA_SV 79
 129 // //      PROPCASE_DELTA_ND 80
 130 // #define PROPCASE_EV_CORRECTION_2 211
 131 // #define PROPCASE_ORIENTATION_SENSOR 223
 132 // #define PROPCASE_SV_MARKET 250
 133 // //      PROPCASE_SVFIX 251
 134 // #define PROPCASE_TV 266
 135 // Guessed propset: 4, 5
 136 
 137 // Misc stuff
 138 DEF(ctypes, 0xffb0faf4)
 139 
 140 // EXMEM types:
 141 // EXMEM_RAMDISK        0
 142 // EXMEM_COM            1
 143 // EXMEM_FORMATTER      2
 144 // EXMEM_SHADING        3
 145 // EXMEM_FAMODE         4
 146 // EXMEM_FIRMUP         5
 147 // EXMEM_FIRMUP_VRAM    6
 148 // EXMEM_FIRMUP_INFLATE 7
 149 // EXMEM_DVLPWORK       8
 150 // EXMEM_EVF            9
 151 // EXMEM_SCRIPT         10
 152 // EXMEM_GPS            11
 153 // EXMEM_FACEAUTH       12
 154 // EXMEM_FILESTORE      13
 155 // EXMEM_MOVIE_REC      14
 156 // EXMEM_MOVIE_PLY      15
 157 // EXMEM_WIDE           16
 158 // EXMEM_NARROW         17
 159 // EXMEM_GIS_MODE       18
 160 // EXMEM_TRIPODHDR_MODE 19
 161 // EXMEM_HSHQ_MODE      20
 162 // EXMEM_CRAW_REC       21
 163 // EXMEM_PCEVF          22
 164 
 165 // ISR flag: 0x1968, pointer to current task's control block: 0x1964
 166 // pointer to TCB area: 0x19f4, found @ 0xffc04444
 167 
 168 // LED table init @ 0xff90df10
 169 // LED #1: 0xc0220120, offset 0x4
 170 
 171 // For capt_seq.c
 172 DEF(_nrflag,0x88a4) // Found @ ff9e4f08 (0x88a4) & ff9e4f44 (+0x00)
 173 //static long *nrflag = (long*)(0x88a4+0x00);  // Found @ ff9e4f08 & ff9e4f44
 174 //#define NR_AUTO (0)                          // have to explictly reset value back to 0 to enable auto
 175 
 176 // Stubs below matched 100%.
 177 //    Name                                     Address                Comp to stubs_entry_2.S
 178 NHSTUB(AllocateUncacheableMemory              ,0xff834294) //112
 179 NHSTUB(Close                                  ,0xff8314b8) //120
 180 NHSTUB(CreateBinarySemaphore                  ,0x003f74c8) //115
 181 NHSTUB(CreateTask                             ,0x003f6824) //120
 182 NHSTUB(DebugAssert                            ,0x003f6afc) //107
 183 NHSTUB(DeleteDirectory_Fut                    ,0xff830eb8) //116
 184 NHSTUB(DoAELock                               ,0xff833034) //120
 185 NHSTUB(DoAFLock                               ,0xff832d38) //120
 186 NHSTUB(EnterToCompensationEVF                 ,0xff832f9c) //104
 187 NHSTUB(ExecuteEventProcedure                  ,0xff87d1a0) //104
 188 NHSTUB(ExitFromCompensationEVF                ,0xff832fe0) //104
 189 NHSTUB(ExitTask                               ,0x003f6ab4) //120
 190 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff83d720) //104
 191 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff83d87c) //104
 192 NHSTUB(Fclose_Fut                             ,0xff830f50) //120
 193 NHSTUB(Feof_Fut                               ,0xff83113c) //  1
 194 NHSTUB(Fflush_Fut                             ,0xff831178) //  1
 195 NHSTUB(Fgets_Fut                              ,0xff8310a4) //  6
 196 NHSTUB(Fopen_Fut                              ,0xff830f10) //120
 197 NHSTUB(Fread_Fut                              ,0xff830ffc) //120
 198 NHSTUB(FreeUncacheableMemory                  ,0xff8342d4) //112
 199 NHSTUB(Fseek_Fut                              ,0xff8310f0) //120
 200 NHSTUB(Fwrite_Fut                             ,0xff831050) //120
 201 NHSTUB(GetBatteryTemperature                  ,0xff8589e0) //102
 202 NHSTUB(GetCCDTemperature                      ,0xff85896c) //102
 203 NHSTUB(GetCurrentAvValue                      ,0xff956250) //120
 204 NHSTUB(GetCurrentShutterSpeed                 ,0xff89c908) //120
 205 NHSTUB(GetDrive_ClusterSize                   ,0xff8664cc) //122
 206 NHSTUB(GetDrive_FreeClusters                  ,0xff866524) //119
 207 NHSTUB(GetDrive_TotalClusters                 ,0xff8664fc) //119
 208 NHSTUB(GetFocusLensSubjectDistance            ,0xff955450) //102
 209 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff9558a0) //  3
 210 NHSTUB(GetImageFolder                         ,0xff9389ac) //122
 211 NHSTUB(GetKbdState                            ,0xff8569ec) //109
 212 NHSTUB(GetMemInfo                             ,0xff81509c) //115
 213 NHSTUB(GetOpticalTemperature                  ,0xff858a54) //120
 214 NHSTUB(GetParameterData                       ,0xff98a660) //101
 215 NHSTUB(GetPropertyCase                        ,0xff881218) //102
 216 NHSTUB(GetSystemTime                          ,0xffa75924) //120
 217 NHSTUB(GetVRAMHPixelsSize                     ,0xff84bd7c) //120
 218 NHSTUB(GetVRAMVPixelsSize                     ,0xff84bd88) //120
 219 NHSTUB(GetZoomLensCurrentPoint                ,0xff9596d0) //120
 220 NHSTUB(GetZoomLensCurrentPosition             ,0xffa66a78) //102
 221 NHSTUB(GiveSemaphore                          ,0x003f7704) //120
 222 NHSTUB(IsStrobeChargeCompleted                ,0xff8cb1e4) //102
 223 NHSTUB(LEDDrive                               ,0xff96058c) //120
 224 NHSTUB(LocalTime                              ,0x003fb1b8) //115
 225 NHSTUB(LockMainPower                          ,0xff885ac8) //120
 226 NHSTUB(MakeSDCardBootable                     ,0xff86675c) //105
 227 NHSTUB(MoveFocusLensToDistance                ,0xffadc11c) //102
 228 NHSTUB(MoveIrisWithAv                         ,0xffa70d5c) //120
 229 NHSTUB(MoveZoomLensWithPoint                  ,0xffa71490) //120
 230 NHSTUB(Open                                   ,0xff8313f0) //120
 231 NHSTUB(PB2Rec                                 ,0xff888810) //104
 232 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff86eab4) //120
 233 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff86ea8c) //120
 234 NHSTUB(PT_PlaySound                           ,0xff8779dc) //122
 235 NHSTUB(PostLogicalEventForNotPowerType        ,0xff8851bc) //120
 236 NHSTUB(PostLogicalEventToUI                   ,0xff885208) //120
 237 NHSTUB(PutInNdFilter                          ,0xffa71268) //102
 238 NHSTUB(PutOutNdFilter                         ,0xffa7128c) //102
 239 NHSTUB(Read                                   ,0xff815b58) //120
 240 NHSTUB(ReadFastDir                            ,0xffa56f9c) //115
 241 NHSTUB(Rec2PB                                 ,0xff888850) //104
 242 NHSTUB(RefreshPhysicalScreen                  ,0xff897430) //104
 243 NHSTUB(RenameFile_Fut                         ,0xff830db0) //116
 244 NHSTUB(Restart                                ,0xff835aa8) //122
 245 NHSTUB(ScreenLock                             ,0xff898450) //117
 246 NHSTUB(ScreenUnlock                           ,0xff8984b4) //117
 247 NHSTUB(SetAE_ShutterSpeed                     ,0xffadf23c) //102
 248 NHSTUB(SetAutoShutdownTime                    ,0xff885b3c) //120
 249 NHSTUB(SetCurrentCaptureModeType              ,0xff88c9e8) //120
 250 NHSTUB(SetFileAttributes                      ,0xff8318bc) //  6
 251 NHSTUB(SetFileTimeStamp                       ,0xff831844) //  6
 252 NHSTUB(SetLogicalEventActive                  ,0xff885844) //120
 253 NHSTUB(SetParameterData                       ,0xff98a5d0) //101
 254 NHSTUB(SetPropertyCase                        ,0xff881090) //102
 255 NHSTUB(SetScriptMode                          ,0xff885894) //120
 256 NHSTUB(SleepTask                              ,0x003f79b0) //120
 257 NHSTUB(TakeSemaphore                          ,0x003f7634) //120
 258 NHSTUB(TurnOffBackLight                       ,0xff892548) //104
 259 NHSTUB(TurnOnBackLight                        ,0xff892530) //104
 260 NHSTUB(TurnOnDisplay                          ,0xff8531e0) //120
 261 NHSTUB(TurnOffDisplay                         ,0xff8531f0) //120
 262 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff97c1a0) //120
 263 NHSTUB(UnlockAE                               ,0xff833058) //120
 264 NHSTUB(UnlockAF                               ,0xff832d70) //120
 265 NHSTUB(UnlockMainPower                        ,0xff885a1c) //120
 266 NHSTUB(UnsetZoomForMovie                      ,0xff990e30) //104
 267 NHSTUB(VbattGet                               ,0xff82c3cc) //120
 268 NHSTUB(Write                                  ,0xff83150c) //120
 269 NHSTUB(WriteSDCard                            ,0xff948710) //108
 270 NHSTUB(_log                                   ,0x003fcce0) //111
 271 NHSTUB(_log10                                 ,0x003fd220) //112
 272 NHSTUB(_pow                                   ,0x003fd398) //121
 273 NHSTUB(_sqrt                                  ,0x003fefbc) //  6
 274 NHSTUB(add_ptp_handler                        ,0xffa1ac68) //121
 275 NHSTUB(apex2us                                ,0xff9de728) //121
 276 NHSTUB(close                                  ,0xff8159b4) //109
 277 NHSTUB(err_init_task                          ,0xff81437c) //111
 278 NHSTUB(exmem_alloc                            ,0xff87bb74) //101
 279 NHSTUB(exmem_free                             ,0xff87bbec) //101
 280 NHSTUB(free                                   ,0xff812f78) //112
 281 NHSTUB(get_nd_value                           ,0xffa64668) //123
 282 NHSTUB(get_current_nd_value                   ,0xffa64608) //122
 283 NHSTUB(kbd_p1_f                               ,0xff82ee00) //109
 284 NHSTUB(kbd_p1_f_cont                          ,0xff82ee0c) //109
 285 NHSTUB(kbd_p2_f                               ,0xff82e5f8) //109
 286 NHSTUB(kbd_read_keys                          ,0xff82edb0) //109
 287 NHSTUB(kbd_read_keys_r2                       ,0xff856508) //109
 288 NHSTUB(lseek                                  ,0xff8316d4) //120
 289 NHSTUB(malloc                                 ,0xff812f20) //112
 290 NHSTUB(memcmp                                 ,0xff81ae30) //120
 291 NHSTUB(memcpy                                 ,0xff837214) //120
 292 NHSTUB(memset                                 ,0xff9dc9b8) //120
 293 NHSTUB(mkdir                                  ,0xff831954) //121
 294 NHSTUB(mktime_ext                             ,0xff898980) //  1
 295 NHSTUB(open                                   ,0xff815904) //109
 296 NHSTUB(OpenFastDir                            ,0xffa56e48) //115
 297 NHSTUB(closedir                               ,0xffa56df8) //121
 298 NHSTUB(get_fstype                             ,0xff866544) //122
 299 NHSTUB(qsort                                  ,0xff9dc958) //  6
 300 NHSTUB(realloc                                ,0xff9dca34) //115
 301 NHSTUB(reboot_fw_update                       ,0xffa5c378) //106
 302 NHSTUB(set_control_event                      ,0xff885504) //111
 303 NHSTUB(stat                                   ,0xff83171c) //109
 304 NHSTUB(strcat                                 ,0xff899000) //  1
 305 NHSTUB(strchr                                 ,0xff812dec) //  1
 306 NHSTUB(strcmp                                 ,0xff81af2c) //120
 307 NHSTUB(strcpy                                 ,0xff81ae18) //120
 308 NHSTUB(strftime                               ,0xff8989cc) //113
 309 NHSTUB(strlen                                 ,0xff812e38) //120
 310 NHSTUB(strncmp                                ,0xff812da0) //  1
 311 NHSTUB(strncpy                                ,0xff812d64) //  1
 312 NHSTUB(strrchr                                ,0xff812e10) //  1
 313 NHSTUB(strtol                                 ,0xff837200) //101
 314 NHSTUB(strtolx                                ,0xff837004) //109
 315    DEF(task_CaptSeq                           ,0xff8712dc) //120
 316    DEF(task_DvlpSeqTask                       ,0xff965eb0) //120
 317    DEF(task_ExpDrv                            ,0xff8b0198) //120
 318    DEF(task_FileWrite                         ,0xffa557fc) //120
 319    DEF(task_InitFileModules                   ,0xff889004) //120
 320    DEF(task_MovieRecord                       ,0xff95f834) //120
 321    DEF(task_PhySw                             ,0xff82e95c) //120
 322 NHSTUB(time                                   ,0x003fb794) //  6
 323 NHSTUB(vsprintf                               ,0xff81acc8) //115
 324 NHSTUB(EngDrvRead                             ,0xff82fc40) //102
 325 NHSTUB(PTM_GetCurrentItem                     ,0xff8862c4) //105
 326 NHSTUB(DisableISDriveError                    ,0xffa71e8c) //120
 327 NHSTUB(CancelHPTimer                          ,0xff87c888) //119
 328 NHSTUB(SetHPTimerAfterNow                     ,0xff87c780) //119
 329 NHSTUB(PT_MFOn                                ,0xff86eb64) //120
 330 NHSTUB(PT_MFOff                               ,0xff86eb74) //120
 331 NHSTUB(GetAdChValue                           ,0xff85468c) //120
 332 NHSTUB(get_ptp_buf_size                       ,0xff8f4e48) //122
 333 NHSTUB(get_ptp_file_buf                       ,0xffa1c73c) //121

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