Format code, add more verbosity (for implementing lock screen), fixed warnings
This commit is contained in:
1 parent
ce74809f11
commit
a99e51abfa
3 files changed
+7
-7
No files matched your search
@@ -3,7 +3,7 @@
|
||||
static uint64_t ipod_touch_mipi_dsi_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
if (addr != 0x00000)
|
||||
fprintf(stderr, "%s: read from location 0x%08x\n", __func__, addr);
|
||||
fprintf(stderr, "%s: read from location 0x%08lx\n", __func__, addr);
|
||||
|
||||
IPodTouchMIPIDSIState *s = (IPodTouchMIPIDSIState *)opaque;
|
||||
switch(addr)
|
||||
@@ -25,7 +25,7 @@ static uint64_t ipod_touch_mipi_dsi_read(void *opaque, hwaddr addr, unsigned siz
|
||||
case REG_FIFOCTRL:
|
||||
return rDSIM_FIFOCTRL_EmptyHSfr;
|
||||
default:
|
||||
printf("%s: read invalid location 0x%08x.\n", __func__, addr);
|
||||
printf("%s: read invalid location 0x%08lx.\n", __func__, addr);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
@@ -34,7 +34,7 @@ static uint64_t ipod_touch_mipi_dsi_read(void *opaque, hwaddr addr, unsigned siz
|
||||
static void ipod_touch_mipi_dsi_write(void *opaque, hwaddr addr, uint64_t val, unsigned size)
|
||||
{
|
||||
IPodTouchMIPIDSIState *s = (IPodTouchMIPIDSIState *)opaque;
|
||||
fprintf(stderr, "%s: writing 0x%08x to 0x%08x\n", __func__, val, addr);
|
||||
fprintf(stderr, "%s: writing 0x%08lx to 0x%08lx\n", __func__, val, addr);
|
||||
|
||||
switch(addr)
|
||||
{
|
||||
@@ -43,7 +43,7 @@ static void ipod_touch_mipi_dsi_write(void *opaque, hwaddr addr, uint64_t val, u
|
||||
break;
|
||||
case 0x00000008:
|
||||
if (val == 0)
|
||||
printf("turning off screen\n");
|
||||
printf("turning off screen\n");
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ static void ipod_touch_sdio_write(void *opaque, hwaddr addr, uint64_t value, uns
|
||||
|
||||
static uint64_t ipod_touch_sdio_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
//printf("%s: offset = 0x%08x\n", __func__, addr);
|
||||
printf("%s: offset = 0x%08x\n", __func__, addr);
|
||||
|
||||
IPodTouchSDIOState *s = (struct IPodTouchSDIOState *) opaque;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
static uint64_t ipod_touch_unknown1_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
//fprintf(stderr, "%s: offset = 0x%08x\n", __func__, addr);
|
||||
fprintf(stderr, "%s: offset = 0x%08x\n", __func__, addr);
|
||||
|
||||
switch (addr) {
|
||||
case 0x140:
|
||||
@@ -53,4 +53,4 @@ static void ipod_touch_unknown1_register_types(void)
|
||||
type_register_static(&ipod_touch_unknown1_type_info);
|
||||
}
|
||||
|
||||
type_init(ipod_touch_unknown1_register_types)
|
||||
type_init(ipod_touch_unknown1_register_types)
|
||||
Reference in new issue
Block a user