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
15/* ***************************************************************************************** *
16 * ****************************** datatypes and macros ************************************* *
17 * ***************************************************************************************** */
18
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)
25
26
27
28/* ***************************************************************************************** *
29 * *********************************** card-specific *************************************** *
30 * ***************************************************************************************** */
31
32/* f�r PowerISDN PCI */
33#define TJ_AMD_IRQ 						0x20
34#define TJ_LED1 						0x40
35#define TJ_LED2 						0x80
36
37
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
43
44
45
46/* ***************************************************************************************** *
47 * *************************************** Prototypen ************************************** *
48 * ***************************************************************************************** */
49
50BYTE ReadByteAmd7930(struct IsdnCardState *cs, BYTE offset);
51void WriteByteAmd7930(struct IsdnCardState *cs, BYTE offset, BYTE value);
52