root/platform/ixus970_sd890/sub/100b/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.00B   // Found @ 0xff86c11c, "GM1.00B" @ 0xff86c129
   7 //   Firmware build timestamp: Jan 24 2008 19:30:31
   8 //   Canon DIGITAL IXUS 970 IS
   9 
  10 // Values for makefile.inc
  11 //   DIGIC = 30# DIGIC III
  12 //   PLATFORMOSVER = 23
  13 //   PLATFORMID = 12659# (0x3173) Found @ 0xfffe0130
  14 //   MAXRAMADDR = 0x03ffffff
  15 //   MEMISOSTART = 0x000cbd40
  16 //   KEYSYS = d3enc# Found @ 0xffff33e0
  17 //   NEED_ENCODED_DISKBOOT = 1# Found @ 0xffff33c0
  18 //   ARAM_HEAP_START = 0x2ce000# Found @ 0xffa2ec34
  19 //   ARAM_HEAP_SIZE  = 0x32000# Found @ 0xffa2ebf4
  20 
  21 // Detected address ranges:
  22 // ROM      0xff810000 - 0xffffffff (8323072 bytes)
  23 // RAM data 0x00001900 - 0x0000f160 copied from 0xffb1e3b0 (  55392 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 
  28 // Check of modemap from 'platform/CAMERA/shooting.c':
  29 // Firmware modemap table found @ffa3eec8 -> ffaf9460
  30 // No problems found with modemap table.
  31 
  32 // Values below can be overridden in 'stubs_min.S':
  33 DEF(physw_status                            ,0x00010650) // Found @0xff821e38
  34 DEF(physw_run                               ,0x00001c00) // Found @0xff821ad0
  35 DEF(physw_sleep_delay                       ,0x00001bfe) // Found @0xff821ad0
  36 DEF(levent_table                            ,0xffad3fcc) // Found @0xffad3fcc
  37 DEF(FlashParamsTable                        ,0xffaf9620) // Found @0xffaf9620
  38 DEF(movie_status                            ,0x000053cc) // Found @0xff859d78
  39 DEF(canon_menu_active                       ,0x000099e0) // Found @0xff950198
  40 DEF(canon_shoot_menu_active                 ,0x00009fd9) // Found @0xff96cd70
  41 DEF(playrec_mode                            ,0x0000555c) // Found @0xff861170
  42 DEF(zoom_status                             ,0x0000d4a4) // Found @0xffa406c8
  43 DEF(some_flag_for_af_scan                   ,0x0000d228) // Found @0xffa2b598
  44 // focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c).
  45 // each entry contains 3 int value(s), the first is the zoom focus length.
  46 // there are 12 entries in the table - set NUM_FL to 12
  47 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
  48 DEF(zoom_busy                               ,0x00008aa0) // Found @0xff932a88
  49 DEF(focus_busy                              ,0x0000898c) // Found @0xff92e134
  50 //DEF(recreview_hold                          ,0x00006188) // Found @0xff87eb90, ** != ** stubs_min = 0x00009d98 (0x9CEC+0xAC)
  51 // Camera has 2 RAW buffers @ 0x107d68c0 & 0x11b97b60
  52 //  Note: active buffer --> raw_buffers[ active_raw_buffer   *3]
  53 //        other buffer  --> raw_buffers[(active_raw_buffer^1)*3]
  54 DEF(raw_buffers                             ,0xffab1b74) // Found @0xffab1b74
  55 DEF(active_raw_buffer                       ,0x0000550c) // Found @0xff85e5f8
  56 DEF(fileio_semaphore                        ,0x00002a0c) // Found @0xff850cec
  57 DEF(exmem_alloc_table                       ,0x0001a2dc) // Found @0xff86732c
  58 DEF(exmem_types_table                       ,0xffb220e4) // Found @0x00005634
  59 DEF_CONST(exmem_type_count                  ,0x00000012)
  60 DEF(imager_active                           ,0x00001ef4) // Found @0xff8362e8 (0x1ef0 + 4)
  61 DEF_CONST(uiprop_count                      ,0x00000064) // Found @0xff95cf30
  62 DEF(cameracon_state                         ,0x00005d88) // Found @0xff876928
  63 
  64 // Values below go in 'lib.c':
  65 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xff83e8a0
  66 //void *vid_get_viewport_fb()      { return (void*)0x1065adc0; }             // Found @0xffa88afc
  67 DEF(viewport_fb_d                           ,0x0000524c) // Found 0x51fc (@0xff853078) + 0x50 (@0xff8530b0)
  68 //void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x51fc+0x50)); } // Found @0xff853078 & 0xff8530b0
  69 DEF(jpeg_count_str                          ,0x0004ca80) // Found @0xff9a6fdc
  70 //char *camera_jpeg_count_str()    { return (char*)0x0004ca80; }             // Found @0xff9a6fdc
  71 //int get_flash_params_count(void) { return 0x73; }                          // Found @0xff95d974
  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 @0xffab1630, levent 0x90a
  75 //#define SD_READONLY_IDX     2
  76 //#define USB_MASK            0x00040000 // Found @0xffab163c, levent 0x902
  77 //#define USB_IDX             2
  78 //#define BATTCOVER_FLAG      0x00008000 // Found @0xffab1618, levent 0x905
  79 //#define BATTCOVER_IDX       2
  80 //#define ANALOG_AV_FLAG      0x00200000 // Found @0xffab1504, levent 0x900 (non-inverted logic)
  81 //#define ANALOG_AV_IDX       0
  82 
  83 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  84 //static KeyMap keymap[] = {
  85 //    { 1, KEY_POWER           ,0x40000000 }, // Found @0xffab1570, levent 0x600
  86 //    { 1, KEY_PLAYBACK        ,0x80000000 }, // Found @0xffab157c, levent 0x601
  87 //    { 2, KEY_SHOOT_FULL      ,0x00000003 }, // Found @0xffab1594, levent 0x01
  88 //    { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 }, // Found @0xffab1594, levent 0x01
  89 //    { 2, KEY_SHOOT_HALF      ,0x00000001 }, // Found @0xffab1588, levent 0x00
  90 //    { 2, KEY_ZOOM_IN         ,0x00000004 }, // Found @0xffab15a0, levent 0x02
  91 //    { 2, KEY_ZOOM_OUT        ,0x00000008 }, // Found @0xffab15ac, levent 0x03
  92 //    { 2, KEY_LEFT            ,0x00000010 }, // Found @0xffab15b8, levent 0x06
  93 //    { 2, KEY_RIGHT           ,0x00000020 }, // Found @0xffab15c4, levent 0x07
  94 //    { 2, KEY_DOWN            ,0x00000040 }, // Found @0xffab15d0, levent 0x05
  95 //    { 2, KEY_UP              ,0x00000080 }, // Found @0xffab15dc, levent 0x04
  96 //    { 2, KEY_SET             ,0x00000100 }, // Found @0xffab15e8, levent 0x08
  97 //    { 2, KEY_DISPLAY         ,0x00000200 }, // Found @0xffab15f4, levent 0x0a
  98 //    { 2, KEY_MENU            ,0x00000400 }, // Found @0xffab1600, levent 0x09
  99 //    { 0, 0, 0 }
 100 //};
 101 
 102 // Values below go in 'platform_camera.h':
 103 //#define CAM_DRYOS         1
 104 //#define CAM_RAW_ROWPIX    3720 // Found @0xffa8251c
 105 //#define CAM_RAW_ROWS      2772 // Found @0xffa82524
 106 //#undef  CAM_UNCACHED_BIT
 107 //#define CAM_UNCACHED_BIT  0x10000000 // Found @0xff8285a8
 108 //#define PARAM_CAMERA_NAME 4 // Found @0xffafb71c
 109 
 110 // Below goes in 'filewrite.c' or 'platform_camera.h':
 111 //#define MAX_CHUNKS_FOR_FWT 3 // Found @0xffa102ac
 112 
 113 // Known propcases
 114 // //      PROPCASE_AFSTEP 13
 115 // #define PROPCASE_FOCUS_STATE 18
 116 // #define PROPCASE_AV 23
 117 // #define PROPCASE_BV 34
 118 // //      PROPCASE_DELTA_DIGITALGAIN 77
 119 // #define PROPCASE_DELTA_SV 79
 120 // //      PROPCASE_DELTA_ND 80
 121 // #define PROPCASE_EV_CORRECTION_2 207
 122 // #define PROPCASE_ORIENTATION_SENSOR 219
 123 // #define PROPCASE_SV_MARKET 246
 124 // //      PROPCASE_SVFIX 247
 125 // #define PROPCASE_TV 262
 126 // Guessed propset: 2
 127 
 128 // Misc stuff
 129 DEF(ctypes, 0xffab10fe)
 130 
 131 // EXMEM types:
 132 // EXMEM_RAMDISK     0
 133 // EXMEM_COM         1
 134 // EXMEM_COMTMP      2
 135 // EXMEM_FORMATTER   3
 136 // EXMEM_SHADING     4
 137 // EXMEM_FAMODE      5
 138 // EXMEM_FIRMUP      6
 139 // EXMEM_FIRMUP_VRAM 7
 140 // EXMEM_DVLPWORK    8
 141 // EXMEM_EVF         9
 142 // EXMEM_SCRIPT      10
 143 // EXMEM_FILESTORE   11
 144 // EXMEM_MOVIE_REC   12
 145 // EXMEM_MOVIE_PLY   13
 146 // EXMEM_WIDE        14
 147 // EXMEM_NARROW      15
 148 // EXMEM_CRAW_REC    16
 149 // EXMEM_PCEVF       17
 150 
 151 // ISR flag: 0x195c, pointer to current task's control block: 0x1958
 152 // pointer to TCB area: 0x19f4, found @ 0xff815e1c
 153 
 154 // LED table init @ 0xff8ebde0
 155 // LED #1: 0xc02200d4, offset 0x204
 156 // LED #2: 0xc0220138, offset 0x84
 157 // LED #3: 0xc02200d0, offset 0xc4
 158 // LED #4: 0xc0220134, offset 0x4
 159 // LED #5: 0xc0220130, offset 0x44
 160 
 161 // For capt_seq.c
 162 DEF(_nrflag,0x91a4) // Found @ ff93db9c (0x91a4)
 163 //static long *nrflag = (long*)(0x91a4);       // Found @ ff93db9c
 164 
 165 // Stubs below matched 100%.
 166 //    Name                                     Address                Comp to stubs_entry_2.S
 167 NHSTUB(AllocateUncacheableMemory              ,0xff82856c) //112
 168 NHSTUB(Close                                  ,0xff823d90) //120
 169 NHSTUB(CreateBinarySemaphore                  ,0xff81b540) //115
 170 NHSTUB(CreateTask                             ,0xff81b818) //120
 171 NHSTUB(DebugAssert                            ,0xff81bcf0) //107
 172 NHSTUB(DeleteDirectory_Fut                    ,0xff823720) //116
 173 NHSTUB(DeleteFile_Fut                         ,0xff82363c) //112
 174 NHSTUB(DeleteSemaphore                        ,0xff81b600) //120
 175 NHSTUB(DoAELock                               ,0xff825f78) //120
 176 NHSTUB(DoAFLock                               ,0xff825b88) //120
 177 NHSTUB(EnterToCompensationEVF                 ,0xff825e84) //104
 178 NHSTUB(ExecuteEventProcedure                  ,0xff869408) //104
 179 NHSTUB(ExitFromCompensationEVF                ,0xff825ed4) //104
 180 NHSTUB(ExitTask                               ,0xff81baa8) //120
 181 NHSTUB(ExpCtrlTool_StartContiAE               ,0xff832b04) //104
 182 NHSTUB(ExpCtrlTool_StopContiAE                ,0xff832c48) //104
 183 NHSTUB(Fclose_Fut                             ,0xff8237b8) //120
 184 NHSTUB(Feof_Fut                               ,0xff8239a4) //  1
 185 NHSTUB(Fflush_Fut                             ,0xff8239e0) //  1
 186 NHSTUB(Fgets_Fut                              ,0xff82390c) //  1
 187 NHSTUB(Fopen_Fut                              ,0xff823778) //120
 188 NHSTUB(Fread_Fut                              ,0xff823864) //120
 189 NHSTUB(FreeUncacheableMemory                  ,0xff8285a0) //112
 190 NHSTUB(Fseek_Fut                              ,0xff823958) //120
 191 NHSTUB(Fwrite_Fut                             ,0xff8238b8) //120
 192 NHSTUB(GetBatteryTemperature                  ,0xff8453a0) //102
 193 NHSTUB(GetCCDTemperature                      ,0xff845330) //102
 194 NHSTUB(GetCurrentAvValue                      ,0xff92fb48) //120
 195 NHSTUB(GetCurrentShutterSpeed                 ,0xff895758) //120
 196 NHSTUB(GetDrive_ClusterSize                   ,0xff84f2c0) //  1
 197 NHSTUB(GetDrive_FreeClusters                  ,0xff84f328) //  1
 198 NHSTUB(GetDrive_TotalClusters                 ,0xff84f2f4) //  1
 199 NHSTUB(GetFocusLensSubjectDistance            ,0xff92ec40) //102
 200 NHSTUB(GetFocusLensSubjectDistanceFromLens    ,0xff92ef4c) //  1
 201 NHSTUB(GetKbdState                            ,0xff8428e8) //109
 202 NHSTUB(GetMemInfo                             ,0xff813c40) //115
 203 NHSTUB(GetOpticalTemperature                  ,0xff845410) //120
 204 NHSTUB(GetParameterData                       ,0xff95d934) //101
 205 NHSTUB(GetPropertyCase                        ,0xff86d008) //102
 206 NHSTUB(GetSystemTime                          ,0xffa2e488) //120
 207 NHSTUB(GetVRAMHPixelsSize                     ,0xff8c8598) //120
 208 NHSTUB(GetVRAMVPixelsSize                     ,0xff8c85a4) //120
 209 NHSTUB(GetZoomLensCurrentPoint                ,0xff932dec) //120
 210 NHSTUB(GetZoomLensCurrentPosition             ,0xffa244d8) //102
 211 NHSTUB(GiveSemaphore                          ,0xff81b77c) //120
 212 NHSTUB(IsStrobeChargeCompleted                ,0xff8bda04) //102
 213 NHSTUB(LEDDrive                               ,0xff84206c) //120
 214 NHSTUB(LocalTime                              ,0xff866acc) //115
 215 NHSTUB(LockMainPower                          ,0xff8754b4) //120
 216 NHSTUB(MakeDirectory_Fut                      ,0xff8236b0) //116
 217 NHSTUB(MoveFocusLensToDistance                ,0xffa85638) //102
 218 NHSTUB(MoveIrisWithAv                         ,0xffa2a838) //120
 219 NHSTUB(MoveZoomLensWithPoint                  ,0xffa2adbc) //120
 220 NHSTUB(MoveOpticalZoomAt                      ,0xff825400) //109
 221 NHSTUB(Open                                   ,0xff823d68) //120
 222 NHSTUB(PB2Rec                                 ,0xff8784d0) //104
 223 NHSTUB(PT_MoveDigitalZoomToWide               ,0xff85bbe4) //120
 224 NHSTUB(PT_MoveOpticalZoomAt                   ,0xff85bbbc) //120
 225 NHSTUB(PT_PlaySound                           ,0xff85b240) //102
 226 NHSTUB(PostLogicalEventForNotPowerType        ,0xff873274) //120
 227 NHSTUB(PostLogicalEventToUI                   ,0xff8732c0) //120
 228 NHSTUB(PutInNdFilter                          ,0xffa2ac20) //102
 229 NHSTUB(PutOutNdFilter                         ,0xffa2ac44) //102
 230 NHSTUB(Read                                   ,0xff81a094) //120
 231 NHSTUB(ReadFastDir                            ,0xffa13500) //  1
 232 NHSTUB(Rec2PB                                 ,0xff876ed4) //104
 233 NHSTUB(RefreshPhysicalScreen                  ,0xff9b12e8) //104
 234 NHSTUB(RenameFile_Fut                         ,0xff8235e8) //  1
 235 NHSTUB(Restart                                ,0xff829de4) //122
 236 NHSTUB(SetAE_ShutterSpeed                     ,0xffa87d0c) //102
 237 NHSTUB(SetAutoShutdownTime                    ,0xff875528) //120
 238 NHSTUB(SetCurrentCaptureModeType              ,0xff87c334) //120
 239 NHSTUB(SetDate                                ,0xffa8972c) //120
 240 NHSTUB(SetFileAttributes                      ,0xff8240bc) //  1
 241 NHSTUB(SetFileTimeStamp                       ,0xff82406c) //  1
 242 NHSTUB(SetLogicalEventActive                  ,0xff875194) //  1
 243 NHSTUB(SetParameterData                       ,0xff95d8a4) //101
 244 NHSTUB(SetPropertyCase                        ,0xff86cf08) //102
 245 NHSTUB(SetScriptMode                          ,0xff8751e4) //120
 246 NHSTUB(SleepTask                              ,0xff8283f0) //120
 247 NHSTUB(TakeSemaphore                          ,0xff81b6ac) //120
 248 NHSTUB(TurnOffBackLight                       ,0xff881d28) //104
 249 NHSTUB(TurnOnBackLight                        ,0xff881d10) //104
 250 NHSTUB(TurnOnDisplay                          ,0xff83e950) //120
 251 NHSTUB(TurnOffDisplay                         ,0xff83e960) //120
 252 NHSTUB(UIFS_WriteFirmInfoToFile               ,0xff9510f4) //120
 253 NHSTUB(UnlockAE                               ,0xff825fa8) //120
 254 NHSTUB(UnlockAF                               ,0xff825bcc) //120
 255 NHSTUB(UnlockMainPower                        ,0xff875408) //120
 256 NHSTUB(UnsetZoomForMovie                      ,0xff962ed0) //104
 257 NHSTUB(UpdateMBROnFlash                       ,0xff84f100) //105
 258 NHSTUB(VbattGet                               ,0xff82071c) //120
 259 NHSTUB(Write                                  ,0xff823e3c) //120
 260 NHSTUB(WriteSDCard                            ,0xff9227e0) //108
 261 NHSTUB(_log                                   ,0xffaaebb8) //111
 262 NHSTUB(_log10                                 ,0xffaadafc) //112
 263 NHSTUB(_pow                                   ,0xffaadc6c) //121
 264 NHSTUB(_sqrt                                  ,0xffaaffd8) //  1
 265 NHSTUB(add_ptp_handler                        ,0xff9e1b24) //121
 266 NHSTUB(apex2us                                ,0xff9b2824) //121
 267 NHSTUB(close                                  ,0xff819eac) //109
 268 NHSTUB(err_init_task                          ,0xff814e98) //111
 269 NHSTUB(exmem_alloc                            ,0xff867bf0) //103
 270 NHSTUB(exmem_ualloc                           ,0xff867a40) //103
 271 NHSTUB(exmem_ufree                            ,0xff867b80) //103
 272 NHSTUB(free                                   ,0xff813a98) //112
 273 NHSTUB(get_nd_value                           ,0xffa21e30) //123
 274 NHSTUB(get_current_nd_value                   ,0xffa21dec) //122
 275 NHSTUB(get_current_deltasv                    ,0xff8963f4) //122
 276 NHSTUB(GetCurrentDriveBaseSvValue             ,0xff89af5c) //123
 277 NHSTUB(kbd_p1_f                               ,0xff821f3c) //109
 278 NHSTUB(kbd_p1_f_cont                          ,0xff821f48) //109
 279 NHSTUB(kbd_p2_f                               ,0xff821770) //109
 280 NHSTUB(kbd_read_keys                          ,0xff821e38) //109
 281 NHSTUB(kbd_read_keys_r2                       ,0xff842494) //109
 282 NHSTUB(kbd_pwr_off                            ,0xff84296c) //  2
 283 NHSTUB(kbd_pwr_on                             ,0xff84291c) //  2
 284 NHSTUB(lseek                                  ,0xff823ed0) //120
 285 NHSTUB(malloc                                 ,0xff8139c4) //112
 286 NHSTUB(memcmp                                 ,0xff81d844) //120
 287 NHSTUB(memcpy                                 ,0xff8943a4) //120
 288 NHSTUB(memset                                 ,0xff9b169c) //120
 289 NHSTUB(mkdir                                  ,0xff824134) //109
 290 NHSTUB(mktime_ext                             ,0xff894c10) //  1
 291 NHSTUB(open                                   ,0xff819dfc) //109
 292 NHSTUB(OpenFastDir                            ,0xffa1346c) //  1
 293 NHSTUB(closedir                               ,0xffa135d0) //  1
 294 NHSTUB(qsort                                  ,0xff9b1ba4) //  1
 295 NHSTUB(rand                                   ,0xff81d94c) //121
 296 NHSTUB(realloc                                ,0xff813b78) //115
 297 NHSTUB(reboot_fw_update                       ,0xffa1af00) //106
 298 NHSTUB(set_control_event                      ,0xff874e10) //  1
 299 NHSTUB(srand                                  ,0xff81d940) //122
 300 NHSTUB(stat                                   ,0xff823f9c) //  1
 301 NHSTUB(strcat                                 ,0xff894190) //  1
 302 NHSTUB(strchr                                 ,0xff894218) //  1
 303 NHSTUB(strcmp                                 ,0xff81d7dc) //120
 304 NHSTUB(strcpy                                 ,0xff81d7c4) //120
 305 NHSTUB(strftime                               ,0xff894618) //  1
 306 NHSTUB(strlen                                 ,0xff81d820) //120
 307 NHSTUB(strncmp                                ,0xff8941cc) //  1
 308 NHSTUB(strncpy                                ,0xff82e200) //  1
 309 NHSTUB(strrchr                                ,0xff89423c) //  1
 310 NHSTUB(strtol                                 ,0xff82e438) //101
 311 NHSTUB(strtolx                                ,0xff82e23c) //109
 312    DEF(task_CaptSeq                           ,0xff85e03c) //120
 313    DEF(task_DvlpSeqTask                       ,0xff93e730) //120
 314    DEF(task_ExpDrv                            ,0xff8b6864) //120
 315    DEF(task_FileWrite                         ,0xffa10248) //120
 316    DEF(task_InitFileModules                   ,0xff878f84) //120
 317    DEF(task_MovieRecord                       ,0xff85a004) //120
 318    DEF(task_PhySw                             ,0xff821acc) //120
 319    DEF(task_RotaryEncoder                     ,0xff842a44) //120
 320 NHSTUB(time                                   ,0xff866fd0) //109
 321 NHSTUB(vsprintf                               ,0xff81d744) //115
 322 NHSTUB(EngDrvRead                             ,0xff822d7c) //102
 323 //NHSTUB(PTM_GetCurrentItem                   ,0xff875de8) //105            == 0xff875de8
 324 NHSTUB(CancelHPTimer                          ,0xff868944) //119
 325 NHSTUB(SetHPTimerAfterNow                     ,0xff86883c) //119
 326 NHSTUB(PT_MFOn                                ,0xff85bc5c) //120
 327 NHSTUB(PT_MFOff                               ,0xff85bc6c) //120
 328 NHSTUB(GetAdChValue                           ,0xff840390) //120
 329 NHSTUB(get_ptp_buf_size                       ,0xff8caf8c) //122
 330 NHSTUB(get_ptp_file_buf                       ,0xff9e3454) //121
 331 NHSTUB(SetVideoOutType                        ,0xffa884f8) //109
 332 NHSTUB(GetVideoOutType                        ,0xffa8845c) //120

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