root/platform/a580/sub/101b/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.01B   // Found @ 0xffc572b0, "GM1.01B" @ 0xffc572bd
   7 //   Firmware build timestamp: Jan 24 2008 20:56:25
   8 //   Canon PowerShot A580
   9 
  10 // Values for makefile.inc
  11 //   PLATFORMOSVER = 23
  12 //   PLATFORMID = 12663 (0x3177) // Found @ 0xfffe0130
  13 //   MAXRAMADDR = 0x01ffffff
  14 //   MEMISOSTART = 0x000a47e0
  15 //   KEYSYS = d3enc              // Found @ 0xffff1ac0
  16 //   NEED_ENCODED_DISKBOOT = 1   // Found @ 0xffff1aa0
  17 //   ARAM_HEAP_START = 0x2ce000  // Found @ 0xffde57d4
  18 //   ARAM_HEAP_SIZE  = 0x32000   // Found @ 0xffde5794
  19 
  20 // Detected address ranges:
  21 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  22 // RAM data 0x00001900 - 0x0000d700 copied from 0xffebfb4c (  48640 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                          ,0xffc3193c) //  2 67%    *** != 0x00000000
  27 NHSTUB(kbd_pwr_on                             ,0xffc318fc) //  2 86%
  28 
  29 // Check of modemap from 'platform/CAMERA/shooting.c':
  30 // Firmware modemap table found @ffdf11e0 -> ffe9ed50
  31 // No problems found with modemap table.
  32 
  33 // Values below can be overridden in 'stubs_min.S':
  34 DEF(physw_status                            ,0x0000ebdc) // Found @0xffc11c24
  35 DEF(physw_run                               ,0x00001bf0) // Found @0xffc118c0
  36 DEF(physw_sleep_delay                       ,0x00001bee) // Found @0xffc118c0
  37 DEF(levent_table                            ,0xffe7fb40) // Found @0xffe7fb40
  38 DEF(FlashParamsTable                        ,0xffe9ef08) // Found @0xffe9ef08
  39 DEF(movie_status                            ,0x000051b0) // Found @0xffc46414
  40 DEF(canon_menu_active                       ,0x00008bdc) // Found @0xffd2170c
  41 DEF(canon_shoot_menu_active                 ,0x000094b9) // Found @0xffd3a7e0
  42 DEF(playrec_mode                            ,0x00005320) // Found @0xffc4c9f4
  43 DEF(zoom_status                             ,0x0000ba7c) // Found @0xffdf29e0
  44 DEF(some_flag_for_af_scan                   ,0x0000b808) // Found @0xffde1ab8
  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 8 entries in the table - set NUM_FL to 8
  48 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  49 DEF(zoom_busy                               ,0x00007f4c) // Found @0xffd085dc
  50 //DEF(focus_busy                              ,0x00007e58) // Found @0xffd04170, ** != ** stubs_min = 0x00009d50 (0x9D50)
  51 //DEF(recreview_hold                          ,0x00005b14) // Found @0xffc64f18, ** != ** stubs_min = 0x0000abe8 (0xABE8)
  52 // Camera appears to have only 1 RAW buffer @ 0x10f341c0 (Found @0xffe387bc)
  53 DEF(fileio_semaphore                        ,0x00002860) // Found @0xffc3f340
  54 DEF(exmem_alloc_table                       ,0x0001879c) // Found @0xffc524c0
  55 DEF(exmem_types_table                       ,0xffec3630) // Found @0x000053e4
  56 DEF_CONST(exmem_type_count                  ,0x00000012)
  57 DEF(imager_active                           ,0x00001ed4) // Found @0xffc24fa4 (0x1ed0 + 4)
  58 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xffd2c44c
  59 
  60 // Values below go in 'lib.c':
  61 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2d5c4
  62 //void *vid_get_viewport_fb()      { return (void*)0x10659e80; }             // Found @0xffe3658c
  63 DEF(viewport_fb_d                           ,0x0000509c) // Found 0x5050 (@0xffc415bc) + 0x4c (@0xffc415f4)
  64 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5050+0x4c)); } // Found @0xffc415bc & 0xffc415f4
  65 DEF(jpeg_count_str                          ,0x00048ae0) // Found @0xffd67320
  66 //char *camera_jpeg_count_str()    { return (char*)0x00048ae0; }             // Found @0xffd67320
  67 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xffd2ce90
  68 
  69 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  70 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe5c764, levent 0x90a
  71 //#define SD_READONLY_IDX     2
  72 //#define USB_MASK            0x00040000 // Found @0xffe5c770, levent 0x902
  73 //#define USB_IDX             2
  74 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffe5c74c, levent 0x905
  75 //#define BATTCOVER_IDX       2
  76 //#define ANALOG_AV_FLAG      0x00400000 // Found @0xffe5c638, levent 0x900 (non-inverted logic)
  77 //#define ANALOG_AV_IDX       1
  78 
  79 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  80 //static KeyMap keymap[] = {
  81 //    { 1, KEY_POWER           ,0x00004000 }, // Found @0xffe5c62c, levent 0x600 (uses inverted logic in physw_status)
  82 //    { 1, KEY_SHOOT_FULL      ,0xc0000000 }, // Found @0xffe5c68c, levent 0x01
  83 //    { 1, KEY_SHOOT_FULL_ONLY ,0x80000000 }, // Found @0xffe5c68c, levent 0x01
  84 //    { 1, KEY_SHOOT_HALF      ,0x40000000 }, // Found @0xffe5c680, levent 0x00
  85 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffe5c6b0, levent 0x02
  86 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffe5c6bc, levent 0x03
  87 //    { 2, KEY_UP              ,0x00000010 }, // Found @0xffe5c6c8, levent 0x04
  88 //    { 2, KEY_DOWN            ,0x00000020 }, // Found @0xffe5c6d4, levent 0x05
  89 //    { 2, KEY_RIGHT           ,0x00000040 }, // Found @0xffe5c6e0, levent 0x07
  90 //    { 2, KEY_LEFT            ,0x00000080 }, // Found @0xffe5c6ec, levent 0x06
  91 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe5c6f8, levent 0x08
  92 //    { 2, KEY_MENU            ,0x00000200 }, // Found @0xffe5c704, levent 0x09
  93 //    { 2, KEY_DISPLAY         ,0x00000400 }, // Found @0xffe5c710, levent 0x0a
  94 //    { 0, 0, 0 }
  95 //};
  96 
  97 // Values below go in 'platform_camera.h':
  98 //#define CAM_DRYOS         1
  99 //#define CAM_RAW_ROWPIX    3336 // Found @0xffe2ff7c
 100 //#define CAM_RAW_ROWS      2490 // Found @0xffe2ff80
 101 //#undef  CAM_UNCACHED_BIT
 102 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc17e64
 103 //#define PARAM_CAMERA_NAME 4 // Found @0xffea0d88
 104 
 105 // Known propcases
 106 // //      PROPCASE_AFSTEP 13
 107 // #define PROPCASE_FOCUS_STATE 18
 108 // #define PROPCASE_AV 23
 109 // #define PROPCASE_BV 34
 110 // //      PROPCASE_DELTA_DIGITALGAIN 77
 111 // #define PROPCASE_DELTA_SV 79
 112 // //      PROPCASE_DELTA_ND 80
 113 // #define PROPCASE_EV_CORRECTION_2 207
 114 // #define PROPCASE_ORIENTATION_SENSOR 219
 115 // #define PROPCASE_SV_MARKET 246
 116 // //      PROPCASE_SVFIX 247
 117 // #define PROPCASE_TV 262
 118 // Guessed propset: 2
 119 
 120 // Misc stuff
 121 DEF(ctypes, 0xffe5c21e)
 122 
 123 // EXMEM types:
 124 // EXMEM_RAMDISK     0
 125 // EXMEM_COM         1
 126 // EXMEM_COMTMP      2
 127 // EXMEM_FORMATTER   3
 128 // EXMEM_SHADING     4
 129 // EXMEM_FAMODE      5
 130 // EXMEM_FIRMUP      6
 131 // EXMEM_FIRMUP_VRAM 7
 132 // EXMEM_DVLPWORK    8
 133 // EXMEM_EVF         9
 134 // EXMEM_SCRIPT      10
 135 // EXMEM_FILESTORE   11
 136 // EXMEM_MOVIE_REC   12
 137 // EXMEM_MOVIE_PLY   13
 138 // EXMEM_WIDE        14
 139 // EXMEM_NARROW      15
 140 // EXMEM_CRAW_REC    16
 141 // EXMEM_PCEVF       17
 142 
 143 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 144 // pointer to TCB area: 0x19f4, found @ 0xffc05ee4
 145 
 146 // LED table init @ 0xffcc5a6c
 147 // LED #1: 0xc02200d0, offset 0x84
 148 // LED #2: 0xc02200c0, offset 0x244
 149 // LED #3: 0xc02200c4, offset 0x204
 150 // LED #4: 0xc02200cc, offset 0x4
 151 // LED #5: 0xc02200c8, offset 0x44
 152 
 153 // For capt_seq.c
 154 DEF(_nrflag,0x8450) // Found @ ffd0f424 (0x8450)
 155 //static long *nrflag = (long*)(0x8450);       // Found @ ffd0f424
 156 
 157 // Stubs below matched 100%.
 158 //    Name                                     Address                Comp to stubs_entry_2.S
 159 NHSTUB(AllocateUncacheableMemory              ,0xffc17e28) //112
 160 NHSTUB(Close                                  ,0xffc13b7c) //120
 161 NHSTUB(CreateBinarySemaphore                  ,0xffc0b608) //115
 162 NHSTUB(CreateTask                             ,0xffc0b8e0) //120
 163 NHSTUB(DebugAssert                            ,0xffc0bdb8) //107
 164 NHSTUB(DeleteDirectory_Fut                    ,0xffc1350c) //116
 165 NHSTUB(DeleteFile_Fut                         ,0xffc13428) //112
 166 NHSTUB(DoAELock                               ,0xffc15c94) //120
 167 NHSTUB(DoAFLock                               ,0xffc157b4) //120
 168 NHSTUB(EnterToCompensationEVF                 ,0xffc15aa4) //104
 169 NHSTUB(ExecuteEventProcedure                  ,0xffc5459c) //104
 170 NHSTUB(ExitFromCompensationEVF                ,0xffc15bf0) //104
 171 NHSTUB(ExitTask                               ,0xffc0bb70) //120
 172 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc218b8) //104
 173 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc219fc) //104
 174 NHSTUB(Fclose_Fut                             ,0xffc135a4) //120
 175 NHSTUB(Feof_Fut                               ,0xffc13790) //  1
 176 NHSTUB(Fflush_Fut                             ,0xffc137cc) //  1
 177 NHSTUB(Fgets_Fut                              ,0xffc136f8) //  1
 178 NHSTUB(Fopen_Fut                              ,0xffc13564) //120
 179 NHSTUB(Fread_Fut                              ,0xffc13650) //120
 180 NHSTUB(FreeUncacheableMemory                  ,0xffc17e5c) //112
 181 NHSTUB(Fseek_Fut                              ,0xffc13744) //120
 182 NHSTUB(Fwrite_Fut                             ,0xffc136a4) //120
 183 NHSTUB(GetBatteryTemperature                  ,0xffc33a38) //102
 184 NHSTUB(GetCCDTemperature                      ,0xffc339c8) //102
 185 NHSTUB(GetCurrentAvValue                      ,0xffd05b84) //120
 186 NHSTUB(GetCurrentShutterSpeed                 ,0xffc70abc) //120
 187 NHSTUB(GetDrive_ClusterSize                   ,0xffc3d914) //  1
 188 NHSTUB(GetDrive_FreeClusters                  ,0xffc3d97c) //  1
 189 NHSTUB(GetDrive_TotalClusters                 ,0xffc3d948) //  1
 190 NHSTUB(GetFocusLensSubjectDistance            ,0xffd04c7c) //102
 191 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd04f88) //  1
 192 NHSTUB(GetKbdState                            ,0xffc318c8) //109
 193 NHSTUB(GetMemInfo                             ,0xffc03c40) //115
 194 NHSTUB(GetOpticalTemperature                  ,0xffc33aa8) //120
 195 NHSTUB(GetParameterData                       ,0xffd2ce50) //101
 196 NHSTUB(GetPropertyCase                        ,0xffc5819c) //102
 197 NHSTUB(GetSystemTime                          ,0xffde5028) //120
 198 NHSTUB(GetVRAMHPixelsSize                     ,0xffca3318) //120
 199 NHSTUB(GetVRAMVPixelsSize                     ,0xffca3324) //120
 200 NHSTUB(GetZoomLensCurrentPoint                ,0xffd08940) //120
 201 NHSTUB(GetZoomLensCurrentPosition             ,0xffddc3a8) //102
 202 NHSTUB(GiveSemaphore                          ,0xffc0b844) //120
 203 NHSTUB(IsStrobeChargeCompleted                ,0xffc981b0) //102
 204 NHSTUB(LEDDrive                               ,0xffc30f6c) //120
 205 NHSTUB(LocalTime                              ,0xffc522bc) //115
 206 NHSTUB(LockMainPower                          ,0xffc5c808) //120
 207 NHSTUB(MakeDirectory_Fut                      ,0xffc1349c) //116
 208 NHSTUB(MoveFocusLensToDistance                ,0xffe330b8) //102
 209 NHSTUB(MoveIrisWithAv                         ,0xffde12ec) //120
 210 NHSTUB(MoveZoomLensWithPoint                  ,0xffde1870) //120
 211 NHSTUB(MoveOpticalZoomAt                      ,0xffc15164) //109
 212 NHSTUB(Open                                   ,0xffc13b54) //120
 213 NHSTUB(PB2Rec                                 ,0xffc5f428) //104
 214 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc47a88) //120
 215 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc47a60) //120
 216 NHSTUB(PT_PlaySound                           ,0xffc47374) //102
 217 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5be78) //120
 218 NHSTUB(PostLogicalEventToUI                   ,0xffc5bec4) //120
 219 NHSTUB(PutInNdFilter                          ,0xffde16d4) //102
 220 NHSTUB(PutOutNdFilter                         ,0xffde16f8) //102
 221 NHSTUB(Read                                   ,0xffc0a15c) //120
 222 NHSTUB(ReadFastDir                            ,0xffdce860) //  1
 223 NHSTUB(Rec2PB                                 ,0xffc5f458) //104
 224 NHSTUB(RefreshPhysicalScreen                  ,0xffd70a80) //104
 225 NHSTUB(RenameFile_Fut                         ,0xffc133d4) //  1
 226 NHSTUB(Restart                                ,0xffc196a0) //122
 227 NHSTUB(SetAE_ShutterSpeed                     ,0xffe3579c) //102
 228 NHSTUB(SetAutoShutdownTime                    ,0xffc5c87c) //120
 229 NHSTUB(SetCurrentCaptureModeType              ,0xffc62ac4) //120
 230 NHSTUB(SetFileAttributes                      ,0xffc13ea8) //  1
 231 NHSTUB(SetFileTimeStamp                       ,0xffc13e58) //  1
 232 NHSTUB(SetLogicalEventActive                  ,0xffc5c5a4) //  1
 233 NHSTUB(SetParameterData                       ,0xffd2cdc0) //101
 234 NHSTUB(SetPropertyCase                        ,0xffc5809c) //102
 235 NHSTUB(SetScriptMode                          ,0xffc5c5f4) //120
 236 NHSTUB(SleepTask                              ,0xffc17cac) //120
 237 NHSTUB(TakeSemaphore                          ,0xffc0b774) //120
 238 NHSTUB(TurnOffBackLight                       ,0xffc66d58) //104
 239 NHSTUB(TurnOnBackLight                        ,0xffc66d40) //104
 240 NHSTUB(TurnOnDisplay                          ,0xffc2d674) //120
 241 NHSTUB(TurnOffDisplay                         ,0xffc2d684) //120
 242 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd220a8) //120
 243 NHSTUB(UnlockAE                               ,0xffc15cc4) //120
 244 NHSTUB(UnlockAF                               ,0xffc158cc) //120
 245 NHSTUB(UnlockMainPower                        ,0xffc5c75c) //120
 246 NHSTUB(UnsetZoomForMovie                      ,0xffd31f0c) //104
 247 NHSTUB(UpdateMBROnFlash                       ,0xffc3d754) //105
 248 NHSTUB(VbattGet                               ,0xffc105e8) //120
 249 NHSTUB(Write                                  ,0xffc13c28) //120
 250 NHSTUB(WriteSDCard                            ,0xffcfaf54) //108
 251 NHSTUB(_log                                   ,0xffe5a024) //111
 252 NHSTUB(_log10                                 ,0xffe58f68) //112
 253 NHSTUB(_pow                                   ,0xffe590d8) //121
 254 NHSTUB(_sqrt                                  ,0xffe5b38c) //  1
 255 NHSTUB(add_ptp_handler                        ,0xffd9fb18) //121
 256 NHSTUB(apex2us                                ,0xffd71fbc) //121
 257 NHSTUB(close                                  ,0xffc09f74) //109
 258 NHSTUB(err_init_task                          ,0xffc04e98) //111
 259 NHSTUB(exmem_alloc                            ,0xffc52d84) //103
 260 NHSTUB(exmem_free                             ,0xffc52dfc) //103
 261 NHSTUB(free                                   ,0xffc03a98) //112
 262 NHSTUB(get_nd_value                           ,0xffdd9d98) //123
 263 NHSTUB(get_current_nd_value                   ,0xffdd9d54) //122
 264 NHSTUB(kbd_p1_f                               ,0xffc11d28) //109
 265 NHSTUB(kbd_p1_f_cont                          ,0xffc11d34) //109
 266 NHSTUB(kbd_p2_f                               ,0xffc11560) //109
 267 NHSTUB(kbd_read_keys                          ,0xffc11c24) //109
 268 NHSTUB(kbd_read_keys_r2                       ,0xffc3138c) //109
 269 NHSTUB(lseek                                  ,0xffc13cbc) //120
 270 NHSTUB(malloc                                 ,0xffc039c4) //112
 271 NHSTUB(memcmp                                 ,0xffc0d90c) //120
 272 NHSTUB(memcpy                                 ,0xffc6f708) //120
 273 NHSTUB(memset                                 ,0xffd70e34) //120
 274 NHSTUB(mkdir                                  ,0xffc13f20) //109
 275 NHSTUB(mktime_ext                             ,0xffc6ff74) //  1
 276 NHSTUB(open                                   ,0xffc09ec4) //109
 277 NHSTUB(OpenFastDir                            ,0xffdce7cc) //  1
 278 NHSTUB(closedir                               ,0xffdce930) //  1
 279 NHSTUB(qsort                                  ,0xffd7133c) //  1
 280 NHSTUB(rand                                   ,0xffc0da14) //121
 281 NHSTUB(realloc                                ,0xffc03b78) //115
 282 NHSTUB(reboot_fw_update                       ,0xffdd3134) //106
 283 NHSTUB(set_control_event                      ,0xffc5c2f8) //  1
 284 NHSTUB(srand                                  ,0xffc0da08) //122
 285 NHSTUB(stat                                   ,0xffc13d88) //  1
 286 NHSTUB(strcat                                 ,0xffc6f4f4) //  1
 287 NHSTUB(strchr                                 ,0xffc6f57c) //  1
 288 NHSTUB(strcmp                                 ,0xffc0d8a4) //120
 289 NHSTUB(strcpy                                 ,0xffc0d88c) //120
 290 NHSTUB(strftime                               ,0xffc6f97c) //  1
 291 NHSTUB(strlen                                 ,0xffc0d8e8) //120
 292 NHSTUB(strncmp                                ,0xffc6f530) //  1
 293 NHSTUB(strncpy                                ,0xffc1d80c) //  1
 294 NHSTUB(strrchr                                ,0xffc6f5a0) //  1
 295 NHSTUB(strtol                                 ,0xffc1da44) //101
 296 NHSTUB(strtolx                                ,0xffc1d848) //109
 297    DEF(task_CaptSeq                           ,0xffc49b38) //120
 298    DEF(task_DvlpSeqTask                       ,0xffd0ff50) //120
 299    DEF(task_ExpDrv                            ,0xffc91194) //120
 300    DEF(task_FileWrite                         ,0xffdcb5a8) //120
 301    DEF(task_InitFileModules                   ,0xffc5fea0) //120
 302    DEF(task_MovieRecord                       ,0xffc46678) //120
 303    DEF(task_PhySw                             ,0xffc118bc) //120
 304 NHSTUB(time                                   ,0xffc52170) //109
 305 NHSTUB(vsprintf                               ,0xffc0d80c) //115
 306 NHSTUB(EngDrvRead                             ,0xffc12b68) //102
 307 NHSTUB(PTM_GetCurrentItem                     ,0xffc5d158) //105
 308 NHSTUB(CancelHPTimer                          ,0xffc53ad8) //119
 309 NHSTUB(SetHPTimerAfterNow                     ,0xffc539d0) //119
 310 NHSTUB(PT_MFOn                                ,0xffc47b00) //120
 311 NHSTUB(PT_MFOff                               ,0xffc47b10) //120
 312 NHSTUB(GetAdChValue                           ,0xffc2f3b8) //120
 313 NHSTUB(get_ptp_buf_size                       ,0xffca5744) //122
 314 NHSTUB(get_ptp_file_buf                       ,0xffda13ec) //121

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