| 1 | /* |
| 2 | * avarice - The "avarice" program. |
| 3 | * Copyright (C) 2001 Scott Finneran |
| 4 | * Copyright (C) 2002 Intel Corporation |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License Version 2 |
| 8 | * as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef INCLUDE_AVARICE_H |
| 22 | #define INCLUDE_AVARICE_H |
| 23 | |
| 24 | #include <stdarg.h> |
| 25 | |
| 26 | #include "autoconf.h" |
| 27 | |
| 28 | typedef unsigned char uchar; |
| 29 | |
| 30 | /** true iff --debug option specified **/ |
| 31 | extern bool debugMode; |
| 32 | |
| 33 | /** true if interrupts should be stepped over when stepping */ |
| 34 | extern bool ignoreInterrupts; |
| 35 | |
| 36 | /** printf 'fmt, ...' if debugMode **/ |
| 37 | void vdebugOut(const char *fmt, va_list args); |
| 38 | void debugOut(const char *fmt, ...); |
| 39 | |
| 40 | /** printf 'fmt, ...' to status file descriptor (currently stdout) **/ |
| 41 | void vstatusOut(const char *fmt, va_list args); |
| 42 | void statusOut(const char *fmt, ...); |
| 43 | void statusFlush(); |
| 44 | void unknownDevice(unsigned int devid, bool generic = true); |
| 45 | |
| 46 | #endif // INCLUDE_AVARICE_H |