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

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