enternow.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* 2001/10/02
  2. *
  3. * enternow.h Header-file included by
  4. * enternow_pci.c
  5. *
  6. * Author Christoph Ersfeld <info@formula-n.de>
  7. * Formula-n Europe AG (www.formula-n.com)
  8. * previously Gerdes AG
  9. *
  10. *
  11. * This file is (c) under GNU PUBLIC LICENSE
  12. */
  13. /* ***************************************************************************************** *
  14. * ****************************** datatypes and macros ************************************* *
  15. * ***************************************************************************************** */
  16. #define BYTE unsigned char
  17. #define WORD unsigned int
  18. #define HIBYTE(w) ((unsigned char)((w & 0xff00) / 256))
  19. #define LOBYTE(w) ((unsigned char)(w & 0x00ff))
  20. #define InByte(addr) inb(addr)
  21. #define OutByte(addr,val) outb(val,addr)
  22. /* ***************************************************************************************** *
  23. * *********************************** card-specific *************************************** *
  24. * ***************************************************************************************** */
  25. /* für PowerISDN PCI */
  26. #define TJ_AMD_IRQ 0x20
  27. #define TJ_LED1 0x40
  28. #define TJ_LED2 0x80
  29. /* Das Fenster zum AMD...
  30. * Ab Adresse hw.njet.base + TJ_AMD_PORT werden vom AMD jeweils 8 Bit in
  31. * den TigerJet i/o-Raum gemappt
  32. * -> 0x01 des AMD bei hw.njet.base + 0C4 */
  33. #define TJ_AMD_PORT 0xC0
  34. /* ***************************************************************************************** *
  35. * *************************************** Prototypen ************************************** *
  36. * ***************************************************************************************** */
  37. BYTE ReadByteAmd7930(struct IsdnCardState *cs, BYTE offset);
  38. void WriteByteAmd7930(struct IsdnCardState *cs, BYTE offset, BYTE value);