root/platform/ixus80_sd1100/sub/101a/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.01A   // Found @ 0xff86be94, "GM1.01A" @ 0xff86bea1
   7 //   Firmware build timestamp: Jan 24 2008 19:45:59
   8 //   Canon DIGITAL IXUS 80 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12676# (0x3184) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x000bff60
  16 //   KEYSYS = d3enc# Found @ 0xffff3308
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff32e8
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffa277ec
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffa277ac
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000ee8c copied from 0xffb126f4 (  54668 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(ExpCtrlTool_StartContiAE             ,0xff832a98) //104        *** != 0x00000000
  28 //NHSTUB(ExpCtrlTool_StopContiAE              ,0xff832bdc) //104        *** != 0x00000000
  29 //NHSTUB(PutInNdFilter                        ,0xffa237c8) //102        *** != 0xffa7aacc
  30 //NHSTUB(PutOutNdFilter                       ,0xffa237ec) //102        *** != 0xffa7ab04
  31 
  32 // Check of modemap from 'platform/CAMERA/shooting.c':
  33 // Firmware modemap table found @ffa37720 -> ffaede88
  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                            ,0xffacac68) // Found @0xffacac68
  42 DEF(FlashParamsTable                        ,0xffaee048) // Found @0xffaee048
  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 @0xffa38f20
  48 DEF(some_flag_for_af_scan                   ,0x0000cf50) // Found @0xffa24140
  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 @0xffa81f28)
  57 DEF(fileio_semaphore                        ,0x000029e4) // Found @0xff850b00
  58 DEF(exmem_alloc_table                       ,0x00019ea4) // Found @0xff8670a4
  59 DEF(exmem_types_table                       ,0xffb16400) // 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 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff83e91c
  66 //void *vid_get_viewport_fb()      { return (void*)0x1065ade0; }             // Found @0xffa7fd14
  67 DEF(viewport_fb_d                           ,0x00005224) // Found 0x51d4 (@0xff852e8c) + 0x50 (@0xff852ec4)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x51d4+0x50)); } // Found @0xff852e8c & 0xff852ec4
  69 DEF(jpeg_count_str                          ,0x0004c2c4) // Found @0xff9a0e30
  70 //char *camera_jpeg_count_str()    { return (char*)0x0004c2c4; }             // Found @0xff9a0e30
  71 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xff95b458
  72 
  73 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  74 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffaa8a98, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00040000 // Found @0xffaa8aa4, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffaa8a80, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffaa8990, levent 0x900 (non-inverted logic)
  81 //#define ANALOG_AV_IDX       0
  82 
  83 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  84 //static KeyMap keymap[] = {
  85 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffaa89e4, levent 0x600
  86 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffaa89fc, levent 0x01
  87 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffaa89fc, levent 0x01
  88 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffaa89f0, levent 0x00
  89 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffaa8a08, levent 0x02
  90 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffaa8a14, levent 0x03
  91 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffaa8a20, levent 0x06
  92 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffaa8a2c, levent 0x07
  93 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffaa8a38, levent 0x05
  94 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffaa8a44, levent 0x04
  95 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffaa8a50, levent 0x08
  96 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffaa8a5c, levent 0x0a
  97 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffaa8a68, levent 0x09
  98 //    { 0, 0, 0 }
  99 //};
 100 
 101 // Values below go in 'platform_camera.h':
 102 //#define CAM_DRYOS         1
 103 //#define CAM_RAW_ROWPIX    3336 // Found @0xffa7963c
 104 //#define CAM_RAW_ROWS      2480 // Found @0xffa79644
 105 //#undef  CAM_UNCACHED_BIT
 106 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff82866c
 107 //#define PARAM_CAMERA_NAME 4 // Found @0xffaf011c
 108 
 109 // Known propcases
 110 // //      PROPCASE_AFSTEP 13
 111 // #define PROPCASE_FOCUS_STATE 18
 112 // #define PROPCASE_AV 23
 113 // #define PROPCASE_BV 34
 114 // //      PROPCASE_DELTA_DIGITALGAIN 77
 115 // #define PROPCASE_DELTA_SV 79
 116 // //      PROPCASE_DELTA_ND 80
 117 // #define PROPCASE_EV_CORRECTION_2 207
 118 // #define PROPCASE_ORIENTATION_SENSOR 219
 119 // #define PROPCASE_SV_MARKET 246
 120 // //      PROPCASE_SVFIX 247
 121 // #define PROPCASE_TV 262
 122 // Guessed propset: 2
 123 
 124 // Misc stuff
 125 DEF(ctypes, 0xffaa858a)
 126 
 127 // EXMEM types:
 128 // EXMEM_RAMDISK     0
 129 // EXMEM_COM         1
 130 // EXMEM_COMTMP      2
 131 // EXMEM_FORMATTER   3
 132 // EXMEM_SHADING     4
 133 // EXMEM_FAMODE      5
 134 // EXMEM_FIRMUP      6
 135 // EXMEM_FIRMUP_VRAM 7
 136 // EXMEM_DVLPWORK    8
 137 // EXMEM_EVF         9
 138 // EXMEM_SCRIPT      10
 139 // EXMEM_FILESTORE   11
 140 // EXMEM_MOVIE_REC   12
 141 // EXMEM_MOVIE_PLY   13
 142 // EXMEM_WIDE        14
 143 // EXMEM_NARROW      15
 144 // EXMEM_CRAW_REC    16
 145 // EXMEM_PCEVF       17
 146 
 147 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 148 // pointer to TCB area: 0x19f4, found @ 0xff815ee4
 149 
 150 // LED table init @ 0xff8e8f10
 151 // LED #1: 0xc02200d4, offset 0x204
 152 // LED #2: 0xc0220138, offset 0x84
 153 // LED #3: 0xc02200d0, offset 0xc4
 154 // LED #4: 0xc0220134, offset 0x4
 155 // LED #5: 0xc0220130, offset 0x44
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x8d14) // Found @ ff939e90 (0x8d14)
 159 //static long *nrflag = (long*)(0x8d14);       // Found @ ff939e90
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff828630) //112
 164 NHSTUB(Close                                  ,0xff823e54) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff81b608) //115
 166 NHSTUB(CreateTask                             ,0xff81b8e0) //120
 167 NHSTUB(DebugAssert                            ,0xff81bdb8) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff8237e4) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff823700) //112
 170 NHSTUB(DoAELock                               ,0xff82603c) //120
 171 NHSTUB(DoAFLock                               ,0xff825c4c) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff825f48) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff869180) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff825f98) //104
 175 NHSTUB(ExitTask                               ,0xff81bb70) //120
 176 NHSTUB(Fclose_Fut                             ,0xff82387c) //120
 177 NHSTUB(Feof_Fut                               ,0xff823a68) //  1
 178 NHSTUB(Fflush_Fut                             ,0xff823aa4) //  1
 179 NHSTUB(Fgets_Fut                              ,0xff8239d0) //  1
 180 NHSTUB(Fopen_Fut                              ,0xff82383c) //120
 181 NHSTUB(Fread_Fut                              ,0xff823928) //120
 182 NHSTUB(FreeUncacheableMemory                  ,0xff828664) //112
 183 NHSTUB(Fseek_Fut                              ,0xff823a1c) //120
 184 NHSTUB(Fwrite_Fut                             ,0xff82397c) //120
 185 NHSTUB(GetBatteryTemperature                  ,0xff845214) //102
 186 NHSTUB(GetCCDTemperature                      ,0xff8451a4) //102
 187 NHSTUB(GetCurrentAvValue                      ,0xff92c420) //120
 188 NHSTUB(GetCurrentShutterSpeed                 ,0xff8935e8) //120
 189 NHSTUB(GetDrive_ClusterSize                   ,0xff84f0d4) //  1
 190 NHSTUB(GetDrive_FreeClusters                  ,0xff84f13c) //  1
 191 NHSTUB(GetDrive_TotalClusters                 ,0xff84f108) //  1
 192 NHSTUB(GetFocusLensSubjectDistance            ,0xff92b518) //102
 193 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92b824) //  1
 194 NHSTUB(GetKbdState                            ,0xff842a04) //109
 195 NHSTUB(GetMemInfo                             ,0xff813c40) //115
 196 NHSTUB(GetOpticalTemperature                  ,0xff845284) //120
 197 NHSTUB(GetParameterData                       ,0xff95b418) //101
 198 NHSTUB(GetPropertyCase                        ,0xff86cd80) //102
 199 NHSTUB(GetSystemTime                          ,0xffa27040) //120
 200 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c5d1c) //120
 201 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c5d28) //120
 202 NHSTUB(GetZoomLensCurrentPoint                ,0xff92f1c4) //120
 203 NHSTUB(GetZoomLensCurrentPosition             ,0xffa1d080) //102
 204 NHSTUB(GiveSemaphore                          ,0xff81b844) //120
 205 NHSTUB(IsStrobeChargeCompleted                ,0xff8bae5c) //102
 206 NHSTUB(LEDDrive                               ,0xff842228) //120
 207 NHSTUB(LocalTime                              ,0xff866844) //115
 208 NHSTUB(LockMainPower                          ,0xff873894) //120
 209 NHSTUB(MakeDirectory_Fut                      ,0xff823774) //116
 210 NHSTUB(MoveFocusLensToDistance                ,0xffa7c840) //102
 211 NHSTUB(MoveIrisWithAv                         ,0xffa233e0) //120
 212 NHSTUB(MoveZoomLensWithPoint                  ,0xffa23964) //120
 213 NHSTUB(MoveOpticalZoomAt                      ,0xff8254c4) //109
 214 NHSTUB(Open                                   ,0xff823e2c) //120
 215 NHSTUB(PB2Rec                                 ,0xff876538) //104
 216 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85ba08) //120
 217 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85b9e0) //120
 218 NHSTUB(PT_PlaySound                           ,0xff85b064) //102
 219 NHSTUB(PostLogicalEventForNotPowerType        ,0xff872f04) //120
 220 NHSTUB(PostLogicalEventToUI                   ,0xff872f50) //120
 221 NHSTUB(Read                                   ,0xff81a15c) //120
 222 NHSTUB(ReadFastDir                            ,0xffa0c138) //  1
 223 NHSTUB(Rec2PB                                 ,0xff876568) //104
 224 NHSTUB(RefreshPhysicalScreen                  ,0xff9aabf8) //104
 225 NHSTUB(RenameFile_Fut                         ,0xff8236ac) //  1
 226 NHSTUB(Restart                                ,0xff829ea8) //122
 227 NHSTUB(SetAE_ShutterSpeed                     ,0xffa7ef24) //102
 228 NHSTUB(SetAutoShutdownTime                    ,0xff873908) //120
 229 NHSTUB(SetCurrentCaptureModeType              ,0xff87a4b0) //120
 230 NHSTUB(SetFileAttributes                      ,0xff824180) //  1
 231 NHSTUB(SetFileTimeStamp                       ,0xff824130) //  1
 232 NHSTUB(SetLogicalEventActive                  ,0xff873630) //  1
 233 NHSTUB(SetParameterData                       ,0xff95b388) //101
 234 NHSTUB(SetPropertyCase                        ,0xff86cc80) //102
 235 NHSTUB(SetScriptMode                          ,0xff873680) //120
 236 NHSTUB(SleepTask                              ,0xff8284b4) //120
 237 NHSTUB(TakeSemaphore                          ,0xff81b774) //120
 238 NHSTUB(TurnOffBackLight                       ,0xff87fd7c) //104
 239 NHSTUB(TurnOnBackLight                        ,0xff87fd64) //104
 240 NHSTUB(TurnOnDisplay                          ,0xff83e9cc) //120
 241 NHSTUB(TurnOffDisplay                         ,0xff83e9dc) //120
 242 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff94daa4) //120
 243 NHSTUB(UnlockAE                               ,0xff82606c) //120
 244 NHSTUB(UnlockAF                               ,0xff825c90) //120
 245 NHSTUB(UnlockMainPower                        ,0xff8737e8) //120
 246 NHSTUB(UnsetZoomForMovie                      ,0xff960a4c) //104
 247 NHSTUB(UpdateMBROnFlash                       ,0xff84ef14) //105
 248 NHSTUB(VbattGet                               ,0xff8207e4) //120
 249 NHSTUB(Write                                  ,0xff823f00) //120
 250 NHSTUB(WriteSDCard                            ,0xff91f0c8) //108
 251 NHSTUB(_log                                   ,0xffaa6044) //111
 252 NHSTUB(_log10                                 ,0xffaa4f88) //112
 253 NHSTUB(_pow                                   ,0xffaa50f8) //121
 254 NHSTUB(_sqrt                                  ,0xffaa7464) //  1
 255 NHSTUB(add_ptp_handler                        ,0xff9dab00) //121
 256 NHSTUB(apex2us                                ,0xff9ac134) //121
 257 NHSTUB(close                                  ,0xff819f74) //109
 258 NHSTUB(err_init_task                          ,0xff814e98) //111
 259 NHSTUB(exmem_alloc                            ,0xff867968) //103
 260 NHSTUB(exmem_ualloc                           ,0xff8677b8) //103
 261 NHSTUB(exmem_ufree                            ,0xff8678f8) //103
 262 NHSTUB(free                                   ,0xff813a98) //112
 263 NHSTUB(get_nd_value                           ,0xffa1aa5c) //123
 264 NHSTUB(get_current_nd_value                   ,0xffa1aa18) //122
 265 NHSTUB(kbd_p1_f                               ,0xff822000) //109
 266 NHSTUB(kbd_p1_f_cont                          ,0xff82200c) //109
 267 NHSTUB(kbd_p2_f                               ,0xff821838) //109
 268 NHSTUB(kbd_read_keys                          ,0xff821efc) //109
 269 NHSTUB(kbd_read_keys_r2                       ,0xff8425e8) //109
 270 NHSTUB(kbd_pwr_off                            ,0xff842a88) //  2
 271 NHSTUB(kbd_pwr_on                             ,0xff842a38) //  2
 272 NHSTUB(lseek                                  ,0xff823f94) //120
 273 NHSTUB(malloc                                 ,0xff8139c4) //112
 274 NHSTUB(memcmp                                 ,0xff81d90c) //120
 275 NHSTUB(memcpy                                 ,0xff892234) //120
 276 NHSTUB(memset                                 ,0xff9aafac) //120
 277 NHSTUB(mkdir                                  ,0xff8241f8) //109
 278 NHSTUB(mktime_ext                             ,0xff892aa0) //  1
 279 NHSTUB(open                                   ,0xff819ec4) //109
 280 NHSTUB(OpenFastDir                            ,0xffa0c0a4) //  1
 281 NHSTUB(closedir                               ,0xffa0c208) //  1
 282 NHSTUB(qsort                                  ,0xff9ab4b4) //  1
 283 NHSTUB(rand                                   ,0xff81da14) //121
 284 NHSTUB(realloc                                ,0xff813b78) //115
 285 NHSTUB(reboot_fw_update                       ,0xffa13b38) //106
 286 NHSTUB(set_control_event                      ,0xff873384) //  1
 287 NHSTUB(srand                                  ,0xff81da08) //122
 288 NHSTUB(stat                                   ,0xff824060) //  1
 289 NHSTUB(strcat                                 ,0xff892020) //  1
 290 NHSTUB(strchr                                 ,0xff8920a8) //  1
 291 NHSTUB(strcmp                                 ,0xff81d8a4) //120
 292 NHSTUB(strcpy                                 ,0xff81d88c) //120
 293 NHSTUB(strftime                               ,0xff8924a8) //  1
 294 NHSTUB(strlen                                 ,0xff81d8e8) //120
 295 NHSTUB(strncmp                                ,0xff89205c) //  1
 296 NHSTUB(strncpy                                ,0xff82e194) //  1
 297 NHSTUB(strrchr                                ,0xff8920cc) //  1
 298 NHSTUB(strtol                                 ,0xff82e3cc) //101
 299 NHSTUB(strtolx                                ,0xff82e1d0) //109
 300    DEF(task_CaptSeq                           ,0xff85de08) //120
 301    DEF(task_DvlpSeqTask                       ,0xff93a9e4) //120
 302    DEF(task_ExpDrv                            ,0xff8b3d68) //120
 303    DEF(task_FileWrite                         ,0xffa08e80) //120
 304    DEF(task_InitFileModules                   ,0xff877140) //120
 305    DEF(task_MovieRecord                       ,0xff859e28) //120
 306    DEF(task_PhySw                             ,0xff821b94) //120
 307 NHSTUB(time                                   ,0xff866d48) //109
 308 NHSTUB(vsprintf                               ,0xff81d80c) //115
 309 NHSTUB(EngDrvRead                             ,0xff822e40) //102
 310 NHSTUB(PTM_GetCurrentItem                     ,0xff8741c8) //105
 311 NHSTUB(CancelHPTimer                          ,0xff8686bc) //119
 312 NHSTUB(SetHPTimerAfterNow                     ,0xff8685b4) //119
 313 NHSTUB(PT_MFOn                                ,0xff85ba80) //120
 314 NHSTUB(PT_MFOff                               ,0xff85ba90) //120
 315 NHSTUB(GetAdChValue                           ,0xff84054c) //120
 316 NHSTUB(get_ptp_buf_size                       ,0xff8c83e0) //122
 317 NHSTUB(get_ptp_file_buf                       ,0xff9dc430) //121
 318 NHSTUB(SetVideoOutType                        ,0xffa7f710) //109
 319 NHSTUB(GetVideoOutType                        ,0xffa7f674) //120

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