mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
further prep for Wiz port. Cleanups, rm cpuctrl mmuhack; add warm
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@704 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
d572cbad98
commit
fa5e045bdc
24 changed files with 679 additions and 948 deletions
|
@ -9,18 +9,20 @@
|
|||
#include "soc.h"
|
||||
#include "../common/emu.h"
|
||||
|
||||
gp2x_soc_t gp2x_soc = -1;
|
||||
|
||||
gp2x_soc_t soc_detect(void)
|
||||
{
|
||||
volatile unsigned short *memregs;
|
||||
volatile unsigned int *memregl;
|
||||
static gp2x_soc_t ret = -1;
|
||||
int pollux_chipname[0x30/4 + 1];
|
||||
char *pollux_chipname_c = (char *)pollux_chipname;
|
||||
gp2x_soc_t ret = -1;
|
||||
int memdev;
|
||||
int i;
|
||||
|
||||
if (ret != -1)
|
||||
/* already detected */
|
||||
return ret;
|
||||
|
||||
memdev = open("/dev/mem", O_RDONLY);
|
||||
if (memdev == -1)
|
||||
{
|
||||
|
@ -72,7 +74,6 @@ not_pollux_like:
|
|||
out:
|
||||
munmap((void *)memregs, 0x20000);
|
||||
close(memdev);
|
||||
gp2x_soc = ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue