diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:09:59 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:09:59 -0500 |
commit | 48c871c1f6a7c7044dd76774fb469e65c7e2e4e8 (patch) | |
tree | da3aa535c98cc0957851354ceb0fbff7482d7a9d /drivers/isdn/hisax | |
parent | 1a1689344add3333d28d1b5495d8043a3877d01c (diff) | |
parent | 4409d28140d9a6e6e3f4f1fdaf7234c4b965d954 (diff) |
Merge branch 'gfar' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into upstream
Diffstat (limited to 'drivers/isdn/hisax')
-rw-r--r-- | drivers/isdn/hisax/Kconfig | 2 | ||||
-rw-r--r-- | drivers/isdn/hisax/Makefile | 1 | ||||
-rw-r--r-- | drivers/isdn/hisax/config.c | 11 | ||||
-rw-r--r-- | drivers/isdn/hisax/elsa_ser.c | 8 | ||||
-rw-r--r-- | drivers/isdn/hisax/hfc4s8s_l1.c | 48 | ||||
-rw-r--r-- | drivers/isdn/hisax/hfc_usb.c | 40 | ||||
-rw-r--r-- | drivers/isdn/hisax/hfc_usb.h | 3 | ||||
-rw-r--r-- | drivers/isdn/hisax/hisax.h | 25 | ||||
-rw-r--r-- | drivers/isdn/hisax/isar.c | 1 | ||||
-rw-r--r-- | drivers/isdn/hisax/isdnl1.h | 17 | ||||
-rw-r--r-- | drivers/isdn/hisax/isdnl3.c | 12 | ||||
-rw-r--r-- | drivers/isdn/hisax/isdnl3.h | 26 |
12 files changed, 73 insertions, 121 deletions
diff --git a/drivers/isdn/hisax/Kconfig b/drivers/isdn/hisax/Kconfig index 34ab5f7dcabc..12d91fb9f8cb 100644 --- a/drivers/isdn/hisax/Kconfig +++ b/drivers/isdn/hisax/Kconfig | |||
@@ -340,8 +340,6 @@ config HISAX_HFC_SX | |||
340 | This enables HiSax support for the HFC-S+, HFC-SP and HFC-PCMCIA | 340 | This enables HiSax support for the HFC-S+, HFC-SP and HFC-PCMCIA |
341 | cards. This code is not finished yet. | 341 | cards. This code is not finished yet. |
342 | 342 | ||
343 | # bool ' TESTEMULATOR (EXPERIMENTAL)' CONFIG_HISAX_TESTEMU | ||
344 | |||
345 | config HISAX_ENTERNOW_PCI | 343 | config HISAX_ENTERNOW_PCI |
346 | bool "Formula-n enter:now PCI card" | 344 | bool "Formula-n enter:now PCI card" |
347 | depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV)) | 345 | depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV)) |
diff --git a/drivers/isdn/hisax/Makefile b/drivers/isdn/hisax/Makefile index 293e27789d54..c7a3794bdae4 100644 --- a/drivers/isdn/hisax/Makefile +++ b/drivers/isdn/hisax/Makefile | |||
@@ -60,5 +60,4 @@ hisax-$(CONFIG_HISAX_SCT_QUADRO) += bkm_a8.o isac.o arcofi.o hscx.o | |||
60 | hisax-$(CONFIG_HISAX_GAZEL) += gazel.o isac.o arcofi.o hscx.o | 60 | hisax-$(CONFIG_HISAX_GAZEL) += gazel.o isac.o arcofi.o hscx.o |
61 | hisax-$(CONFIG_HISAX_W6692) += w6692.o | 61 | hisax-$(CONFIG_HISAX_W6692) += w6692.o |
62 | hisax-$(CONFIG_HISAX_ENTERNOW_PCI) += enternow_pci.o amd7930_fn.o | 62 | hisax-$(CONFIG_HISAX_ENTERNOW_PCI) += enternow_pci.o amd7930_fn.o |
63 | #hisax-$(CONFIG_HISAX_TESTEMU) += testemu.o | ||
64 | 63 | ||
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index 17ec0b70ba1d..da4196f21e0f 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c | |||
@@ -549,10 +549,6 @@ extern int setup_isurf(struct IsdnCard *card); | |||
549 | extern int setup_saphir(struct IsdnCard *card); | 549 | extern int setup_saphir(struct IsdnCard *card); |
550 | #endif | 550 | #endif |
551 | 551 | ||
552 | #if CARD_TESTEMU | ||
553 | extern int setup_testemu(struct IsdnCard *card); | ||
554 | #endif | ||
555 | |||
556 | #if CARD_BKM_A4T | 552 | #if CARD_BKM_A4T |
557 | extern int setup_bkm_a4t(struct IsdnCard *card); | 553 | extern int setup_bkm_a4t(struct IsdnCard *card); |
558 | #endif | 554 | #endif |
@@ -1061,11 +1057,6 @@ static int checkcard(int cardnr, char *id, int *busy_flag, struct module *lockow | |||
1061 | ret = setup_saphir(card); | 1057 | ret = setup_saphir(card); |
1062 | break; | 1058 | break; |
1063 | #endif | 1059 | #endif |
1064 | #if CARD_TESTEMU | ||
1065 | case ISDN_CTYPE_TESTEMU: | ||
1066 | ret = setup_testemu(card); | ||
1067 | break; | ||
1068 | #endif | ||
1069 | #if CARD_BKM_A4T | 1060 | #if CARD_BKM_A4T |
1070 | case ISDN_CTYPE_BKM_A4T: | 1061 | case ISDN_CTYPE_BKM_A4T: |
1071 | ret = setup_bkm_a4t(card); | 1062 | ret = setup_bkm_a4t(card); |
@@ -1881,7 +1872,7 @@ static struct pci_device_id hisax_pci_tbl[] __devinitdata = { | |||
1881 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_DJINN_ITOO, PCI_ANY_ID, PCI_ANY_ID}, | 1872 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_DJINN_ITOO, PCI_ANY_ID, PCI_ANY_ID}, |
1882 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_OLITEC, PCI_ANY_ID, PCI_ANY_ID}, | 1873 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_OLITEC, PCI_ANY_ID, PCI_ANY_ID}, |
1883 | #endif | 1874 | #endif |
1884 | #ifdef CONFIG_HISAX_QUADRO | 1875 | #ifdef CONFIG_HISAX_SCT_QUADRO |
1885 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_ANY_ID, PCI_ANY_ID}, | 1876 | {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_ANY_ID, PCI_ANY_ID}, |
1886 | #endif | 1877 | #endif |
1887 | #ifdef CONFIG_HISAX_NICCY | 1878 | #ifdef CONFIG_HISAX_NICCY |
diff --git a/drivers/isdn/hisax/elsa_ser.c b/drivers/isdn/hisax/elsa_ser.c index 0279fb323cb1..ae377e812775 100644 --- a/drivers/isdn/hisax/elsa_ser.c +++ b/drivers/isdn/hisax/elsa_ser.c | |||
@@ -58,7 +58,7 @@ static inline unsigned int serial_in(struct IsdnCardState *cs, int offset) | |||
58 | static inline unsigned int serial_inp(struct IsdnCardState *cs, int offset) | 58 | static inline unsigned int serial_inp(struct IsdnCardState *cs, int offset) |
59 | { | 59 | { |
60 | #ifdef SERIAL_DEBUG_REG | 60 | #ifdef SERIAL_DEBUG_REG |
61 | #ifdef CONFIG_SERIAL_NOPAUSE_IO | 61 | #ifdef ELSA_SERIAL_NOPAUSE_IO |
62 | u_int val = inb(cs->hw.elsa.base + 8 + offset); | 62 | u_int val = inb(cs->hw.elsa.base + 8 + offset); |
63 | debugl1(cs,"inp %s %02x",ModemIn[offset], val); | 63 | debugl1(cs,"inp %s %02x",ModemIn[offset], val); |
64 | #else | 64 | #else |
@@ -67,7 +67,7 @@ static inline unsigned int serial_inp(struct IsdnCardState *cs, int offset) | |||
67 | #endif | 67 | #endif |
68 | return(val); | 68 | return(val); |
69 | #else | 69 | #else |
70 | #ifdef CONFIG_SERIAL_NOPAUSE_IO | 70 | #ifdef ELSA_SERIAL_NOPAUSE_IO |
71 | return inb(cs->hw.elsa.base + 8 + offset); | 71 | return inb(cs->hw.elsa.base + 8 + offset); |
72 | #else | 72 | #else |
73 | return inb_p(cs->hw.elsa.base + 8 + offset); | 73 | return inb_p(cs->hw.elsa.base + 8 + offset); |
@@ -87,13 +87,13 @@ static inline void serial_outp(struct IsdnCardState *cs, int offset, | |||
87 | int value) | 87 | int value) |
88 | { | 88 | { |
89 | #ifdef SERIAL_DEBUG_REG | 89 | #ifdef SERIAL_DEBUG_REG |
90 | #ifdef CONFIG_SERIAL_NOPAUSE_IO | 90 | #ifdef ELSA_SERIAL_NOPAUSE_IO |
91 | debugl1(cs,"outp %s %02x",ModemOut[offset], value); | 91 | debugl1(cs,"outp %s %02x",ModemOut[offset], value); |
92 | #else | 92 | #else |
93 | debugl1(cs,"outP %s %02x",ModemOut[offset], value); | 93 | debugl1(cs,"outP %s %02x",ModemOut[offset], value); |
94 | #endif | 94 | #endif |
95 | #endif | 95 | #endif |
96 | #ifdef CONFIG_SERIAL_NOPAUSE_IO | 96 | #ifdef ELSA_SERIAL_NOPAUSE_IO |
97 | outb(value, cs->hw.elsa.base + 8 + offset); | 97 | outb(value, cs->hw.elsa.base + 8 + offset); |
98 | #else | 98 | #else |
99 | outb_p(value, cs->hw.elsa.base + 8 + offset); | 99 | outb_p(value, cs->hw.elsa.base + 8 + offset); |
diff --git a/drivers/isdn/hisax/hfc4s8s_l1.c b/drivers/isdn/hisax/hfc4s8s_l1.c index a2fa4ecb8c88..ab98e135bcbb 100644 --- a/drivers/isdn/hisax/hfc4s8s_l1.c +++ b/drivers/isdn/hisax/hfc4s8s_l1.c | |||
@@ -199,7 +199,7 @@ typedef struct _hfc4s8s_hw { | |||
199 | /***************************/ | 199 | /***************************/ |
200 | /* inline function defines */ | 200 | /* inline function defines */ |
201 | /***************************/ | 201 | /***************************/ |
202 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM /* inline functions mempry mapped */ | 202 | #ifdef HISAX_HFC4S8S_PCIMEM /* inline functions memory mapped */ |
203 | 203 | ||
204 | /* memory write and dummy IO read to avoid PCI byte merge problems */ | 204 | /* memory write and dummy IO read to avoid PCI byte merge problems */ |
205 | #define Write_hfc8(a,b,c) {(*((volatile u_char *)(a->membase+b)) = c); inb(a->iobase+4);} | 205 | #define Write_hfc8(a,b,c) {(*((volatile u_char *)(a->membase+b)) = c); inb(a->iobase+4);} |
@@ -305,7 +305,7 @@ wait_busy(hfc4s8s_hw * a) | |||
305 | 305 | ||
306 | #define PCI_ENA_REGIO 0x01 | 306 | #define PCI_ENA_REGIO 0x01 |
307 | 307 | ||
308 | #endif /* CONFIG_HISAX_HFC4S8S_PCIMEM */ | 308 | #endif /* HISAX_HFC4S8S_PCIMEM */ |
309 | 309 | ||
310 | /******************************************************/ | 310 | /******************************************************/ |
311 | /* function to read critical counter registers that */ | 311 | /* function to read critical counter registers that */ |
@@ -724,12 +724,12 @@ rx_d_frame(struct hfc4s8s_l1 *l1p, int ech) | |||
724 | } else { | 724 | } else { |
725 | /* read errornous D frame */ | 725 | /* read errornous D frame */ |
726 | 726 | ||
727 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 727 | #ifndef HISAX_HFC4S8S_PCIMEM |
728 | SetRegAddr(l1p->hw, A_FIFO_DATA0); | 728 | SetRegAddr(l1p->hw, A_FIFO_DATA0); |
729 | #endif | 729 | #endif |
730 | 730 | ||
731 | while (z1 >= 4) { | 731 | while (z1 >= 4) { |
732 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 732 | #ifdef HISAX_HFC4S8S_PCIMEM |
733 | Read_hfc32(l1p->hw, A_FIFO_DATA0); | 733 | Read_hfc32(l1p->hw, A_FIFO_DATA0); |
734 | #else | 734 | #else |
735 | fRead_hfc32(l1p->hw); | 735 | fRead_hfc32(l1p->hw); |
@@ -738,7 +738,7 @@ rx_d_frame(struct hfc4s8s_l1 *l1p, int ech) | |||
738 | } | 738 | } |
739 | 739 | ||
740 | while (z1--) | 740 | while (z1--) |
741 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 741 | #ifdef HISAX_HFC4S8S_PCIMEM |
742 | Read_hfc8(l1p->hw, A_FIFO_DATA0); | 742 | Read_hfc8(l1p->hw, A_FIFO_DATA0); |
743 | #else | 743 | #else |
744 | fRead_hfc8(l1p->hw); | 744 | fRead_hfc8(l1p->hw); |
@@ -752,12 +752,12 @@ rx_d_frame(struct hfc4s8s_l1 *l1p, int ech) | |||
752 | 752 | ||
753 | cp = skb->data; | 753 | cp = skb->data; |
754 | 754 | ||
755 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 755 | #ifndef HISAX_HFC4S8S_PCIMEM |
756 | SetRegAddr(l1p->hw, A_FIFO_DATA0); | 756 | SetRegAddr(l1p->hw, A_FIFO_DATA0); |
757 | #endif | 757 | #endif |
758 | 758 | ||
759 | while (z1 >= 4) { | 759 | while (z1 >= 4) { |
760 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 760 | #ifdef HISAX_HFC4S8S_PCIMEM |
761 | *((unsigned long *) cp) = | 761 | *((unsigned long *) cp) = |
762 | Read_hfc32(l1p->hw, A_FIFO_DATA0); | 762 | Read_hfc32(l1p->hw, A_FIFO_DATA0); |
763 | #else | 763 | #else |
@@ -768,7 +768,7 @@ rx_d_frame(struct hfc4s8s_l1 *l1p, int ech) | |||
768 | } | 768 | } |
769 | 769 | ||
770 | while (z1--) | 770 | while (z1--) |
771 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 771 | #ifdef HISAX_HFC4S8S_PCIMEM |
772 | *cp++ = Read_hfc8(l1p->hw, A_FIFO_DATA0); | 772 | *cp++ = Read_hfc8(l1p->hw, A_FIFO_DATA0); |
773 | #else | 773 | #else |
774 | *cp++ = fRead_hfc8(l1p->hw); | 774 | *cp++ = fRead_hfc8(l1p->hw); |
@@ -858,12 +858,12 @@ rx_b_frame(struct hfc4s8s_btype *bch) | |||
858 | wait_busy(l1->hw); | 858 | wait_busy(l1->hw); |
859 | return; | 859 | return; |
860 | } | 860 | } |
861 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 861 | #ifndef HISAX_HFC4S8S_PCIMEM |
862 | SetRegAddr(l1->hw, A_FIFO_DATA0); | 862 | SetRegAddr(l1->hw, A_FIFO_DATA0); |
863 | #endif | 863 | #endif |
864 | 864 | ||
865 | while (z1 >= 4) { | 865 | while (z1 >= 4) { |
866 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 866 | #ifdef HISAX_HFC4S8S_PCIMEM |
867 | *((unsigned long *) bch->rx_ptr) = | 867 | *((unsigned long *) bch->rx_ptr) = |
868 | Read_hfc32(l1->hw, A_FIFO_DATA0); | 868 | Read_hfc32(l1->hw, A_FIFO_DATA0); |
869 | #else | 869 | #else |
@@ -875,7 +875,7 @@ rx_b_frame(struct hfc4s8s_btype *bch) | |||
875 | } | 875 | } |
876 | 876 | ||
877 | while (z1--) | 877 | while (z1--) |
878 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 878 | #ifdef HISAX_HFC4S8S_PCIMEM |
879 | *(bch->rx_ptr++) = Read_hfc8(l1->hw, A_FIFO_DATA0); | 879 | *(bch->rx_ptr++) = Read_hfc8(l1->hw, A_FIFO_DATA0); |
880 | #else | 880 | #else |
881 | *(bch->rx_ptr++) = fRead_hfc8(l1->hw); | 881 | *(bch->rx_ptr++) = fRead_hfc8(l1->hw); |
@@ -939,12 +939,12 @@ tx_d_frame(struct hfc4s8s_l1 *l1p) | |||
939 | if ((skb = skb_dequeue(&l1p->d_tx_queue))) { | 939 | if ((skb = skb_dequeue(&l1p->d_tx_queue))) { |
940 | cp = skb->data; | 940 | cp = skb->data; |
941 | cnt = skb->len; | 941 | cnt = skb->len; |
942 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 942 | #ifndef HISAX_HFC4S8S_PCIMEM |
943 | SetRegAddr(l1p->hw, A_FIFO_DATA0); | 943 | SetRegAddr(l1p->hw, A_FIFO_DATA0); |
944 | #endif | 944 | #endif |
945 | 945 | ||
946 | while (cnt >= 4) { | 946 | while (cnt >= 4) { |
947 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 947 | #ifdef HISAX_HFC4S8S_PCIMEM |
948 | fWrite_hfc32(l1p->hw, A_FIFO_DATA0, | 948 | fWrite_hfc32(l1p->hw, A_FIFO_DATA0, |
949 | *(unsigned long *) cp); | 949 | *(unsigned long *) cp); |
950 | #else | 950 | #else |
@@ -955,7 +955,7 @@ tx_d_frame(struct hfc4s8s_l1 *l1p) | |||
955 | cnt -= 4; | 955 | cnt -= 4; |
956 | } | 956 | } |
957 | 957 | ||
958 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 958 | #ifdef HISAX_HFC4S8S_PCIMEM |
959 | while (cnt--) | 959 | while (cnt--) |
960 | fWrite_hfc8(l1p->hw, A_FIFO_DATA0, *cp++); | 960 | fWrite_hfc8(l1p->hw, A_FIFO_DATA0, *cp++); |
961 | #else | 961 | #else |
@@ -1036,11 +1036,11 @@ tx_b_frame(struct hfc4s8s_btype *bch) | |||
1036 | cp = skb->data + bch->tx_cnt; | 1036 | cp = skb->data + bch->tx_cnt; |
1037 | bch->tx_cnt += cnt; | 1037 | bch->tx_cnt += cnt; |
1038 | 1038 | ||
1039 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 1039 | #ifndef HISAX_HFC4S8S_PCIMEM |
1040 | SetRegAddr(l1->hw, A_FIFO_DATA0); | 1040 | SetRegAddr(l1->hw, A_FIFO_DATA0); |
1041 | #endif | 1041 | #endif |
1042 | while (cnt >= 4) { | 1042 | while (cnt >= 4) { |
1043 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1043 | #ifdef HISAX_HFC4S8S_PCIMEM |
1044 | fWrite_hfc32(l1->hw, A_FIFO_DATA0, | 1044 | fWrite_hfc32(l1->hw, A_FIFO_DATA0, |
1045 | *(unsigned long *) cp); | 1045 | *(unsigned long *) cp); |
1046 | #else | 1046 | #else |
@@ -1051,7 +1051,7 @@ tx_b_frame(struct hfc4s8s_btype *bch) | |||
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | while (cnt--) | 1053 | while (cnt--) |
1054 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1054 | #ifdef HISAX_HFC4S8S_PCIMEM |
1055 | fWrite_hfc8(l1->hw, A_FIFO_DATA0, *cp++); | 1055 | fWrite_hfc8(l1->hw, A_FIFO_DATA0, *cp++); |
1056 | #else | 1056 | #else |
1057 | fWrite_hfc8(l1->hw, *cp++); | 1057 | fWrite_hfc8(l1->hw, *cp++); |
@@ -1280,7 +1280,7 @@ hfc4s8s_interrupt(int intno, void *dev_id) | |||
1280 | if (!hw || !(hw->mr.r_irq_ctrl & M_GLOB_IRQ_EN)) | 1280 | if (!hw || !(hw->mr.r_irq_ctrl & M_GLOB_IRQ_EN)) |
1281 | return IRQ_NONE; | 1281 | return IRQ_NONE; |
1282 | 1282 | ||
1283 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 1283 | #ifndef HISAX_HFC4S8S_PCIMEM |
1284 | /* read current selected regsister */ | 1284 | /* read current selected regsister */ |
1285 | old_ioreg = GetRegAddr(hw); | 1285 | old_ioreg = GetRegAddr(hw); |
1286 | #endif | 1286 | #endif |
@@ -1291,7 +1291,7 @@ hfc4s8s_interrupt(int intno, void *dev_id) | |||
1291 | if (! | 1291 | if (! |
1292 | (b = (Read_hfc8(hw, R_STATUS) & (M_MISC_IRQSTA | M_FR_IRQSTA))) | 1292 | (b = (Read_hfc8(hw, R_STATUS) & (M_MISC_IRQSTA | M_FR_IRQSTA))) |
1293 | && !hw->mr.r_irq_statech) { | 1293 | && !hw->mr.r_irq_statech) { |
1294 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 1294 | #ifndef HISAX_HFC4S8S_PCIMEM |
1295 | SetRegAddr(hw, old_ioreg); | 1295 | SetRegAddr(hw, old_ioreg); |
1296 | #endif | 1296 | #endif |
1297 | return IRQ_NONE; | 1297 | return IRQ_NONE; |
@@ -1321,7 +1321,7 @@ hfc4s8s_interrupt(int intno, void *dev_id) | |||
1321 | /* queue the request to allow other cards to interrupt */ | 1321 | /* queue the request to allow other cards to interrupt */ |
1322 | schedule_work(&hw->tqueue); | 1322 | schedule_work(&hw->tqueue); |
1323 | 1323 | ||
1324 | #ifndef CONFIG_HISAX_HFC4S8S_PCIMEM | 1324 | #ifndef HISAX_HFC4S8S_PCIMEM |
1325 | SetRegAddr(hw, old_ioreg); | 1325 | SetRegAddr(hw, old_ioreg); |
1326 | #endif | 1326 | #endif |
1327 | return IRQ_HANDLED; | 1327 | return IRQ_HANDLED; |
@@ -1470,7 +1470,7 @@ static void | |||
1470 | release_pci_ports(hfc4s8s_hw * hw) | 1470 | release_pci_ports(hfc4s8s_hw * hw) |
1471 | { | 1471 | { |
1472 | pci_write_config_word(hw->pdev, PCI_COMMAND, 0); | 1472 | pci_write_config_word(hw->pdev, PCI_COMMAND, 0); |
1473 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1473 | #ifdef HISAX_HFC4S8S_PCIMEM |
1474 | if (hw->membase) | 1474 | if (hw->membase) |
1475 | iounmap((void *) hw->membase); | 1475 | iounmap((void *) hw->membase); |
1476 | #else | 1476 | #else |
@@ -1485,7 +1485,7 @@ release_pci_ports(hfc4s8s_hw * hw) | |||
1485 | static void | 1485 | static void |
1486 | enable_pci_ports(hfc4s8s_hw * hw) | 1486 | enable_pci_ports(hfc4s8s_hw * hw) |
1487 | { | 1487 | { |
1488 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1488 | #ifdef HISAX_HFC4S8S_PCIMEM |
1489 | pci_write_config_word(hw->pdev, PCI_COMMAND, PCI_ENA_MEMIO); | 1489 | pci_write_config_word(hw->pdev, PCI_COMMAND, PCI_ENA_MEMIO); |
1490 | #else | 1490 | #else |
1491 | pci_write_config_word(hw->pdev, PCI_COMMAND, PCI_ENA_REGIO); | 1491 | pci_write_config_word(hw->pdev, PCI_COMMAND, PCI_ENA_REGIO); |
@@ -1560,7 +1560,7 @@ setup_instance(hfc4s8s_hw * hw) | |||
1560 | hw->irq); | 1560 | hw->irq); |
1561 | goto out; | 1561 | goto out; |
1562 | } | 1562 | } |
1563 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1563 | #ifdef HISAX_HFC4S8S_PCIMEM |
1564 | printk(KERN_INFO | 1564 | printk(KERN_INFO |
1565 | "HFC-4S/8S: found PCI card at membase 0x%p, irq %d\n", | 1565 | "HFC-4S/8S: found PCI card at membase 0x%p, irq %d\n", |
1566 | hw->hw_membase, hw->irq); | 1566 | hw->hw_membase, hw->irq); |
@@ -1613,7 +1613,7 @@ hfc4s8s_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1613 | hw->irq = pdev->irq; | 1613 | hw->irq = pdev->irq; |
1614 | hw->iobase = pci_resource_start(pdev, 0); | 1614 | hw->iobase = pci_resource_start(pdev, 0); |
1615 | 1615 | ||
1616 | #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM | 1616 | #ifdef HISAX_HFC4S8S_PCIMEM |
1617 | hw->hw_membase = (u_char *) pci_resource_start(pdev, 1); | 1617 | hw->hw_membase = (u_char *) pci_resource_start(pdev, 1); |
1618 | hw->membase = ioremap((ulong) hw->hw_membase, 256); | 1618 | hw->membase = ioremap((ulong) hw->hw_membase, 256); |
1619 | #else | 1619 | #else |
diff --git a/drivers/isdn/hisax/hfc_usb.c b/drivers/isdn/hisax/hfc_usb.c index 5a6989f23fcf..42bbae2a646c 100644 --- a/drivers/isdn/hisax/hfc_usb.c +++ b/drivers/isdn/hisax/hfc_usb.c | |||
@@ -183,7 +183,7 @@ typedef struct hfcusb_data { | |||
183 | int vend_idx; /* vendor found */ | 183 | int vend_idx; /* vendor found */ |
184 | int b_mode[2]; /* B-channel mode */ | 184 | int b_mode[2]; /* B-channel mode */ |
185 | int l1_activated; /* layer 1 activated */ | 185 | int l1_activated; /* layer 1 activated */ |
186 | int disc_flag; /* TRUE if device was disonnected to avoid some USB actions */ | 186 | int disc_flag; /* 'true' if device was disonnected to avoid some USB actions */ |
187 | int packet_size, iso_packet_size; | 187 | int packet_size, iso_packet_size; |
188 | 188 | ||
189 | /* control pipe background handling */ | 189 | /* control pipe background handling */ |
@@ -392,7 +392,7 @@ l1_timer_expire_t3(hfcusb_data * hfc) | |||
392 | DBG(ISDN_DBG, | 392 | DBG(ISDN_DBG, |
393 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent (T3 expire)"); | 393 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent (T3 expire)"); |
394 | #endif | 394 | #endif |
395 | hfc->l1_activated = FALSE; | 395 | hfc->l1_activated = false; |
396 | handle_led(hfc, LED_S0_OFF); | 396 | handle_led(hfc, LED_S0_OFF); |
397 | /* deactivate : */ | 397 | /* deactivate : */ |
398 | queue_control_request(hfc, HFCUSB_STATES, 0x10, 1); | 398 | queue_control_request(hfc, HFCUSB_STATES, 0x10, 1); |
@@ -411,7 +411,7 @@ l1_timer_expire_t4(hfcusb_data * hfc) | |||
411 | DBG(ISDN_DBG, | 411 | DBG(ISDN_DBG, |
412 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent (T4 expire)"); | 412 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent (T4 expire)"); |
413 | #endif | 413 | #endif |
414 | hfc->l1_activated = FALSE; | 414 | hfc->l1_activated = false; |
415 | handle_led(hfc, LED_S0_OFF); | 415 | handle_led(hfc, LED_S0_OFF); |
416 | } | 416 | } |
417 | 417 | ||
@@ -452,7 +452,7 @@ state_handler(hfcusb_data * hfc, __u8 state) | |||
452 | #ifdef CONFIG_HISAX_DEBUG | 452 | #ifdef CONFIG_HISAX_DEBUG |
453 | DBG(ISDN_DBG, "HFC-S USB: PH_ACTIVATE | INDICATION sent"); | 453 | DBG(ISDN_DBG, "HFC-S USB: PH_ACTIVATE | INDICATION sent"); |
454 | #endif | 454 | #endif |
455 | hfc->l1_activated = TRUE; | 455 | hfc->l1_activated = true; |
456 | handle_led(hfc, LED_S0_ON); | 456 | handle_led(hfc, LED_S0_ON); |
457 | } else if (state <= 3 /* && activated */ ) { | 457 | } else if (state <= 3 /* && activated */ ) { |
458 | if (old_state == 7 || old_state == 8) { | 458 | if (old_state == 7 || old_state == 8) { |
@@ -472,7 +472,7 @@ state_handler(hfcusb_data * hfc, __u8 state) | |||
472 | DBG(ISDN_DBG, | 472 | DBG(ISDN_DBG, |
473 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent"); | 473 | "HFC-S USB: PH_DEACTIVATE | INDICATION sent"); |
474 | #endif | 474 | #endif |
475 | hfc->l1_activated = FALSE; | 475 | hfc->l1_activated = false; |
476 | handle_led(hfc, LED_S0_OFF); | 476 | handle_led(hfc, LED_S0_OFF); |
477 | } | 477 | } |
478 | } | 478 | } |
@@ -622,7 +622,7 @@ tx_iso_complete(struct urb *urb) | |||
622 | if (fifo->active && !status) { | 622 | if (fifo->active && !status) { |
623 | transp_mode = 0; | 623 | transp_mode = 0; |
624 | if (fifon < 4 && hfc->b_mode[fifon / 2] == L1_MODE_TRANS) | 624 | if (fifon < 4 && hfc->b_mode[fifon / 2] == L1_MODE_TRANS) |
625 | transp_mode = TRUE; | 625 | transp_mode = true; |
626 | 626 | ||
627 | /* is FifoFull-threshold set for our channel? */ | 627 | /* is FifoFull-threshold set for our channel? */ |
628 | threshbit = threshtable[fifon] & hfc->threshold_mask; | 628 | threshbit = threshtable[fifon] & hfc->threshold_mask; |
@@ -640,7 +640,7 @@ tx_iso_complete(struct urb *urb) | |||
640 | tx_iso_complete, urb->context); | 640 | tx_iso_complete, urb->context); |
641 | memset(context_iso_urb->buffer, 0, | 641 | memset(context_iso_urb->buffer, 0, |
642 | sizeof(context_iso_urb->buffer)); | 642 | sizeof(context_iso_urb->buffer)); |
643 | frame_complete = FALSE; | 643 | frame_complete = false; |
644 | /* Generate next Iso Packets */ | 644 | /* Generate next Iso Packets */ |
645 | for (k = 0; k < num_isoc_packets; ++k) { | 645 | for (k = 0; k < num_isoc_packets; ++k) { |
646 | if (fifo->skbuff) { | 646 | if (fifo->skbuff) { |
@@ -666,7 +666,7 @@ tx_iso_complete(struct urb *urb) | |||
666 | /* add 2 byte flags and 16bit CRC at end of ISDN frame */ | 666 | /* add 2 byte flags and 16bit CRC at end of ISDN frame */ |
667 | fifo->bit_line += 32; | 667 | fifo->bit_line += 32; |
668 | } | 668 | } |
669 | frame_complete = TRUE; | 669 | frame_complete = true; |
670 | } | 670 | } |
671 | 671 | ||
672 | memcpy(context_iso_urb->buffer + | 672 | memcpy(context_iso_urb->buffer + |
@@ -693,7 +693,7 @@ tx_iso_complete(struct urb *urb) | |||
693 | } | 693 | } |
694 | 694 | ||
695 | if (frame_complete) { | 695 | if (frame_complete) { |
696 | fifo->delete_flg = TRUE; | 696 | fifo->delete_flg = true; |
697 | fifo->hif->l1l2(fifo->hif, | 697 | fifo->hif->l1l2(fifo->hif, |
698 | PH_DATA | CONFIRM, | 698 | PH_DATA | CONFIRM, |
699 | (void *) (unsigned long) fifo->skbuff-> | 699 | (void *) (unsigned long) fifo->skbuff-> |
@@ -701,9 +701,9 @@ tx_iso_complete(struct urb *urb) | |||
701 | if (fifo->skbuff && fifo->delete_flg) { | 701 | if (fifo->skbuff && fifo->delete_flg) { |
702 | dev_kfree_skb_any(fifo->skbuff); | 702 | dev_kfree_skb_any(fifo->skbuff); |
703 | fifo->skbuff = NULL; | 703 | fifo->skbuff = NULL; |
704 | fifo->delete_flg = FALSE; | 704 | fifo->delete_flg = false; |
705 | } | 705 | } |
706 | frame_complete = FALSE; | 706 | frame_complete = false; |
707 | } | 707 | } |
708 | } | 708 | } |
709 | errcode = usb_submit_urb(urb, GFP_ATOMIC); | 709 | errcode = usb_submit_urb(urb, GFP_ATOMIC); |
@@ -837,7 +837,7 @@ collect_rx_frame(usb_fifo * fifo, __u8 * data, int len, int finish) | |||
837 | fifon = fifo->fifonum; | 837 | fifon = fifo->fifonum; |
838 | transp_mode = 0; | 838 | transp_mode = 0; |
839 | if (fifon < 4 && hfc->b_mode[fifon / 2] == L1_MODE_TRANS) | 839 | if (fifon < 4 && hfc->b_mode[fifon / 2] == L1_MODE_TRANS) |
840 | transp_mode = TRUE; | 840 | transp_mode = true; |
841 | 841 | ||
842 | if (!fifo->skbuff) { | 842 | if (!fifo->skbuff) { |
843 | fifo->skbuff = dev_alloc_skb(fifo->max_size + 3); | 843 | fifo->skbuff = dev_alloc_skb(fifo->max_size + 3); |
@@ -1176,7 +1176,7 @@ hfc_usb_l2l1(struct hisax_if *my_hisax_if, int pr, void *arg) | |||
1176 | if (fifo->skbuff && fifo->delete_flg) { | 1176 | if (fifo->skbuff && fifo->delete_flg) { |
1177 | dev_kfree_skb_any(fifo->skbuff); | 1177 | dev_kfree_skb_any(fifo->skbuff); |
1178 | fifo->skbuff = NULL; | 1178 | fifo->skbuff = NULL; |
1179 | fifo->delete_flg = FALSE; | 1179 | fifo->delete_flg = false; |
1180 | } | 1180 | } |
1181 | fifo->skbuff = arg; /* we have a new buffer */ | 1181 | fifo->skbuff = arg; /* we have a new buffer */ |
1182 | break; | 1182 | break; |
@@ -1262,8 +1262,8 @@ usb_init(hfcusb_data * hfc) | |||
1262 | hfc->b_mode[0] = L1_MODE_NULL; | 1262 | hfc->b_mode[0] = L1_MODE_NULL; |
1263 | hfc->b_mode[1] = L1_MODE_NULL; | 1263 | hfc->b_mode[1] = L1_MODE_NULL; |
1264 | 1264 | ||
1265 | hfc->l1_activated = FALSE; | 1265 | hfc->l1_activated = false; |
1266 | hfc->disc_flag = FALSE; | 1266 | hfc->disc_flag = false; |
1267 | hfc->led_state = 0; | 1267 | hfc->led_state = 0; |
1268 | hfc->led_new_data = 0; | 1268 | hfc->led_new_data = 0; |
1269 | hfc->old_led_state = 0; | 1269 | hfc->old_led_state = 0; |
@@ -1404,7 +1404,7 @@ hfc_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1404 | 1404 | ||
1405 | /* check for config EOL element */ | 1405 | /* check for config EOL element */ |
1406 | while (validconf[cfg_used][0]) { | 1406 | while (validconf[cfg_used][0]) { |
1407 | cfg_found = TRUE; | 1407 | cfg_found = true; |
1408 | vcf = validconf[cfg_used]; | 1408 | vcf = validconf[cfg_used]; |
1409 | /* first endpoint descriptor */ | 1409 | /* first endpoint descriptor */ |
1410 | ep = iface->endpoint; | 1410 | ep = iface->endpoint; |
@@ -1426,7 +1426,7 @@ hfc_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1426 | idx++; | 1426 | idx++; |
1427 | attr = ep->desc.bmAttributes; | 1427 | attr = ep->desc.bmAttributes; |
1428 | if (cmptbl[idx] == EP_NUL) { | 1428 | if (cmptbl[idx] == EP_NUL) { |
1429 | cfg_found = FALSE; | 1429 | cfg_found = false; |
1430 | } | 1430 | } |
1431 | if (attr == USB_ENDPOINT_XFER_INT | 1431 | if (attr == USB_ENDPOINT_XFER_INT |
1432 | && cmptbl[idx] == EP_INT) | 1432 | && cmptbl[idx] == EP_INT) |
@@ -1448,7 +1448,7 @@ hfc_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1448 | "HFC-S USB: Interrupt Endpoint interval < %d found - skipping config", | 1448 | "HFC-S USB: Interrupt Endpoint interval < %d found - skipping config", |
1449 | vcf[17]); | 1449 | vcf[17]); |
1450 | #endif | 1450 | #endif |
1451 | cfg_found = FALSE; | 1451 | cfg_found = false; |
1452 | } | 1452 | } |
1453 | ep++; | 1453 | ep++; |
1454 | } | 1454 | } |
@@ -1456,7 +1456,7 @@ hfc_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1456 | /* all entries must be EP_NOP or EP_NUL for a valid config */ | 1456 | /* all entries must be EP_NOP or EP_NUL for a valid config */ |
1457 | if (cmptbl[i] != EP_NOP | 1457 | if (cmptbl[i] != EP_NOP |
1458 | && cmptbl[i] != EP_NUL) | 1458 | && cmptbl[i] != EP_NUL) |
1459 | cfg_found = FALSE; | 1459 | cfg_found = false; |
1460 | } | 1460 | } |
1461 | if (cfg_found) { | 1461 | if (cfg_found) { |
1462 | if (cfg_used < small_match) { | 1462 | if (cfg_used < small_match) { |
@@ -1656,7 +1656,7 @@ hfc_usb_disconnect(struct usb_interface | |||
1656 | hfcusb_data *context = usb_get_intfdata(intf); | 1656 | hfcusb_data *context = usb_get_intfdata(intf); |
1657 | int i; | 1657 | int i; |
1658 | printk(KERN_INFO "HFC-S USB: device disconnect\n"); | 1658 | printk(KERN_INFO "HFC-S USB: device disconnect\n"); |
1659 | context->disc_flag = TRUE; | 1659 | context->disc_flag = true; |
1660 | usb_set_intfdata(intf, NULL); | 1660 | usb_set_intfdata(intf, NULL); |
1661 | if (!context) | 1661 | if (!context) |
1662 | return; | 1662 | return; |
diff --git a/drivers/isdn/hisax/hfc_usb.h b/drivers/isdn/hisax/hfc_usb.h index 6349367ed480..471f2354dfde 100644 --- a/drivers/isdn/hisax/hfc_usb.h +++ b/drivers/isdn/hisax/hfc_usb.h | |||
@@ -12,9 +12,6 @@ | |||
12 | 12 | ||
13 | #define VERBOSE_USB_DEBUG | 13 | #define VERBOSE_USB_DEBUG |
14 | 14 | ||
15 | #define TRUE 1 | ||
16 | #define FALSE 0 | ||
17 | |||
18 | 15 | ||
19 | /***********/ | 16 | /***********/ |
20 | /* defines */ | 17 | /* defines */ |
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index 3f1137e34678..3cd8d5ba239b 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h | |||
@@ -795,19 +795,6 @@ struct w6692_hw { | |||
795 | struct timer_list timer; | 795 | struct timer_list timer; |
796 | }; | 796 | }; |
797 | 797 | ||
798 | #ifdef CONFIG_HISAX_TESTEMU | ||
799 | struct te_hw { | ||
800 | unsigned char *sfifo; | ||
801 | unsigned char *sfifo_w; | ||
802 | unsigned char *sfifo_r; | ||
803 | unsigned char *sfifo_e; | ||
804 | int sfifo_cnt; | ||
805 | unsigned int stat; | ||
806 | wait_queue_head_t rwaitq; | ||
807 | wait_queue_head_t swaitq; | ||
808 | }; | ||
809 | #endif | ||
810 | |||
811 | struct arcofi_msg { | 798 | struct arcofi_msg { |
812 | struct arcofi_msg *next; | 799 | struct arcofi_msg *next; |
813 | u_char receive; | 800 | u_char receive; |
@@ -916,9 +903,6 @@ struct IsdnCardState { | |||
916 | struct ix1_hw niccy; | 903 | struct ix1_hw niccy; |
917 | struct isurf_hw isurf; | 904 | struct isurf_hw isurf; |
918 | struct saphir_hw saphir; | 905 | struct saphir_hw saphir; |
919 | #ifdef CONFIG_HISAX_TESTEMU | ||
920 | struct te_hw te; | ||
921 | #endif | ||
922 | struct bkm_hw ax; | 906 | struct bkm_hw ax; |
923 | struct gazel_hw gazel; | 907 | struct gazel_hw gazel; |
924 | struct w6692_hw w6692; | 908 | struct w6692_hw w6692; |
@@ -1175,15 +1159,6 @@ struct IsdnCardState { | |||
1175 | #define CARD_HSTSAPHIR 0 | 1159 | #define CARD_HSTSAPHIR 0 |
1176 | #endif | 1160 | #endif |
1177 | 1161 | ||
1178 | #ifdef CONFIG_HISAX_TESTEMU | ||
1179 | #define CARD_TESTEMU 1 | ||
1180 | #define ISDN_CTYPE_TESTEMU 99 | ||
1181 | #undef ISDN_CTYPE_COUNT | ||
1182 | #define ISDN_CTYPE_COUNT ISDN_CTYPE_TESTEMU | ||
1183 | #else | ||
1184 | #define CARD_TESTEMU 0 | ||
1185 | #endif | ||
1186 | |||
1187 | #ifdef CONFIG_HISAX_BKM_A4T | 1162 | #ifdef CONFIG_HISAX_BKM_A4T |
1188 | #define CARD_BKM_A4T 1 | 1163 | #define CARD_BKM_A4T 1 |
1189 | #ifndef ISDN_CHIP_ISAC | 1164 | #ifndef ISDN_CHIP_ISAC |
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c index 6f1a6583b17d..9df9e3548cf1 100644 --- a/drivers/isdn/hisax/isar.c +++ b/drivers/isdn/hisax/isar.c | |||
@@ -431,7 +431,6 @@ reterror: | |||
431 | return(ret); | 431 | return(ret); |
432 | } | 432 | } |
433 | 433 | ||
434 | extern void BChannel_bh(struct BCState *); | ||
435 | #define B_LL_NOCARRIER 8 | 434 | #define B_LL_NOCARRIER 8 |
436 | #define B_LL_CONNECT 9 | 435 | #define B_LL_CONNECT 9 |
437 | #define B_LL_OK 10 | 436 | #define B_LL_OK 10 |
diff --git a/drivers/isdn/hisax/isdnl1.h b/drivers/isdn/hisax/isdnl1.h index 0e88cfabdf10..172ad4c8c961 100644 --- a/drivers/isdn/hisax/isdnl1.h +++ b/drivers/isdn/hisax/isdnl1.h | |||
@@ -21,12 +21,11 @@ | |||
21 | #define B_XMTBUFREADY 1 | 21 | #define B_XMTBUFREADY 1 |
22 | #define B_ACKPENDING 2 | 22 | #define B_ACKPENDING 2 |
23 | 23 | ||
24 | extern void debugl1(struct IsdnCardState *cs, char *fmt, ...); | 24 | void debugl1(struct IsdnCardState *cs, char *fmt, ...); |
25 | extern void DChannel_proc_xmt(struct IsdnCardState *cs); | 25 | void DChannel_proc_xmt(struct IsdnCardState *cs); |
26 | extern void DChannel_proc_rcv(struct IsdnCardState *cs); | 26 | void DChannel_proc_rcv(struct IsdnCardState *cs); |
27 | extern void l1_msg(struct IsdnCardState *cs, int pr, void *arg); | 27 | void l1_msg(struct IsdnCardState *cs, int pr, void *arg); |
28 | extern void l1_msg_b(struct PStack *st, int pr, void *arg); | 28 | void l1_msg_b(struct PStack *st, int pr, void *arg); |
29 | 29 | void Logl2Frame(struct IsdnCardState *cs, struct sk_buff *skb, char *buf, | |
30 | #ifdef L2FRAME_DEBUG | 30 | int dir); |
31 | extern void Logl2Frame(struct IsdnCardState *cs, struct sk_buff *skb, char *buf, int dir); | 31 | void BChannel_bh(struct work_struct *work); |
32 | #endif | ||
diff --git a/drivers/isdn/hisax/isdnl3.c b/drivers/isdn/hisax/isdnl3.c index 281fa27d9f00..935f23356fae 100644 --- a/drivers/isdn/hisax/isdnl3.c +++ b/drivers/isdn/hisax/isdnl3.c | |||
@@ -231,18 +231,6 @@ no_l3_proto_spec(struct PStack *st, isdn_ctrl *ic) | |||
231 | return(-1); | 231 | return(-1); |
232 | } | 232 | } |
233 | 233 | ||
234 | #ifdef CONFIG_HISAX_EURO | ||
235 | extern void setstack_dss1(struct PStack *st); | ||
236 | #endif | ||
237 | |||
238 | #ifdef CONFIG_HISAX_NI1 | ||
239 | extern void setstack_ni1(struct PStack *st); | ||
240 | #endif | ||
241 | |||
242 | #ifdef CONFIG_HISAX_1TR6 | ||
243 | extern void setstack_1tr6(struct PStack *st); | ||
244 | #endif | ||
245 | |||
246 | struct l3_process | 234 | struct l3_process |
247 | *getl3proc(struct PStack *st, int cr) | 235 | *getl3proc(struct PStack *st, int cr) |
248 | { | 236 | { |
diff --git a/drivers/isdn/hisax/isdnl3.h b/drivers/isdn/hisax/isdnl3.h index 1dbe0297a506..749498fe6c4b 100644 --- a/drivers/isdn/hisax/isdnl3.h +++ b/drivers/isdn/hisax/isdnl3.h | |||
@@ -25,13 +25,19 @@ struct stateentry { | |||
25 | 25 | ||
26 | #define l3_debug(st, fmt, args...) HiSax_putstatus(st->l1.hardware, "l3 ", fmt, ## args) | 26 | #define l3_debug(st, fmt, args...) HiSax_putstatus(st->l1.hardware, "l3 ", fmt, ## args) |
27 | 27 | ||
28 | extern void newl3state(struct l3_process *pc, int state); | 28 | struct PStack; |
29 | extern void L3InitTimer(struct l3_process *pc, struct L3Timer *t); | 29 | |
30 | extern void L3DelTimer(struct L3Timer *t); | 30 | void newl3state(struct l3_process *pc, int state); |
31 | extern int L3AddTimer(struct L3Timer *t, int millisec, int event); | 31 | void L3InitTimer(struct l3_process *pc, struct L3Timer *t); |
32 | extern void StopAllL3Timer(struct l3_process *pc); | 32 | void L3DelTimer(struct L3Timer *t); |
33 | extern struct sk_buff *l3_alloc_skb(int len); | 33 | int L3AddTimer(struct L3Timer *t, int millisec, int event); |
34 | extern struct l3_process *new_l3_process(struct PStack *st, int cr); | 34 | void StopAllL3Timer(struct l3_process *pc); |
35 | extern void release_l3_process(struct l3_process *p); | 35 | struct sk_buff *l3_alloc_skb(int len); |
36 | extern struct l3_process *getl3proc(struct PStack *st, int cr); | 36 | struct l3_process *new_l3_process(struct PStack *st, int cr); |
37 | extern void l3_msg(struct PStack *st, int pr, void *arg); | 37 | void release_l3_process(struct l3_process *p); |
38 | struct l3_process *getl3proc(struct PStack *st, int cr); | ||
39 | void l3_msg(struct PStack *st, int pr, void *arg); | ||
40 | void setstack_dss1(struct PStack *st); | ||
41 | void setstack_ni1(struct PStack *st); | ||
42 | void setstack_1tr6(struct PStack *st); | ||
43 | |||