root / hw / sharpsl.h @ 57a46d05
History | View | Annotate | Download (673 Bytes)
1 | 89cdb6af | balrog | /*
|
---|---|---|---|
2 | 89cdb6af | balrog | * Common declarations for the Zaurii.
|
3 | 89cdb6af | balrog | *
|
4 | 89cdb6af | balrog | * This file is licensed under the GNU GPL.
|
5 | 89cdb6af | balrog | */
|
6 | e33d8cdb | balrog | #ifndef QEMU_SHARPSL_H
|
7 | e33d8cdb | balrog | #define QEMU_SHARPSL_H
|
8 | e33d8cdb | balrog | |
9 | 89cdb6af | balrog | #define zaurus_printf(format, ...) \
|
10 | 89cdb6af | balrog | fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) |
11 | 89cdb6af | balrog | |
12 | e33d8cdb | balrog | /* zaurus.c */
|
13 | bc24a225 | Paul Brook | typedef struct ScoopInfo ScoopInfo; |
14 | bc24a225 | Paul Brook | ScoopInfo *scoop_init(PXA2xxState *cpu, |
15 | c227f099 | Anthony Liguori | int instance, target_phys_addr_t target_base);
|
16 | e33d8cdb | balrog | void scoop_gpio_set(void *opaque, int line, int level); |
17 | bc24a225 | Paul Brook | qemu_irq *scoop_gpio_in_get(ScoopInfo *s); |
18 | bc24a225 | Paul Brook | void scoop_gpio_out_set(ScoopInfo *s, int line, |
19 | e33d8cdb | balrog | qemu_irq handler); |
20 | e33d8cdb | balrog | |
21 | e33d8cdb | balrog | #define SL_PXA_PARAM_BASE 0xa0000a00 |
22 | c227f099 | Anthony Liguori | void sl_bootparam_write(target_phys_addr_t ptr);
|
23 | e33d8cdb | balrog | |
24 | e33d8cdb | balrog | #endif |