2008-06-02 03:33:11 +02:00
|
|
|
/*
|
|
|
|
* Common declarations for the Zaurii.
|
|
|
|
*
|
|
|
|
* This file is licensed under the GNU GPL.
|
|
|
|
*/
|
2008-06-02 03:20:15 +02:00
|
|
|
#ifndef QEMU_SHARPSL_H
|
|
|
|
#define QEMU_SHARPSL_H
|
|
|
|
|
2008-06-02 03:33:11 +02:00
|
|
|
#define zaurus_printf(format, ...) \
|
|
|
|
fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__)
|
|
|
|
|
2008-06-02 03:20:15 +02:00
|
|
|
/* zaurus.c */
|
2009-05-10 02:44:56 +02:00
|
|
|
typedef struct ScoopInfo ScoopInfo;
|
|
|
|
ScoopInfo *scoop_init(PXA2xxState *cpu,
|
2009-10-01 23:12:16 +02:00
|
|
|
int instance, target_phys_addr_t target_base);
|
2008-06-02 03:20:15 +02:00
|
|
|
void scoop_gpio_set(void *opaque, int line, int level);
|
2009-05-10 02:44:56 +02:00
|
|
|
qemu_irq *scoop_gpio_in_get(ScoopInfo *s);
|
|
|
|
void scoop_gpio_out_set(ScoopInfo *s, int line,
|
2008-06-02 03:20:15 +02:00
|
|
|
qemu_irq handler);
|
|
|
|
|
|
|
|
#define SL_PXA_PARAM_BASE 0xa0000a00
|
2009-10-01 23:12:16 +02:00
|
|
|
void sl_bootparam_write(target_phys_addr_t ptr);
|
2008-06-02 03:20:15 +02:00
|
|
|
|
|
|
|
#endif
|