blob: 1f4d80c5e5a68bc74f1a9c5d60c3cc0f86e7e9cb [file] [log] [blame]
Uwe Zeisbergerf30c2262006-10-03 23:01:26 +02001/* drivers/isdn/hisax/amd7930_fn.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 *
3 * gerdes_amd7930.h Header-file included by
4 * gerdes_amd7930.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
17#define BYTE unsigned char
18#define WORD unsigned int
19#define rByteAMD(cs, reg) cs->readisac(cs, reg)
20#define wByteAMD(cs, reg, val) cs->writeisac(cs, reg, val)
21#define rWordAMD(cs, reg) ReadWordAmd7930(cs, reg)
22#define wWordAMD(cs, reg, val) WriteWordAmd7930(cs, reg, val)
23#define HIBYTE(w) ((unsigned char)((w & 0xff00) / 256))
24#define LOBYTE(w) ((unsigned char)(w & 0x00ff))
25
26#define AmdIrqOff(cs) cs->dc.amd7930.setIrqMask(cs, 0)
27#define AmdIrqOn(cs) cs->dc.amd7930.setIrqMask(cs, 1)
28
29#define AMD_CR 0x00
30#define AMD_DR 0x01
31
32
33#define DBUSY_TIMER_VALUE 80
34
35extern void Amd7930_interrupt(struct IsdnCardState *, unsigned char);
36extern void Amd7930_init(struct IsdnCardState *);
37extern void setup_Amd7930(struct IsdnCardState *);