tototek.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. tototek.h - General ToToTEK flash card programmer routines for uCON64
  3. Copyright (c) 2004 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 TOTOTEK_H
  17. #define TOTOTEK_H
  18. #ifdef USE_PARALLEL
  19. extern void ttt_init_io (unsigned int port);
  20. extern void ttt_deinit_io (void);
  21. extern void ttt_set_ai_data (unsigned char ai, unsigned char data);
  22. extern void ttt_rom_enable (void);
  23. extern void ttt_rom_disable (void);
  24. extern void ttt_ram_enable (void);
  25. extern void ttt_ram_disable (void);
  26. extern void ttt_write_mem (int addr, unsigned char b);
  27. extern unsigned short int ttt_get_id (void);
  28. extern void ttt_read_rom_b (int addr, unsigned char *buf);
  29. extern void ttt_read_rom_w (int addr, unsigned char *buf);
  30. extern void ttt_read_ram_b (int addr, unsigned char *buf);
  31. extern void ttt_read_ram_w (int addr, unsigned char *buf);
  32. extern void ttt_erase_block (int addr);
  33. extern void ttt_write_byte_sharp (int addr, unsigned char b);
  34. extern void ttt_write_byte_intel (int addr, unsigned char b);
  35. extern void ttt_write_page_rom (int addr, unsigned char *buf);
  36. extern void ttt_write_byte_ram (int addr, unsigned char b);
  37. extern void ttt_write_page_ram (int addr, unsigned char *buf);
  38. extern void ttt_write_page_ram2 (int addr, unsigned char *buf);
  39. #endif // USE_PARALLEL
  40. #endif // TOTOTEK_H