root/platform/a470/sub/100e/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.00E   // Found @ 0xffc5601c, "GM1.00E" @ 0xffc56029
   7 //   Firmware build timestamp: Jan  8 2008 16:51:20
   8 //   Canon PowerShot A470
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12666# (0x317a) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x01ffffff
  15 //   MEMISOSTART = 0x000a5718
  16 //   KEYSYS = d3enc# Found @ 0xffff1a98
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff1a78
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffddb06c
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffddb02c
  20 
  21 // Detected address ranges:
  22 // ROM      0xffc00000 - 0xffffffff (4194304 bytes)
  23 // RAM data 0x00001900 - 0x0000eba8 copied from 0xffeab38c (  53928 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(PutInNdFilter                        ,0xffdd6fc4) //102        *** != 0xffe267b4
  28 //NHSTUB(PutOutNdFilter                       ,0xffdd6fe8) //102        *** != 0xffe267ec
  29 //NHSTUB(kbd_pwr_off                          ,0xffc30b30) //  2 67%    *** != 0x00000000
  30 
  31 // Check of modemap from 'platform/CAMERA/shooting.c':
  32 // Firmware modemap table found @ffde7148 -> ffe8fab4
  33 // No problems found with modemap table.
  34 
  35 // Values below can be overridden in 'stubs_min.S':
  36 DEF(physw_status                            ,0x0001007c) // Found @0xffc11c0c
  37 DEF(physw_run                               ,0x00001bf0) // Found @0xffc118a8
  38 DEF(physw_sleep_delay                       ,0x00001bee) // Found @0xffc118a8
  39 DEF(levent_table                            ,0xffe72ec8) // Found @0xffe72ec8
  40 DEF(FlashParamsTable                        ,0xffe8fc68) // Found @0xffe8fc68
  41 DEF(movie_status                            ,0x000051d8) // Found @0xffc45174
  42 DEF(canon_menu_active                       ,0x00009014) // Found @0xffd1eec4
  43 DEF(canon_shoot_menu_active                 ,0x000097e1) // Found @0xffd37684
  44 DEF(playrec_mode                            ,0x00005348) // Found @0xffc4b760
  45 DEF(zoom_status                             ,0x0000d020) // Found @0xffde8948
  46 DEF(some_flag_for_af_scan                   ,0x0000cd9c) // Found @0xffdd73a8
  47 DEF(zoom_busy                               ,0x000083a4) // Found @0xffd05d3c
  48 DEF(focus_busy                              ,0x000082b0) // Found @0xffd018d0
  49 DEF(recreview_hold                          ,0x00005b3c) // Found @0xffc63e24
  50 // Camera appears to have only 1 RAW buffer @ 0x10f06b20 (Found @0xffe2db28)
  51 DEF(fileio_semaphore                        ,0x00002890) // Found @0xffc3e2fc
  52 DEF(exmem_alloc_table                       ,0x00019a98) // Found @0xffc5122c
  53 DEF(exmem_types_table                       ,0xffeaee98) // Found @0x0000540c
  54 DEF_CONST(exmem_type_count                  ,0x00000012)
  55 DEF(imager_active                           ,0x00001ed4) // Found @0xffc24f90 (0x1ed0 + 4)
  56 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xffd29298
  57 
  58 // Values below go in 'lib.c':
  59 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2cc48
  60 //void *vid_get_viewport_fb()      { return (void*)0x10659d50; }             // Found @0xffe2b908
  61 DEF(viewport_fb_d                           ,0x000050cc) // Found 0x5080 (@0xffc40488) + 0x4c (@0xffc404c0)
  62 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x5080+0x4c)); } // Found @0xffc40488 & 0xffc404c0
  63 DEF(jpeg_count_str                          ,0x00049a00) // Found @0xffd5de80
  64 //char *camera_jpeg_count_str()    { return (char*)0x00049a00; }             // Found @0xffd5de80
  65 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xffd29cdc
  66 
  67 // Bitmap masks and physw_status index values for SD_READONLY and USB power flags (for kbd.c).
  68 //#define SD_READONLY_FLAG    0x00020000 // Found @0xffe51bbc, levent 0x90a
  69 //#define SD_READONLY_IDX     2
  70 //#define USB_MASK            0x00040000 // Found @0xffe51bc4, levent 0x902
  71 //#define USB_IDX             2
  72 //#define BATTCOVER_FLAG      0x01000000 // Found @0xffe51b1c, levent 0x905
  73 //#define BATTCOVER_IDX       1
  74 //#define ANALOG_AV_FLAG      0x02000000 // Found @0xffe51b24, levent 0x900 (non-inverted logic)
  75 //#define ANALOG_AV_IDX       1
  76 
  77 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  78 //static KeyMap keymap[] = {
  79 //    { 1, KEY_POWER           ,0x04000000 }, // Found @0xffe51b2c, levent 0x600 (uses inverted logic in physw_status)
  80 //    { 2, KEY_UP              ,0x00000001 }, // Found @0xffe51b3c, levent 0x04
  81 //    { 2, KEY_DOWN            ,0x00000002 }, // Found @0xffe51b44, levent 0x05
  82 //    { 2, KEY_RIGHT           ,0x00000004 }, // Found @0xffe51b4c, levent 0x07
  83 //    { 2, KEY_LEFT            ,0x00000008 }, // Found @0xffe51b54, levent 0x06
  84 //    { 2, KEY_SHOOT_FULL      ,0x00000030 }, // Found @0xffe51b64, levent 0x01
  85 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000020 }, // Found @0xffe51b64, levent 0x01
  86 //    { 2, KEY_SHOOT_HALF      ,0x00000010 }, // Found @0xffe51b5c, levent 0x00
  87 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffe51b7c, levent 0x08
  88 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffe51b84, levent 0x09
  89 //    { 0, 0, 0 }
  90 //};
  91 
  92 // Values below go in 'platform_camera.h':
  93 //#define CAM_DRYOS         1
  94 //#define CAM_RAW_ROWPIX    3152 // Found @0xffe25328
  95 //#define CAM_RAW_ROWS      2346 // Found @0xffe2532c
  96 //#undef  CAM_UNCACHED_BIT
  97 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xffc17e54
  98 //#define PARAM_CAMERA_NAME 4 // Found @0xffe9188c
  99 
 100 // Known propcases
 101 // //      PROPCASE_AFSTEP 13
 102 // #define PROPCASE_FOCUS_STATE 18
 103 // #define PROPCASE_AV 23
 104 // #define PROPCASE_BV 34
 105 // //      PROPCASE_DELTA_DIGITALGAIN 77
 106 // #define PROPCASE_DELTA_SV 79
 107 // //      PROPCASE_DELTA_ND 80
 108 // #define PROPCASE_EV_CORRECTION_2 207
 109 // #define PROPCASE_ORIENTATION_SENSOR 219
 110 // #define PROPCASE_SV_MARKET 246
 111 // //      PROPCASE_SVFIX 247
 112 // #define PROPCASE_TV 262
 113 // Guessed propset: 2
 114 
 115 // Misc stuff
 116 DEF(ctypes, 0xffe5171a)
 117 
 118 // EXMEM types:
 119 // EXMEM_RAMDISK     0
 120 // EXMEM_COM         1
 121 // EXMEM_COMTMP      2
 122 // EXMEM_FORMATTER   3
 123 // EXMEM_SHADING     4
 124 // EXMEM_FAMODE      5
 125 // EXMEM_FIRMUP      6
 126 // EXMEM_FIRMUP_VRAM 7
 127 // EXMEM_DVLPWORK    8
 128 // EXMEM_EVF         9
 129 // EXMEM_SCRIPT      10
 130 // EXMEM_FILESTORE   11
 131 // EXMEM_MOVIE_REC   12
 132 // EXMEM_MOVIE_PLY   13
 133 // EXMEM_WIDE        14
 134 // EXMEM_NARROW      15
 135 // EXMEM_CRAW_REC    16
 136 // EXMEM_PCEVF       17
 137 
 138 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 139 // pointer to TCB area: 0x19f4, found @ 0xffc05ee4
 140 
 141 // LED table init @ 0xffcc3e14
 142 // LED #1: 0xc0220080, offset 0x244
 143 // LED #2: 0xc0220084, offset 0x204
 144 // LED #3: 0xc022008c, offset 0x4
 145 // LED #4: 0xc0220088, offset 0x44
 146 
 147 // For capt_seq.c
 148 DEF(_nrflag,0x8888) // Found @ ffd0cb54 (0x8888)
 149 //static long *nrflag = (long*)(0x8888);       // Found @ ffd0cb54
 150 
 151 // Stubs below matched 100%.
 152 //    Name                                     Address                Comp to stubs_entry_2.S
 153 NHSTUB(AllocateUncacheableMemory              ,0xffc17e18) //112
 154 NHSTUB(Close                                  ,0xffc13b5c) //120
 155 NHSTUB(CreateBinarySemaphore                  ,0xffc0b608) //115
 156 NHSTUB(CreateTask                             ,0xffc0b8e0) //120
 157 NHSTUB(DebugAssert                            ,0xffc0bdb8) //107
 158 NHSTUB(DeleteDirectory_Fut                    ,0xffc134ec) //116
 159 NHSTUB(DeleteFile_Fut                         ,0xffc13408) //112
 160 NHSTUB(DoAELock                               ,0xffc15c80) //120
 161 NHSTUB(DoAFLock                               ,0xffc157a0) //120
 162 NHSTUB(EnterToCompensationEVF                 ,0xffc15a90) //104
 163 NHSTUB(ExecuteEventProcedure                  ,0xffc53308) //104
 164 NHSTUB(ExitFromCompensationEVF                ,0xffc15bdc) //104
 165 NHSTUB(ExitTask                               ,0xffc0bb70) //120
 166 NHSTUB(ExpCtrlTool_StartContiAE               ,0xffc218c8) //104
 167 NHSTUB(ExpCtrlTool_StopContiAE                ,0xffc21a0c) //104
 168 NHSTUB(Fclose_Fut                             ,0xffc13584) //120
 169 NHSTUB(Feof_Fut                               ,0xffc13770) //  1
 170 NHSTUB(Fflush_Fut                             ,0xffc137ac) //  1
 171 NHSTUB(Fgets_Fut                              ,0xffc136d8) //  1
 172 NHSTUB(Fopen_Fut                              ,0xffc13544) //120
 173 NHSTUB(Fread_Fut                              ,0xffc13630) //120
 174 NHSTUB(FreeUncacheableMemory                  ,0xffc17e4c) //112
 175 NHSTUB(Fseek_Fut                              ,0xffc13724) //120
 176 NHSTUB(Fwrite_Fut                             ,0xffc13684) //120
 177 NHSTUB(GetBatteryTemperature                  ,0xffc32bd8) //102
 178 NHSTUB(GetCCDTemperature                      ,0xffc32b68) //102
 179 NHSTUB(GetCurrentAvValue                      ,0xffd032e4) //120
 180 NHSTUB(GetCurrentShutterSpeed                 ,0xffc6fa4c) //120
 181 NHSTUB(GetDrive_ClusterSize                   ,0xffc3c8d0) //  1
 182 NHSTUB(GetDrive_FreeClusters                  ,0xffc3c938) //  1
 183 NHSTUB(GetDrive_TotalClusters                 ,0xffc3c904) //  1
 184 NHSTUB(GetFocusLensSubjectDistance            ,0xffd023dc) //102
 185 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xffd026e8) //  1
 186 NHSTUB(GetKbdState                            ,0xffc30b18) //109
 187 NHSTUB(GetMemInfo                             ,0xffc03c40) //115
 188 NHSTUB(GetOpticalTemperature                  ,0xffc32c48) //120
 189 NHSTUB(GetParameterData                       ,0xffd29c9c) //101
 190 NHSTUB(GetPropertyCase                        ,0xffc56f08) //102
 191 NHSTUB(GetSystemTime                          ,0xffdda8c0) //120
 192 NHSTUB(GetVRAMHPixelsSize                     ,0xffca18c0) //120
 193 NHSTUB(GetVRAMVPixelsSize                     ,0xffca18cc) //120
 194 NHSTUB(GetZoomLensCurrentPoint                ,0xffd060a0) //120
 195 NHSTUB(GetZoomLensCurrentPosition             ,0xffdd1c94) //102
 196 NHSTUB(GiveSemaphore                          ,0xffc0b844) //120
 197 NHSTUB(IsStrobeChargeCompleted                ,0xffc97108) //102
 198 NHSTUB(LEDDrive                               ,0xffc303c0) //120
 199 NHSTUB(LocalTime                              ,0xffc51028) //115
 200 NHSTUB(LockMainPower                          ,0xffc5b568) //120
 201 NHSTUB(MakeDirectory_Fut                      ,0xffc1347c) //116
 202 NHSTUB(MoveFocusLensToDistance                ,0xffe28454) //102
 203 NHSTUB(MoveIrisWithAv                         ,0xffdd6bdc) //120
 204 NHSTUB(MoveZoomLensWithPoint                  ,0xffdd7160) //120
 205 NHSTUB(MoveOpticalZoomAt                      ,0xffc15150) //109
 206 NHSTUB(Open                                   ,0xffc13b34) //120
 207 NHSTUB(PB2Rec                                 ,0xffc5e188) //104
 208 NHSTUB(PT_MoveDigitalZoomToWide               ,0xffc467e8) //120
 209 NHSTUB(PT_MoveOpticalZoomAt                   ,0xffc467c0) //120
 210 NHSTUB(PT_PlaySound                           ,0xffc460d4) //102
 211 NHSTUB(PostLogicalEventForNotPowerType        ,0xffc5abd8) //120
 212 NHSTUB(PostLogicalEventToUI                   ,0xffc5ac24) //120
 213 NHSTUB(Read                                   ,0xffc0a15c) //120
 214 NHSTUB(ReadFastDir                            ,0xffdc4160) //  1
 215 NHSTUB(Rec2PB                                 ,0xffc5e1b8) //104
 216 NHSTUB(RefreshPhysicalScreen                  ,0xffd66e5c) //104
 217 NHSTUB(RenameFile_Fut                         ,0xffc133b4) //  1
 218 NHSTUB(Restart                                ,0xffc19690) //122
 219 NHSTUB(SetAE_ShutterSpeed                     ,0xffe2ab18) //102
 220 NHSTUB(SetAutoShutdownTime                    ,0xffc5b5dc) //120
 221 NHSTUB(SetCurrentCaptureModeType              ,0xffc61880) //120
 222 NHSTUB(SetFileAttributes                      ,0xffc13e88) //  1
 223 NHSTUB(SetFileTimeStamp                       ,0xffc13e38) //  1
 224 NHSTUB(SetLogicalEventActive                  ,0xffc5b304) //  1
 225 NHSTUB(SetParameterData                       ,0xffd29c0c) //101
 226 NHSTUB(SetPropertyCase                        ,0xffc56e08) //102
 227 NHSTUB(SetScriptMode                          ,0xffc5b354) //120
 228 NHSTUB(SleepTask                              ,0xffc17c9c) //120
 229 NHSTUB(TakeSemaphore                          ,0xffc0b774) //120
 230 NHSTUB(TurnOffBackLight                       ,0xffc65db0) //104
 231 NHSTUB(TurnOnBackLight                        ,0xffc65d98) //104
 232 NHSTUB(TurnOnDisplay                          ,0xffc2ccf8) //120
 233 NHSTUB(TurnOffDisplay                         ,0xffc2cd08) //120
 234 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xffd1f7a4) //120
 235 NHSTUB(UnlockAE                               ,0xffc15cb0) //120
 236 NHSTUB(UnlockAF                               ,0xffc158b8) //120
 237 NHSTUB(UnlockMainPower                        ,0xffc5b4bc) //120
 238 NHSTUB(UnsetZoomForMovie                      ,0xffd2ed10) //104
 239 NHSTUB(UpdateMBROnFlash                       ,0xffc3c710) //105
 240 NHSTUB(VbattGet                               ,0xffc105d0) //120
 241 NHSTUB(Write                                  ,0xffc13c08) //120
 242 NHSTUB(WriteSDCard                            ,0xffcf8a00) //108
 243 NHSTUB(_log                                   ,0xffe4f520) //111
 244 NHSTUB(_log10                                 ,0xffe4e464) //112
 245 NHSTUB(_pow                                   ,0xffe4e5d4) //121
 246 NHSTUB(_sqrt                                  ,0xffe50888) //  1
 247 NHSTUB(add_ptp_handler                        ,0xffd960e4) //121
 248 NHSTUB(apex2us                                ,0xffd68398) //121
 249 NHSTUB(close                                  ,0xffc09f74) //109
 250 NHSTUB(err_init_task                          ,0xffc04e98) //111
 251 NHSTUB(exmem_alloc                            ,0xffc51af0) //103
 252 NHSTUB(exmem_ualloc                           ,0xffc51940) //103
 253 NHSTUB(exmem_ufree                            ,0xffc51a80) //103
 254 NHSTUB(free                                   ,0xffc03a98) //112
 255 NHSTUB(get_nd_value                           ,0xffdcf684) //123
 256 NHSTUB(get_current_nd_value                   ,0xffdcf640) //122
 257 NHSTUB(kbd_p1_f                               ,0xffc11d08) //109
 258 NHSTUB(kbd_p1_f_cont                          ,0xffc11d14) //109
 259 NHSTUB(kbd_p2_f                               ,0xffc11548) //109
 260 NHSTUB(kbd_read_keys                          ,0xffc11c0c) //109
 261 NHSTUB(kbd_read_keys_r2                       ,0xffc30728) //109
 262 NHSTUB(lseek                                  ,0xffc13c9c) //120
 263 NHSTUB(malloc                                 ,0xffc039c4) //112
 264 NHSTUB(memcmp                                 ,0xffc0d90c) //120
 265 NHSTUB(memcpy                                 ,0xffc6e698) //120
 266 NHSTUB(memset                                 ,0xffd67210) //120
 267 NHSTUB(mkdir                                  ,0xffc13f00) //109
 268 NHSTUB(mktime_ext                             ,0xffc6ef04) //  1
 269 NHSTUB(open                                   ,0xffc09ec4) //109
 270 NHSTUB(OpenFastDir                            ,0xffdc40cc) //  1
 271 NHSTUB(closedir                               ,0xffdc4230) //  1
 272 NHSTUB(qsort                                  ,0xffd67718) //  1
 273 NHSTUB(rand                                   ,0xffc0da14) //121
 274 NHSTUB(realloc                                ,0xffc03b78) //115
 275 NHSTUB(reboot_fw_update                       ,0xffdc8a34) //106
 276 NHSTUB(set_control_event                      ,0xffc5b058) //  1
 277 NHSTUB(srand                                  ,0xffc0da08) //122
 278 NHSTUB(stat                                   ,0xffc13d68) //  1
 279 NHSTUB(strcat                                 ,0xffc6e484) //  1
 280 NHSTUB(strchr                                 ,0xffc6e50c) //  1
 281 NHSTUB(strcmp                                 ,0xffc0d8a4) //120
 282 NHSTUB(strcpy                                 ,0xffc0d88c) //120
 283 NHSTUB(strftime                               ,0xffc6e90c) //  1
 284 NHSTUB(strlen                                 ,0xffc0d8e8) //120
 285 NHSTUB(strncmp                                ,0xffc6e4c0) //  1
 286 NHSTUB(strncpy                                ,0xffc1d81c) //  1
 287 NHSTUB(strrchr                                ,0xffc6e530) //  1
 288 NHSTUB(strtol                                 ,0xffc1da54) //101
 289 NHSTUB(strtolx                                ,0xffc1d858) //109
 290    DEF(task_CaptSeq                           ,0xffc488a4) //120
 291    DEF(task_DvlpSeqTask                       ,0xffd0d680) //120
 292    DEF(task_ExpDrv                            ,0xffc900b8) //120
 293    DEF(task_FileWrite                         ,0xffdc0ea8) //120
 294    DEF(task_InitFileModules                   ,0xffc5ebf8) //120
 295    DEF(task_MovieRecord                       ,0xffc453d8) //120
 296    DEF(task_PhySw                             ,0xffc118a4) //120
 297 NHSTUB(time                                   ,0xffc50edc) //109
 298 NHSTUB(vsprintf                               ,0xffc0d80c) //115
 299 NHSTUB(EngDrvRead                             ,0xffc12b48) //102
 300 NHSTUB(PTM_GetCurrentItem                     ,0xffc5beb8) //105
 301 NHSTUB(CancelHPTimer                          ,0xffc52844) //119
 302 NHSTUB(SetHPTimerAfterNow                     ,0xffc5273c) //119
 303 NHSTUB(PT_MFOn                                ,0xffc46860) //120
 304 NHSTUB(PT_MFOff                               ,0xffc46870) //120
 305 NHSTUB(GetAdChValue                           ,0xffc2e810) //120
 306 NHSTUB(get_ptp_buf_size                       ,0xffca3c94) //122
 307 NHSTUB(get_ptp_file_buf                       ,0xffd979b8) //121
 308 NHSTUB(SetVideoOutType                        ,0xffe2b304) //109
 309 NHSTUB(GetVideoOutType                        ,0xffe2b268) //120

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