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 
  65 // Values below go in 'lib.c':
  66 //void *vid_get_bitmap_fb()        { return (void*)0x403f1000; }             // Found @0xff83dae4
  67 //void *vid_get_viewport_fb()      { return (void*)0x415f3570; }             // Found @0xffa97de8
  68 DEF(viewport_fb_d                           ,0x0000274c) // Found 0x26f4 (@0xff853cb4) + 0x58 (@0xff853cec)
  69 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x26f4+0x58)); } // Found @0xff853cb4 & 0xff853cec
  70 DEF(jpeg_count_str                          ,0x00033110) // Found @0xff98fafc
  71 //char *camera_jpeg_count_str()    { return (char*)0x00033110; }             // Found @0xff98fafc
  72 //int get_flash_params_count(void) { return 0x7a; }                          // Found @0xff94536c
  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 @0xffacd584, levent 0x90a
  76 //#define SD_READONLY_IDX     2
  77 //#define USB_MASK            0x00080000 // Found @0xffacd59c, levent 0x902
  78 //#define USB_IDX             2
  79 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffacd56c, levent 0x905
  80 //#define BATTCOVER_IDX       2
  81 //#define ANALOG_AV_FLAG      0x00040000 // Found @0xffacd590, 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_LEFT            ,0x00000001 }, // Found @0xffacd47c, levent 0x06
  87 //    { 0, KEY_RIGHT           ,0x00000002 }, // Found @0xffacd488, levent 0x07
  88 //    { 0, KEY_DOWN            ,0x00000004 }, // Found @0xffacd494, levent 0x05
  89 //    { 0, KEY_UP              ,0x00000008 }, // Found @0xffacd4a0, levent 0x04
  90 //    { 1, KEY_MENU            ,0x00000800 }, // Found @0xffacd4ac, levent 0x09
  91 //    { 1, KEY_SET             ,0x00004000 }, // Found @0xffacd4b8, levent 0x08
  92 //    { 1, KEY_POWER           ,0x00010000 }, // Found @0xffacd4c4, levent 0x600
  93 //    { 1, KEY_PLAYBACK        ,0x00080000 }, // Found @0xffacd4e8, levent 0x601
  94 //    { 2, KEY_SHOOT_FULL      ,0x00001001 }, // Found @0xffacd548, levent 0x01
  95 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00001000 }, // Found @0xffacd548, levent 0x01
  96 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffacd4f4, levent 0x00
  97 //    { 2, KEY_DISPLAY         ,0x00000040 }, // Found @0xffacd530, levent 0x0a
  98 //    { 2, KEY_ZOOM_OUT        ,0x00002000 }, // Found @0xffacd554, levent 0x03
  99 //    { 2, KEY_ZOOM_IN         ,0x00004000 }, // Found @0xffacd560, levent 0x02
 100 //    { 0, 0, 0 }
 101 //};
 102 
 103 // Values below go in 'platform_camera.h':
 104 //#define CAM_DRYOS         1
 105 //#define CAM_RAW_ROWPIX    4080 // Found @0xff8e6184
 106 //#define CAM_RAW_ROWS      3048 // Found @0xff8e6188
 107 //#undef  CAM_UNCACHED_BIT
 108 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xff82748c
 109 //#define PARAM_CAMERA_NAME 4 // Found @0xffb30918
 110 
 111 // Known propcases
 112 // //      PROPCASE_AFSTEP 13
 113 // #define PROPCASE_FOCUS_STATE 18
 114 // #define PROPCASE_AV 23
 115 // #define PROPCASE_BV 34
 116 // //      PROPCASE_DELTA_DIGITALGAIN 77
 117 // #define PROPCASE_DELTA_SV 79
 118 // //      PROPCASE_DELTA_ND 80
 119 // #define PROPCASE_EV_CORRECTION_2 207
 120 // #define PROPCASE_ORIENTATION_SENSOR 219
 121 // #define PROPCASE_SV_MARKET 246
 122 // //      PROPCASE_SVFIX 247
 123 // #define PROPCASE_TV 262
 124 // Guessed propset: 2
 125 
 126 // Misc stuff
 127 DEF(ctypes, 0xffacc2ea)
 128 
 129 // EXMEM types:
 130 // EXMEM_RAMDISK        0
 131 // EXMEM_COM            1
 132 // EXMEM_FORMATTER      2
 133 // EXMEM_SHADING        3
 134 // EXMEM_FAMODE         4
 135 // EXMEM_FIRMUP         5
 136 // EXMEM_FIRMUP_VRAM    6
 137 // EXMEM_FIRMUP_INFLATE 7
 138 // EXMEM_DVLPWORK       8
 139 // EXMEM_EVF            9
 140 // EXMEM_SCRIPT         10
 141 // EXMEM_FILESTORE      11
 142 // EXMEM_MOVIE_REC      12
 143 // EXMEM_MOVIE_PLY      13
 144 // EXMEM_WIDE           14
 145 // EXMEM_NARROW         15
 146 // EXMEM_CRAW_REC       16
 147 // EXMEM_PCEVF          17
 148 
 149 // ISR flag: 0x1960, pointer to current task's control block: 0x195c
 150 // pointer to TCB area: 0x19ec, found @ 0xff81574c
 151 
 152 // LED table init @ 0xff8cab9c
 153 // LED #1: 0xc022012c, offset 0x84
 154 // LED #2: 0xc0220124, offset 0x4
 155 // LED #3: 0xc0220128, offset 0x44
 156 
 157 // For capt_seq.c
 158 DEF(_nrflag,0x6048) // Found @ ff91f644 (0x6050) & ff91f664 (-0x08)
 159 //static long *nrflag = (long*)(0x6050-0x08);  // Found @ ff91f644 & ff91f660
 160 
 161 // Stubs below matched 100%.
 162 //    Name                                     Address                Comp to stubs_entry_2.S
 163 NHSTUB(AllocateUncacheableMemory              ,0xff827448) //112
 164 NHSTUB(Close                                  ,0xff823c98) //120
 165 NHSTUB(CreateBinarySemaphore                  ,0xff826c28) //115
 166 NHSTUB(CreateTask                             ,0xff81afac) //120
 167 NHSTUB(DebugAssert                            ,0xff81b284) //107
 168 NHSTUB(DeleteDirectory_Fut                    ,0xff823628) //116
 169 NHSTUB(DeleteFile_Fut                         ,0xff823544) //112
 170 NHSTUB(DoAELock                               ,0xff825520) //120
 171 NHSTUB(DoAFLock                               ,0xff825334) //120
 172 NHSTUB(EnterToCompensationEVF                 ,0xff825420) //104
 173 NHSTUB(ExecuteEventProcedure                  ,0xff86a518) //104
 174 NHSTUB(ExitFromCompensationEVF                ,0xff825464) //104
 175 NHSTUB(ExitTask                               ,0xff81b23c) //120
 176 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff82ff40) //104
 177 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff830084) //104
 178 NHSTUB(Fclose_Fut                             ,0xff8236c0) //120
 179 NHSTUB(Feof_Fut                               ,0xff8238ac) //  1
 180 NHSTUB(Fflush_Fut                             ,0xff8238e8) //  1
 181 NHSTUB(Fgets_Fut                              ,0xff823814) //  1
 182 NHSTUB(Fopen_Fut                              ,0xff823680) //120
 183 NHSTUB(Fread_Fut                              ,0xff82376c) //120
 184 NHSTUB(FreeUncacheableMemory                  ,0xff827488) //112
 185 NHSTUB(Fseek_Fut                              ,0xff823860) //120
 186 NHSTUB(Fwrite_Fut                             ,0xff8237c0) //120
 187 NHSTUB(GetBatteryTemperature                  ,0xff845f30) //102
 188 NHSTUB(GetCCDTemperature                      ,0xff845ebc) //102
 189 NHSTUB(GetCurrentAvValue                      ,0xff913380) //120
 190 NHSTUB(GetCurrentShutterSpeed                 ,0xff888d58) //120
 191 NHSTUB(GetDrive_ClusterSize                   ,0xff8523e8) //  5
 192 NHSTUB(GetDrive_FreeClusters                  ,0xff852440) //  5
 193 NHSTUB(GetDrive_TotalClusters                 ,0xff852414) //  5
 194 NHSTUB(GetFocusLensSubjectDistance            ,0xff912430) //102
 195 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff91280c) //  3
 196 NHSTUB(GetKbdState                            ,0xff8431ec) //109
 197 NHSTUB(GetMemInfo                             ,0xff813be4) //115
 198 NHSTUB(GetOpticalTemperature                  ,0xff845fa4) //120
 199 NHSTUB(GetParameterData                       ,0xff94532c) //101
 200 NHSTUB(GetPropertyCase                        ,0xff86e284) //102
 201 NHSTUB(GetSystemTime                          ,0xffa3dfb4) //120
 202 NHSTUB(GetVRAMHPixelsSize                     ,0xff8b1568) //120
 203 NHSTUB(GetVRAMVPixelsSize                     ,0xff8b1574) //120
 204 NHSTUB(GetZoomLensCurrentPoint                ,0xff916a6c) //120
 205 NHSTUB(GetZoomLensCurrentPosition             ,0xffa31844) //102
 206 NHSTUB(GiveSemaphore                          ,0xff826e64) //120
 207 NHSTUB(IsStrobeChargeCompleted                ,0xff8a35c8) //102
 208 NHSTUB(LEDDrive                               ,0xff842698) //120
 209 NHSTUB(LocalTime                              ,0xff867f08) //115
 210 NHSTUB(LockMainPower                          ,0xff874304) //120
 211 NHSTUB(MakeDirectory_Fut                      ,0xff8235b8) //116
 212 NHSTUB(MoveFocusLensToDistance                ,0xffa94780) //102
 213 NHSTUB(MoveIrisWithAv                         ,0xffa3c0b4) //120
 214 NHSTUB(MoveZoomLensWithPoint                  ,0xffa3c640) //120
 215 NHSTUB(MoveOpticalZoomAt                      ,0xff824ee4) //109
 216 NHSTUB(Open                                   ,0xff823c70) //120
 217 NHSTUB(PB2Rec                                 ,0xff8772bc) //104
 218 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85b138) //120
 219 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85b110) //120
 220 NHSTUB(PT_PlaySound                           ,0xff85ad20) //102
 221 NHSTUB(PostLogicalEventForNotPowerType        ,0xff87392c) //120
 222 NHSTUB(PostLogicalEventToUI                   ,0xff873978) //120
 223 NHSTUB(PutInNdFilter                          ,0xffa3c4a4) //102
 224 NHSTUB(PutOutNdFilter                         ,0xffa3c4c8) //102
 225 NHSTUB(Read                                   ,0xff819ae4) //120
 226 NHSTUB(ReadFastDir                            ,0xffa1fd94) //  1
 227 NHSTUB(Rec2PB                                 ,0xff8772fc) //104
 228 NHSTUB(RefreshPhysicalScreen                  ,0xff99cf18) //104
 229 NHSTUB(RenameFile_Fut                         ,0xff8234f0) //  1
 230 NHSTUB(Restart                                ,0xff828b98) //122
 231 NHSTUB(SetAE_ShutterSpeed                     ,0xffa96f60) //102
 232 NHSTUB(SetAutoShutdownTime                    ,0xff874378) //120
 233 NHSTUB(SetCurrentCaptureModeType              ,0xff87b2c0) //120
 234 NHSTUB(SetFileAttributes                      ,0xff823fc4) //  1
 235 NHSTUB(SetFileTimeStamp                       ,0xff823f74) //  1
 236 NHSTUB(SetLogicalEventActive                  ,0xff874080) //120
 237 NHSTUB(SetParameterData                       ,0xff94529c) //101
 238 NHSTUB(SetPropertyCase                        ,0xff86e17c) //102
 239 NHSTUB(SetScriptMode                          ,0xff8740d0) //120
 240 NHSTUB(SleepTask                              ,0xff8270cc) //120
 241 NHSTUB(TakeSemaphore                          ,0xff826d94) //120
 242 NHSTUB(TurnOffBackLight                       ,0xff8810a0) //104
 243 NHSTUB(TurnOnBackLight                        ,0xff881088) //104
 244 NHSTUB(TurnOnDisplay                          ,0xff83dbc4) //120
 245 NHSTUB(TurnOffDisplay                         ,0xff83dbd4) //120
 246 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff931e7c) //120
 247 NHSTUB(UnlockAE                               ,0xff825544) //120
 248 NHSTUB(UnlockAF                               ,0xff82536c) //120
 249 NHSTUB(UnlockMainPower                        ,0xff874258) //120
 250 NHSTUB(UnsetZoomForMovie                      ,0xff94afc4) //104
 251 NHSTUB(UpdateMBROnFlash                       ,0xff852240) //105
 252 NHSTUB(VbattGet                               ,0xff820644) //120
 253 NHSTUB(Write                                  ,0xff823d44) //120
 254 NHSTUB(WriteSDCard                            ,0xff903b38) //108
 255 NHSTUB(_log                                   ,0xffac9580) //111
 256 NHSTUB(_log10                                 ,0xffac820c) //112
 257 NHSTUB(_pow                                   ,0xffac837c) //121
 258 NHSTUB(_sqrt                                  ,0xffacb124) //  1
 259 NHSTUB(add_ptp_handler                        ,0xff9eabdc) //121
 260 NHSTUB(apex2us                                ,0xff9a010c) //121
 261 NHSTUB(close                                  ,0xff8198fc) //109
 262 NHSTUB(err_init_task                          ,0xff814e2c) //111
 263 NHSTUB(exmem_alloc                            ,0xff868dc8) //103
 264 NHSTUB(exmem_ualloc                           ,0xff868c1c) //103
 265 NHSTUB(exmem_ufree                            ,0xff868d68) //103
 266 NHSTUB(free                                   ,0xff813a3c) //112
 267 NHSTUB(get_nd_value                           ,0xffa2f398) //123
 268 NHSTUB(get_current_nd_value                   ,0xffa2f354) //122
 269 NHSTUB(kbd_p1_f                               ,0xff821e48) //109
 270 NHSTUB(kbd_p1_f_cont                          ,0xff821e54) //109
 271 NHSTUB(kbd_p2_f                               ,0xff82170c) //109
 272 NHSTUB(kbd_read_keys                          ,0xff821dcc) //109
 273 NHSTUB(kbd_read_keys_r2                       ,0xff842b6c) //109
 274 NHSTUB(lseek                                  ,0xff823dd8) //120
 275 NHSTUB(malloc                                 ,0xff813968) //112
 276 NHSTUB(memcmp                                 ,0xff81cc5c) //120
 277 NHSTUB(memcpy                                 ,0xff887900) //120
 278 NHSTUB(memset                                 ,0xff99f3f4) //120
 279 NHSTUB(mkdir                                  ,0xff82403c) //109
 280 NHSTUB(mktime_ext                             ,0xff88816c) //  1
 281 NHSTUB(open                                   ,0xff81984c) //109
 282 NHSTUB(OpenFastDir                            ,0xffa1fd00) //  1
 283 NHSTUB(closedir                               ,0xffa1fe64) //  1
 284 NHSTUB(qsort                                  ,0xffa79a4c) //  1
 285 NHSTUB(rand                                   ,0xff81cd64) //121
 286 NHSTUB(realloc                                ,0xff813b1c) //115
 287 NHSTUB(reboot_fw_update                       ,0xffa27444) //106
 288 NHSTUB(set_control_event                      ,0xff873db4) //111
 289 NHSTUB(srand                                  ,0xff81cd58) //122
 290 NHSTUB(stat                                   ,0xff823ea4) //  1
 291 NHSTUB(strcat                                 ,0xff887714) //  1
 292 NHSTUB(strchr                                 ,0xff88779c) //  1
 293 NHSTUB(strcmp                                 ,0xff81cbf4) //120
 294 NHSTUB(strcpy                                 ,0xff81cbdc) //120
 295 NHSTUB(strftime                               ,0xff887b74) //  1
 296 NHSTUB(strlen                                 ,0xff81cc38) //120
 297 NHSTUB(strncmp                                ,0xff887750) //  1
 298 NHSTUB(strncpy                                ,0xff82cd3c) //  1
 299 NHSTUB(strrchr                                ,0xff99f3cc) //  1
 300 NHSTUB(strtol                                 ,0xff82cf74) //101
 301 NHSTUB(strtolx                                ,0xff82cd78) //109
 302    DEF(task_CaptSeq                           ,0xff85d754) //120
 303    DEF(task_DvlpSeqTask                       ,0xff85ebec) //120
 304    DEF(task_ExpDrv                            ,0xff899cc4) //120
 305    DEF(task_FileWrite                         ,0xffa1b8d4) //120
 306    DEF(task_InitFileModules                   ,0xff877dd0) //120
 307    DEF(task_MovieRecord                       ,0xff91a6ac) //120
 308    DEF(task_PhySw                             ,0xff821a3c) //120
 309 NHSTUB(time                                   ,0xff868480) //109
 310 NHSTUB(vsprintf                               ,0xff81cba0) //115
 311 NHSTUB(EngDrvRead                             ,0xff822c84) //102
 312 NHSTUB(PTM_GetCurrentItem                     ,0xff874d34) //105
 313 NHSTUB(CancelHPTimer                          ,0xff869c00) //119
 314 NHSTUB(SetHPTimerAfterNow                     ,0xff869af8) //119
 315 NHSTUB(PT_MFOn                                ,0xff85b1b0) //120
 316 NHSTUB(PT_MFOff                               ,0xff85b1c0) //120
 317 NHSTUB(GetAdChValue                           ,0xff83f70c) //120
 318 NHSTUB(get_ptp_buf_size                       ,0xff8b418c) //122
 319 NHSTUB(get_ptp_file_buf                       ,0xff9ec7b0) //121
 320 NHSTUB(SetVideoOutType                        ,0xffa9777c) //109
 321 NHSTUB(GetVideoOutType                        ,0xffa976b0) //120

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