root/platform/m10/sub/110f/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 //   Main firmware start: 0xfc020000
   6 //   DRYOS R57 (DRYOS version 2.3, release #0057)
   7 //   Firmware Ver GM1.10F   // Found @ 0xfc1fb03c, "GM1.10F" @ 0xfc1fb049
   8 
   9 // Values for makefile.inc
  10 //   PLATFORMOSVER = 57
  11 //   MEMISOSTART = 0x3d6ffc
  12 //   MEMBASEADDR = 0x8000
  13 //   ARAM_HEAP_START = 0x0074e000 #  Found @0xfc18ec9c
  14 //   ARAM_HEAP_SIZE = 0x00022000 #  Found @0xfc18ec76
  15 
  16 // Detected address ranges:
  17 // ROM      0xfc000000 - 0xfe000000 (33554432 bytes)
  18 // RAM code 0x010e1000 - 0x01107d60 copied from 0xfceb1908 ( 159072 bytes)
  19 // RAM code 0xbfe10800 - 0xbfe1741d copied from 0xfced8668 (  27677 bytes)
  20 // RAM data 0x00008000 - 0x00055334 copied from 0xfce645d4 ( 316212 bytes)
  21 
  22 // Zico Xtensa blobs:
  23 // zico_0 0xbff20000 - 0xbff27938 copied from 0xfca32730 (  31032 bytes)
  24 // zico_1 0xbff00000 - 0xbff04b30 copied from 0xfca3a070 (  19248 bytes)
  25 // zico_2 0x80a00000 - 0x80b15060 copied from 0xfca3eba8 (1134688 bytes)
  26 
  27 // Camera is interchangeable lens
  28 
  29 // Values below go in 'platform_camera.h':
  30 //#define CAM_DRYOS         1
  31 //#define CAM_DRYOS_2_3_R39 1 // Defined for cameras with DryOS version R39 or higher
  32 //#define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher
  33 //#undef  CAM_UNCACHED_BIT
  34 //#define CAM_UNCACHED_BIT  0x40000000 // Found @0xfc142914
  35 //#undef CAM_HAS_ND_FILTER // Camera does not have an ND filter
  36 // Camera has an iris (CAM_HAS_IRIS_DIAPHRAGM default)
  37 
  38 // physw_event_table 0xfc623d30 Found @0xfc07eeda
  39 // Values below go in 'platform_kbd.h':
  40 //#define SD_READONLY_FLAG    0x20000000 // Found @0xfc623dc0, levent 0x20a
  41 //#define SD_READONLY_IDX     1
  42 //#define USB_MASK            0x10000000 // Found @0xfc623e20, levent 0x202
  43 //#define USB_IDX             2
  44 
  45 // Keymap values for kbd.c. Additional keys may be present, only common values included here.
  46 // WARNING: Values only verified on sx280hs (R52) and g7x (R55p6) errors likely on other cams!
  47 //KeyMap keymap[] = {
  48 //    { 0, KEY_POWER           ,0x00000001 }, // Found @0xfc623d30, levent 0x100 (uses inverted logic in physw_status)
  49 //    { 0, KEY_PLAYBACK        ,0x00000002 }, // Found @0xfc623d38, levent 0x101 (uses inverted logic in physw_status)
  50 //    { 1, KEY_SHOOT_FULL      ,0x00040001 }, // Found @0xfc623d60, levent 0x01
  51 //    { 1, KEY_SHOOT_HALF      ,0x00040000 }, // Found @0xfc623db0, levent 0x00
  52 //    { 1, KEY_SHOOT_FULL_ONLY ,0x00000001 }, // Found @0xfc623d60, levent 0x01
  53 //    { 1, KEY_VIDEO           ,0x00000008 }, // Found @0xfc623d68, levent 0x02
  54 //    { 1, KEY_UP              ,0x00000020 }, // Found @0xfc623d70, levent 0x06
  55 //    { 1, KEY_DOWN            ,0x00000040 }, // Found @0xfc623d78, levent 0x07
  56 //    { 1, KEY_RIGHT           ,0x00000080 }, // Found @0xfc623d80, levent 0x09
  57 //    { 1, KEY_LEFT            ,0x00000100 }, // Found @0xfc623d88, levent 0x08
  58 //    { 1, KEY_SET             ,0x00000200 }, // Found @0xfc623d90, levent 0x0a
  59 //    { 1, KEY_MENU            ,0x00001000 }, // Found @0xfc623da8, levent 0x14
  60 //    { 0, 0, 0 }
  61 //};
  62 
  63 // canon_mode_list 0xfc77efe8 Found @0xfc0e3dc8
  64 // Check modemap values from 'platform/CAMERA/shooting.c':
  65 // 32768  0x8000 In firmware but not in current modemap
  66 
  67 // Known propcases
  68 // //      PROPCASE_AFSTEP 13
  69 // #define PROPCASE_FOCUS_STATE 18
  70 // #define PROPCASE_AV 23
  71 // #define PROPCASE_BV 40
  72 // //      PROPCASE_DELTA_DIGITALGAIN 84
  73 // #define PROPCASE_DELTA_SV 86
  74 // //      PROPCASE_DELTA_ND 87
  75 // #define PROPCASE_EV_CORRECTION_2 218
  76 // #define PROPCASE_ORIENTATION_SENSOR 230
  77 // #define PROPCASE_SV_MARKET 257
  78 // //      PROPCASE_SVFIX 258
  79 // #define PROPCASE_TV 274
  80 // Guessed propset: 10
  81 
  82 // EXMEM types:
  83 // EXMEM_RAMDISK        0
  84 // EXMEM_COM            1
  85 // EXMEM_FORMATTER      2
  86 // EXMEM_SHADING        3
  87 // EXMEM_FAMODE         4
  88 // EXMEM_FIRMUP         5
  89 // EXMEM_FIRMUP_VRAM    6
  90 // EXMEM_FIRMUP_INFLATE 7
  91 // EXMEM_FIRMUP_PICTURESTYLE 8
  92 // EXMEM_DVLPWORK       9
  93 // EXMEM_EVF            10
  94 // EXMEM_SCRIPT         11
  95 // EXMEM_GPS            12
  96 // EXMEM_FACEAUTH       13
  97 // EXMEM_OHYEARLOG      14
  98 // EXMEM_WIFI           15
  99 // EXMEM_MULTI_PLY      16
 100 // EXMEM_FEP            17
 101 // EXMEM_LENS_FIRMUP    18
 102 // EXMEM_LENS_COMPENSATION 19
 103 // EXMEM_FILESTORE      20
 104 // EXMEM_MOVIE_REC      21
 105 // EXMEM_MOVIE_PLY      22
 106 // EXMEM_WIFI_RESIZE    23
 107 // EXMEM_PCEVF          24
 108 // EXMEM_WIDE           25
 109 // EXMEM_NARROW         26
 110 // EXMEM_AUTO_GIS_MODE  27
 111 // EXMEM_NP_GIS_MODE    28
 112 // EXMEM_TRIPODHDR_MODE 29
 113 // EXMEM_HSHQ_MODE      30
 114 // EXMEM_CRAW_REC       31
 115 // EXMEM_PHOTO_IN_MOVIE 32
 116 
 117 // Values below can be overridden in 'stubs_min.S':
 118 DEF(ctypes                            ,0xfc608160)
 119 DEF(physw_run                         ,0x000082cc) // Found @0xfc08c8ca
 120 DEF(physw_sleep_delay                 ,0x000082d4) // (0x82cc+0x8) Found @0xfc08c8ce
 121 DEF(physw_status                      ,0x00056bec) // Found @0xfc08cbb4
 122 DEF(fileio_semaphore                  ,0x00012030) // Found @0xfc07c0be
 123 DEF(levent_table                      ,0xfc660b28) // Found @0xfc11269c
 124 DEF(FlashParamsTable                  ,0xfc77f360) // Found @0xfc0e3ddc
 125 DEF(playrec_mode                      ,0x0000b2f4) // (0xb2f0+0x4) Found @0xfc33e18a
 126 DEF(jpeg_count_str                    ,0x00190ac0) // Found @0xfc1a15f6
 127 //DEF(zoom_busy                         ,0x00000000), ** != ** stubs_min = 0x00000001 (1)
 128 //DEF(focus_busy                        ,0x00000000), ** != ** stubs_min = 0x00000001 (1)
 129 DEF(imager_active                     ,0x0000861c) // (0x8618+0x4) Found @0xfc128198
 130 //DEF(_nrflag                           ,0x00029c00),          stubs_min = 0x00029c00 (0x29c00)
 131 DEF(active_bitmap_buffer              ,0x0000b964) // (0xb924+0x40) Found @0xfc38c5b6
 132 DEF_CONST(uiprop_count                      ,0x000000d1) // Found @0xfc27de04
 133 DEF(exmem_alloc_table                 ,0x0005e2b8) // Found @0xfc08125a
 134 DEF(exmem_types_table                 ,0xfce679ac) // Found @0xfc08125e
 135 DEF_CONST(exmem_type_count                  ,0x00000021) // Found @0xfce679ac
 136 
 137 //NHSTUB(DeleteDirectory_Fut                  ,0x00000000) //  0        *** != 0xfc38a1b9
 138 //NHSTUB(DeleteFile_Fut                       ,0x00000000) //  0        *** != 0xfc38a16f
 139 //NHSTUB(EnterToCompensationEVF               ,0x00000000) //  0        *** != 0xfc2a5f9f
 140 //NHSTUB(ExitFromCompensationEVF              ,0x00000000) //  0        *** != 0xfc2a5fe1
 141 //NHSTUB(ExpCtrlTool_StartContiAE             ,0x00000000) //  0        *** != 0xfc2bb64f
 142 //NHSTUB(ExpCtrlTool_StopContiAE              ,0x00000000) //  0        *** != 0xfc2bb7e5
 143 //NHSTUB(Feof_Fut                             ,0x00000000) //  0        *** != 0xfc38a35d
 144 //NHSTUB(Fflush_Fut                           ,0x00000000) //  0        *** != 0xfc38a385
 145 //NHSTUB(GetDrive_TotalClusters               ,0x00000000) //  0        *** != 0xfc076ab3
 146 //NHSTUB(GetImageFolder                       ,0x00000000) //  0        *** != 0xfc3134f1
 147 //NHSTUB(MakeSDCardBootable                   ,0x00000000) //  0        *** != 0xfc38971d
 148 //NHSTUB(MoveZoomLensWithPoint                ,0xfc4402f5) //  0        *** != 0x00000000
 149 //NHSTUB(PT_MoveOpticalZoomAt                 ,0xfc18ae45) //  0        *** != 0x00000000
 150 //NHSTUB(PT_PlaySound                         ,0x00000000) //  0        *** != 0xfc38c953
 151 //NHSTUB(RenameFile_Fut                       ,0x00000000) //  0        *** != 0xfc38a10d
 152 //NHSTUB(Restart                              ,0x00000000) //  0        *** != 0xfc12790b
 153 //NHSTUB(ScreenLock                           ,0x00000000) //  0        *** != 0xfc38c539
 154 //NHSTUB(ScreenUnlock                         ,0x00000000) //  0        *** != 0xfc38c56f
 155 //NHSTUB(SetFileAttributes                    ,0x00000000) //  0        *** != 0xfc389b4d
 156 //NHSTUB(SetFileTimeStamp                     ,0x00000000) //  0        *** != 0xfc389b05
 157 //NHSTUB(SetParameterData                     ,0x00000000) //  0        *** != 0xfc27e64f
 158 //NHSTUB(WriteSDCard                          ,0x00000000) //  0        *** != 0x010e2c9d
 159 //NHSTUB(apex2us                              ,0x00000000) //  0        *** != 0xfc1b1d07
 160 //NHSTUB(displaybusyonscreen                  ,0x00000000) //  0        *** != 0xfc327407
 161 //NHSTUB(undisplaybusyonscreen                ,0x00000000) //  0        *** != 0xfc32749d
 162 //NHSTUB(CancelHPTimer                        ,0x00000000) //  0        *** != 0xfc1faa7d
 163 //NHSTUB(SetHPTimerAfterNow                   ,0x00000000) //  0        *** != 0xfc1fa9e5
 164 
 165 NHSTUB(AllocateUncacheableMemory              ,0xfc1428e5) //  0
 166 NHSTUB(Close                                  ,0xfc3898b9) //  0
 167 NHSTUB(CreateBinarySemaphore                  ,0xbfe152f1) //  0
 168 NHSTUB(CreateTask                             ,0xbfe14a41) //  0
 169 NHSTUB(DebugAssert                            ,0x010e1009) //  0
 170 NHSTUB(DoAELock                               ,0xfc2a618b) //  0
 171 NHSTUB(DoAFLock                               ,0xfc2a5db7) //  0
 172 NHSTUB2(ExecuteEventProcedure                  ,0xfc33e4c5) //  0
 173 NHSTUB(ExitTask                               ,0xbfe14c23) //  0
 174 NHSTUB(Fclose_Fut                             ,0xfc38a21b) //  0
 175 NHSTUB(Fgets_Fut                              ,0xfc38a2f9) //  0
 176 NHSTUB(Fopen_Fut                              ,0xfc38a1f3) //  0
 177 NHSTUB(Fread_Fut                              ,0xfc38a28d) //  0
 178 NHSTUB(FreeUncacheableMemory                  ,0xfc142911) //  0
 179 NHSTUB(Fseek_Fut                              ,0xfc38a32b) //  0
 180 NHSTUB(Fwrite_Fut                             ,0xfc38a2c3) //  0
 181 NHSTUB(GetBatteryTemperature                  ,0xfc1f3941) //  0
 182 NHSTUB(GetCCDTemperature                      ,0xfc1f38e5) //  0
 183 NHSTUB(GetCurrentAvValue                      ,0xfc33992d) //  0
 184 NHSTUB(GetCurrentShutterSpeed                 ,0xfc142baf) //  0
 185 NHSTUB(GetUsableMaxAv                         ,0xfc181a65) //  0
 186 NHSTUB(GetUsableMinAv                         ,0xfc181a53) //  0
 187 NHSTUB(GetDrive_ClusterSize                   ,0xfc388eaf) //  0
 188 NHSTUB(GetDrive_FreeClusters                  ,0xfc3893b3) //  0
 189 NHSTUB(GetFocusLensSubjectDistance            ,0xfc360d3f) //  0
 190 //NHSTUB(GetFocusLensSubjectDistanceFromLens  ,0x00000000) //  0            == 0x00000000
 191 NHSTUB(GetKbdState                            ,0xfc07efad) //  0
 192 NHSTUB(GetMemInfo                             ,0xfc5b6bd1) //  0
 193 NHSTUB(GetOpticalTemperature                  ,0xfc1f399b) //  0
 194 NHSTUB(GetParameterData                       ,0xfc27e6c7) //  0
 195 NHSTUB(GetPropertyCase                        ,0xfc38825f) //  0
 196 NHSTUB(GetSystemTime                          ,0xfc44395d) //  0
 197 NHSTUB(GetVRAMHPixelsSize                     ,0xfc12a4d3) //  0
 198 NHSTUB(GetVRAMVPixelsSize                     ,0xfc12a4db) //  0
 199 NHSTUB(GetZoomLensCurrentPoint                ,0xfc18639f) //  0
 200 NHSTUB(GetZoomLensCurrentPosition             ,0xfc186353) //  0
 201 NHSTUB(GiveSemaphore                          ,0xbfe1545d) //  0
 202 NHSTUB(IsStrobeChargeCompleted                ,0xfc152295) //  0
 203 NHSTUB(LEDDrive                               ,0xfc189ec5) //  0
 204 NHSTUB(LocalTime                              ,0x010e1589) //  0
 205 NHSTUB(LockMainPower                          ,0xfc1fb48d) //  0
 206 NHSTUB(MakeDirectory_Fut                      ,0xfc389ba3) //  0
 207 //NHSTUB(MoveFocusLensToDistance              ,0x00000000) //  0            == 0x00000000
 208 NHSTUB(MoveIrisWithAv                         ,0xfc43f6ed) //  0
 209 NHSTUB(Open                                   ,0xfc389835) //  0
 210 NHSTUB(PB2Rec                                 ,0xfc33ffb1) //  0
 211 NHSTUB(PT_MoveDigitalZoomToWide               ,0xfc2a5671) //  0
 212 NHSTUB(PostLogicalEventForNotPowerType        ,0xfc3858fd) //  0
 213 NHSTUB(PostLogicalEventToUI                   ,0xfc385931) //  0
 214 NHSTUB(Read                                   ,0xfc1ebe61) //  0
 215 NHSTUB(ReadFastDir                            ,0xfc1168dd) //  0
 216 NHSTUB(Rec2PB                                 ,0xfc33fff5) //  0
 217 //NHSTUB(RefreshPhysicalScreen                ,0x00000000) //  0            == 0x00000000
 218 NHSTUB(SetAE_ShutterSpeed                     ,0xfc5bb2dd) //  0
 219 NHSTUB(SetAutoShutdownTime                    ,0xfc1fb4dd) //  0
 220 NHSTUB(SetCurrentCaptureModeType              ,0xfc37102f) //  0
 221 NHSTUB(SetLogicalEventActive                  ,0xfc3794c1) //  0
 222 NHSTUB(SetPropertyCase                        ,0xfc38810d) //  0
 223 NHSTUB(SetScriptMode                          ,0xfc3794f9) //  0
 224 NHSTUB(SleepTask                              ,0xbfe1496d) //  0
 225 NHSTUB(TakeSemaphore                          ,0xbfe153e5) //  0
 226 NHSTUB(TurnOffBackLight                       ,0xfc1f0abb) //  0
 227 NHSTUB(TurnOnBackLight                        ,0xfc1f0a5f) //  0
 228 NHSTUB(TurnOnDisplay                          ,0xfc177017) //  0
 229 NHSTUB(TurnOffDisplay                         ,0xfc177029) //  0
 230 NHSTUB(UnlockAE                               ,0xfc2a61a9) //  0
 231 NHSTUB(UnlockAF                               ,0xfc2a5de7) //  0
 232 NHSTUB(UnlockMainPower                        ,0xfc1fb425) //  0
 233 //NHSTUB(UnsetZoomForMovie                    ,0x00000000) //  0            == 0x00000000
 234 NHSTUB(VbattGet                               ,0xfc12711b) //  0
 235 NHSTUB(Write                                  ,0xfc3898f1) //  0
 236 NHSTUB(_log                                   ,0x011033b8) //  0
 237 NHSTUB(_log10                                 ,0x011038d8) //  0
 238 NHSTUB(_pow                                   ,0x01103a40) //  0
 239 NHSTUB(_sqrt                                  ,0x01105ac0) //  0
 240 NHSTUB(add_ptp_handler                        ,0xfc307b0b) //  0
 241 NHSTUB(close                                  ,0xfc1ebd5b) //  0
 242 NHSTUB(exmem_alloc                            ,0xfc081793) //  0
 243 NHSTUB(exmem_free                             ,0xfc0817d3) //  0
 244 NHSTUB(free                                   ,0xfc38d45b) //  0
 245 NHSTUB(kbd_p1_f                               ,0xfc08cbad) //  0
 246 NHSTUB(kbd_p1_f_cont                          ,0xfc08cbb5) //  0
 247 NHSTUB(kbd_p2_f                               ,0xfc08c625) //  0
 248 NHSTUB(kbd_read_keys                          ,0xfc08cb77) //  0
 249 NHSTUB(kbd_read_keys_r2                       ,0xfc07eed1) //  0
 250 NHSTUB(lseek                                  ,0xfc389a15) //  0
 251 NHSTUB(malloc                                 ,0xfc38d425) //  0
 252 NHSTUB(memcmp                                 ,0xfc38d681) //  0
 253 NHSTUB(memcpy                                 ,0xfc20199d) //  0
 254 NHSTUB(memset                                 ,0xfc1a7cf5) //  0
 255 NHSTUB(mktime_ext                             ,0xfc201599) //  0
 256 NHSTUB(open                                   ,0xfc1ebceb) //  0
 257 NHSTUB(OpenFastDir                            ,0xfc11683d) //  0
 258 NHSTUB(closedir                               ,0xfc116805) //  0
 259 NHSTUB(get_fstype                             ,0xfc388e49) //  0
 260 NHSTUB(qsort                                  ,0xfc3c5e69) //  0
 261 NHSTUB(rand                                   ,0xfc1049f3) //  0
 262 //NHSTUB(reboot_fw_update                     ,0x00000000) //  0            == 0x00000000
 263 NHSTUB(set_control_event                      ,0xfc379305) //  0
 264 NHSTUB(srand                                  ,0xfc1049ed) //  0
 265 NHSTUB(stat                                   ,0xfc389a4d) //  0
 266 NHSTUB(strcat                                 ,0xfc38d261) //  0
 267 NHSTUB(strchr                                 ,0xfc201a5b) //  0
 268 NHSTUB(strcmp                                 ,0xfc38d4b1) //  0
 269 NHSTUB(strcpy                                 ,0xfc38d48d) //  0
 270 NHSTUB(strftime                               ,0xfc2015c9) //  0
 271 NHSTUB(strlen                                 ,0xfc38d515) //  0
 272 NHSTUB(strncmp                                ,0xfc38d283) //  0
 273 NHSTUB(strncpy                                ,0xfc38d23d) //  0
 274 NHSTUB(strrchr                                ,0xfc13b359) //  0
 275 NHSTUB(strtol                                 ,0xfc13b34b) //  0
 276 //NHSTUB(strtolx                              ,0xfc13b209) //  0            == 0xfc13b209
 277    DEF(task_CaptSeq                           ,0xfc0bce67) //  0
 278    DEF(task_DvlpSeqTask                       ,0xfc10ffbb) //  0
 279    DEF(task_ExpDrv                            ,0xfc27baa1) //  0
 280    DEF(task_FileWrite                         ,0xfc0736b3) //  0
 281    DEF(task_InitFileModules                   ,0xfc0d4a01) //  0
 282    DEF(task_MovieRecord                       ,0xfc100c55) //  0
 283    DEF(task_PhySw                             ,0xfc08c8c9) //  0
 284    DEF(task_TouchPanel                        ,0xfc133401) //  0
 285    DEF(task_TricInitTask                      ,0xfc560791) //  0
 286    DEF(hook_CreateTask                        ,0xbfe14a40) //  0
 287 NHSTUB(time                                   ,0x010e11eb) //  0
 288 NHSTUB(vsprintf                               ,0xfc1049bf) //  0
 289 NHSTUB(EngDrvRead                             ,0xfc38d2ed) //  0
 290 NHSTUB(PTM_GetCurrentItem                     ,0xfc372141) //  0
 291 NHSTUB(SetEventFlag                           ,0xbfe14e53) //  0
 292 NHSTUB(transfer_src_overlay                   ,0xfc38ba7d) //  0
 293 NHSTUB(bzero                                  ,0x01100b74) //  0
 294 NHSTUB(memset32                               ,0x01100b78) //  0
 295 NHSTUB(PT_MFOn                                ,0xfc2a6f1d) //  0
 296 NHSTUB(PT_MFOff                               ,0xfc2a6f4d) //  0
 297 NHSTUB(GetAdChValue                           ,0xfc1f1c83) //  0
 298 NHSTUB(EnableHDMIPower                        ,0xfc131925) //  0
 299 NHSTUB(DisableHDMIPower                       ,0xfc131955) //  0

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