balrog | 89cdb6a | 2008-06-02 01:33:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Common declarations for the Zaurii. |
| 3 | * |
| 4 | * This file is licensed under the GNU GPL. |
| 5 | */ |
balrog | e33d8cd | 2008-06-02 01:20:15 +0000 | [diff] [blame] | 6 | #ifndef QEMU_SHARPSL_H |
| 7 | #define QEMU_SHARPSL_H |
| 8 | |
balrog | 89cdb6a | 2008-06-02 01:33:11 +0000 | [diff] [blame] | 9 | #define zaurus_printf(format, ...) \ |
| 10 | fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) |
| 11 | |
balrog | e33d8cd | 2008-06-02 01:20:15 +0000 | [diff] [blame] | 12 | /* zaurus.c */ |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 13 | typedef struct ScoopInfo ScoopInfo; |
| 14 | ScoopInfo *scoop_init(PXA2xxState *cpu, |
Anthony Liguori | c227f09 | 2009-10-01 16:12:16 -0500 | [diff] [blame] | 15 | int instance, target_phys_addr_t target_base); |
balrog | e33d8cd | 2008-06-02 01:20:15 +0000 | [diff] [blame] | 16 | void scoop_gpio_set(void *opaque, int line, int level); |
Paul Brook | bc24a22 | 2009-05-10 01:44:56 +0100 | [diff] [blame] | 17 | qemu_irq *scoop_gpio_in_get(ScoopInfo *s); |
| 18 | void scoop_gpio_out_set(ScoopInfo *s, int line, |
balrog | e33d8cd | 2008-06-02 01:20:15 +0000 | [diff] [blame] | 19 | qemu_irq handler); |
| 20 | |
| 21 | #define SL_PXA_PARAM_BASE 0xa0000a00 |
Anthony Liguori | c227f09 | 2009-10-01 16:12:16 -0500 | [diff] [blame] | 22 | void sl_bootparam_write(target_phys_addr_t ptr); |
balrog | e33d8cd | 2008-06-02 01:20:15 +0000 | [diff] [blame] | 23 | |
| 24 | #endif |