Line 277:
Line 277:
Returns 0x0d40ff00 when the mirror bit is unset.
Returns 0x0d40ff00 when the mirror bit is unset.
|-
|-
−
| 4a || GetHollywoodRevision
+
| 4a || u32 GetHollywoodId(void)
|-
|-
| 4b || void kernel_debug_print(u32 flags) || Prints various debug info (depending on flags) from the kernel
| 4b || void kernel_debug_print(u32 flags) || Prints various debug info (depending on flags) from the kernel
|-
|-
−
| 4c || int kernel_set_version(u32 version) || Stores version to 0x3140 (can only be called by ES) || 0 on success
+
| 4c || IOSError SetLoMemOSVersion(u32 version) || Stores version to 0x3140 (can only be called by ES) || 0 on success
|-
|-
−
| 4d || u32 kernel_get_version() || Returns the current IOS version from 0x3140 (can only be called by ES) || IOS version or 0 on error
+
| 4d || u32 GetLoMemOSVersion(void) || Returns the current IOS version from 0x3140 (can only be called by ES) || IOS version or 0 on error
|-
|-
−
| 4e || int set_di_spinup(uint enable) || Sets or clears the DI_SPIN [[Hardware/Hollywood GPIOs|GPIO]]; if enable is 0 then the flag is set (disabling spinup); it is cleared otherwise. (Can only be called by DI) || 0 on success, -1 on error
+
| 4e || IOSError SetDiSpinup(u32 s) || Sets or clears the DI_SPIN [[Hardware/Hollywood GPIOs|GPIO]]; if enable is 0 then the flag is set (disabling spinup); it is cleared otherwise. (Can only be called by DI) || 0 on success, -1 on error
|-
|-
−
| 4f || void* virt_to_phys(void *ptr) || Converts a virtual pointer to its physical equivalent
+
| 4f || void *VirtualToPhysical(void *virt) || Converts a virtual pointer to its physical equivalent
|-
|-
−
| 50 || int Set_DVDVideo(bool disable) || Enable/Disable DI DVD Video commands (can only be called from DI) || 0 on success, -1 on error
+
| 50 || IOSError SetDvdReadDisable(u8 disable) || Enable/Disable DI DVD Video commands (can only be called from DI) || 0 on success, -1 on error
|-
|-
−
| 51 || bool Check_DVDVideo() || Return status of DI DVD Video commands (can only be called from DI) || 1 if disabled, 0 if enabled or error
+
| 51 || u32 GetDvdReadDisable(void) || Return status of DI DVD Video commands (can only be called from DI) || 1 if disabled, 0 if enabled or error
|-
|-
−
| 52 || int syscall_52(bool value) || Sets bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]], clearing it if value is 0 and setting it otherwise. DI only seems to call it with false{{check}}. (Can only be called from DI)
+
| 52 || IOSError SetEnableAHBPI2DI(u8 enable) || Sets bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]], clearing it if value is 0 and setting it otherwise. DI only seems to call it with false{{check}}. (Can only be called from DI)
| 0 on success, -1 on error
| 0 on success, -1 on error
|-
|-
−
| 53 || bool syscall_53() || Checks bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]] (can only be called from DI) || 1 if bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]] is set, 0 if not set or error
+
| 53 || u8 GetEnableAHBPI2DI(void) || Checks bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]] (can only be called from DI) || 1 if bit 4 of [[Hardware/Hollywood_Registers#HW_EXICTRL|HW_EXICTRL]] is set, 0 if not set or error
|-
|-
−
| 54 || int set_ahbprot(u32 enable) || Enable/Disable PPC AHBPROT setting (can only be called from ES) || 0 on success, -1 on error
+
| 54 || IOSError SetPPCACRPerms(u8 enable) || Enable/Disable PPC AHBPROT setting (can only be called from ES) || 0 on success, -1 on error
|-
|-
−
| 55 || GetBUSClock || Returns either 162(GC) or 243(Wii)
+
| 55 || u32 GetCoreClk(void) || Returns either 162(GC) or 243(Wii)
|-
|-
−
| 56 || int poke_gpios(u32 reg, u32 value) || Set gpio reg to value (can only be called from STM) || 0 on success, -1 on error
+
| 56 || IOSError ACRRegWrite(u32 offset, u32 value) || Set gpio reg to value (can only be called from STM) || 0 on success, -1 on error
|-
|-
−
| 57 || int write_ddr_reg(u32 reg_idx, u16 val) || Writes a 16-bit value to the specified Memory Controller register. Can only be called from the STM module. || Returns 0 on success, -1 on error.
+
| 57 || IOSError DDRRegWrite(u32 offset, u32 value) || Writes a 16-bit value to the specified Memory Controller register. Can only be called from the STM module. || Returns 0 on success, -1 on error.
|-
|-
−
| 58 || void poke_debug_port(u8 value) || Set [[Hardware/Hollywood GPIOs|GPIO]] lines 16-23 (DEBUG0-7, the [[debug port]]) to the provided value.
+
| 58 || void OutputLed(u8 value) || Set [[Hardware/Hollywood GPIOs|GPIO]] lines 16-23 (DEBUG0-7, the [[debug port]]) to the provided value.
|-
|-
−
| 59 || set_ipc_access_rights || Related to PPC IPC. Can only be called from the ES module. Called when bootstrapping PPC. || 0 on success, negative for error.
+
| 59 || IOSError SetIpcAccessRights(u8 *rights) || Related to PPC IPC. Can only be called from the ES module. Called when bootstrapping PPC. || 0 on success, negative for error.
|-
|-
−
| 5a || u32 load_module(const char* path) || Load an ARM ELF [IOS module] and start a new thread. || 0 on success, negative for error
+
| 5a || IOSError LaunchRM(const char *path) || Load an ARM ELF [IOS module] and start a new thread. || 0 on success, negative for error
|-
|-
| 5b || IOSCError IOSC_CreateObject(u32* key_handle, IOSCObjectType type, IOSCObjectSubType subtype); || Create a new keyring entry. <code>key_handle</code> is updated with a key handle to use with other IOSC calls. || 0 on success, negative for error
| 5b || IOSCError IOSC_CreateObject(u32* key_handle, IOSCObjectType type, IOSCObjectSubType subtype); || Create a new keyring entry. <code>key_handle</code> is updated with a key handle to use with other IOSC calls. || 0 on success, negative for error