msg.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. msg.h - Magic Super Griffin support for uCON64
  3. Copyright (c) 2003 dbjh
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef MSG_H
  17. #define MSG_H
  18. #ifdef HAVE_CONFIG_H
  19. #include "config.h"
  20. #endif
  21. #include "misc/getopt2.h" // st_getopt2_t
  22. extern const st_getopt2_t msg_usage[];
  23. // For the header format, see ffe.h
  24. typedef struct st_msg_header
  25. {
  26. unsigned char size;
  27. unsigned char emulation;
  28. unsigned char pad[6];
  29. unsigned char id1;
  30. unsigned char id2;
  31. unsigned char type;
  32. unsigned char pad2[501];
  33. } st_msg_header_t;
  34. #define MSG_HEADER_START 0
  35. #define MSG_HEADER_LEN (sizeof (st_msg_header_t))
  36. #ifdef USE_PARALLEL
  37. extern int msg_read_rom (const char *filename, unsigned short parport);
  38. extern int msg_write_rom (const char *filename, unsigned short parport);
  39. #endif
  40. #endif