fal.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. fal.h - Flash Linker Advance support for uCON64
  3. Copyright (c) 2001 Jeff Frohwein
  4. Copyright (c) 2001 NoisyB
  5. Copyright (c) 2001 - 2002 dbjh
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. #ifndef FAL_H
  19. #define FAL_H
  20. #ifdef HAVE_CONFIG_H
  21. #include "config.h"
  22. #endif
  23. #include "misc/getopt2.h" // st_getopt2_t
  24. extern const st_getopt2_t fal_usage[];
  25. #ifdef USE_PARALLEL
  26. extern int fal_read_rom (const char *filename, unsigned int parport, int size);
  27. extern int fal_write_rom (const char *filename, unsigned int parport);
  28. extern int fal_read_sram (const char *filename, unsigned int parport, int bank);
  29. extern int fal_write_sram (const char *filename, unsigned int parport,
  30. int bank);
  31. #endif
  32. #endif