Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / isdn / hisax / enternow.h
blobed2eec5874c58f0aec2f64eb3982bb990ac5bee3
1 /* 2001/10/02
3 * enternow.h Header-file included by
4 * enternow_pci.c
6 * Author Christoph Ersfeld <info@formula-n.de>
7 * Formula-n Europe AG (www.formula-n.com)
8 * previously Gerdes AG
11 * This file is (c) under GNU PUBLIC LICENSE
15 /* ***************************************************************************************** *
16 * ****************************** datatypes and macros ************************************* *
17 * ***************************************************************************************** */
19 #define BYTE unsigned char
20 #define WORD unsigned int
21 #define HIBYTE(w) ((unsigned char)((w & 0xff00) / 256))
22 #define LOBYTE(w) ((unsigned char)(w & 0x00ff))
23 #define InByte(addr) inb(addr)
24 #define OutByte(addr,val) outb(val,addr)
28 /* ***************************************************************************************** *
29 * *********************************** card-specific *************************************** *
30 * ***************************************************************************************** */
32 /* für PowerISDN PCI */
33 #define TJ_AMD_IRQ 0x20
34 #define TJ_LED1 0x40
35 #define TJ_LED2 0x80
38 /* Das Fenster zum AMD...
39 * Ab Adresse hw.njet.base + TJ_AMD_PORT werden vom AMD jeweils 8 Bit in
40 * den TigerJet i/o-Raum gemappt
41 * -> 0x01 des AMD bei hw.njet.base + 0C4 */
42 #define TJ_AMD_PORT 0xC0
46 /* ***************************************************************************************** *
47 * *************************************** Prototypen ************************************** *
48 * ***************************************************************************************** */
50 BYTE ReadByteAmd7930(struct IsdnCardState *cs, BYTE offset);
51 void WriteByteAmd7930(struct IsdnCardState *cs, BYTE offset, BYTE value);