mirror of
https://github.com/joel16/uofw.git
synced 2025-02-21 11:22:42 +00:00
wlanfirm: build success
This commit is contained in:
parent
f963ba74d4
commit
0f4083c89f
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
# Copyright (C) 2011, 2012, 2013 The uOFW team
|
||||
# See the file COPYING for copying permission.
|
||||
|
||||
TARGET = wlanfirm_02g.prx
|
||||
TARGET = wlanfirm_02g
|
||||
OBJS = wlanfirm.o
|
||||
|
||||
#DEBUG = 1
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define __wlanfirm__
|
||||
|
||||
/*
|
||||
* MagPie firmware for 01g
|
||||
* Magpie firmware for 01g
|
||||
*
|
||||
* Extracted from wlanfirm_01g.prx.
|
||||
* Offset 2344 (160 + 0x888)
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define __wlanfirmHelper__
|
||||
|
||||
/*
|
||||
* MagPie helper firmware for 01g
|
||||
* Magpie helper firmware for 01g
|
||||
*
|
||||
* Extracted from wlanfirm_01g.prx.
|
||||
* Offset 492 (160 + 0x14C)
|
||||
|
@ -2,19 +2,32 @@
|
||||
See the file COPYING for copying permission.
|
||||
*/
|
||||
|
||||
#include <pspidstorage.h>
|
||||
#include <pspsdk.h>
|
||||
#include <common_imp.h>
|
||||
|
||||
#define PSP_MODEL_2G
|
||||
|
||||
SCE_MODULE_INFO(
|
||||
#ifdef PSP_MODEL_1G
|
||||
#include "firmware/magpie.c"
|
||||
#include "firmware/magpie_helper.c"
|
||||
"sceWlanFirmMagpie_driver",
|
||||
#else
|
||||
#include "firmware/voyager.c"
|
||||
#include "firmware/voyager_helper.c"
|
||||
"sceWlanFirmVoyager_driver",
|
||||
#endif
|
||||
SCE_MODULE_KERNEL | SCE_MODULE_ATTR_CANT_STOP |
|
||||
SCE_MODULE_ATTR_EXCLUSIVE_LOAD | SCE_MODULE_ATTR_EXCLUSIVE_START,
|
||||
1, 2
|
||||
);
|
||||
SCE_SDK_VERSION(SDK_VERSION);
|
||||
|
||||
#ifdef PSP_MODEL_1G
|
||||
#include "firmware/magpie.c"
|
||||
#include "firmware/magpie_helper.c"
|
||||
#else
|
||||
#include "firmware/voyager.c"
|
||||
#include "firmware/voyager_helper.c"
|
||||
#endif
|
||||
|
||||
// TODO proper headers
|
||||
s32 sceIdStorage_driver_6FE062D1(u16, u32, void*, u32);
|
||||
void sceWlanDrv_driver_90E5530F(void*, s32, void*, s32);
|
||||
|
||||
s32 module_start(SceSize argc __attribute__((unused)), void *argp __attribute__((unused)))
|
||||
@ -22,16 +35,16 @@ s32 module_start(SceSize argc __attribute__((unused)), void *argp __attribute__(
|
||||
u16 key45;
|
||||
|
||||
#ifdef PSP_MODEL_1G
|
||||
// sceIdStorage_driver_6FE062D1
|
||||
sceIdStorageLookup(0x45, 0, &key45, sizeof(u16));
|
||||
// sceIdStorageLookup
|
||||
sceIdStorage_driver_6FE062D1(0x45, 0, &key45, sizeof(u16));
|
||||
|
||||
if ((key45 & 0xF000) != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
// sceIdStorage_driver_6FE062D1
|
||||
if (sceIdStorageLookup(0x45, 0, &key45, sizeof(u16)) < 0) {
|
||||
// sceIdStorageLookup
|
||||
if (sceIdStorage_driver_6FE062D1(0x45, 0, &key45, sizeof(u16)) < 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user