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

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