blob: c5ccf791f67886ba99d558a2e6d8ddbe18a7b879 [file] [log] [blame]
balrog89cdb6a2008-06-02 01:33:11 +00001/*
2 * Common declarations for the Zaurii.
3 *
4 * This file is licensed under the GNU GPL.
5 */
balroge33d8cd2008-06-02 01:20:15 +00006#ifndef QEMU_SHARPSL_H
7#define QEMU_SHARPSL_H
8
balrog89cdb6a2008-06-02 01:33:11 +00009#define zaurus_printf(format, ...) \
10 fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__)
11
balroge33d8cd2008-06-02 01:20:15 +000012/* zaurus.c */
Paul Brookbc24a222009-05-10 01:44:56 +010013typedef struct ScoopInfo ScoopInfo;
14ScoopInfo *scoop_init(PXA2xxState *cpu,
Anthony Liguoric227f092009-10-01 16:12:16 -050015 int instance, target_phys_addr_t target_base);
balroge33d8cd2008-06-02 01:20:15 +000016void scoop_gpio_set(void *opaque, int line, int level);
Paul Brookbc24a222009-05-10 01:44:56 +010017qemu_irq *scoop_gpio_in_get(ScoopInfo *s);
18void scoop_gpio_out_set(ScoopInfo *s, int line,
balroge33d8cd2008-06-02 01:20:15 +000019 qemu_irq handler);
20
21#define SL_PXA_PARAM_BASE 0xa0000a00
Anthony Liguoric227f092009-10-01 16:12:16 -050022void sl_bootparam_write(target_phys_addr_t ptr);
balroge33d8cd2008-06-02 01:20:15 +000023
24#endif