diff options
Diffstat (limited to 'drivers/isdn/hisax/hisax.h')
-rw-r--r-- | drivers/isdn/hisax/hisax.h | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index aff45a11a92d..6ead6314e6d2 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h | |||
@@ -133,15 +133,15 @@ extern const char *tei_revision; | |||
133 | 133 | ||
134 | /* include l3dss1 & ni1 specific process structures, but no other defines */ | 134 | /* include l3dss1 & ni1 specific process structures, but no other defines */ |
135 | #ifdef CONFIG_HISAX_EURO | 135 | #ifdef CONFIG_HISAX_EURO |
136 | #define l3dss1_process | 136 | #define l3dss1_process |
137 | #include "l3dss1.h" | 137 | #include "l3dss1.h" |
138 | #undef l3dss1_process | 138 | #undef l3dss1_process |
139 | #endif /* CONFIG_HISAX_EURO */ | 139 | #endif /* CONFIG_HISAX_EURO */ |
140 | 140 | ||
141 | #ifdef CONFIG_HISAX_NI1 | 141 | #ifdef CONFIG_HISAX_NI1 |
142 | #define l3ni1_process | 142 | #define l3ni1_process |
143 | #include "l3ni1.h" | 143 | #include "l3ni1.h" |
144 | #undef l3ni1_process | 144 | #undef l3ni1_process |
145 | #endif /* CONFIG_HISAX_NI1 */ | 145 | #endif /* CONFIG_HISAX_NI1 */ |
146 | 146 | ||
147 | #define MAX_DFRAME_LEN 260 | 147 | #define MAX_DFRAME_LEN 260 |
@@ -149,7 +149,7 @@ extern const char *tei_revision; | |||
149 | #define HSCX_BUFMAX 4096 | 149 | #define HSCX_BUFMAX 4096 |
150 | #define MAX_DATA_SIZE (HSCX_BUFMAX - 4) | 150 | #define MAX_DATA_SIZE (HSCX_BUFMAX - 4) |
151 | #define MAX_DATA_MEM (HSCX_BUFMAX + 64) | 151 | #define MAX_DATA_MEM (HSCX_BUFMAX + 64) |
152 | #define RAW_BUFMAX (((HSCX_BUFMAX*6)/5) + 5) | 152 | #define RAW_BUFMAX (((HSCX_BUFMAX * 6) / 5) + 5) |
153 | #define MAX_HEADER_LEN 4 | 153 | #define MAX_HEADER_LEN 4 |
154 | #define MAX_WINDOW 8 | 154 | #define MAX_WINDOW 8 |
155 | #define MAX_MON_FRAME 32 | 155 | #define MAX_MON_FRAME 32 |
@@ -165,7 +165,7 @@ extern const char *tei_revision; | |||
165 | 165 | ||
166 | struct FsmInst; | 166 | struct FsmInst; |
167 | 167 | ||
168 | typedef void (* FSMFNPTR)(struct FsmInst *, int, void *); | 168 | typedef void (*FSMFNPTR)(struct FsmInst *, int, void *); |
169 | 169 | ||
170 | struct Fsm { | 170 | struct Fsm { |
171 | FSMFNPTR *jumpmatrix; | 171 | FSMFNPTR *jumpmatrix; |
@@ -272,10 +272,10 @@ struct Layer2 { | |||
272 | 272 | ||
273 | struct Layer3 { | 273 | struct Layer3 { |
274 | void (*l3l4) (struct PStack *, int, void *); | 274 | void (*l3l4) (struct PStack *, int, void *); |
275 | void (*l3ml3) (struct PStack *, int, void *); | 275 | void (*l3ml3) (struct PStack *, int, void *); |
276 | void (*l3l2) (struct PStack *, int, void *); | 276 | void (*l3l2) (struct PStack *, int, void *); |
277 | struct FsmInst l3m; | 277 | struct FsmInst l3m; |
278 | struct FsmTimer l3m_timer; | 278 | struct FsmTimer l3m_timer; |
279 | struct sk_buff_head squeue; | 279 | struct sk_buff_head squeue; |
280 | struct l3_process *proc; | 280 | struct l3_process *proc; |
281 | struct l3_process *global; | 281 | struct l3_process *global; |
@@ -286,7 +286,7 @@ struct Layer3 { | |||
286 | 286 | ||
287 | struct LLInterface { | 287 | struct LLInterface { |
288 | void (*l4l3) (struct PStack *, int, void *); | 288 | void (*l4l3) (struct PStack *, int, void *); |
289 | int (*l4l3_proto) (struct PStack *, isdn_ctrl *); | 289 | int (*l4l3_proto) (struct PStack *, isdn_ctrl *); |
290 | void *userdata; | 290 | void *userdata; |
291 | u_long flag; | 291 | u_long flag; |
292 | }; | 292 | }; |
@@ -325,16 +325,16 @@ struct PStack { | |||
325 | struct Management ma; | 325 | struct Management ma; |
326 | int protocol; /* EDSS1, 1TR6 or NI1 */ | 326 | int protocol; /* EDSS1, 1TR6 or NI1 */ |
327 | 327 | ||
328 | /* protocol specific data fields */ | 328 | /* protocol specific data fields */ |
329 | union | 329 | union |
330 | { u_char uuuu; /* only as dummy */ | 330 | { u_char uuuu; /* only as dummy */ |
331 | #ifdef CONFIG_HISAX_EURO | 331 | #ifdef CONFIG_HISAX_EURO |
332 | dss1_stk_priv dss1; /* private dss1 data */ | 332 | dss1_stk_priv dss1; /* private dss1 data */ |
333 | #endif /* CONFIG_HISAX_EURO */ | 333 | #endif /* CONFIG_HISAX_EURO */ |
334 | #ifdef CONFIG_HISAX_NI1 | 334 | #ifdef CONFIG_HISAX_NI1 |
335 | ni1_stk_priv ni1; /* private ni1 data */ | 335 | ni1_stk_priv ni1; /* private ni1 data */ |
336 | #endif /* CONFIG_HISAX_NI1 */ | 336 | #endif /* CONFIG_HISAX_NI1 */ |
337 | } prot; | 337 | } prot; |
338 | }; | 338 | }; |
339 | 339 | ||
340 | struct l3_process { | 340 | struct l3_process { |
@@ -347,18 +347,18 @@ struct l3_process { | |||
347 | struct Channel *chan; | 347 | struct Channel *chan; |
348 | struct PStack *st; | 348 | struct PStack *st; |
349 | struct l3_process *next; | 349 | struct l3_process *next; |
350 | ulong redir_result; | 350 | ulong redir_result; |
351 | 351 | ||
352 | /* protocol specific data fields */ | 352 | /* protocol specific data fields */ |
353 | union | 353 | union |
354 | { u_char uuuu; /* only when euro not defined, avoiding empty union */ | 354 | { u_char uuuu; /* only when euro not defined, avoiding empty union */ |
355 | #ifdef CONFIG_HISAX_EURO | 355 | #ifdef CONFIG_HISAX_EURO |
356 | dss1_proc_priv dss1; /* private dss1 data */ | 356 | dss1_proc_priv dss1; /* private dss1 data */ |
357 | #endif /* CONFIG_HISAX_EURO */ | 357 | #endif /* CONFIG_HISAX_EURO */ |
358 | #ifdef CONFIG_HISAX_NI1 | 358 | #ifdef CONFIG_HISAX_NI1 |
359 | ni1_proc_priv ni1; /* private ni1 data */ | 359 | ni1_proc_priv ni1; /* private ni1 data */ |
360 | #endif /* CONFIG_HISAX_NI1 */ | 360 | #endif /* CONFIG_HISAX_NI1 */ |
361 | } prot; | 361 | } prot; |
362 | }; | 362 | }; |
363 | 363 | ||
364 | struct hscx_hw { | 364 | struct hscx_hw { |
@@ -642,7 +642,7 @@ struct hfc_hw { | |||
642 | unsigned char cip; | 642 | unsigned char cip; |
643 | u_char isac_spcr; | 643 | u_char isac_spcr; |
644 | struct timer_list timer; | 644 | struct timer_list timer; |
645 | }; | 645 | }; |
646 | 646 | ||
647 | struct sedl_hw { | 647 | struct sedl_hw { |
648 | unsigned int cfg_reg; | 648 | unsigned int cfg_reg; |
@@ -693,25 +693,25 @@ struct hfcPCI_hw { | |||
693 | unsigned char int_m2; | 693 | unsigned char int_m2; |
694 | unsigned char int_s1; | 694 | unsigned char int_s1; |
695 | unsigned char sctrl; | 695 | unsigned char sctrl; |
696 | unsigned char sctrl_r; | 696 | unsigned char sctrl_r; |
697 | unsigned char sctrl_e; | 697 | unsigned char sctrl_e; |
698 | unsigned char trm; | 698 | unsigned char trm; |
699 | unsigned char stat; | 699 | unsigned char stat; |
700 | unsigned char fifo; | 700 | unsigned char fifo; |
701 | unsigned char fifo_en; | 701 | unsigned char fifo_en; |
702 | unsigned char bswapped; | 702 | unsigned char bswapped; |
703 | unsigned char nt_mode; | 703 | unsigned char nt_mode; |
704 | int nt_timer; | 704 | int nt_timer; |
705 | struct pci_dev *dev; | 705 | struct pci_dev *dev; |
706 | unsigned char *pci_io; /* start of PCI IO memory */ | 706 | unsigned char *pci_io; /* start of PCI IO memory */ |
707 | dma_addr_t dma; /* dma handle for Fifos */ | 707 | dma_addr_t dma; /* dma handle for Fifos */ |
708 | void *fifos; /* FIFO memory */ | 708 | void *fifos; /* FIFO memory */ |
709 | int last_bfifo_cnt[2]; /* marker saving last b-fifo frame count */ | 709 | int last_bfifo_cnt[2]; /* marker saving last b-fifo frame count */ |
710 | struct timer_list timer; | 710 | struct timer_list timer; |
711 | }; | 711 | }; |
712 | 712 | ||
713 | struct hfcSX_hw { | 713 | struct hfcSX_hw { |
714 | unsigned long base; | 714 | unsigned long base; |
715 | unsigned char cirm; | 715 | unsigned char cirm; |
716 | unsigned char ctmt; | 716 | unsigned char ctmt; |
717 | unsigned char conn; | 717 | unsigned char conn; |
@@ -720,18 +720,18 @@ struct hfcSX_hw { | |||
720 | unsigned char int_m2; | 720 | unsigned char int_m2; |
721 | unsigned char int_s1; | 721 | unsigned char int_s1; |
722 | unsigned char sctrl; | 722 | unsigned char sctrl; |
723 | unsigned char sctrl_r; | 723 | unsigned char sctrl_r; |
724 | unsigned char sctrl_e; | 724 | unsigned char sctrl_e; |
725 | unsigned char trm; | 725 | unsigned char trm; |
726 | unsigned char stat; | 726 | unsigned char stat; |
727 | unsigned char fifo; | 727 | unsigned char fifo; |
728 | unsigned char bswapped; | 728 | unsigned char bswapped; |
729 | unsigned char nt_mode; | 729 | unsigned char nt_mode; |
730 | unsigned char chip; | 730 | unsigned char chip; |
731 | int b_fifo_size; | 731 | int b_fifo_size; |
732 | unsigned char last_fifo; | 732 | unsigned char last_fifo; |
733 | void *extra; | 733 | void *extra; |
734 | int nt_timer; | 734 | int nt_timer; |
735 | struct timer_list timer; | 735 | struct timer_list timer; |
736 | }; | 736 | }; |
737 | 737 | ||
@@ -784,13 +784,13 @@ struct bkm_hw { | |||
784 | /* Scitel Quadro stuff */ | 784 | /* Scitel Quadro stuff */ |
785 | unsigned long plx_adr; | 785 | unsigned long plx_adr; |
786 | unsigned long data_adr; | 786 | unsigned long data_adr; |
787 | }; | 787 | }; |
788 | 788 | ||
789 | struct gazel_hw { | 789 | struct gazel_hw { |
790 | struct pci_dev *dev; | 790 | struct pci_dev *dev; |
791 | unsigned int cfg_reg; | 791 | unsigned int cfg_reg; |
792 | unsigned int pciaddr[2]; | 792 | unsigned int pciaddr[2]; |
793 | signed int ipac; | 793 | signed int ipac; |
794 | signed int isac; | 794 | signed int isac; |
795 | signed int hscx[2]; | 795 | signed int hscx[2]; |
796 | signed int isacfifo; | 796 | signed int isacfifo; |
@@ -877,8 +877,8 @@ struct icc_chip { | |||
877 | #define HW_ARCOFI 3 | 877 | #define HW_ARCOFI 3 |
878 | #define FLG_TWO_DCHAN 4 | 878 | #define FLG_TWO_DCHAN 4 |
879 | #define FLG_L1_DBUSY 5 | 879 | #define FLG_L1_DBUSY 5 |
880 | #define FLG_DBUSY_TIMER 6 | 880 | #define FLG_DBUSY_TIMER 6 |
881 | #define FLG_LOCK_ATOMIC 7 | 881 | #define FLG_LOCK_ATOMIC 7 |
882 | #define FLG_ARCOFI_TIMER 8 | 882 | #define FLG_ARCOFI_TIMER 8 |
883 | #define FLG_ARCOFI_ERROR 9 | 883 | #define FLG_ARCOFI_ERROR 9 |
884 | #define FLG_HW_L1_UINT 10 | 884 | #define FLG_HW_L1_UINT 10 |
@@ -892,8 +892,8 @@ struct IsdnCardState { | |||
892 | u_long irq_flags; | 892 | u_long irq_flags; |
893 | u_long HW_Flags; | 893 | u_long HW_Flags; |
894 | int *busy_flag; | 894 | int *busy_flag; |
895 | int chanlimit; /* limited number of B-chans to use */ | 895 | int chanlimit; /* limited number of B-chans to use */ |
896 | int logecho; /* log echo if supported by card */ | 896 | int logecho; /* log echo if supported by card */ |
897 | union { | 897 | union { |
898 | struct elsa_hw elsa; | 898 | struct elsa_hw elsa; |
899 | struct teles0_hw teles0; | 899 | struct teles0_hw teles0; |
@@ -937,8 +937,8 @@ struct IsdnCardState { | |||
937 | void (*DC_Close) (struct IsdnCardState *); | 937 | void (*DC_Close) (struct IsdnCardState *); |
938 | irq_handler_t irq_func; | 938 | irq_handler_t irq_func; |
939 | int (*auxcmd) (struct IsdnCardState *, isdn_ctrl *); | 939 | int (*auxcmd) (struct IsdnCardState *, isdn_ctrl *); |
940 | struct Channel channel[2+MAX_WAITING_CALLS]; | 940 | struct Channel channel[2 + MAX_WAITING_CALLS]; |
941 | struct BCState bcs[2+MAX_WAITING_CALLS]; | 941 | struct BCState bcs[2 + MAX_WAITING_CALLS]; |
942 | struct PStack *stlist; | 942 | struct PStack *stlist; |
943 | struct sk_buff_head rq, sq; /* D-channel queues */ | 943 | struct sk_buff_head rq, sq; /* D-channel queues */ |
944 | int cardnr; | 944 | int cardnr; |
@@ -969,7 +969,7 @@ struct IsdnCardState { | |||
969 | }; | 969 | }; |
970 | 970 | ||
971 | 971 | ||
972 | #define schedule_event(s, ev) do {test_and_set_bit(ev, &s->event);schedule_work(&s->tqueue); } while(0) | 972 | #define schedule_event(s, ev) do { test_and_set_bit(ev, &s->event); schedule_work(&s->tqueue); } while (0) |
973 | 973 | ||
974 | #define MON0_RX 1 | 974 | #define MON0_RX 1 |
975 | #define MON1_RX 2 | 975 | #define MON1_RX 2 |
@@ -1053,7 +1053,7 @@ struct IsdnCardState { | |||
1053 | #define CARD_IX1MICROR2 0 | 1053 | #define CARD_IX1MICROR2 0 |
1054 | #endif | 1054 | #endif |
1055 | 1055 | ||
1056 | #ifdef CONFIG_HISAX_DIEHLDIVA | 1056 | #ifdef CONFIG_HISAX_DIEHLDIVA |
1057 | #define CARD_DIEHLDIVA 1 | 1057 | #define CARD_DIEHLDIVA 1 |
1058 | #ifndef ISDN_CHIP_ISAC | 1058 | #ifndef ISDN_CHIP_ISAC |
1059 | #define ISDN_CHIP_ISAC 1 | 1059 | #define ISDN_CHIP_ISAC 1 |
@@ -1062,7 +1062,7 @@ struct IsdnCardState { | |||
1062 | #define CARD_DIEHLDIVA 0 | 1062 | #define CARD_DIEHLDIVA 0 |
1063 | #endif | 1063 | #endif |
1064 | 1064 | ||
1065 | #ifdef CONFIG_HISAX_ASUSCOM | 1065 | #ifdef CONFIG_HISAX_ASUSCOM |
1066 | #define CARD_ASUSCOM 1 | 1066 | #define CARD_ASUSCOM 1 |
1067 | #ifndef ISDN_CHIP_ISAC | 1067 | #ifndef ISDN_CHIP_ISAC |
1068 | #define ISDN_CHIP_ISAC 1 | 1068 | #define ISDN_CHIP_ISAC 1 |
@@ -1071,7 +1071,7 @@ struct IsdnCardState { | |||
1071 | #define CARD_ASUSCOM 0 | 1071 | #define CARD_ASUSCOM 0 |
1072 | #endif | 1072 | #endif |
1073 | 1073 | ||
1074 | #ifdef CONFIG_HISAX_TELEINT | 1074 | #ifdef CONFIG_HISAX_TELEINT |
1075 | #define CARD_TELEINT 1 | 1075 | #define CARD_TELEINT 1 |
1076 | #ifndef ISDN_CHIP_ISAC | 1076 | #ifndef ISDN_CHIP_ISAC |
1077 | #define ISDN_CHIP_ISAC 1 | 1077 | #define ISDN_CHIP_ISAC 1 |
@@ -1080,7 +1080,7 @@ struct IsdnCardState { | |||
1080 | #define CARD_TELEINT 0 | 1080 | #define CARD_TELEINT 0 |
1081 | #endif | 1081 | #endif |
1082 | 1082 | ||
1083 | #ifdef CONFIG_HISAX_SEDLBAUER | 1083 | #ifdef CONFIG_HISAX_SEDLBAUER |
1084 | #define CARD_SEDLBAUER 1 | 1084 | #define CARD_SEDLBAUER 1 |
1085 | #ifndef ISDN_CHIP_ISAC | 1085 | #ifndef ISDN_CHIP_ISAC |
1086 | #define ISDN_CHIP_ISAC 1 | 1086 | #define ISDN_CHIP_ISAC 1 |
@@ -1089,7 +1089,7 @@ struct IsdnCardState { | |||
1089 | #define CARD_SEDLBAUER 0 | 1089 | #define CARD_SEDLBAUER 0 |
1090 | #endif | 1090 | #endif |
1091 | 1091 | ||
1092 | #ifdef CONFIG_HISAX_SPORTSTER | 1092 | #ifdef CONFIG_HISAX_SPORTSTER |
1093 | #define CARD_SPORTSTER 1 | 1093 | #define CARD_SPORTSTER 1 |
1094 | #ifndef ISDN_CHIP_ISAC | 1094 | #ifndef ISDN_CHIP_ISAC |
1095 | #define ISDN_CHIP_ISAC 1 | 1095 | #define ISDN_CHIP_ISAC 1 |
@@ -1098,7 +1098,7 @@ struct IsdnCardState { | |||
1098 | #define CARD_SPORTSTER 0 | 1098 | #define CARD_SPORTSTER 0 |
1099 | #endif | 1099 | #endif |
1100 | 1100 | ||
1101 | #ifdef CONFIG_HISAX_MIC | 1101 | #ifdef CONFIG_HISAX_MIC |
1102 | #define CARD_MIC 1 | 1102 | #define CARD_MIC 1 |
1103 | #ifndef ISDN_CHIP_ISAC | 1103 | #ifndef ISDN_CHIP_ISAC |
1104 | #define ISDN_CHIP_ISAC 1 | 1104 | #define ISDN_CHIP_ISAC 1 |
@@ -1107,7 +1107,7 @@ struct IsdnCardState { | |||
1107 | #define CARD_MIC 0 | 1107 | #define CARD_MIC 0 |
1108 | #endif | 1108 | #endif |
1109 | 1109 | ||
1110 | #ifdef CONFIG_HISAX_NETJET | 1110 | #ifdef CONFIG_HISAX_NETJET |
1111 | #define CARD_NETJET_S 1 | 1111 | #define CARD_NETJET_S 1 |
1112 | #ifndef ISDN_CHIP_ISAC | 1112 | #ifndef ISDN_CHIP_ISAC |
1113 | #define ISDN_CHIP_ISAC 1 | 1113 | #define ISDN_CHIP_ISAC 1 |
@@ -1206,7 +1206,7 @@ struct IsdnCardState { | |||
1206 | #define CARD_W6692 0 | 1206 | #define CARD_W6692 0 |
1207 | #endif | 1207 | #endif |
1208 | 1208 | ||
1209 | #ifdef CONFIG_HISAX_NETJET_U | 1209 | #ifdef CONFIG_HISAX_NETJET_U |
1210 | #define CARD_NETJET_U 1 | 1210 | #define CARD_NETJET_U 1 |
1211 | #ifndef ISDN_CHIP_ICC | 1211 | #ifndef ISDN_CHIP_ICC |
1212 | #define ISDN_CHIP_ICC 1 | 1212 | #define ISDN_CHIP_ICC 1 |
@@ -1269,8 +1269,8 @@ void setstack_l3dc(struct PStack *st, struct Channel *chanp); | |||
1269 | void setstack_l3bc(struct PStack *st, struct Channel *chanp); | 1269 | void setstack_l3bc(struct PStack *st, struct Channel *chanp); |
1270 | void releasestack_isdnl3(struct PStack *st); | 1270 | void releasestack_isdnl3(struct PStack *st); |
1271 | 1271 | ||
1272 | u_char *findie(u_char * p, int size, u_char ie, int wanted_set); | 1272 | u_char *findie(u_char *p, int size, u_char ie, int wanted_set); |
1273 | int getcallref(u_char * p); | 1273 | int getcallref(u_char *p); |
1274 | int newcallref(void); | 1274 | int newcallref(void); |
1275 | 1275 | ||
1276 | int FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount); | 1276 | int FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount); |
@@ -1279,36 +1279,36 @@ int FsmEvent(struct FsmInst *fi, int event, void *arg); | |||
1279 | void FsmChangeState(struct FsmInst *fi, int newstate); | 1279 | void FsmChangeState(struct FsmInst *fi, int newstate); |
1280 | void FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft); | 1280 | void FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft); |
1281 | int FsmAddTimer(struct FsmTimer *ft, int millisec, int event, | 1281 | int FsmAddTimer(struct FsmTimer *ft, int millisec, int event, |
1282 | void *arg, int where); | 1282 | void *arg, int where); |
1283 | void FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, | 1283 | void FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, |
1284 | void *arg, int where); | 1284 | void *arg, int where); |
1285 | void FsmDelTimer(struct FsmTimer *ft, int where); | 1285 | void FsmDelTimer(struct FsmTimer *ft, int where); |
1286 | int jiftime(char *s, long mark); | 1286 | int jiftime(char *s, long mark); |
1287 | 1287 | ||
1288 | int HiSax_command(isdn_ctrl * ic); | 1288 | int HiSax_command(isdn_ctrl *ic); |
1289 | int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb); | 1289 | int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb); |
1290 | __printf(3, 4) | 1290 | __printf(3, 4) |
1291 | void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...); | 1291 | void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...); |
1292 | __printf(3, 0) | 1292 | __printf(3, 0) |
1293 | void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args); | 1293 | void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args); |
1294 | void HiSax_reportcard(int cardnr, int sel); | 1294 | void HiSax_reportcard(int cardnr, int sel); |
1295 | int QuickHex(char *txt, u_char * p, int cnt); | 1295 | int QuickHex(char *txt, u_char *p, int cnt); |
1296 | void LogFrame(struct IsdnCardState *cs, u_char * p, int size); | 1296 | void LogFrame(struct IsdnCardState *cs, u_char *p, int size); |
1297 | void dlogframe(struct IsdnCardState *cs, struct sk_buff *skb, int dir); | 1297 | void dlogframe(struct IsdnCardState *cs, struct sk_buff *skb, int dir); |
1298 | void iecpy(u_char * dest, u_char * iestart, int ieoffset); | 1298 | void iecpy(u_char *dest, u_char *iestart, int ieoffset); |
1299 | #endif /* __KERNEL__ */ | 1299 | #endif /* __KERNEL__ */ |
1300 | 1300 | ||
1301 | /* | 1301 | /* |
1302 | * Busywait delay for `jiffs' jiffies | 1302 | * Busywait delay for `jiffs' jiffies |
1303 | */ | 1303 | */ |
1304 | #define HZDELAY(jiffs) do { \ | 1304 | #define HZDELAY(jiffs) do { \ |
1305 | int tout = jiffs; \ | 1305 | int tout = jiffs; \ |
1306 | \ | 1306 | \ |
1307 | while (tout--) { \ | 1307 | while (tout--) { \ |
1308 | int loops = USEC_PER_SEC / HZ; \ | 1308 | int loops = USEC_PER_SEC / HZ; \ |
1309 | while (loops--) \ | 1309 | while (loops--) \ |
1310 | udelay(1); \ | 1310 | udelay(1); \ |
1311 | } \ | 1311 | } \ |
1312 | } while (0) | 1312 | } while (0) |
1313 | 1313 | ||
1314 | int ll_run(struct IsdnCardState *cs, int addfeatures); | 1314 | int ll_run(struct IsdnCardState *cs, int addfeatures); |