kumdman: Clean-up and fix indentation

This commit is contained in:
Joel16 2022-05-19 20:22:45 -04:00
parent febb30d22b
commit c30c40c83b
3 changed files with 84 additions and 86 deletions

View File

@ -1,13 +1,11 @@
PSP_BEGIN_EXPORTS
PSP_EXPORT_START(syslib, 0, 0x8000)
PSP_EXPORT_FUNC_HASH(module_start)
PSP_EXPORT_VAR_HASH(module_info)
PSP_EXPORT_END
PSP_EXPORT_START(pspUmdMan_driver, 0, 0x4001)
PSP_EXPORT_FUNC_HASH(pspUmdExecInquiryCmd)
PSP_EXPORT_FUNC_HASH(pspUmdManGetUmdDrive)
PSP_EXPORT_END
PSP_END_EXPORTS
PSP_END_EXPORTS

View File

@ -8,23 +8,23 @@ int sceUmdManGetUmdDrive(int driveNum);
int sceUmdExecInquiryCmd(void *drive, u8 *param, u8 *buf);
void *pspUmdManGetUmdDrive(int driveNum) {
int k1 = pspSdkSetK1(0);
void *drive = (void *)sceUmdManGetUmdDrive(driveNum);
pspSdkSetK1(k1);
return drive;
int k1 = pspSdkSetK1(0);
void *drive = (void *)sceUmdManGetUmdDrive(driveNum);
pspSdkSetK1(k1);
return drive;
}
int pspUmdExecInquiryCmd(void *drive, u8 *param, u8 *buf) {
int k1 = pspSdkSetK1(0);
int res = sceUmdExecInquiryCmd(drive, param, buf);
pspSdkSetK1(k1);
return(res);
int k1 = pspSdkSetK1(0);
int res = sceUmdExecInquiryCmd(drive, param, buf);
pspSdkSetK1(k1);
return(res);
}
int module_start(SceSize args __attribute__((unused)), void *argp __attribute__((unused))) {
return 0;
return 0;
}
int module_stop(void) {
return 0;
return 0;
}

View File

@ -1,75 +1,75 @@
.set noreorder
.set noreorder
#include "pspstub.s"
STUB_START "sceUmdMan_driver",0x00010011,0x00450005
STUB_FUNC 0xD27D050E,sceUmdManInit
STUB_FUNC 0x0D3EA203,sceUmdManTerm
STUB_FUNC 0x2C756C37,sceUmdMan_driver_2C756C37
STUB_FUNC 0xCC80CFC6,sceUmdManActivate
STUB_FUNC 0x8CFED611,sceUmdManStart
STUB_FUNC 0xCAD31025,sceUmdManStop
STUB_FUNC 0xF6BE91FC,sceUmdMan_driver_F6BE91FC
STUB_FUNC 0x47E2B6D8,sceUmdManGetUmdDrive
STUB_FUNC 0xB2368381,sceUmdManCheckDeviceReady
STUB_FUNC 0xE779ECEF,sceUmdManGetInquiry
STUB_FUNC 0xCEA5C857,sceUmdMan_driver_CEA5C857
STUB_FUNC 0x8634FFC7,sceUmdMan_driver_8634FFC7
STUB_FUNC 0x39704B6E,sceUmdMan_driver_39704B6E
STUB_FUNC 0x63ACFD28,sceUmdMan_driver_63ACFD28
STUB_FUNC 0x84410A8E,sceUmdMan_driver_84410A8E
STUB_FUNC 0xFCFEF5FE,sceUmdManValidateUMD
STUB_FUNC 0x1B1BF9FD,sceUmdExecRead10Cmd
STUB_FUNC 0x18DE1880,sceUmdExecPrefetch10Cmd
STUB_FUNC 0x3D44BABF,sceUmdExecReadUMDStructureCmd
STUB_FUNC 0xE3F448E0,sceUmdExecStartStopUnitCmd
STUB_FUNC 0x1B19A313,sceUmdExecInquiryCmd
STUB_FUNC 0x2CBE959B,sceUmdMan_driver_2CBE959B
STUB_FUNC 0x2A39569B,sceUmdExecModSenseCmd
STUB_FUNC 0xCEE55E3E,sceUmdExecModSelectCmd
STUB_FUNC 0xE5B7EDC5,sceUmdMan_driver_E5B7EDC5
STUB_FUNC 0x65E1B97E,sceUmdExecGetEventStatusCmd
STUB_FUNC 0x5AA96415,sceUmdExecReadCapacityCmd
STUB_FUNC 0x250E6975,sceUmdExecSeekCmd
STUB_FUNC 0x2A08FE9A,sceUmdExecPreventAllowMediaCmd
STUB_FUNC 0x68577709,sceUmdExecAllocateFromReadCmd
STUB_FUNC 0xF819E17C,sceUmdExecReadMKICmd
STUB_FUNC 0x61C32A52,sceUmdExecSetAreaLimitCmd
STUB_FUNC 0x7094E3A7,sceUmdExecSetAccessLimitCmd
STUB_FUNC 0xD31DAD7E,sceUmdExecSetLockLengthCmd
STUB_FUNC 0x108B2322,sceUmdExecGetMediaInfoCmd
STUB_FUNC 0x98345381,sceUmdExecReportCacheCmd
STUB_FUNC 0xBF88476F,sceUmdMan_driver_BF88476F
STUB_FUNC 0x485D4925,sceUmdExecSetStreamingCmd
STUB_FUNC 0x73E49F8F,sceUmdExecClearCacheInfoCmd
STUB_FUNC 0x14D3381C,sceUmdExecTestCmd
STUB_FUNC 0x92F1CC33,sceUmdExecAdjustDataCmd
STUB_FUNC 0x61EB07A5,sceUmdExecGetErrorLogCmd
STUB_FUNC 0x77E6C03A,sceUmdMan_driver_77E6C03A
STUB_FUNC 0xA869CAB3,sceUmdMan_driver_A869CAB3
STUB_FUNC 0xF65D819F,sceUmdManRegisterImposeCallBack
STUB_FUNC 0x2787078E,sceUmdManUnRegisterImposeCallback
STUB_FUNC 0x1F9AFFF4,sceUmdMan_driver_1F9AFFF4
STUB_FUNC 0x8609D1E4,sceUmdManGetDiscInfo
STUB_FUNC 0xAAA4ED91,sceUmdManGetDiscInfo4VSH
STUB_FUNC 0xE192C10A,sceUmdManGetUmdDiscInfo
STUB_FUNC 0x42D28DD1,sceUmdMan_driver_42D28DD1
STUB_FUNC 0x4FB913A3,sceUmdMan_driver_4FB913A3
STUB_FUNC 0x7DF2A18D,sceUmdManSetAlarm
STUB_FUNC 0xB0A6DC55,sceUmdManCancelAlarm
STUB_FUNC 0xD1D4F296,sceUmdMan_driver_D1D4F296
STUB_FUNC 0xBF8AED79,sceUmdManRegisterInsertEjectUMDCallBack
STUB_FUNC 0x4217E7F5,sceUmdManUnRegisterInsertEjectUMDCallBack
STUB_FUNC 0x4581E306,sceUmdManGetPowerStat
STUB_FUNC 0xCA68F200,sceUmdManChangePowerMode
STUB_FUNC 0xF4AFF62D,sceUmdMan_driver_F4AFF62D
STUB_FUNC 0x7C3D307C,sceUmdManSPKGetMKI
STUB_FUNC 0xB511F821,sceUmdMan_driver_B511F821
STUB_FUNC 0x736AE133,sceUmdMan_driver_736AE133
STUB_FUNC 0xBD13A488,sceUmdMan_driver_BD13A488
STUB_FUNC 0x9814DCF3,sceUmdMan_driver_9814DCF3
STUB_FUNC 0x3DCFAA71,sceUmdMan_driver_3DCFAA71
STUB_FUNC 0x0DC8D26D,sceUmdMan_driver_0DC8D26D
STUB_FUNC 0x9F106F73,sceUmdMan_driver_9F106F73
STUB_FUNC 0xB0A43DA7,sceUmdMan_driver_B0A43DA7
STUB_END
STUB_START "sceUmdMan_driver",0x00010011,0x00450005
STUB_FUNC 0xD27D050E,sceUmdManInit
STUB_FUNC 0x0D3EA203,sceUmdManTerm
STUB_FUNC 0x2C756C37,sceUmdMan_driver_2C756C37
STUB_FUNC 0xCC80CFC6,sceUmdManActivate
STUB_FUNC 0x8CFED611,sceUmdManStart
STUB_FUNC 0xCAD31025,sceUmdManStop
STUB_FUNC 0xF6BE91FC,sceUmdMan_driver_F6BE91FC
STUB_FUNC 0x47E2B6D8,sceUmdManGetUmdDrive
STUB_FUNC 0xB2368381,sceUmdManCheckDeviceReady
STUB_FUNC 0xE779ECEF,sceUmdManGetInquiry
STUB_FUNC 0xCEA5C857,sceUmdMan_driver_CEA5C857
STUB_FUNC 0x8634FFC7,sceUmdMan_driver_8634FFC7
STUB_FUNC 0x39704B6E,sceUmdMan_driver_39704B6E
STUB_FUNC 0x63ACFD28,sceUmdMan_driver_63ACFD28
STUB_FUNC 0x84410A8E,sceUmdMan_driver_84410A8E
STUB_FUNC 0xFCFEF5FE,sceUmdManValidateUMD
STUB_FUNC 0x1B1BF9FD,sceUmdExecRead10Cmd
STUB_FUNC 0x18DE1880,sceUmdExecPrefetch10Cmd
STUB_FUNC 0x3D44BABF,sceUmdExecReadUMDStructureCmd
STUB_FUNC 0xE3F448E0,sceUmdExecStartStopUnitCmd
STUB_FUNC 0x1B19A313,sceUmdExecInquiryCmd
STUB_FUNC 0x2CBE959B,sceUmdMan_driver_2CBE959B
STUB_FUNC 0x2A39569B,sceUmdExecModSenseCmd
STUB_FUNC 0xCEE55E3E,sceUmdExecModSelectCmd
STUB_FUNC 0xE5B7EDC5,sceUmdMan_driver_E5B7EDC5
STUB_FUNC 0x65E1B97E,sceUmdExecGetEventStatusCmd
STUB_FUNC 0x5AA96415,sceUmdExecReadCapacityCmd
STUB_FUNC 0x250E6975,sceUmdExecSeekCmd
STUB_FUNC 0x2A08FE9A,sceUmdExecPreventAllowMediaCmd
STUB_FUNC 0x68577709,sceUmdExecAllocateFromReadCmd
STUB_FUNC 0xF819E17C,sceUmdExecReadMKICmd
STUB_FUNC 0x61C32A52,sceUmdExecSetAreaLimitCmd
STUB_FUNC 0x7094E3A7,sceUmdExecSetAccessLimitCmd
STUB_FUNC 0xD31DAD7E,sceUmdExecSetLockLengthCmd
STUB_FUNC 0x108B2322,sceUmdExecGetMediaInfoCmd
STUB_FUNC 0x98345381,sceUmdExecReportCacheCmd
STUB_FUNC 0xBF88476F,sceUmdMan_driver_BF88476F
STUB_FUNC 0x485D4925,sceUmdExecSetStreamingCmd
STUB_FUNC 0x73E49F8F,sceUmdExecClearCacheInfoCmd
STUB_FUNC 0x14D3381C,sceUmdExecTestCmd
STUB_FUNC 0x92F1CC33,sceUmdExecAdjustDataCmd
STUB_FUNC 0x61EB07A5,sceUmdExecGetErrorLogCmd
STUB_FUNC 0x77E6C03A,sceUmdMan_driver_77E6C03A
STUB_FUNC 0xA869CAB3,sceUmdMan_driver_A869CAB3
STUB_FUNC 0xF65D819F,sceUmdManRegisterImposeCallBack
STUB_FUNC 0x2787078E,sceUmdManUnRegisterImposeCallback
STUB_FUNC 0x1F9AFFF4,sceUmdMan_driver_1F9AFFF4
STUB_FUNC 0x8609D1E4,sceUmdManGetDiscInfo
STUB_FUNC 0xAAA4ED91,sceUmdManGetDiscInfo4VSH
STUB_FUNC 0xE192C10A,sceUmdManGetUmdDiscInfo
STUB_FUNC 0x42D28DD1,sceUmdMan_driver_42D28DD1
STUB_FUNC 0x4FB913A3,sceUmdMan_driver_4FB913A3
STUB_FUNC 0x7DF2A18D,sceUmdManSetAlarm
STUB_FUNC 0xB0A6DC55,sceUmdManCancelAlarm
STUB_FUNC 0xD1D4F296,sceUmdMan_driver_D1D4F296
STUB_FUNC 0xBF8AED79,sceUmdManRegisterInsertEjectUMDCallBack
STUB_FUNC 0x4217E7F5,sceUmdManUnRegisterInsertEjectUMDCallBack
STUB_FUNC 0x4581E306,sceUmdManGetPowerStat
STUB_FUNC 0xCA68F200,sceUmdManChangePowerMode
STUB_FUNC 0xF4AFF62D,sceUmdMan_driver_F4AFF62D
STUB_FUNC 0x7C3D307C,sceUmdManSPKGetMKI
STUB_FUNC 0xB511F821,sceUmdMan_driver_B511F821
STUB_FUNC 0x736AE133,sceUmdMan_driver_736AE133
STUB_FUNC 0xBD13A488,sceUmdMan_driver_BD13A488
STUB_FUNC 0x9814DCF3,sceUmdMan_driver_9814DCF3
STUB_FUNC 0x3DCFAA71,sceUmdMan_driver_3DCFAA71
STUB_FUNC 0x0DC8D26D,sceUmdMan_driver_0DC8D26D
STUB_FUNC 0x9F106F73,sceUmdMan_driver_9F106F73
STUB_FUNC 0xB0A43DA7,sceUmdMan_driver_B0A43DA7
STUB_END