diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-02 01:33:11 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-02 01:33:11 +0000 |
commit | 89cdb6af04c16c5476221b1f2d25d8337ebbb391 (patch) | |
tree | 907983397c2731788d0cbe7da74c1bb45521dd14 /hw/spitz.c | |
parent | e33d8cdb556cf20b0452d24cee82562ee5ee9ada (diff) |
Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov.
This adds basic support for emulating Sharp Zaurus SL-6000 PDA (tosa).
Currently it provides only basic support: no kbd/lcd, sound, ts, etc.
But it's able at least to boot Linux from CF.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4643 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/spitz.c')
-rw-r--r-- | hw/spitz.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/hw/spitz.c b/hw/spitz.c index 34355eb304..fef557ad17 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -22,8 +22,6 @@ #include "audio/audio.h" #include "boards.h" -#define spitz_printf(format, ...) \ - fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) #undef REG_FMT #if TARGET_PHYS_ADDR_BITS == 32 #define REG_FMT "0x%02x" @@ -90,7 +88,7 @@ static uint32_t sl_readb(void *opaque, target_phys_addr_t addr) return ecc_digest(&s->ecc, nand_getio(s->nand)); default: - spitz_printf("Bad register offset " REG_FMT "\n", addr); + zaurus_printf("Bad register offset " REG_FMT "\n", addr); } return 0; } @@ -134,7 +132,7 @@ static void sl_writeb(void *opaque, target_phys_addr_t addr, break; default: - spitz_printf("Bad register offset " REG_FMT "\n", addr); + zaurus_printf("Bad register offset " REG_FMT "\n", addr); } } @@ -537,9 +535,9 @@ static int bl_intensity, bl_power; static void spitz_bl_update(struct pxa2xx_state_s *s) { if (bl_power && bl_intensity) - spitz_printf("LCD Backlight now at %i/63\n", bl_intensity); + zaurus_printf("LCD Backlight now at %i/63\n", bl_intensity); else - spitz_printf("LCD Backlight now off\n"); + zaurus_printf("LCD Backlight now off\n"); } static inline void spitz_bl_bit5(void *opaque, int line, int level) @@ -570,9 +568,9 @@ static void spitz_lcdtg_dac_put(void *opaque, uint8_t cmd) switch (addr) { case LCDTG_RESCTL: if (value) - spitz_printf("LCD in QVGA mode\n"); + zaurus_printf("LCD in QVGA mode\n"); else - spitz_printf("LCD in VGA mode\n"); + zaurus_printf("LCD in VGA mode\n"); break; case LCDTG_DUTYCTRL: @@ -780,16 +778,16 @@ static void spitz_out_switch(void *opaque, int line, int level) { switch (line) { case 0: - spitz_printf("Charging %s.\n", level ? "off" : "on"); + zaurus_printf("Charging %s.\n", level ? "off" : "on"); break; case 1: - spitz_printf("Discharging %s.\n", level ? "on" : "off"); + zaurus_printf("Discharging %s.\n", level ? "on" : "off"); break; case 2: - spitz_printf("Green LED %s.\n", level ? "on" : "off"); + zaurus_printf("Green LED %s.\n", level ? "on" : "off"); break; case 3: - spitz_printf("Orange LED %s.\n", level ? "on" : "off"); + zaurus_printf("Orange LED %s.\n", level ? "on" : "off"); break; case 4: spitz_bl_bit5(opaque, line, level); |