rtahw.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /****************************************************************************
  2. ******* *******
  3. ******* R T A H A R D W A R E
  4. ******* *******
  5. ****************************************************************************
  6. Author : Ian Nandhra
  7. Date :
  8. *
  9. * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. Version : 0.01
  25. Mods
  26. ----------------------------------------------------------------------------
  27. Date By Description
  28. ----------------------------------------------------------------------------
  29. ***************************************************************************/
  30. #ifndef lint
  31. #ifdef SCCS_LABELS
  32. static char *_rio_rtahw_h_sccs = "@(#)rtahw.h 1.5" ;
  33. #endif
  34. #endif
  35. #define WATCHDOG_ADDR ((unsigned short *)0x7a00)
  36. #define RTA_LED_ADDR ((unsigned short *)0x7c00)
  37. #define SERIALNUM_ADDR ((unsigned char *)0x7809)
  38. #define LATCH_ADDR ((unsigned char *)0x7800)
  39. /*
  40. ** Here we define where the cd1400 chips are in memory.
  41. */
  42. #define CD1400_ONE_ADDR (0x7300)
  43. #define CD1400_TWO_ADDR (0x7200)
  44. #define CD1400_THREE_ADDR (0x7100)
  45. #define CD1400_FOUR_ADDR (0x7000)
  46. /*
  47. ** Define the different types of modules we can have
  48. */
  49. enum module {
  50. MOD_BLANK = 0x0f, /* Blank plate attached */
  51. MOD_RS232DB25 = 0x00, /* RS232 DB25 connector */
  52. MOD_RS232RJ45 = 0x01, /* RS232 RJ45 connector */
  53. MOD_RS422DB25 = 0x02, /* RS422 DB25 connector */
  54. MOD_RS485DB25 = 0x03, /* RS485 DB25 connector */
  55. MOD_PARALLEL = 0x04 /* Centronics parallel */
  56. };
  57. #define TYPE_HOST 0
  58. #define TYPE_RTA8 1
  59. #define TYPE_RTA16 2
  60. #define WATCH_DOG WATCHDOG_ADDR
  61. /*********** end of file ***********/