root/platform/ixus120_sd940/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 R39 (DRYOS version 2.3, release #0039)
   6 //   Firmware Ver GM1.01A   // Found @ 0xff883a54, "GM1.01A" @ 0xff883a61
   7 //   Firmware build timestamp: Jul  6 2009 19:53:50
   8 //   Canon DIGITAL IXUS 120 IS
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 39
  12 //   PLATFORMID = 12774 (0x31e6) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x03ffffff
  14 //   MEMISOSTART = 0x0013ca18
  15 //   KEYSYS = d4                 // Found @ 0xffff3564
  16 //   NEED_ENCODED_DISKBOOT = 3   // Found @ 0xffff3574
  17 //   ARAM_HEAP_START = 0x34e000  // Found @ 0xff94b258
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xff94b218
  19 
  20 // Detected address ranges:
  21 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  22 // RAM data 0x00001900 - 0x0000df04 copied from 0xffbbeae8 (  50692 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(kbd_pwr_off                          ,0xff858e10) //  2 64%    *** != 0x00000000
  27 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa759e0 -> ffb970f4
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00031b78) // Found @0xff833554
  34 DEF(physw_run                               ,0x00001c44) // Found @0xff8331c8
  35 DEF(physw_sleep_delay                       ,0x00001c42) // Found @0xff8331c8
  36 DEF(levent_table                            ,0xffb41f14) // Found @0xffb41f14
  37 DEF(FlashParamsTable                        ,0xffb972dc) // Found @0xffb972dc
  38 DEF(movie_status                            ,0x00006260) // Found @0xff93d360
  39 DEF(video_compression_rate                  ,0x0000628c) // Found @0xff93d5cc
  40 DEF(full_screen_refresh                     ,0x00008bb0) // Found @0xff9cf9d4
  41 DEF(canon_menu_active                       ,0x00002d48) // Found @0xff8854d4
  42 DEF(canon_shoot_menu_active                 ,0x00007751) // Found @0xff97b9b4
  43 DEF(playrec_mode                            ,0x00002a7c) // Found @0xff877af0
  44 DEF(zoom_status                             ,0x0000b9dc) // Found @0xffa78278
  45 DEF(some_flag_for_af_scan                   ,0x0000673c) // Found @0xff940350
  46 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  47 // each entry contains 3 int value(s), the first is the zoom focus length.
  48 // there are 10 entries in the table - set NUM_FL to 10
  49 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  50 DEF(zoom_busy                               ,0x000061cc) // Found @0xff93a434
  51 DEF(focus_busy                              ,0x00006078) // Found @0xff9349ac
  52 DEF(recreview_hold                          ,0x000033a4) // Found @0xff8942c8
  53 // Palette colour tables  found @ 0xffb58a4c
  54 DEF(active_palette_buffer                   ,0x00008bb8) // Found @0xff9cf910
  55 DEF(palette_buffer_ptr                      ,0x00008bc4) // Found @0xff9cf5e4
  56 // Offset from start of palette_buffer to color data = 8 (Found @0xffaafa2c)
  57 // Camera appears to have only 1 RAW buffer @ 0x4219d120 (Found @0xffad6e60)
  58 DEF(fileio_semaphore                        ,0x00002740) // Found @0xff866d8c
  59 DEF(exmem_alloc_table                       ,0x00037f84) // Found @0xff87ee30
  60 DEF(exmem_types_table                       ,0xffbbfd80) // Found @0x00002b98
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001f6c) // Found @0xff848a34 (0x1f68 + 4)
  63 DEF_CONST(uiprop_count                      ,0x0000006e) // Found @0xff96a9c4
  64 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff8532dc
  67 //void *vid_get_viewport_fb()      { return (void*)0x4088b700; }             // Found @0xffad4734
  68 DEF(viewport_fb_d                           ,0x000027e8) // Found 0x2790 (@0xff869dec) + 0x58 (@0xff869e24)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x2790+0x58)); } // Found @0xff869dec & 0xff869e24
  70 DEF(jpeg_count_str                          ,0x000700b0) // Found @0xff9c4130
  71 //char *camera_jpeg_count_str()    { return (char*)0x000700b0; }             // Found @0xff9c4130
  72 //int get_flash_params_count(void) { return 0x84; }                          // Found @0xff96b408
  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 @0xffb0c754, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00080000 // Found @0xffb0c76c, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffb0c73c, levent 0x905
  80 //#define BATTCOVER_IDX       2
  81 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffb0c760, levent 0x900 (non-inverted logic)
  82 //#define ANALOG_AV_IDX       2
  83 
  84 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  85 //static KeyMap keymap[] = {
  86 //    { 0, KEY_SET             ,0x00000004 }, // Found @0xffb0c694, levent 0x08
  87 //    { 0, KEY_DISPLAY         ,0x00000008 }, // Found @0xffb0c6a0, levent 0x0a
  88 //    { 2, KEY_MENU            ,0x00000001 }, // Found @0xffb0c6b8, levent 0x09
  89 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffb0c6c4, levent 0x02
  90 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffb0c6d0, levent 0x03
  91 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffb0c6dc, levent 0x06
  92 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffb0c6e8, levent 0x07
  93 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffb0c6f4, levent 0x05
  94 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffb0c700, levent 0x04
  95 //    { 2, KEY_SHOOT_FULL      ,0x00000300 }, // Found @0xffb0c718, levent 0x01
  96 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000200 }, // Found @0xffb0c718, levent 0x01
  97 //    { 2, KEY_SHOOT_HALF      ,0x00000100 }, // Found @0xffb0c70c, levent 0x00
  98 //    { 2, KEY_POWER           ,0x00000400 }, // Found @0xffb0c724, levent 0x600
  99 //    { 2, KEY_PLAYBACK        ,0x00000800 }, // Found @0xffb0c730, levent 0x601
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
 106 //#define CAM_RAW_ROWPIX    4080 // Found @0xff9111f0
 107 //#define CAM_RAW_ROWS      3048 // Found @0xff9111f8
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff8388dc
 110 //#define CAM_DATE_FOLDER_NAMING 0x100 // Found @0xffa396f0 (pass as 3rd param to GetImageFolder)
 111 //#define PARAM_CAMERA_NAME 4 // Found @0xffb99668
 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 209
 122 // #define PROPCASE_ORIENTATION_SENSOR 221
 123 // #define PROPCASE_SV_MARKET 248
 124 // //      PROPCASE_SVFIX 249
 125 // #define PROPCASE_TV 264
 126 // Guessed propset: 3
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffb0b20e)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK        0
 133 // EXMEM_COM            1
 134 // EXMEM_FORMATTER      2
 135 // EXMEM_SHADING        3
 136 // EXMEM_FAMODE         4
 137 // EXMEM_FIRMUP         5
 138 // EXMEM_FIRMUP_VRAM    6
 139 // EXMEM_FIRMUP_INFLATE 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: 0x1964, pointer to current task's control block: 0x1960
 152 // pointer to TCB area: 0x19f0, found @ 0xff81683c
 153 
 154 // LED table init @ 0xff8f3888
 155 // LED #1: 0xc0220130, offset 0x4
 156 // LED #2: 0xc0220134, offset 0x44
 157 
 158 // For capt_seq.c
 159 DEF(_nrflag,0x6718) // Found @ ff9424b8 (0x6720) & ff9424d8 (-0x08)
 160 //static long *nrflag = (long*)(0x6720-0x08);  // Found @ ff9424b8 & ff9424d4
 161 
 162 // Stubs below matched 100%.
 163 //    Name                                     Address                Comp to stubs_entry_2.S
 164 NHSTUB(AllocateUncacheableMemory              ,0xff838898) //112
 165 NHSTUB(Close                                  ,0xff8353b4) //120
 166 NHSTUB(CreateBinarySemaphore                  ,0xff838078) //115
 167 NHSTUB(CreateTask                             ,0xff81e5b4) //120
 168 NHSTUB(DebugAssert                            ,0xff81e88c) //107
 169 NHSTUB(DeleteDirectory_Fut                    ,0xff834e24) //116
 170 NHSTUB(DeleteFile_Fut                         ,0xff834d40) //112
 171 NHSTUB(DoAELock                               ,0xff836a6c) //120
 172 NHSTUB(DoAFLock                               ,0xff83687c) //120
 173 NHSTUB(EnterToCompensationEVF                 ,0xff8369d4) //104
 174 NHSTUB(ExecuteEventProcedure                  ,0xff880bf8) //104
 175 NHSTUB(ExitFromCompensationEVF                ,0xff836a18) //104
 176 NHSTUB(ExitTask                               ,0xff81e844) //120
 177 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff844034) //104
 178 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff84410c) //104
 179 NHSTUB(Fclose_Fut                             ,0xff834ebc) //120
 180 NHSTUB(Feof_Fut                               ,0xff8350a8) //  1
 181 NHSTUB(Fflush_Fut                             ,0xff8350e4) //  1
 182 NHSTUB(Fgets_Fut                              ,0xff835010) //  1
 183 NHSTUB(Fopen_Fut                              ,0xff834e7c) //120
 184 NHSTUB(Fread_Fut                              ,0xff834f68) //120
 185 NHSTUB(FreeUncacheableMemory                  ,0xff8388d8) //112
 186 NHSTUB(Fseek_Fut                              ,0xff83505c) //120
 187 NHSTUB(Fwrite_Fut                             ,0xff834fbc) //120
 188 NHSTUB(GetBatteryTemperature                  ,0xff85bd0c) //102
 189 NHSTUB(GetCCDTemperature                      ,0xff85bc98) //102
 190 NHSTUB(GetCurrentAvValue                      ,0xff936558) //120
 191 NHSTUB(GetCurrentShutterSpeed                 ,0xff8a2d50) //120
 192 NHSTUB(GetDrive_ClusterSize                   ,0xff868774) //122
 193 NHSTUB(GetDrive_FreeClusters                  ,0xff8687d4) //  3
 194 NHSTUB(GetDrive_TotalClusters                 ,0xff8687a8) //  3
 195 NHSTUB(GetFocusLensSubjectDistance            ,0xff935724) //102
 196 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff935b6c) //  3
 197 NHSTUB(GetImageFolder                         ,0xff91901c) //122
 198 NHSTUB(GetKbdState                            ,0xff858df8) //109
 199 NHSTUB(GetMemInfo                             ,0xff81a070) //115
 200 NHSTUB(GetOpticalTemperature                  ,0xff85bd80) //120
 201 NHSTUB(GetParameterData                       ,0xff96b3c8) //101
 202 NHSTUB(GetPropertyCase                        ,0xff884948) //102
 203 NHSTUB(GetSystemTime                          ,0xffa69d0c) //120
 204 NHSTUB(GetVRAMHPixelsSize                     ,0xff8da2e4) //120
 205 NHSTUB(GetVRAMVPixelsSize                     ,0xff8da2f0) //120
 206 NHSTUB(GetZoomLensCurrentPoint                ,0xff93a7a8) //120
 207 NHSTUB(GetZoomLensCurrentPosition             ,0xffa5d91c) //102
 208 NHSTUB(GiveSemaphore                          ,0xff8382b4) //120
 209 NHSTUB(IsStrobeChargeCompleted                ,0xff8bc268) //102
 210 NHSTUB(LEDDrive                               ,0xff8582f4) //120
 211 NHSTUB(LocalTime                              ,0xff87e56c) //115
 212 NHSTUB(LockMainPower                          ,0xff88aa60) //120
 213 NHSTUB(MakeDirectory_Fut                      ,0xff834db4) //116
 214 NHSTUB(MoveFocusLensToDistance                ,0xffad10c0) //102
 215 NHSTUB(MoveIrisWithAv                         ,0xffa677f4) //120
 216 NHSTUB(MoveZoomLensWithPoint                  ,0xffa67d80) //120
 217 NHSTUB(MoveOpticalZoomAt                      ,0xff83640c) //109
 218 NHSTUB(Open                                   ,0xff83535c) //120
 219 NHSTUB(PB2Rec                                 ,0xff88d9fc) //104
 220 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff870934) //120
 221 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff87090c) //120
 222 NHSTUB(PT_PlaySound                           ,0xff879708) //102
 223 NHSTUB(PostLogicalEventForNotPowerType        ,0xff88a298) //120
 224 NHSTUB(PostLogicalEventToUI                   ,0xff88a2e4) //120
 225 NHSTUB(PutInNdFilter                          ,0xffa67be4) //102
 226 NHSTUB(PutOutNdFilter                         ,0xffa67c08) //102
 227 NHSTUB(Read                                   ,0xff81ab78) //120
 228 NHSTUB(ReadFastDir                            ,0xffa4d0d4) //  3
 229 NHSTUB(Rec2PB                                 ,0xff88da3c) //104
 230 NHSTUB(RefreshPhysicalScreen                  ,0xff9d1ea4) //104
 231 NHSTUB(RenameFile_Fut                         ,0xff834cac) //116
 232 NHSTUB(Restart                                ,0xff839ff0) //122
 233 NHSTUB(ScreenLock                             ,0xff9d1c7c) //117
 234 NHSTUB(ScreenUnlock                           ,0xff9d1cbc) //117
 235 NHSTUB(SetAE_ShutterSpeed                     ,0xffad38ac) //102
 236 NHSTUB(SetAutoShutdownTime                    ,0xff88aad4) //120
 237 NHSTUB(SetCurrentCaptureModeType              ,0xff891b0c) //120
 238 NHSTUB(SetFileAttributes                      ,0xff835684) //  3
 239 NHSTUB(SetFileTimeStamp                       ,0xff835640) //  3
 240 NHSTUB(SetLogicalEventActive                  ,0xff88a7dc) //120
 241 NHSTUB(SetParameterData                       ,0xff96b338) //101
 242 NHSTUB(SetPropertyCase                        ,0xff88484c) //102
 243 NHSTUB(SetScriptMode                          ,0xff88a82c) //120
 244 NHSTUB(SleepTask                              ,0xff83851c) //120
 245 NHSTUB(TakeSemaphore                          ,0xff8381e4) //120
 246 NHSTUB(TurnOffBackLight                       ,0xff89764c) //104
 247 NHSTUB(TurnOnBackLight                        ,0xff897634) //104
 248 NHSTUB(TurnOnDisplay                          ,0xff8534e0) //120
 249 NHSTUB(TurnOffDisplay                         ,0xff8534f0) //120
 250 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff95673c) //120
 251 NHSTUB(UnlockAE                               ,0xff836a90) //120
 252 NHSTUB(UnlockAF                               ,0xff8368b4) //120
 253 NHSTUB(UnlockMainPower                        ,0xff88a9b4) //120
 254 NHSTUB(UnsetZoomForMovie                      ,0xff9712e4) //104
 255 NHSTUB(UpdateMBROnFlash                       ,0xff8685f4) //105
 256 NHSTUB(VbattGet                               ,0xff831df4) //120
 257 NHSTUB(Write                                  ,0xff835444) //120
 258 NHSTUB(WriteSDCard                            ,0xff926660) //108
 259 NHSTUB(_log                                   ,0xffb08cd0) //111
 260 NHSTUB(_log10                                 ,0xffb07c14) //112
 261 NHSTUB(_pow                                   ,0xffb07d84) //121
 262 NHSTUB(_sqrt                                  ,0xffb0a038) //  1
 263 NHSTUB(add_ptp_handler                        ,0xffa16e20) //121
 264 NHSTUB(apex2us                                ,0xff9d5394) //121
 265 NHSTUB(close                                  ,0xff81a990) //109
 266 NHSTUB(err_init_task                          ,0xff815f28) //111
 267 NHSTUB(exmem_alloc                            ,0xff87f42c) //103
 268 NHSTUB(exmem_free                             ,0xff87f4a4) //103
 269 NHSTUB(free                                   ,0xff814138) //112
 270 NHSTUB(get_nd_value                           ,0xffa5b6a0) //123
 271 NHSTUB(get_current_nd_value                   ,0xffa5b65c) //122
 272 NHSTUB(kbd_p1_f                               ,0xff8335d0) //109
 273 NHSTUB(kbd_p1_f_cont                          ,0xff8335dc) //109
 274 NHSTUB(kbd_p2_f                               ,0xff832e94) //109
 275 NHSTUB(kbd_read_keys                          ,0xff833554) //109
 276 NHSTUB(kbd_read_keys_r2                       ,0xff8587b8) //109
 277 NHSTUB(lseek                                  ,0xff8354d0) //120
 278 NHSTUB(malloc                                 ,0xff8140dc) //112
 279 NHSTUB(memcmp                                 ,0xff8203d8) //120
 280 NHSTUB(memcpy                                 ,0xff83de48) //120
 281 NHSTUB(memset                                 ,0xff9d43e4) //120
 282 NHSTUB(mkdir                                  ,0xff835828) //109
 283 NHSTUB(mktime_ext                             ,0xff89ea98) //  1
 284 NHSTUB(open                                   ,0xff81a8e0) //109
 285 NHSTUB(OpenFastDir                            ,0xffa4cfa0) //  3
 286 NHSTUB(closedir                               ,0xffa4cf5c) //  3
 287 NHSTUB(get_fstype                             ,0xff8687f8) //122
 288 NHSTUB(qsort                                  ,0xffab56e8) //  1
 289 NHSTUB(rand                                   ,0xff8204e0) //121
 290 NHSTUB(realloc                                ,0xff9d4460) //115
 291 NHSTUB(reboot_fw_update                       ,0xffa525e4) //106
 292 NHSTUB(set_control_event                      ,0xff88a500) //111
 293 NHSTUB(srand                                  ,0xff8204d4) //122
 294 NHSTUB(stat                                   ,0xff83550c) //109
 295 NHSTUB(strcat                                 ,0xff89e254) //  1
 296 NHSTUB(strchr                                 ,0xff813fc0) //  1
 297 NHSTUB(strcmp                                 ,0xff820394) //120
 298 NHSTUB(strcpy                                 ,0xff82037c) //120
 299 NHSTUB(strftime                               ,0xff89e4a0) //  1
 300 NHSTUB(strlen                                 ,0xff81400c) //120
 301 NHSTUB(strncmp                                ,0xff813f74) //  1
 302 NHSTUB(strncpy                                ,0xff813f38) //  1
 303 NHSTUB(strrchr                                ,0xff813fe4) //  1
 304 NHSTUB(strtol                                 ,0xff83e128) //101
 305 NHSTUB(strtolx                                ,0xff83df2c) //109
 306    DEF(task_CaptSeq                           ,0xff872f84) //120
 307    DEF(task_DvlpSeqTask                       ,0xff874488) //120
 308    DEF(task_ExpDrv                            ,0xff8b2f74) //120
 309    DEF(task_FileWrite                         ,0xffa48930) //120
 310    DEF(task_InitFileModules                   ,0xff88e520) //120
 311    DEF(task_MovieRecord                       ,0xff93d648) //120
 312    DEF(task_PhySw                             ,0xff8331c4) //120
 313 NHSTUB(time                                   ,0xff87eae4) //109
 314 NHSTUB(vsprintf                               ,0xff820340) //115
 315 NHSTUB(EngDrvRead                             ,0xff834418) //102
 316 NHSTUB(PTM_GetCurrentItem                     ,0xff88b47c) //105
 317 NHSTUB(DisableISDriveError                    ,0xffa685a0) //120
 318 NHSTUB(CancelHPTimer                          ,0xff8802e0) //119
 319 NHSTUB(SetHPTimerAfterNow                     ,0xff8801d8) //119
 320 NHSTUB(PT_MFOn                                ,0xff8709c4) //120
 321 NHSTUB(PT_MFOff                               ,0xff8709d4) //120
 322 NHSTUB(GetAdChValue                           ,0xff854b44) //120
 323 NHSTUB(get_ptp_buf_size                       ,0xff8dd110) //122
 324 NHSTUB(get_ptp_file_buf                       ,0xffa18808) //121

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