root/platform/ixus100_sd780/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 @ 0xff86d370, "GM1.00C" @ 0xff86d37d
   7 //   Firmware build timestamp: Jan 13 2009 08:18:45
   8 //   Canon PowerShot SD780 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 40# DIGIC 4
  12 //   PLATFORMOSVER = 31
  13 //   PLATFORMID = 12738# (0x31c2) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x00146b8c
  16 //   KEYSYS = d4# Found @ 0xffff3584
  17 //   NEED_ENCODED_DISKBOOT = 2# Found @ 0xffff3594
  18 //   ARAM_HEAP_START = 0x34e000# Found @ 0xff927850
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xff927810
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000cdac copied from 0xffb513b0 (  46252 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(kbd_pwr_off                            ,0xff843204) //  2 64%
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffa4a604 -> ffb2e4d0
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x0000e238) // Found @0xff821dcc
  35 DEF(physw_run                               ,0x00001c34) // Found @0xff821a40
  36 DEF(physw_sleep_delay                       ,0x00001c32) // Found @0xff821a40
  37 DEF(levent_table                            ,0xffb009f0) // Found @0xffb009f0
  38 DEF(FlashParamsTable                        ,0xffb2e6ac) // Found @0xffb2e6ac
  39 DEF(movie_status                            ,0x00005b10) // Found @0xff91a3c4
  40 DEF(video_compression_rate                  ,0x00005b3c) // Found @0xff91a630
  41 DEF(canon_menu_active                       ,0x00002ca0) // Found @0xff86edcc
  42 DEF(canon_shoot_menu_active                 ,0x00006e29) // Found @0xff953cac
  43 DEF(playrec_mode                            ,0x00002a08) // Found @0xff862160
  44 DEF(zoom_status                             ,0x0000ac68) // Found @0xffa4be34
  45 DEF(some_flag_for_af_scan                   ,0x00006068) // Found @0xff91d6b8
  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 7 entries in the table - set NUM_FL to 7
  49 DEF(focus_len_table                         ,0xfffe2a8c) // Found @0xfffe2a8c
  50 DEF(zoom_busy                               ,0x00005a3c) // Found @0xff9166f4
  51 DEF(focus_busy                              ,0x00005938) // Found @0xff9115c8
  52 //DEF(recreview_hold                          ,0x0000328c) // Found @0xff87dd40, ** != ** stubs_min = 0x00006c0c (0x6C0C)
  53 // Palette colour tables  found @ 0xffb13b44
  54 DEF(active_palette_buffer                   ,0x00007ee4) // Found @0xff997f1c
  55 DEF(palette_buffer_ptr                      ,0x00007ef4) // Found @0xff997be0
  56 // Offset from start of palette_buffer to color data = 12 (Found @0xff996cbc)
  57 // Camera appears to have only 1 RAW buffer @ 0x424ad900 (Found @0xffa9a318)
  58 DEF(fileio_semaphore                        ,0x000026c0) // Found @0xff850ac4
  59 DEF(exmem_alloc_table                       ,0x00014994) // Found @0xff8687cc
  60 DEF(exmem_types_table                       ,0xffb525a0) // Found @0x00002af0
  61 DEF_CONST(exmem_type_count                  ,0x00000012)
  62 DEF(imager_active                           ,0x00001ebc) // Found @0xff832e5c (0x1eb8 + 4)
  63 DEF_CONST(uiprop_count                      ,0x0000006b) // Found @0xff944928
  64 DEF(cameracon_state                         ,0x00002e78) // Found @0xff8757f0
  65 
  66 // Values below go in 'lib.c':
  67 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83dae4
  68 //void *vid_get_viewport_fb()      { return (void*)0x415f3570; }             // Found @0xffa97de8
  69 DEF(viewport_fb_d                           ,0x0000274c) // Found 0x26f4 (@0xff853cb4) + 0x58 (@0xff853cec)
  70 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x26f4+0x58)); } // Found @0xff853cb4 & 0xff853cec
  71 DEF(jpeg_count_str                          ,0x00033110) // Found @0xff98fafc
  72 //char *camera_jpeg_count_str()    { return (char*)0x00033110; }             // Found @0xff98fafc
  73 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94536c
  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 @0xffacd584, levent 0x90a
  77 //#define SD_READONLY_IDX     2
  78 //#define USB_MASK            0x00080000 // Found @0xffacd59c, levent 0x902
  79 //#define USB_IDX             2
  80 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffacd56c, levent 0x905
  81 //#define BATTCOVER_IDX       2
  82 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffacd590, 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 //    { 0, KEY_LEFT            ,0x00000001 }, // Found @0xffacd47c, levent 0x06
  88 //    { 0, KEY_RIGHT           ,0x00000002 }, // Found @0xffacd488, levent 0x07
  89 //    { 0, KEY_DOWN            ,0x00000004 }, // Found @0xffacd494, levent 0x05
  90 //    { 0, KEY_UP              ,0x00000008 }, // Found @0xffacd4a0, levent 0x04
  91 //    { 1, KEY_MENU            ,0x00000800 }, // Found @0xffacd4ac, levent 0x09
  92 //    { 1, KEY_SET             ,0x00004000 }, // Found @0xffacd4b8, levent 0x08
  93 //    { 1, KEY_POWER           ,0x00010000 }, // Found @0xffacd4c4, levent 0x600
  94 //    { 1, KEY_PLAYBACK        ,0x00080000 }, // Found @0xffacd4e8, levent 0x601
  95 //    { 2, KEY_SHOOT_FULL      ,0x00001001 }, // Found @0xffacd548, levent 0x01
  96 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00001000 }, // Found @0xffacd548, levent 0x01
  97 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffacd4f4, levent 0x00
  98 //    { 2, KEY_DISPLAY         ,0x00000040 }, // Found @0xffacd530, levent 0x0a
  99 //    { 2, KEY_ZOOM_OUT        ,0x00002000 }, // Found @0xffacd554, levent 0x03
 100 //    { 2, KEY_ZOOM_IN         ,0x00004000 }, // Found @0xffacd560, levent 0x02
 101 //    { 0, 0, 0 }
 102 //};
 103 
 104 // Values below go in 'platform_camera.h':
 105 //#define CAM_DRYOS         1
 106 //#define CAM_RAW_ROWPIX    4080 // Found @0xff8e6184
 107 //#define CAM_RAW_ROWS      3048 // Found @0xff8e6188
 108 //#undef  CAM_UNCACHED_BIT
 109 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff82748c
 110 //#define PARAM_CAMERA_NAME 4 // Found @0xffb30918
 111 
 112 // Below goes in 'filewrite.c' or 'platform_camera.h':
 113 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa1b938
 114 
 115 // Known propcases
 116 // //      PROPCASE_AFSTEP 13
 117 // #define PROPCASE_FOCUS_STATE 18
 118 // #define PROPCASE_AV 23
 119 // #define PROPCASE_BV 34
 120 // //      PROPCASE_DELTA_DIGITALGAIN 77
 121 // #define PROPCASE_DELTA_SV 79
 122 // //      PROPCASE_DELTA_ND 80
 123 // #define PROPCASE_EV_CORRECTION_2 207
 124 // #define PROPCASE_ORIENTATION_SENSOR 219
 125 // #define PROPCASE_SV_MARKET 246
 126 // //      PROPCASE_SVFIX 247
 127 // #define PROPCASE_TV 262
 128 // Guessed propset: 2
 129 
 130 // Misc stuff
 131 DEF(ctypes, 0xffacc2ea)
 132 
 133 // EXMEM types:
 134 // EXMEM_RAMDISK        0
 135 // EXMEM_COM            1
 136 // EXMEM_FORMATTER      2
 137 // EXMEM_SHADING        3
 138 // EXMEM_FAMODE         4
 139 // EXMEM_FIRMUP         5
 140 // EXMEM_FIRMUP_VRAM    6
 141 // EXMEM_FIRMUP_INFLATE 7
 142 // EXMEM_DVLPWORK       8
 143 // EXMEM_EVF            9
 144 // EXMEM_SCRIPT         10
 145 // EXMEM_FILESTORE      11
 146 // EXMEM_MOVIE_REC      12
 147 // EXMEM_MOVIE_PLY      13
 148 // EXMEM_WIDE           14
 149 // EXMEM_NARROW         15
 150 // EXMEM_CRAW_REC       16
 151 // EXMEM_PCEVF          17
 152 
 153 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 154 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 155 
 156 // LED table init @ 0xff8cab9c
 157 // LED #1: 0xc022012c, offset 0x84
 158 // LED #2: 0xc0220124, offset 0x4
 159 // LED #3: 0xc0220128, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x6048) // Found @ ff91f644 (0x6050) & ff91f664 (-0x08)
 163 //static long *nrflag = (long*)(0x6050-0x08);  // Found @ ff91f644 & ff91f660
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff827448) //112
 168 NHSTUB(Close                                  ,0xff823c98) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff826c28) //115
 170 NHSTUB(CreateTask                             ,0xff81afac) //120
 171 NHSTUB(DebugAssert                            ,0xff81b284) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff823628) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xff823544) //112
 174 NHSTUB(DeleteSemaphore                        ,0xff826ce8) //120
 175 NHSTUB(DoAELock                               ,0xff825520) //120
 176 NHSTUB(DoAFLock                               ,0xff825334) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff825420) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff86a518) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff825464) //104
 180 NHSTUB(ExitTask                               ,0xff81b23c) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff82ff40) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830084) //104
 183 NHSTUB(Fclose_Fut                             ,0xff8236c0) //120
 184 NHSTUB(Feof_Fut                               ,0xff8238ac) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff8238e8) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff823814) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff823680) //120
 188 NHSTUB(Fread_Fut                              ,0xff82376c) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff827488) //112
 190 NHSTUB(Fseek_Fut                              ,0xff823860) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff8237c0) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff845f30) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff845ebc) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff913380) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff888d58) //120
 196 NHSTUB(GetDrive_ClusterSize                   ,0xff8523e8) //  5
 197 NHSTUB(GetDrive_FreeClusters                  ,0xff852440) //  5
 198 NHSTUB(GetDrive_TotalClusters                 ,0xff852414) //  5
 199 NHSTUB(GetFocusLensSubjectDistance            ,0xff912430) //102
 200 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff91280c) //  3
 201 NHSTUB(GetKbdState                            ,0xff8431ec) //109
 202 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff845fa4) //120
 204 NHSTUB(GetParameterData                       ,0xff94532c) //101
 205 NHSTUB(GetPropertyCase                        ,0xff86e284) //102
 206 NHSTUB(GetSystemTime                          ,0xffa3dfb4) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff8b1568) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff8b1574) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff916a6c) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa31844) //102
 211 NHSTUB(GiveSemaphore                          ,0xff826e64) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8a35c8) //102
 213 NHSTUB(LEDDrive                               ,0xff842698) //120
 214 NHSTUB(LocalTime                              ,0xff867f08) //115
 215 NHSTUB(LockMainPower                          ,0xff874304) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff8235b8) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffa94780) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa3c0b4) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa3c640) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff824ee4) //109
 221 NHSTUB(Open                                   ,0xff823c70) //120
 222 NHSTUB(PB2Rec                                 ,0xff8772bc) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85b138) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85b110) //120
 225 NHSTUB(PT_PlaySound                           ,0xff85ad20) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87392c) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff873978) //120
 228 NHSTUB(PutInNdFilter                          ,0xffa3c4a4) //102
 229 NHSTUB(PutOutNdFilter                         ,0xffa3c4c8) //102
 230 NHSTUB(Read                                   ,0xff819ae4) //120
 231 NHSTUB(ReadFastDir                            ,0xffa1fd94) //  1
 232 NHSTUB(Rec2PB                                 ,0xff8772fc) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xff99cf18) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff8234f0) //  1
 235 NHSTUB(Restart                                ,0xff828b98) //122
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffa96f60) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff874378) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff87b2c0) //120
 239 NHSTUB(SetDate                                ,0xffa98a44) //120
 240 NHSTUB(SetFileAttributes                      ,0xff823fc4) //  1
 241 NHSTUB(SetFileTimeStamp                       ,0xff823f74) //  1
 242 NHSTUB(SetLogicalEventActive                  ,0xff874080) //120
 243 NHSTUB(SetParameterData                       ,0xff94529c) //101
 244 NHSTUB(SetPropertyCase                        ,0xff86e17c) //102
 245 NHSTUB(SetScriptMode                          ,0xff8740d0) //120
 246 NHSTUB(SleepTask                              ,0xff8270cc) //120
 247 NHSTUB(TakeSemaphore                          ,0xff826d94) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff8810a0) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff881088) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff83dbc4) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff83dbd4) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff931e7c) //120
 253 NHSTUB(UnlockAE                               ,0xff825544) //120
 254 NHSTUB(UnlockAF                               ,0xff82536c) //120
 255 NHSTUB(UnlockMainPower                        ,0xff874258) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff94afc4) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff852240) //105
 258 NHSTUB(VbattGet                               ,0xff820644) //120
 259 NHSTUB(Write                                  ,0xff823d44) //120
 260 NHSTUB(WriteSDCard                            ,0xff903b38) //108
 261 NHSTUB(_log                                   ,0xffac9580) //111
 262 NHSTUB(_log10                                 ,0xffac820c) //112
 263 NHSTUB(_pow                                   ,0xffac837c) //121
 264 NHSTUB(_sqrt                                  ,0xffacb124) //  1
 265 NHSTUB(add_ptp_handler                        ,0xff9eabdc) //121
 266 NHSTUB(apex2us                                ,0xff9a010c) //121
 267 NHSTUB(close                                  ,0xff8198fc) //109
 268 NHSTUB(err_init_task                          ,0xff814e2c) //111
 269 NHSTUB(exmem_alloc                            ,0xff868dc8) //103
 270 NHSTUB(exmem_ualloc                           ,0xff868c1c) //103
 271 NHSTUB(exmem_ufree                            ,0xff868d68) //103
 272 NHSTUB(free                                   ,0xff813a3c) //112
 273 NHSTUB(get_nd_value                           ,0xffa2f398) //123
 274 NHSTUB(get_current_nd_value                   ,0xffa2f354) //122
 275 NHSTUB(get_current_deltasv                    ,0xff8898e8) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff88ea58) //123
 277 NHSTUB(kbd_p1_f                               ,0xff821e48) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff821e54) //109
 279 NHSTUB(kbd_p2_f                               ,0xff82170c) //109
 280 NHSTUB(kbd_read_keys                          ,0xff821dcc) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff842b6c) //109
 282 NHSTUB(lseek                                  ,0xff823dd8) //120
 283 NHSTUB(malloc                                 ,0xff813968) //112
 284 NHSTUB(memcmp                                 ,0xff81cc5c) //120
 285 NHSTUB(memcpy                                 ,0xff887900) //120
 286 NHSTUB(memset                                 ,0xff99f3f4) //120
 287 NHSTUB(mkdir                                  ,0xff82403c) //109
 288 NHSTUB(mktime_ext                             ,0xff88816c) //  1
 289 NHSTUB(open                                   ,0xff81984c) //109
 290 NHSTUB(OpenFastDir                            ,0xffa1fd00) //  1
 291 NHSTUB(closedir                               ,0xffa1fe64) //  1
 292 NHSTUB(qsort                                  ,0xffa79a4c) //  1
 293 NHSTUB(rand                                   ,0xff81cd64) //121
 294 NHSTUB(realloc                                ,0xff813b1c) //115
 295 NHSTUB(reboot_fw_update                       ,0xffa27444) //106
 296 NHSTUB(set_control_event                      ,0xff873db4) //111
 297 NHSTUB(srand                                  ,0xff81cd58) //122
 298 NHSTUB(stat                                   ,0xff823ea4) //  1
 299 NHSTUB(strcat                                 ,0xff887714) //  1
 300 NHSTUB(strchr                                 ,0xff88779c) //  1
 301 NHSTUB(strcmp                                 ,0xff81cbf4) //120
 302 NHSTUB(strcpy                                 ,0xff81cbdc) //120
 303 NHSTUB(strftime                               ,0xff887b74) //  1
 304 NHSTUB(strlen                                 ,0xff81cc38) //120
 305 NHSTUB(strncmp                                ,0xff887750) //  1
 306 NHSTUB(strncpy                                ,0xff82cd3c) //  1
 307 NHSTUB(strrchr                                ,0xff99f3cc) //  1
 308 NHSTUB(strtol                                 ,0xff82cf74) //101
 309 NHSTUB(strtolx                                ,0xff82cd78) //109
 310    DEF(task_CaptSeq                           ,0xff85d754) //120
 311    DEF(task_DvlpSeqTask                       ,0xff85ebec) //120
 312    DEF(task_ExpDrv                            ,0xff899cc4) //120
 313    DEF(task_FileWrite                         ,0xffa1b8d4) //120
 314    DEF(task_InitFileModules                   ,0xff877dd0) //120
 315    DEF(task_MovieRecord                       ,0xff91a6ac) //120
 316    DEF(task_PhySw                             ,0xff821a3c) //120
 317 NHSTUB(time                                   ,0xff868480) //109
 318 NHSTUB(vsprintf                               ,0xff81cba0) //115
 319 NHSTUB(EngDrvRead                             ,0xff822c84) //102
 320 NHSTUB(PTM_GetCurrentItem                     ,0xff874d34) //105
 321 NHSTUB(CancelHPTimer                          ,0xff869c00) //119
 322 NHSTUB(SetHPTimerAfterNow                     ,0xff869af8) //119
 323 NHSTUB(PT_MFOn                                ,0xff85b1b0) //120
 324 NHSTUB(PT_MFOff                               ,0xff85b1c0) //120
 325 NHSTUB(GetAdChValue                           ,0xff83f70c) //120
 326 NHSTUB(get_ptp_buf_size                       ,0xff8b418c) //122
 327 NHSTUB(get_ptp_file_buf                       ,0xff9ec7b0) //121
 328 NHSTUB(SetVideoOutType                        ,0xffa9777c) //109
 329 NHSTUB(GetVideoOutType                        ,0xffa976b0) //120

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