diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/isdn/hisax/amd7930_fn.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/isdn/hisax/amd7930_fn.h')
-rw-r--r-- | drivers/isdn/hisax/amd7930_fn.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/isdn/hisax/amd7930_fn.h b/drivers/isdn/hisax/amd7930_fn.h new file mode 100644 index 000000000000..e039c3a0f2a2 --- /dev/null +++ b/drivers/isdn/hisax/amd7930_fn.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* 2001/10/02 | ||
2 | * | ||
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 | |||
35 | extern void Amd7930_interrupt(struct IsdnCardState *, unsigned char); | ||
36 | extern void Amd7930_init(struct IsdnCardState *); | ||
37 | extern void setup_Amd7930(struct IsdnCardState *); | ||