root/platform/ixus80_sd1100/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 R23 (DRYOS version 2.3, release #0023)
   6 //   Firmware Ver GM1.00C   // Found @ 0xff86be94, "GM1.00C" @ 0xff86bea1
   7 //   Firmware build timestamp: Jan  8 2008 16:56:15
   8 //   Possible corrupt firmware dump - file size too small for start address 0xff810000
   9 //     file size = 7.92MB, should be 7.94MB
  10 //   Canon DIGITAL IXUS 82 IS
  11 
  12 // Values for makefile.inc
  13 //   DIGIC = 30# DIGIC III
  14 //   PLATFORMOSVER = 23
  15 //   PLATFORMID = 12676# (0x3184) Found @ 0xfffe0130
  16 //   MAXRAMADDR = 0x01ffffff
  17 //   MEMISOSTART = 0x000bff60
  18 //   KEYSYS = d3enc# Found @ 0xffff3308
  19 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff32e8
  20 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffa277f0
  21 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffa277b0
  22 
  23 // Detected address ranges:
  24 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  25 // RAM data 0x00001900 - 0x0000ee8c copied from 0xffb126fc (  54668 bytes)
  26 
  27 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
  28 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
  29 //NHSTUB(PutInNdFilter                        ,0xffa237cc) //102        *** != 0xffa7aad0
  30 //NHSTUB(PutOutNdFilter                       ,0xffa237f0) //102        *** != 0xffa7ab08
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa37724 -> ffaede90
  34 // Mode  2598 in firmware but not in current modemap
  35 // Mode  2603 in firmware but not in current modemap
  36 
  37 // Values below can be overridden in 'stubs_min.S':
  38 DEF(physw_status                            ,0x00010370) // Found @0xff821efc
  39 DEF(physw_run                               ,0x00001c00) // Found @0xff821b98
  40 DEF(physw_sleep_delay                       ,0x00001bfe) // Found @0xff821b98
  41 DEF(levent_table                            ,0xffacac6c) // Found @0xffacac6c
  42 DEF(FlashParamsTable                        ,0xffaee050) // Found @0xffaee050
  43 DEF(movie_status                            ,0x000053a4) // Found @0xff859b9c
  44 DEF(canon_menu_active                       ,0x000094e8) // Found @0xff94cb3c
  45 DEF(canon_shoot_menu_active                 ,0x00009e2d) // Found @0xff969e40
  46 DEF(playrec_mode                            ,0x00005534) // Found @0xff860ee8
  47 DEF(zoom_status                             ,0x0000d1cc) // Found @0xffa38f24
  48 DEF(some_flag_for_af_scan                   ,0x0000cf50) // Found @0xffa24144
  49 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  50 // each entry contains 3 int value(s), the first is the zoom focus length.
  51 // there are 7 entries in the table - set NUM_FL to 7
  52 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  53 DEF(zoom_busy                               ,0x000085f0) // Found @0xff92ee60
  54 DEF(focus_busy                              ,0x000084fc) // Found @0xff92aa0c
  55 DEF(recreview_hold                          ,0x00005dc4) // Found @0xff87ccf8
  56 // Camera appears to have only 1 RAW buffer @ 0x10f3f400 (Found @0xffa81f2c)
  57 DEF(fileio_semaphore                        ,0x000029e4) // Found @0xff850b00
  58 DEF(exmem_alloc_table                       ,0x00019ea4) // Found @0xff8670a4
  59 DEF(exmem_types_table                       ,0xffb16408) // Found @0x0000560c
  60 DEF_CONST(exmem_type_count                  ,0x00000012)
  61 DEF(imager_active                           ,0x00001ef0) // Found @0xff83627c (0x1eec + 4)
  62 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xff95aa14
  63 DEF(cameracon_state                         ,0x000059d0) // Found @0xff874d00
  64 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff83e91c
  67 //void *vid_get_viewport_fb()      { return (void*)0x1065ade0; }             // Found @0xffa7fd18
  68 DEF(viewport_fb_d                           ,0x00005224) // Found 0x51d4 (@0xff852e8c) + 0x50 (@0xff852ec4)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x51d4+0x50)); } // Found @0xff852e8c & 0xff852ec4
  70 DEF(jpeg_count_str                          ,0x0004c2c4) // Found @0xff9a0e30
  71 //char *camera_jpeg_count_str()    { return (char*)0x0004c2c4; }             // Found @0xff9a0e30
  72 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xff95b458
  73 
  74 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  75 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffaa8a9c, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00040000 // Found @0xffaa8aa8, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaa8a84, levent 0x905
  80 //#define BATTCOVER_IDX       2
  81 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffaa8994, levent 0x900 (non-inverted logic)
  82 //#define ANALOG_AV_IDX       0
  83 
  84 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  85 //static KeyMap keymap[] = {
  86 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffaa89e8, levent 0x600
  87 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffaa8a00, levent 0x01
  88 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffaa8a00, levent 0x01
  89 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffaa89f4, levent 0x00
  90 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffaa8a0c, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffaa8a18, levent 0x03
  92 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffaa8a24, levent 0x06
  93 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffaa8a30, levent 0x07
  94 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffaa8a3c, levent 0x05
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffaa8a48, levent 0x04
  96 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffaa8a54, levent 0x08
  97 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffaa8a60, levent 0x0a
  98 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffaa8a6c, levent 0x09
  99 //    { 0, 0, 0 }
 100 //};
 101 
 102 // Values below go in 'platform_camera.h':
 103 //#define CAM_DRYOS         1
 104 //#define CAM_RAW_ROWPIX    3336 // Found @0xffa79640
 105 //#define CAM_RAW_ROWS      2480 // Found @0xffa79648
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82866c
 108 //#define PARAM_CAMERA_NAME 4 // Found @0xffaf0124
 109 
 110 // Below goes in 'filewrite.c' or 'platform_camera.h':
 111 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa08ee8
 112 
 113 // Known propcases
 114 // //      PROPCASE_AFSTEP 13
 115 // #define PROPCASE_FOCUS_STATE 18
 116 // #define PROPCASE_AV 23
 117 // #define PROPCASE_BV 34
 118 // //      PROPCASE_DELTA_DIGITALGAIN 77
 119 // #define PROPCASE_DELTA_SV 79
 120 // //      PROPCASE_DELTA_ND 80
 121 // #define PROPCASE_EV_CORRECTION_2 207
 122 // #define PROPCASE_ORIENTATION_SENSOR 219
 123 // #define PROPCASE_SV_MARKET 246
 124 // //      PROPCASE_SVFIX 247
 125 // #define PROPCASE_TV 262
 126 // Guessed propset: 2
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffaa858e)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK     0
 133 // EXMEM_COM         1
 134 // EXMEM_COMTMP      2
 135 // EXMEM_FORMATTER   3
 136 // EXMEM_SHADING     4
 137 // EXMEM_FAMODE      5
 138 // EXMEM_FIRMUP      6
 139 // EXMEM_FIRMUP_VRAM 7
 140 // EXMEM_DVLPWORK    8
 141 // EXMEM_EVF         9
 142 // EXMEM_SCRIPT      10
 143 // EXMEM_FILESTORE   11
 144 // EXMEM_MOVIE_REC   12
 145 // EXMEM_MOVIE_PLY   13
 146 // EXMEM_WIDE        14
 147 // EXMEM_NARROW      15
 148 // EXMEM_CRAW_REC    16
 149 // EXMEM_PCEVF       17
 150 
 151 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 152 // pointer to TCB area: 0x19f4, found @ 0xff815ee4
 153 
 154 // LED table init @ 0xff8e8f10
 155 // LED #1: 0xc02200d4, offset 0x204
 156 // LED #2: 0xc0220138, offset 0x84
 157 // LED #3: 0xc02200d0, offset 0xc4
 158 // LED #4: 0xc0220134, offset 0x4
 159 // LED #5: 0xc0220130, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x8d14) // Found @ ff939e90 (0x8d14)
 163 //static long *nrflag = (long*)(0x8d14);       // Found @ ff939e90
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff828630) //112
 168 NHSTUB(Close                                  ,0xff823e54) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff81b608) //115
 170 NHSTUB(CreateTask                             ,0xff81b8e0) //120
 171 NHSTUB(DebugAssert                            ,0xff81bdb8) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff8237e4) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xff823700) //112
 174 NHSTUB(DeleteSemaphore                        ,0xff81b6c8) //120
 175 NHSTUB(DoAELock                               ,0xff82603c) //120
 176 NHSTUB(DoAFLock                               ,0xff825c4c) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff825f48) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff869180) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff825f98) //104
 180 NHSTUB(ExitTask                               ,0xff81bb70) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff832a98) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff832bdc) //104
 183 NHSTUB(Fclose_Fut                             ,0xff82387c) //120
 184 NHSTUB(Feof_Fut                               ,0xff823a68) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff823aa4) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff8239d0) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff82383c) //120
 188 NHSTUB(Fread_Fut                              ,0xff823928) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff828664) //112
 190 NHSTUB(Fseek_Fut                              ,0xff823a1c) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff82397c) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff845214) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff8451a4) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff92c420) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff8935e8) //120
 196 NHSTUB(GetDrive_ClusterSize                   ,0xff84f0d4) //  1
 197 NHSTUB(GetDrive_FreeClusters                  ,0xff84f13c) //  1
 198 NHSTUB(GetDrive_TotalClusters                 ,0xff84f108) //  1
 199 NHSTUB(GetFocusLensSubjectDistance            ,0xff92b518) //102
 200 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92b824) //  1
 201 NHSTUB(GetKbdState                            ,0xff842a04) //109
 202 NHSTUB(GetMemInfo                             ,0xff813c40) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff845284) //120
 204 NHSTUB(GetParameterData                       ,0xff95b418) //101
 205 NHSTUB(GetPropertyCase                        ,0xff86cd80) //102
 206 NHSTUB(GetSystemTime                          ,0xffa27044) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c5d1c) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c5d28) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff92f1c4) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa1d084) //102
 211 NHSTUB(GiveSemaphore                          ,0xff81b844) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8bae5c) //102
 213 NHSTUB(LEDDrive                               ,0xff842228) //120
 214 NHSTUB(LocalTime                              ,0xff866844) //115
 215 NHSTUB(LockMainPower                          ,0xff873894) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff823774) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffa7c844) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa233e4) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa23968) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff8254c4) //109
 221 NHSTUB(Open                                   ,0xff823e2c) //120
 222 NHSTUB(PB2Rec                                 ,0xff876538) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85ba08) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85b9e0) //120
 225 NHSTUB(PT_PlaySound                           ,0xff85b064) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff872f04) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff872f50) //120
 228 NHSTUB(Read                                   ,0xff81a15c) //120
 229 NHSTUB(ReadFastDir                            ,0xffa0c13c) //  1
 230 NHSTUB(Rec2PB                                 ,0xff876568) //104
 231 NHSTUB(RefreshPhysicalScreen                  ,0xff9aabf8) //104
 232 NHSTUB(RenameFile_Fut                         ,0xff8236ac) //  1
 233 NHSTUB(Restart                                ,0xff829ea8) //122
 234 NHSTUB(SetAE_ShutterSpeed                     ,0xffa7ef28) //102
 235 NHSTUB(SetAutoShutdownTime                    ,0xff873908) //120
 236 NHSTUB(SetCurrentCaptureModeType              ,0xff87a4b0) //120
 237 NHSTUB(SetDate                                ,0xffa80948) //120
 238 NHSTUB(SetFileAttributes                      ,0xff824180) //  1
 239 NHSTUB(SetFileTimeStamp                       ,0xff824130) //  1
 240 NHSTUB(SetLogicalEventActive                  ,0xff873630) //  1
 241 NHSTUB(SetParameterData                       ,0xff95b388) //101
 242 NHSTUB(SetPropertyCase                        ,0xff86cc80) //102
 243 NHSTUB(SetScriptMode                          ,0xff873680) //120
 244 NHSTUB(SleepTask                              ,0xff8284b4) //120
 245 NHSTUB(TakeSemaphore                          ,0xff81b774) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff87fd7c) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff87fd64) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff83e9cc) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff83e9dc) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94daa4) //120
 251 NHSTUB(UnlockAE                               ,0xff82606c) //120
 252 NHSTUB(UnlockAF                               ,0xff825c90) //120
 253 NHSTUB(UnlockMainPower                        ,0xff8737e8) //120
 254 NHSTUB(UnsetZoomForMovie                      ,0xff960a4c) //104
 255 NHSTUB(UpdateMBROnFlash                       ,0xff84ef14) //105
 256 NHSTUB(VbattGet                               ,0xff8207e4) //120
 257 NHSTUB(Write                                  ,0xff823f00) //120
 258 NHSTUB(WriteSDCard                            ,0xff91f0c8) //108
 259 NHSTUB(_log                                   ,0xffaa6048) //111
 260 NHSTUB(_log10                                 ,0xffaa4f8c) //112
 261 NHSTUB(_pow                                   ,0xffaa50fc) //121
 262 NHSTUB(_sqrt                                  ,0xffaa7468) //  1
 263 NHSTUB(add_ptp_handler                        ,0xff9dab04) //121
 264 NHSTUB(apex2us                                ,0xff9ac134) //121
 265 NHSTUB(close                                  ,0xff819f74) //109
 266 NHSTUB(err_init_task                          ,0xff814e98) //111
 267 NHSTUB(exmem_alloc                            ,0xff867968) //103
 268 NHSTUB(exmem_ualloc                           ,0xff8677b8) //103
 269 NHSTUB(exmem_ufree                            ,0xff8678f8) //103
 270 NHSTUB(free                                   ,0xff813a98) //112
 271 NHSTUB(get_nd_value                           ,0xffa1aa60) //123
 272 NHSTUB(get_current_nd_value                   ,0xffa1aa1c) //122
 273 NHSTUB(get_current_deltasv                    ,0xff894284) //122
 274 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff898d14) //123
 275 NHSTUB(kbd_p1_f                               ,0xff822000) //109
 276 NHSTUB(kbd_p1_f_cont                          ,0xff82200c) //109
 277 NHSTUB(kbd_p2_f                               ,0xff821838) //109
 278 NHSTUB(kbd_read_keys                          ,0xff821efc) //109
 279 NHSTUB(kbd_read_keys_r2                       ,0xff8425e8) //109
 280 NHSTUB(kbd_pwr_off                            ,0xff842a88) //  2
 281 NHSTUB(kbd_pwr_on                             ,0xff842a38) //  2
 282 NHSTUB(lseek                                  ,0xff823f94) //120
 283 NHSTUB(malloc                                 ,0xff8139c4) //112
 284 NHSTUB(memcmp                                 ,0xff81d90c) //120
 285 NHSTUB(memcpy                                 ,0xff892234) //120
 286 NHSTUB(memset                                 ,0xff9aafac) //120
 287 NHSTUB(mkdir                                  ,0xff8241f8) //109
 288 NHSTUB(mktime_ext                             ,0xff892aa0) //  1
 289 NHSTUB(open                                   ,0xff819ec4) //109
 290 NHSTUB(OpenFastDir                            ,0xffa0c0a8) //  1
 291 NHSTUB(closedir                               ,0xffa0c20c) //  1
 292 NHSTUB(qsort                                  ,0xff9ab4b4) //  1
 293 NHSTUB(rand                                   ,0xff81da14) //121
 294 NHSTUB(realloc                                ,0xff813b78) //115
 295 NHSTUB(reboot_fw_update                       ,0xffa13b3c) //106
 296 NHSTUB(set_control_event                      ,0xff873384) //  1
 297 NHSTUB(srand                                  ,0xff81da08) //122
 298 NHSTUB(stat                                   ,0xff824060) //  1
 299 NHSTUB(strcat                                 ,0xff892020) //  1
 300 NHSTUB(strchr                                 ,0xff8920a8) //  1
 301 NHSTUB(strcmp                                 ,0xff81d8a4) //120
 302 NHSTUB(strcpy                                 ,0xff81d88c) //120
 303 NHSTUB(strftime                               ,0xff8924a8) //  1
 304 NHSTUB(strlen                                 ,0xff81d8e8) //120
 305 NHSTUB(strncmp                                ,0xff89205c) //  1
 306 NHSTUB(strncpy                                ,0xff82e194) //  1
 307 NHSTUB(strrchr                                ,0xff8920cc) //  1
 308 NHSTUB(strtol                                 ,0xff82e3cc) //101
 309 NHSTUB(strtolx                                ,0xff82e1d0) //109
 310    DEF(task_CaptSeq                           ,0xff85de08) //120
 311    DEF(task_DvlpSeqTask                       ,0xff93a9e4) //120
 312    DEF(task_ExpDrv                            ,0xff8b3d68) //120
 313    DEF(task_FileWrite                         ,0xffa08e84) //120
 314    DEF(task_InitFileModules                   ,0xff877140) //120
 315    DEF(task_MovieRecord                       ,0xff859e28) //120
 316    DEF(task_PhySw                             ,0xff821b94) //120
 317 NHSTUB(time                                   ,0xff866d48) //109
 318 NHSTUB(vsprintf                               ,0xff81d80c) //115
 319 NHSTUB(EngDrvRead                             ,0xff822e40) //102
 320 NHSTUB(PTM_GetCurrentItem                     ,0xff8741c8) //105
 321 NHSTUB(CancelHPTimer                          ,0xff8686bc) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff8685b4) //119
 323 NHSTUB(PT_MFOn                                ,0xff85ba80) //120
 324 NHSTUB(PT_MFOff                               ,0xff85ba90) //120
 325 NHSTUB(GetAdChValue                           ,0xff84054c) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff8c83e0) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xff9dc434) //121
 328 NHSTUB(SetVideoOutType                        ,0xffa7f714) //109
 329 NHSTUB(GetVideoOutType                        ,0xffa7f678) //120

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