Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2efd7260
Commit
2efd7260
authored
Apr 20, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Apr 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] irqs: ISDN
Update ISDN for the new IRQ API.
parent
a37352e1
Changes
45
Show whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
160 additions
and
108 deletions
+160
-108
drivers/isdn/act2000/act2000_isa.c
drivers/isdn/act2000/act2000_isa.c
+3
-2
drivers/isdn/eicon/eicon.h
drivers/isdn/eicon/eicon.h
+3
-1
drivers/isdn/eicon/eicon_idi.c
drivers/isdn/eicon/eicon_idi.c
+1
-1
drivers/isdn/eicon/eicon_io.c
drivers/isdn/eicon/eicon_io.c
+6
-6
drivers/isdn/eicon/linio.c
drivers/isdn/eicon/linio.c
+4
-4
drivers/isdn/eicon/uxio.h
drivers/isdn/eicon/uxio.h
+1
-1
drivers/isdn/hardware/avm/avmcard.h
drivers/isdn/hardware/avm/avmcard.h
+3
-2
drivers/isdn/hardware/avm/b1.c
drivers/isdn/hardware/avm/b1.c
+5
-4
drivers/isdn/hardware/avm/b1dma.c
drivers/isdn/hardware/avm/b1dma.c
+2
-1
drivers/isdn/hardware/avm/c4.c
drivers/isdn/hardware/avm/c4.c
+7
-6
drivers/isdn/hardware/avm/t1isa.c
drivers/isdn/hardware/avm/t1isa.c
+4
-3
drivers/isdn/hisax/avm_a1.c
drivers/isdn/hisax/avm_a1.c
+4
-1
drivers/isdn/hisax/avm_a1p.c
drivers/isdn/hisax/avm_a1p.c
+2
-1
drivers/isdn/hisax/bkm_a4t.c
drivers/isdn/hisax/bkm_a4t.c
+4
-1
drivers/isdn/hisax/diva.c
drivers/isdn/hisax/diva.c
+9
-6
drivers/isdn/hisax/elsa.c
drivers/isdn/hisax/elsa.c
+7
-6
drivers/isdn/hisax/enternow_pci.c
drivers/isdn/hisax/enternow_pci.c
+2
-1
drivers/isdn/hisax/hfc_pci.c
drivers/isdn/hisax/hfc_pci.c
+5
-4
drivers/isdn/hisax/hfc_sx.c
drivers/isdn/hisax/hfc_sx.c
+5
-4
drivers/isdn/hisax/hfcscard.c
drivers/isdn/hisax/hfcscard.c
+3
-2
drivers/isdn/hisax/hisax.h
drivers/isdn/hisax/hisax.h
+2
-1
drivers/isdn/hisax/hisax_fcclassic.c
drivers/isdn/hisax/hisax_fcclassic.c
+2
-1
drivers/isdn/hisax/hisax_fcpcipnp.c
drivers/isdn/hisax/hisax_fcpcipnp.c
+6
-4
drivers/isdn/hisax/hisax_hfcpci.c
drivers/isdn/hisax/hisax_hfcpci.c
+4
-3
drivers/isdn/hisax/hscx.h
drivers/isdn/hisax/hscx.h
+3
-1
drivers/isdn/hisax/hscx_irq.c
drivers/isdn/hisax/hscx_irq.c
+2
-1
drivers/isdn/hisax/ipac.c
drivers/isdn/hisax/ipac.c
+3
-1
drivers/isdn/hisax/ipac.h
drivers/isdn/hisax/ipac.h
+3
-1
drivers/isdn/hisax/niccy.c
drivers/isdn/hisax/niccy.c
+3
-3
drivers/isdn/hisax/nj_s.c
drivers/isdn/hisax/nj_s.c
+2
-1
drivers/isdn/hisax/nj_u.c
drivers/isdn/hisax/nj_u.c
+2
-1
drivers/isdn/hisax/saphir.c
drivers/isdn/hisax/saphir.c
+4
-2
drivers/isdn/hisax/sedlbauer.c
drivers/isdn/hisax/sedlbauer.c
+5
-4
drivers/isdn/hisax/sportster.c
drivers/isdn/hisax/sportster.c
+2
-1
drivers/isdn/hisax/teleint.c
drivers/isdn/hisax/teleint.c
+2
-1
drivers/isdn/hisax/telespci.c
drivers/isdn/hisax/telespci.c
+2
-1
drivers/isdn/hisax/w6692.c
drivers/isdn/hisax/w6692.c
+2
-1
drivers/isdn/hysdn/boardergo.c
drivers/isdn/hysdn/boardergo.c
+5
-4
drivers/isdn/pcbit/layer2.c
drivers/isdn/pcbit/layer2.c
+7
-6
drivers/isdn/pcbit/layer2.h
drivers/isdn/pcbit/layer2.h
+3
-1
drivers/isdn/sc/init.c
drivers/isdn/sc/init.c
+1
-1
drivers/isdn/sc/interrupt.c
drivers/isdn/sc/interrupt.c
+5
-2
drivers/isdn/tpam/tpam.h
drivers/isdn/tpam/tpam.h
+2
-1
drivers/isdn/tpam/tpam_commands.c
drivers/isdn/tpam/tpam_commands.c
+2
-1
drivers/isdn/tpam/tpam_queues.c
drivers/isdn/tpam/tpam_queues.c
+6
-7
No files found.
drivers/isdn/act2000/act2000_isa.c
View file @
2efd7260
...
@@ -69,7 +69,7 @@ act2000_isa_detect(unsigned short portbase)
...
@@ -69,7 +69,7 @@ act2000_isa_detect(unsigned short portbase)
return
ret
;
return
ret
;
}
}
static
void
static
irqreturn_t
act2000_isa_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
act2000_isa_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
act2000_card
*
card
=
irq2card_map
[
irq
];
act2000_card
*
card
=
irq2card_map
[
irq
];
...
@@ -78,7 +78,7 @@ act2000_isa_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -78,7 +78,7 @@ act2000_isa_interrupt(int irq, void *dev_id, struct pt_regs *regs)
if
(
!
card
)
{
if
(
!
card
)
{
printk
(
KERN_WARNING
printk
(
KERN_WARNING
"act2000: Spurious interrupt!
\n
"
);
"act2000: Spurious interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
istatus
=
(
inb
(
ISA_PORT_ISR
)
&
0x07
);
istatus
=
(
inb
(
ISA_PORT_ISR
)
&
0x07
);
if
(
istatus
&
ISA_ISR_OUT
)
{
if
(
istatus
&
ISA_ISR_OUT
)
{
...
@@ -95,6 +95,7 @@ act2000_isa_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -95,6 +95,7 @@ act2000_isa_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
}
if
(
istatus
)
if
(
istatus
)
printk
(
KERN_DEBUG
"act2000: ?IRQ %d %02x
\n
"
,
irq
,
istatus
);
printk
(
KERN_DEBUG
"act2000: ?IRQ %d %02x
\n
"
,
irq
,
istatus
);
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/eicon/eicon.h
View file @
2efd7260
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
#ifndef eicon_h
#ifndef eicon_h
#define eicon_h
#define eicon_h
#include <linux/interrupt.h>
#define EICON_IOCTL_SETMMIO 0
#define EICON_IOCTL_SETMMIO 0
#define EICON_IOCTL_GETMMIO 1
#define EICON_IOCTL_GETMMIO 1
#define EICON_IOCTL_SETIRQ 2
#define EICON_IOCTL_SETIRQ 2
...
@@ -364,7 +366,7 @@ extern __inline__ void eicon_schedule_ack(eicon_card *card)
...
@@ -364,7 +366,7 @@ extern __inline__ void eicon_schedule_ack(eicon_card *card)
extern
int
eicon_addcard
(
int
,
int
,
int
,
char
*
,
int
);
extern
int
eicon_addcard
(
int
,
int
,
int
,
char
*
,
int
);
extern
void
eicon_io_transmit
(
eicon_card
*
card
);
extern
void
eicon_io_transmit
(
eicon_card
*
card
);
extern
void
eicon_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
irqreturn_t
eicon_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
void
eicon_io_rcv_dispatch
(
eicon_card
*
ccard
);
extern
void
eicon_io_rcv_dispatch
(
eicon_card
*
ccard
);
extern
void
eicon_io_ack_dispatch
(
eicon_card
*
ccard
);
extern
void
eicon_io_ack_dispatch
(
eicon_card
*
ccard
);
#ifdef CONFIG_MCA
#ifdef CONFIG_MCA
...
...
drivers/isdn/eicon/eicon_idi.c
View file @
2efd7260
...
@@ -3097,7 +3097,7 @@ eicon_idi_manage(eicon_card *card, eicon_manifbuf *mb)
...
@@ -3097,7 +3097,7 @@ eicon_idi_manage(eicon_card *card, eicon_manifbuf *mb)
{
{
int
l
=
0
;
int
l
=
0
;
int
ret
=
0
;
int
ret
=
0
;
int
timeout
;
unsigned
long
timeout
;
int
i
;
int
i
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb2
;
struct
sk_buff
*
skb2
;
...
...
drivers/isdn/eicon/eicon_io.c
View file @
2efd7260
...
@@ -501,7 +501,7 @@ eicon_io_transmit(eicon_card *ccard) {
...
@@ -501,7 +501,7 @@ eicon_io_transmit(eicon_card *ccard) {
/*
/*
* IRQ handler
* IRQ handler
*/
*/
void
irqreturn_t
eicon_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
eicon_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
eicon_card
*
ccard
=
(
eicon_card
*
)
dev_id
;
eicon_card
*
ccard
=
(
eicon_card
*
)
dev_id
;
eicon_isa_card
*
isa_card
;
eicon_isa_card
*
isa_card
;
...
@@ -521,7 +521,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -521,7 +521,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
if
(
!
ccard
)
{
if
(
!
ccard
)
{
eicon_log
(
ccard
,
1
,
"eicon_irq: spurious interrupt %d
\n
"
,
irq
);
eicon_log
(
ccard
,
1
,
"eicon_irq: spurious interrupt %d
\n
"
,
irq
);
return
;
return
IRQ_NONE
;
}
}
if
(
ccard
->
type
==
EICON_CTYPE_QUADRO
)
{
if
(
ccard
->
type
==
EICON_CTYPE_QUADRO
)
{
...
@@ -554,7 +554,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -554,7 +554,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
break
;
break
;
default:
default:
eicon_log
(
ccard
,
1
,
"eicon_irq: unsupported card-type!
\n
"
);
eicon_log
(
ccard
,
1
,
"eicon_irq: unsupported card-type!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
(
*
irqprobe
)
{
if
(
*
irqprobe
)
{
...
@@ -577,7 +577,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -577,7 +577,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
(
*
irqprobe
)
++
;
(
*
irqprobe
)
++
;
break
;
break
;
}
}
return
;
return
IRQ_HANDLED
;
}
}
switch
(
ccard
->
type
)
{
switch
(
ccard
->
type
)
{
...
@@ -588,7 +588,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -588,7 +588,7 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
case
EICON_CTYPE_S2M
:
case
EICON_CTYPE_S2M
:
if
(
!
(
readb
(
isa_card
->
intack
)))
{
/* card did not interrupt */
if
(
!
(
readb
(
isa_card
->
intack
)))
{
/* card did not interrupt */
eicon_log
(
ccard
,
1
,
"eicon: IRQ: card reports no interrupt!
\n
"
);
eicon_log
(
ccard
,
1
,
"eicon: IRQ: card reports no interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
break
;
break
;
}
}
...
@@ -744,6 +744,6 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -744,6 +744,6 @@ eicon_irq(int irq, void *dev_id, struct pt_regs *regs) {
break
;
break
;
}
}
return
;
return
IRQ_HANDLED
;
}
}
#endif
#endif
drivers/isdn/eicon/linio.c
View file @
2efd7260
...
@@ -36,7 +36,7 @@ ux_diva_card_t card_pool[MAX_CARDS];
...
@@ -36,7 +36,7 @@ ux_diva_card_t card_pool[MAX_CARDS];
void
UxPause
(
long
int
ms
)
void
UxPause
(
long
int
ms
)
{
{
int
timeout
=
jiffies
+
((
ms
*
HZ
)
/
1000
);
unsigned
long
timeout
=
jiffies
+
((
ms
*
HZ
)
/
1000
);
while
(
time_before
(
jiffies
,
timeout
));
while
(
time_before
(
jiffies
,
timeout
));
}
}
...
@@ -577,7 +577,7 @@ void UxCardIoOutBuffer(ux_diva_card_t *card, void *AttachedDivasIOBase, void *ad
...
@@ -577,7 +577,7 @@ void UxCardIoOutBuffer(ux_diva_card_t *card, void *AttachedDivasIOBase, void *ad
return
;
return
;
}
}
void
Divasintr
(
int
arg
,
void
*
unused
,
struct
pt_regs
*
unused_regs
)
irqreturn_t
Divasintr
(
int
arg
,
void
*
unused
,
struct
pt_regs
*
unused_regs
)
{
{
int
i
;
int
i
;
card_t
*
card
=
NULL
;
card_t
*
card
=
NULL
;
...
@@ -602,7 +602,7 @@ void Divasintr(int arg, void *unused, struct pt_regs *unused_regs)
...
@@ -602,7 +602,7 @@ void Divasintr(int arg, void *unused, struct pt_regs *unused_regs)
}
}
}
}
return
;
return
IRQ_HANDLED
;
}
}
...
@@ -680,7 +680,7 @@ long UxCardLock(ux_diva_card_t *card)
...
@@ -680,7 +680,7 @@ long UxCardLock(ux_diva_card_t *card)
return
flags
;
return
flags
;
}
}
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
long
ipl
)
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
unsigned
long
ipl
)
{
{
spin_unlock_irqrestore
(
&
diva_lock
,
ipl
);
spin_unlock_irqrestore
(
&
diva_lock
,
ipl
);
}
}
...
...
drivers/isdn/eicon/uxio.h
View file @
2efd7260
...
@@ -59,7 +59,7 @@ void UxCardHandleFree(ux_diva_card_t *card);
...
@@ -59,7 +59,7 @@ void UxCardHandleFree(ux_diva_card_t *card);
*/
*/
long
UxCardLock
(
ux_diva_card_t
*
card
);
long
UxCardLock
(
ux_diva_card_t
*
card
);
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
long
ipl
);
void
UxCardUnlock
(
ux_diva_card_t
*
card
,
unsigned
long
ipl
);
/*
/*
* Set the mapping address for PCI cards
* Set the mapping address for PCI cards
...
...
drivers/isdn/hardware/avm/avmcard.h
View file @
2efd7260
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#include <linux/spinlock.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#define AVMB1_PORTLEN 0x1f
#define AVMB1_PORTLEN 0x1f
#define AVM_MAXVERSION 8
#define AVM_MAXVERSION 8
...
@@ -555,7 +556,7 @@ void b1_register_appl(struct capi_ctr *ctrl, u16 appl,
...
@@ -555,7 +556,7 @@ void b1_register_appl(struct capi_ctr *ctrl, u16 appl,
void
b1_release_appl
(
struct
capi_ctr
*
ctrl
,
u16
appl
);
void
b1_release_appl
(
struct
capi_ctr
*
ctrl
,
u16
appl
);
u16
b1_send_message
(
struct
capi_ctr
*
ctrl
,
struct
sk_buff
*
skb
);
u16
b1_send_message
(
struct
capi_ctr
*
ctrl
,
struct
sk_buff
*
skb
);
void
b1_parse_version
(
avmctrl_info
*
card
);
void
b1_parse_version
(
avmctrl_info
*
card
);
void
b1_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
);
irqreturn_t
b1_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
);
int
b1ctl_read_proc
(
char
*
page
,
char
**
start
,
off_t
off
,
int
b1ctl_read_proc
(
char
*
page
,
char
**
start
,
off_t
off
,
int
count
,
int
*
eof
,
struct
capi_ctr
*
ctrl
);
int
count
,
int
*
eof
,
struct
capi_ctr
*
ctrl
);
...
@@ -568,7 +569,7 @@ void avmcard_dma_free(avmcard_dmainfo *);
...
@@ -568,7 +569,7 @@ void avmcard_dma_free(avmcard_dmainfo *);
int
b1pciv4_detect
(
avmcard
*
card
);
int
b1pciv4_detect
(
avmcard
*
card
);
int
t1pci_detect
(
avmcard
*
card
);
int
t1pci_detect
(
avmcard
*
card
);
void
b1dma_reset
(
avmcard
*
card
);
void
b1dma_reset
(
avmcard
*
card
);
void
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
);
irqreturn_t
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
);
int
b1dma_load_firmware
(
struct
capi_ctr
*
ctrl
,
capiloaddata
*
data
);
int
b1dma_load_firmware
(
struct
capi_ctr
*
ctrl
,
capiloaddata
*
data
);
void
b1dma_reset_ctr
(
struct
capi_ctr
*
ctrl
);
void
b1dma_reset_ctr
(
struct
capi_ctr
*
ctrl
);
...
...
drivers/isdn/hardware/avm/b1.c
View file @
2efd7260
...
@@ -491,7 +491,7 @@ void b1_parse_version(avmctrl_info *cinfo)
...
@@ -491,7 +491,7 @@ void b1_parse_version(avmctrl_info *cinfo)
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
void
b1_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
irqreturn_t
b1_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
{
avmcard
*
card
=
devptr
;
avmcard
*
card
=
devptr
;
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
0
];
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
0
];
...
@@ -506,7 +506,7 @@ void b1_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -506,7 +506,7 @@ void b1_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
unsigned
WindowSize
;
unsigned
WindowSize
;
if
(
!
b1_rx_full
(
card
->
port
))
if
(
!
b1_rx_full
(
card
->
port
))
return
;
return
IRQ_NONE
;
b1cmd
=
b1_get_byte
(
card
->
port
);
b1cmd
=
b1_get_byte
(
card
->
port
);
...
@@ -619,12 +619,13 @@ void b1_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -619,12 +619,13 @@ void b1_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
case
0xff
:
case
0xff
:
printk
(
KERN_ERR
"%s: card removed ?
\n
"
,
card
->
name
);
printk
(
KERN_ERR
"%s: card removed ?
\n
"
,
card
->
name
);
return
;
return
IRQ_NONE
;
default:
default:
printk
(
KERN_ERR
"%s: b1_interrupt: 0x%x ???
\n
"
,
printk
(
KERN_ERR
"%s: b1_interrupt: 0x%x ???
\n
"
,
card
->
name
,
b1cmd
);
card
->
name
,
b1cmd
);
return
;
return
IRQ_HANDLED
;
}
}
return
IRQ_HANDLED
;
}
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
...
...
drivers/isdn/hardware/avm/b1dma.c
View file @
2efd7260
...
@@ -618,11 +618,12 @@ static void b1dma_handle_interrupt(avmcard *card)
...
@@ -618,11 +618,12 @@ static void b1dma_handle_interrupt(avmcard *card)
spin_unlock
(
&
card
->
lock
);
spin_unlock
(
&
card
->
lock
);
}
}
void
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
irqreturn_t
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
{
avmcard
*
card
=
devptr
;
avmcard
*
card
=
devptr
;
b1dma_handle_interrupt
(
card
);
b1dma_handle_interrupt
(
card
);
return
IRQ_HANDLED
;
}
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
...
...
drivers/isdn/hardware/avm/c4.c
View file @
2efd7260
...
@@ -659,7 +659,7 @@ static void c4_handle_rx(avmcard *card)
...
@@ -659,7 +659,7 @@ static void c4_handle_rx(avmcard *card)
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
static
void
c4_handle_interrupt
(
avmcard
*
card
)
static
irqreturn_t
c4_handle_interrupt
(
avmcard
*
card
)
{
{
u32
status
=
c4inmeml
(
card
->
mbase
+
DOORBELL
);
u32
status
=
c4inmeml
(
card
->
mbase
+
DOORBELL
);
...
@@ -667,7 +667,7 @@ static void c4_handle_interrupt(avmcard *card)
...
@@ -667,7 +667,7 @@ static void c4_handle_interrupt(avmcard *card)
int
i
;
int
i
;
c4outmeml
(
card
->
mbase
+
PCI_OUT_INT_MASK
,
0x0c
);
c4outmeml
(
card
->
mbase
+
PCI_OUT_INT_MASK
,
0x0c
);
if
(
card
->
nlogcontr
==
0
)
if
(
card
->
nlogcontr
==
0
)
return
;
return
IRQ_HANDLED
;
printk
(
KERN_ERR
"%s: unexpected reset
\n
"
,
card
->
name
);
printk
(
KERN_ERR
"%s: unexpected reset
\n
"
,
card
->
name
);
for
(
i
=
0
;
i
<
card
->
nr_controllers
;
i
++
)
{
for
(
i
=
0
;
i
<
card
->
nr_controllers
;
i
++
)
{
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
i
];
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
i
];
...
@@ -676,12 +676,12 @@ static void c4_handle_interrupt(avmcard *card)
...
@@ -676,12 +676,12 @@ static void c4_handle_interrupt(avmcard *card)
capi_ctr_reseted
(
&
cinfo
->
capi_ctrl
);
capi_ctr_reseted
(
&
cinfo
->
capi_ctrl
);
}
}
card
->
nlogcontr
=
0
;
card
->
nlogcontr
=
0
;
return
;
return
IRQ_HANDLED
;
}
}
status
&=
(
DBELL_UP_HOST
|
DBELL_DOWN_HOST
);
status
&=
(
DBELL_UP_HOST
|
DBELL_DOWN_HOST
);
if
(
!
status
)
if
(
!
status
)
return
;
return
IRQ_HANDLED
;
c4outmeml
(
card
->
mbase
+
DOORBELL
,
status
);
c4outmeml
(
card
->
mbase
+
DOORBELL
,
status
);
if
((
status
&
DBELL_UP_HOST
)
!=
0
)
{
if
((
status
&
DBELL_UP_HOST
)
!=
0
)
{
...
@@ -702,13 +702,14 @@ static void c4_handle_interrupt(avmcard *card)
...
@@ -702,13 +702,14 @@ static void c4_handle_interrupt(avmcard *card)
c4_dispatch_tx
(
card
);
c4_dispatch_tx
(
card
);
}
}
}
}
return
IRQ_HANDLED
;
}
}
static
void
c4_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
static
irqreturn_t
c4_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
{
avmcard
*
card
=
devptr
;
avmcard
*
card
=
devptr
;
c4_handle_interrupt
(
card
);
return
c4_handle_interrupt
(
card
);
}
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
...
...
drivers/isdn/hardware/avm/t1isa.c
View file @
2efd7260
...
@@ -124,7 +124,7 @@ static int t1_detectandinit(unsigned int base, unsigned irq, int cardnr)
...
@@ -124,7 +124,7 @@ static int t1_detectandinit(unsigned int base, unsigned irq, int cardnr)
return
0
;
return
0
;
}
}
static
void
t1isa_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
static
irqreturn_t
t1isa_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
{
avmcard
*
card
=
devptr
;
avmcard
*
card
=
devptr
;
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
0
];
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
0
];
...
@@ -252,13 +252,14 @@ static void t1isa_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -252,13 +252,14 @@ static void t1isa_interrupt(int interrupt, void *devptr, struct pt_regs *regs)
case
0xff
:
case
0xff
:
printk
(
KERN_ERR
"%s: card reseted ?
\n
"
,
card
->
name
);
printk
(
KERN_ERR
"%s: card reseted ?
\n
"
,
card
->
name
);
return
;
return
IRQ_HANDLED
;
default:
default:
printk
(
KERN_ERR
"%s: b1_interrupt: 0x%x ???
\n
"
,
printk
(
KERN_ERR
"%s: b1_interrupt: 0x%x ???
\n
"
,
card
->
name
,
b1cmd
);
card
->
name
,
b1cmd
);
return
;
return
IRQ_NONE
;
}
}
}
}
return
IRQ_HANDLED
;
}
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
...
...
drivers/isdn/hisax/avm_a1.c
View file @
2efd7260
...
@@ -113,14 +113,16 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -113,14 +113,16 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
avm_a1_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
avm_a1_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
u8
val
,
sval
;
u8
val
,
sval
;
int
handled
=
0
;
spin_lock
(
&
cs
->
lock
);
spin_lock
(
&
cs
->
lock
);
while
(((
sval
=
bytein
(
cs
->
hw
.
avm
.
cfg_reg
))
&
0xf
)
!=
0x7
)
{
while
(((
sval
=
bytein
(
cs
->
hw
.
avm
.
cfg_reg
))
&
0xf
)
!=
0x7
)
{
handled
=
1
;
if
(
!
(
sval
&
AVM_A1_STAT_TIMER
))
{
if
(
!
(
sval
&
AVM_A1_STAT_TIMER
))
{
byteout
(
cs
->
hw
.
avm
.
cfg_reg
,
0x1E
);
byteout
(
cs
->
hw
.
avm
.
cfg_reg
,
0x1E
);
sval
=
bytein
(
cs
->
hw
.
avm
.
cfg_reg
);
sval
=
bytein
(
cs
->
hw
.
avm
.
cfg_reg
);
...
@@ -144,6 +146,7 @@ avm_a1_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -144,6 +146,7 @@ avm_a1_interrupt(int intno, void *dev_id, struct pt_regs *regs)
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_RETVAL
(
handled
);
}
}
static
void
static
void
...
...
drivers/isdn/hisax/avm_a1p.c
View file @
2efd7260
...
@@ -159,7 +159,7 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -159,7 +159,7 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
avm_a1p_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
avm_a1p_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -187,6 +187,7 @@ avm_a1p_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -187,6 +187,7 @@ avm_a1p_interrupt(int intno, void *dev_id, struct pt_regs *regs)
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/bkm_a4t.c
View file @
2efd7260
...
@@ -137,18 +137,20 @@ static struct bc_hw_ops jade_ops = {
...
@@ -137,18 +137,20 @@ static struct bc_hw_ops jade_ops = {
.
write_fifo
=
jade_write_fifo
,
.
write_fifo
=
jade_write_fifo
,
};
};
static
void
static
irqreturn_t
bkm_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
bkm_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
u8
val
=
0
;
u8
val
=
0
;
I20_REGISTER_FILE
*
pI20_Regs
;
I20_REGISTER_FILE
*
pI20_Regs
;
int
handled
=
0
;
spin_lock
(
&
cs
->
lock
);
spin_lock
(
&
cs
->
lock
);
pI20_Regs
=
(
I20_REGISTER_FILE
*
)
(
cs
->
hw
.
ax
.
base
);
pI20_Regs
=
(
I20_REGISTER_FILE
*
)
(
cs
->
hw
.
ax
.
base
);
/* ISDN interrupt pending? */
/* ISDN interrupt pending? */
if
(
pI20_Regs
->
i20IntStatus
&
intISDN
)
{
if
(
pI20_Regs
->
i20IntStatus
&
intISDN
)
{
handled
=
1
;
/* Reset the ISDN interrupt */
/* Reset the ISDN interrupt */
pI20_Regs
->
i20IntStatus
=
intISDN
;
pI20_Regs
->
i20IntStatus
=
intISDN
;
/* Disable ISDN interrupt */
/* Disable ISDN interrupt */
...
@@ -172,6 +174,7 @@ bkm_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -172,6 +174,7 @@ bkm_interrupt(int intno, void *dev_id, struct pt_regs *regs)
pI20_Regs
->
i20IntCtrl
|=
intISDN
;
pI20_Regs
->
i20IntCtrl
|=
intISDN
;
}
}
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_RETVAL
(
handled
);
}
}
static
void
static
void
...
...
drivers/isdn/hisax/diva.c
View file @
2efd7260
...
@@ -319,7 +319,7 @@ static struct bc_hw_ops ipacx_bc_ops = {
...
@@ -319,7 +319,7 @@ static struct bc_hw_ops ipacx_bc_ops = {
.
read_fifo
=
ipacx_bc_read_fifo
,
.
read_fifo
=
ipacx_bc_read_fifo
,
};
};
static
void
static
irqreturn_t
diva_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
diva_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -331,9 +331,10 @@ diva_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -331,9 +331,10 @@ diva_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
}
if
(
!
cnt
)
if
(
!
cnt
)
printk
(
KERN_WARNING
"Diva: IRQ LOOP
\n
"
);
printk
(
KERN_WARNING
"Diva: IRQ LOOP
\n
"
);
return
IRQ_HANDLED
;
}
}
static
void
static
irqreturn_t
diva_ipac_pci_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
diva_ipac_pci_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -341,22 +342,24 @@ diva_ipac_pci_irq(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -341,22 +342,24 @@ diva_ipac_pci_irq(int intno, void *dev_id, struct pt_regs *regs)
val
=
readb
(
cs
->
hw
.
diva
.
pci_cfg
);
val
=
readb
(
cs
->
hw
.
diva
.
pci_cfg
);
if
(
!
(
val
&
PITA_INT0_STATUS
))
if
(
!
(
val
&
PITA_INT0_STATUS
))
return
;
/* other shared IRQ */
return
IRQ_NONE
;
/* other shared IRQ */
writeb
(
PITA_INT0_STATUS
,
cs
->
hw
.
diva
.
pci_cfg
);
/* Reset pending INT0 */
writeb
(
PITA_INT0_STATUS
,
cs
->
hw
.
diva
.
pci_cfg
);
/* Reset pending INT0 */
ipac_irq
(
intno
,
dev_id
,
regs
);
return
ipac_irq
(
intno
,
dev_id
,
regs
);
}
}
static
void
static
irqreturn_t
diva_ipacx_pci_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
diva_ipacx_pci_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
u8
val
;
u8
val
;
val
=
readb
(
cs
->
hw
.
diva
.
pci_cfg
);
val
=
readb
(
cs
->
hw
.
diva
.
pci_cfg
);
if
(
!
(
val
&
PITA_INT0_STATUS
))
return
;
// other shared IRQ
if
(
!
(
val
&
PITA_INT0_STATUS
))
return
IRQ_NONE
;
// other shared IRQ
interrupt_ipacx
(
cs
);
// handler for chip
interrupt_ipacx
(
cs
);
// handler for chip
writeb
(
PITA_INT0_STATUS
,
cs
->
hw
.
diva
.
pci_cfg
);
// Reset PLX interrupt
writeb
(
PITA_INT0_STATUS
,
cs
->
hw
.
diva
.
pci_cfg
);
// Reset PLX interrupt
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/elsa.c
View file @
2efd7260
...
@@ -307,7 +307,7 @@ TimerRun(struct IsdnCardState *cs)
...
@@ -307,7 +307,7 @@ TimerRun(struct IsdnCardState *cs)
return
(
v
&
ELSA_TIMER_RUN
);
return
(
v
&
ELSA_TIMER_RUN
);
}
}
static
void
static
irqreturn_t
elsa_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
elsa_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -317,7 +317,7 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -317,7 +317,7 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs)
/* The card tends to generate interrupts while being removed
/* The card tends to generate interrupts while being removed
causing us to just crash the kernel. bad. */
causing us to just crash the kernel. bad. */
printk
(
KERN_WARNING
"Elsa: card not available!
\n
"
);
printk
(
KERN_WARNING
"Elsa: card not available!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
#if ARCOFI_USE
#if ARCOFI_USE
if
(
cs
->
hw
.
elsa
.
MFlag
)
{
if
(
cs
->
hw
.
elsa
.
MFlag
)
{
...
@@ -351,9 +351,10 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -351,9 +351,10 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs)
#endif
#endif
if
(
cs
->
hw
.
elsa
.
trig
)
if
(
cs
->
hw
.
elsa
.
trig
)
byteout
(
cs
->
hw
.
elsa
.
trig
,
0x00
);
byteout
(
cs
->
hw
.
elsa
.
trig
,
0x00
);
return
IRQ_HANDLED
;
}
}
static
void
static
irqreturn_t
elsa_interrupt_ipac
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
elsa_interrupt_ipac
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -361,13 +362,13 @@ elsa_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -361,13 +362,13 @@ elsa_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
if
(
!
cs
)
{
if
(
!
cs
)
{
printk
(
KERN_WARNING
"Elsa: Spurious interrupt!
\n
"
);
printk
(
KERN_WARNING
"Elsa: Spurious interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
(
cs
->
subtyp
==
ELSA_QS1000PCI
||
cs
->
subtyp
==
ELSA_QS3000PCI
)
{
if
(
cs
->
subtyp
==
ELSA_QS1000PCI
||
cs
->
subtyp
==
ELSA_QS3000PCI
)
{
val
=
bytein
(
cs
->
hw
.
elsa
.
cfg
+
0x4c
);
/* PCI IRQ */
val
=
bytein
(
cs
->
hw
.
elsa
.
cfg
+
0x4c
);
/* PCI IRQ */
if
(
!
test_bit
(
FLG_BUGGY_PLX9050
,
&
cs
->
HW_Flags
)
&&
if
(
!
test_bit
(
FLG_BUGGY_PLX9050
,
&
cs
->
HW_Flags
)
&&
!
(
val
&
ELSA_PCI_IRQ_MASK
))
!
(
val
&
ELSA_PCI_IRQ_MASK
))
return
;
return
IRQ_NONE
;
}
}
#if ARCOFI_USE
#if ARCOFI_USE
if
(
cs
->
hw
.
elsa
.
MFlag
)
{
if
(
cs
->
hw
.
elsa
.
MFlag
)
{
...
@@ -380,7 +381,7 @@ elsa_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -380,7 +381,7 @@ elsa_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
}
}
}
}
#endif
#endif
ipac_irq
(
intno
,
dev_id
,
regs
);
return
ipac_irq
(
intno
,
dev_id
,
regs
);
}
}
static
void
static
void
...
...
drivers/isdn/hisax/enternow_pci.c
View file @
2efd7260
...
@@ -208,7 +208,7 @@ enpci_reset(struct IsdnCardState *cs)
...
@@ -208,7 +208,7 @@ enpci_reset(struct IsdnCardState *cs)
return
0
;
return
0
;
}
}
static
void
static
irqreturn_t
enpci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
enpci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -253,6 +253,7 @@ enpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -253,6 +253,7 @@ enpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
write_tiger
(
cs
);
write_tiger
(
cs
);
}
}
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
struct
card_ops
enpci_ops
=
{
static
struct
card_ops
enpci_ops
=
{
...
...
drivers/isdn/hisax/hfc_pci.c
View file @
2efd7260
...
@@ -869,7 +869,7 @@ receive_emsg(struct IsdnCardState *cs)
...
@@ -869,7 +869,7 @@ receive_emsg(struct IsdnCardState *cs)
/*********************/
/*********************/
/* Interrupt handler */
/* Interrupt handler */
/*********************/
/*********************/
static
void
static
irqreturn_t
hfcpci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
hfcpci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -880,17 +880,17 @@ hfcpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -880,17 +880,17 @@ hfcpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
if
(
!
cs
)
{
if
(
!
cs
)
{
printk
(
KERN_WARNING
"HFC-PCI: Spurious interrupt!
\n
"
);
printk
(
KERN_WARNING
"HFC-PCI: Spurious interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
(
!
(
cs
->
hw
.
hfcpci
.
int_m2
&
0x08
))
if
(
!
(
cs
->
hw
.
hfcpci
.
int_m2
&
0x08
))
return
;
/* not initialised */
return
IRQ_NONE
;
/* not initialised */
if
(
HFCPCI_ANYINT
&
(
stat
=
Read_hfc
(
cs
,
HFCPCI_STATUS
)))
{
if
(
HFCPCI_ANYINT
&
(
stat
=
Read_hfc
(
cs
,
HFCPCI_STATUS
)))
{
val
=
Read_hfc
(
cs
,
HFCPCI_INT_S1
);
val
=
Read_hfc
(
cs
,
HFCPCI_INT_S1
);
if
(
cs
->
debug
&
L1_DEB_ISAC
)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
debugl1
(
cs
,
"HFC-PCI: stat(%02x) s1(%02x)"
,
stat
,
val
);
debugl1
(
cs
,
"HFC-PCI: stat(%02x) s1(%02x)"
,
stat
,
val
);
}
else
}
else
return
;
return
IRQ_NONE
;
if
(
cs
->
debug
&
L1_DEB_ISAC
)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
debugl1
(
cs
,
"HFC-PCI irq %x"
,
val
);
debugl1
(
cs
,
"HFC-PCI irq %x"
,
val
);
...
@@ -964,6 +964,7 @@ hfcpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -964,6 +964,7 @@ hfcpci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
else
}
else
val
=
0
;
val
=
0
;
}
}
return
IRQ_HANDLED
;
}
}
/********************************************************************/
/********************************************************************/
...
...
drivers/isdn/hisax/hfc_sx.c
View file @
2efd7260
...
@@ -661,7 +661,7 @@ receive_emsg(struct IsdnCardState *cs)
...
@@ -661,7 +661,7 @@ receive_emsg(struct IsdnCardState *cs)
/*********************/
/*********************/
/* Interrupt handler */
/* Interrupt handler */
/*********************/
/*********************/
static
void
static
irqreturn_t
hfcsx_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
hfcsx_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -672,17 +672,17 @@ hfcsx_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -672,17 +672,17 @@ hfcsx_interrupt(int intno, void *dev_id, struct pt_regs *regs)
if
(
!
cs
)
{
if
(
!
cs
)
{
printk
(
KERN_WARNING
"HFC-SX: Spurious interrupt!
\n
"
);
printk
(
KERN_WARNING
"HFC-SX: Spurious interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
(
!
(
cs
->
hw
.
hfcsx
.
int_m2
&
0x08
))
if
(
!
(
cs
->
hw
.
hfcsx
.
int_m2
&
0x08
))
return
;
/* not initialised */
return
IRQ_NONE
;
/* not initialised */
if
(
HFCSX_ANYINT
&
(
stat
=
Read_hfc
(
cs
,
HFCSX_STATUS
)))
{
if
(
HFCSX_ANYINT
&
(
stat
=
Read_hfc
(
cs
,
HFCSX_STATUS
)))
{
val
=
Read_hfc
(
cs
,
HFCSX_INT_S1
);
val
=
Read_hfc
(
cs
,
HFCSX_INT_S1
);
if
(
cs
->
debug
&
L1_DEB_ISAC
)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
debugl1
(
cs
,
"HFC-SX: stat(%02x) s1(%02x)"
,
stat
,
val
);
debugl1
(
cs
,
"HFC-SX: stat(%02x) s1(%02x)"
,
stat
,
val
);
}
else
}
else
return
;
return
IRQ_NONE
;
if
(
cs
->
debug
&
L1_DEB_ISAC
)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
debugl1
(
cs
,
"HFC-SX irq %x"
,
val
);
debugl1
(
cs
,
"HFC-SX irq %x"
,
val
);
...
@@ -756,6 +756,7 @@ hfcsx_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -756,6 +756,7 @@ hfcsx_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
else
}
else
val
=
0
;
val
=
0
;
}
}
return
IRQ_HANDLED
;
}
}
/********************************************************************/
/********************************************************************/
...
...
drivers/isdn/hisax/hfcscard.c
View file @
2efd7260
...
@@ -32,7 +32,7 @@ hfcs_write_reg(struct IsdnCardState *cs, int data, u8 reg, u8 val)
...
@@ -32,7 +32,7 @@ hfcs_write_reg(struct IsdnCardState *cs, int data, u8 reg, u8 val)
cs
->
bc_hw_ops
->
write_reg
(
cs
,
data
,
reg
,
val
);
cs
->
bc_hw_ops
->
write_reg
(
cs
,
data
,
reg
,
val
);
}
}
static
void
static
irqreturn_t
hfcs_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
hfcs_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -40,7 +40,7 @@ hfcs_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -40,7 +40,7 @@ hfcs_interrupt(int intno, void *dev_id, struct pt_regs *regs)
if
(
!
cs
)
{
if
(
!
cs
)
{
printk
(
KERN_WARNING
"HFCS: Spurious interrupt!
\n
"
);
printk
(
KERN_WARNING
"HFCS: Spurious interrupt!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
((
HFCD_ANYINT
|
HFCD_BUSY_NBUSY
)
&
if
((
HFCD_ANYINT
|
HFCD_BUSY_NBUSY
)
&
(
stat
=
hfcs_read_reg
(
cs
,
HFCD_DATA
,
HFCD_STAT
)))
{
(
stat
=
hfcs_read_reg
(
cs
,
HFCD_DATA
,
HFCD_STAT
)))
{
...
@@ -52,6 +52,7 @@ hfcs_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -52,6 +52,7 @@ hfcs_interrupt(int intno, void *dev_id, struct pt_regs *regs)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
if
(
cs
->
debug
&
L1_DEB_ISAC
)
debugl1
(
cs
,
"HFCS: irq_no_irq stat(%02x)"
,
stat
);
debugl1
(
cs
,
"HFCS: irq_no_irq stat(%02x)"
,
stat
);
}
}
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/hisax.h
View file @
2efd7260
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <linux/tty.h>
#include <linux/tty.h>
#include <linux/serial_reg.h>
#include <linux/serial_reg.h>
#include <linux/netdevice.h>
#include <linux/netdevice.h>
#include <linux/interrupt.h>
#define ERROR_STATISTIC
#define ERROR_STATISTIC
...
@@ -886,7 +887,7 @@ struct card_ops {
...
@@ -886,7 +887,7 @@ struct card_ops {
void
(
*
release
)
(
struct
IsdnCardState
*
);
void
(
*
release
)
(
struct
IsdnCardState
*
);
void
(
*
aux_ind
)
(
struct
IsdnCardState
*
,
void
*
);
void
(
*
aux_ind
)
(
struct
IsdnCardState
*
,
void
*
);
void
(
*
led_handler
)(
struct
IsdnCardState
*
);
void
(
*
led_handler
)(
struct
IsdnCardState
*
);
void
(
*
irq_func
)
(
int
,
void
*
,
struct
pt_regs
*
);
irqreturn_t
(
*
irq_func
)
(
int
,
void
*
,
struct
pt_regs
*
);
};
};
/* Card specific drivers provide methods to access the
/* Card specific drivers provide methods to access the
...
...
drivers/isdn/hisax/hisax_fcclassic.c
View file @
2efd7260
...
@@ -120,7 +120,7 @@ fcclassic_write_hscx_fifo(struct hscx *hscx, unsigned char * data, int size)
...
@@ -120,7 +120,7 @@ fcclassic_write_hscx_fifo(struct hscx *hscx, unsigned char * data, int size)
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
static
void
static
irqreturn_t
fcclassic_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
fcclassic_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
{
{
struct
fritz_adapter
*
adapter
=
dev
;
struct
fritz_adapter
*
adapter
=
dev
;
...
@@ -139,6 +139,7 @@ fcclassic_irq(int intno, void *dev, struct pt_regs *regs)
...
@@ -139,6 +139,7 @@ fcclassic_irq(int intno, void *dev, struct pt_regs *regs)
isac_irq
(
&
adapter
->
isac
);
isac_irq
(
&
adapter
->
isac
);
}
}
}
}
return
IRQ_HANDLED
;
}
}
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
...
drivers/isdn/hisax/hisax_fcpcipnp.c
View file @
2efd7260
...
@@ -629,7 +629,7 @@ static void fritz_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
...
@@ -629,7 +629,7 @@ static void fritz_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
static
void
fcpci2_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
static
irqreturn_t
fcpci2_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
{
{
struct
fritz_adapter
*
adapter
=
dev
;
struct
fritz_adapter
*
adapter
=
dev
;
unsigned
char
val
;
unsigned
char
val
;
...
@@ -637,16 +637,17 @@ static void fcpci2_irq(int intno, void *dev, struct pt_regs *regs)
...
@@ -637,16 +637,17 @@ static void fcpci2_irq(int intno, void *dev, struct pt_regs *regs)
val
=
inb
(
adapter
->
io
+
AVM_STATUS0
);
val
=
inb
(
adapter
->
io
+
AVM_STATUS0
);
if
(
!
(
val
&
AVM_STATUS0_IRQ_MASK
))
if
(
!
(
val
&
AVM_STATUS0_IRQ_MASK
))
/* hopefully a shared IRQ reqest */
/* hopefully a shared IRQ reqest */
return
;
return
IRQ_NONE
;
DBG
(
2
,
"STATUS0 %#x"
,
val
);
DBG
(
2
,
"STATUS0 %#x"
,
val
);
if
(
val
&
AVM_STATUS0_IRQ_ISAC
)
if
(
val
&
AVM_STATUS0_IRQ_ISAC
)
isacsx_irq
(
&
adapter
->
isac
);
isacsx_irq
(
&
adapter
->
isac
);
if
(
val
&
AVM_STATUS0_IRQ_HDLC
)
if
(
val
&
AVM_STATUS0_IRQ_HDLC
)
hdlc_irq
(
adapter
);
hdlc_irq
(
adapter
);
return
IRQ_HANDLED
;
}
}
static
void
fcpci_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
static
irqreturn_t
fcpci_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
{
{
struct
fritz_adapter
*
adapter
=
dev
;
struct
fritz_adapter
*
adapter
=
dev
;
unsigned
char
sval
;
unsigned
char
sval
;
...
@@ -654,13 +655,14 @@ static void fcpci_irq(int intno, void *dev, struct pt_regs *regs)
...
@@ -654,13 +655,14 @@ static void fcpci_irq(int intno, void *dev, struct pt_regs *regs)
sval
=
inb
(
adapter
->
io
+
2
);
sval
=
inb
(
adapter
->
io
+
2
);
if
((
sval
&
AVM_STATUS0_IRQ_MASK
)
==
AVM_STATUS0_IRQ_MASK
)
if
((
sval
&
AVM_STATUS0_IRQ_MASK
)
==
AVM_STATUS0_IRQ_MASK
)
/* possibly a shared IRQ reqest */
/* possibly a shared IRQ reqest */
return
;
return
IRQ_NONE
;
DBG
(
2
,
"sval %#x"
,
sval
);
DBG
(
2
,
"sval %#x"
,
sval
);
if
(
!
(
sval
&
AVM_STATUS0_IRQ_ISAC
))
if
(
!
(
sval
&
AVM_STATUS0_IRQ_ISAC
))
isac_irq
(
&
adapter
->
isac
);
isac_irq
(
&
adapter
->
isac
);
if
(
!
(
sval
&
AVM_STATUS0_IRQ_HDLC
))
if
(
!
(
sval
&
AVM_STATUS0_IRQ_HDLC
))
hdlc_irq
(
adapter
);
hdlc_irq
(
adapter
);
return
IRQ_HANDLED
;
}
}
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
...
drivers/isdn/hisax/hisax_hfcpci.c
View file @
2efd7260
...
@@ -1321,7 +1321,7 @@ hfcpci_timer_irq(struct hfcpci_adapter *adapter)
...
@@ -1321,7 +1321,7 @@ hfcpci_timer_irq(struct hfcpci_adapter *adapter)
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
// IRQ handler
// IRQ handler
static
void
static
irqreturn_t
hfcpci_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
hfcpci_irq
(
int
intno
,
void
*
dev
,
struct
pt_regs
*
regs
)
{
{
struct
hfcpci_adapter
*
adapter
=
dev
;
struct
hfcpci_adapter
*
adapter
=
dev
;
...
@@ -1329,11 +1329,11 @@ hfcpci_irq(int intno, void *dev, struct pt_regs *regs)
...
@@ -1329,11 +1329,11 @@ hfcpci_irq(int intno, void *dev, struct pt_regs *regs)
u8
val
,
stat
;
u8
val
,
stat
;
if
(
!
(
adapter
->
int_m2
&
0x08
))
if
(
!
(
adapter
->
int_m2
&
0x08
))
return
;
/* not initialised */
// XX
return
IRQ_NONE
;
/* not initialised */
// XX
stat
=
hfcpci_readb
(
adapter
,
HFCPCI_STATUS
);
stat
=
hfcpci_readb
(
adapter
,
HFCPCI_STATUS
);
if
(
!
(
stat
&
HFCPCI_ANYINT
))
if
(
!
(
stat
&
HFCPCI_ANYINT
))
return
;
return
IRQ_NONE
;
spin_lock
(
&
adapter
->
hw_lock
);
spin_lock
(
&
adapter
->
hw_lock
);
while
(
loop
--
>
0
)
{
while
(
loop
--
>
0
)
{
...
@@ -1369,6 +1369,7 @@ hfcpci_irq(int intno, void *dev, struct pt_regs *regs)
...
@@ -1369,6 +1369,7 @@ hfcpci_irq(int intno, void *dev, struct pt_regs *regs)
hfcpci_timer_irq
(
adapter
);
hfcpci_timer_irq
(
adapter
);
}
}
spin_unlock
(
&
adapter
->
hw_lock
);
spin_unlock
(
&
adapter
->
hw_lock
);
return
IRQ_HANDLED
;
}
}
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
...
drivers/isdn/hisax/hscx.h
View file @
2efd7260
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
*
*
*/
*/
#include <linux/interrupt.h>
/* All Registers original Siemens Spec */
/* All Registers original Siemens Spec */
#define HSCX_ISTA 0x20
#define HSCX_ISTA 0x20
...
@@ -37,7 +39,7 @@
...
@@ -37,7 +39,7 @@
extern
void
modehscx
(
struct
BCState
*
bcs
,
int
mode
,
int
bc
);
extern
void
modehscx
(
struct
BCState
*
bcs
,
int
mode
,
int
bc
);
extern
void
inithscxisac
(
struct
IsdnCardState
*
cs
);
extern
void
inithscxisac
(
struct
IsdnCardState
*
cs
);
extern
void
hscx_int_main
(
struct
IsdnCardState
*
cs
,
u8
val
);
extern
void
hscx_int_main
(
struct
IsdnCardState
*
cs
,
u8
val
);
extern
void
hscxisac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
irqreturn_t
hscxisac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
int
hscxisac_setup
(
struct
IsdnCardState
*
cs
,
extern
int
hscxisac_setup
(
struct
IsdnCardState
*
cs
,
struct
dc_hw_ops
*
isac_ops
,
struct
dc_hw_ops
*
isac_ops
,
struct
bc_hw_ops
*
hscx_ops
);
struct
bc_hw_ops
*
hscx_ops
);
drivers/isdn/hisax/hscx_irq.c
View file @
2efd7260
...
@@ -185,7 +185,7 @@ isac_write(struct IsdnCardState *cs, u8 addr, u8 val)
...
@@ -185,7 +185,7 @@ isac_write(struct IsdnCardState *cs, u8 addr, u8 val)
cs
->
dc_hw_ops
->
write_reg
(
cs
,
addr
,
val
);
cs
->
dc_hw_ops
->
write_reg
(
cs
,
addr
,
val
);
}
}
void
irqreturn_t
hscxisac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
hscxisac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -221,5 +221,6 @@ hscxisac_irq(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -221,5 +221,6 @@ hscxisac_irq(int intno, void *dev_id, struct pt_regs *regs)
hscx_write
(
&
cs
->
bcs
[
0
],
HSCX_MASK
,
0x0
);
hscx_write
(
&
cs
->
bcs
[
0
],
HSCX_MASK
,
0x0
);
hscx_write
(
&
cs
->
bcs
[
1
],
HSCX_MASK
,
0x0
);
hscx_write
(
&
cs
->
bcs
[
1
],
HSCX_MASK
,
0x0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
drivers/isdn/hisax/ipac.c
View file @
2efd7260
...
@@ -47,7 +47,7 @@ ipac_init(struct IsdnCardState *cs)
...
@@ -47,7 +47,7 @@ ipac_init(struct IsdnCardState *cs)
inithscxisac
(
cs
);
inithscxisac
(
cs
);
}
}
void
irqreturn_t
ipac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
ipac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -90,6 +90,7 @@ ipac_irq(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -90,6 +90,7 @@ ipac_irq(int intno, void *dev_id, struct pt_regs *regs)
ipac_write
(
cs
,
IPAC_MASK
,
0xFF
);
ipac_write
(
cs
,
IPAC_MASK
,
0xFF
);
ipac_write
(
cs
,
IPAC_MASK
,
0xC0
);
ipac_write
(
cs
,
IPAC_MASK
,
0xC0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
int
int
...
@@ -102,4 +103,5 @@ ipac_setup(struct IsdnCardState *cs, struct dc_hw_ops *ipac_dc_ops,
...
@@ -102,4 +103,5 @@ ipac_setup(struct IsdnCardState *cs, struct dc_hw_ops *ipac_dc_ops,
cs
->
bc_hw_ops
=
ipac_bc_ops
;
cs
->
bc_hw_ops
=
ipac_bc_ops
;
val
=
ipac_read
(
cs
,
IPAC_ID
);
val
=
ipac_read
(
cs
,
IPAC_ID
);
printk
(
KERN_INFO
"HiSax: IPAC version %#x
\n
"
,
val
);
printk
(
KERN_INFO
"HiSax: IPAC version %#x
\n
"
,
val
);
return
0
;
}
}
drivers/isdn/hisax/ipac.h
View file @
2efd7260
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
*
*
*/
*/
#include <linux/interrupt.h>
/* All Registers original Siemens Spec */
/* All Registers original Siemens Spec */
#define IPAC_CONF 0xC0
#define IPAC_CONF 0xC0
...
@@ -29,7 +31,7 @@
...
@@ -29,7 +31,7 @@
#define IPAC_TIMR2 0xCC
#define IPAC_TIMR2 0xCC
void
ipac_init
(
struct
IsdnCardState
*
cs
);
void
ipac_init
(
struct
IsdnCardState
*
cs
);
void
ipac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
irqreturn_t
ipac_irq
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
int
ipac_setup
(
struct
IsdnCardState
*
cs
,
struct
dc_hw_ops
*
ipac_dc_ops
,
int
ipac_setup
(
struct
IsdnCardState
*
cs
,
struct
dc_hw_ops
*
ipac_dc_ops
,
struct
bc_hw_ops
*
ipac_bc_ops
);
struct
bc_hw_ops
*
ipac_bc_ops
);
...
...
drivers/isdn/hisax/niccy.c
View file @
2efd7260
...
@@ -151,7 +151,7 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -151,7 +151,7 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
niccy_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
niccy_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -160,10 +160,10 @@ niccy_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -160,10 +160,10 @@ niccy_interrupt(int intno, void *dev_id, struct pt_regs *regs)
int
ival
;
int
ival
;
ival
=
inl
(
cs
->
hw
.
niccy
.
cfg_reg
+
PCI_IRQ_CTRL_REG
);
ival
=
inl
(
cs
->
hw
.
niccy
.
cfg_reg
+
PCI_IRQ_CTRL_REG
);
if
(
!
(
ival
&
PCI_IRQ_ASSERT
))
/* IRQ not for us (shared) */
if
(
!
(
ival
&
PCI_IRQ_ASSERT
))
/* IRQ not for us (shared) */
return
;
return
IRQ_NONE
;
outl
(
ival
,
cs
->
hw
.
niccy
.
cfg_reg
+
PCI_IRQ_CTRL_REG
);
outl
(
ival
,
cs
->
hw
.
niccy
.
cfg_reg
+
PCI_IRQ_CTRL_REG
);
}
}
hscxisac_irq
(
intno
,
dev_id
,
regs
);
return
hscxisac_irq
(
intno
,
dev_id
,
regs
);
}
}
void
void
...
...
drivers/isdn/hisax/nj_s.c
View file @
2efd7260
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
const
char
*
NETjet_S_revision
=
"$Revision: 2.7.6.6 $"
;
const
char
*
NETjet_S_revision
=
"$Revision: 2.7.6.6 $"
;
static
void
static
irqreturn_t
nj_s_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
nj_s_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -70,6 +70,7 @@ nj_s_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -70,6 +70,7 @@ nj_s_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
}
*/
*/
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
int
static
int
...
...
drivers/isdn/hisax/nj_u.c
View file @
2efd7260
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
const
char
*
NETjet_U_revision
=
"$Revision: 2.8.6.6 $"
;
const
char
*
NETjet_U_revision
=
"$Revision: 2.8.6.6 $"
;
static
void
static
irqreturn_t
nj_u_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
nj_u_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -70,6 +70,7 @@ nj_u_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -70,6 +70,7 @@ nj_u_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
}
*/
*/
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
int
static
int
...
...
drivers/isdn/hisax/saphir.c
View file @
2efd7260
...
@@ -132,13 +132,15 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -132,13 +132,15 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
saphir_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
saphir_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
irqreturn_t
ret
;
hscxisac_irq
(
intno
,
dev_id
,
regs
);
ret
=
hscxisac_irq
(
intno
,
dev_id
,
regs
);
mod_timer
(
&
cs
->
hw
.
saphir
.
timer
,
jiffies
+
1
*
HZ
);
mod_timer
(
&
cs
->
hw
.
saphir
.
timer
,
jiffies
+
1
*
HZ
);
return
ret
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/sedlbauer.c
View file @
2efd7260
...
@@ -283,7 +283,7 @@ static struct bc_hw_ops isar_ops = {
...
@@ -283,7 +283,7 @@ static struct bc_hw_ops isar_ops = {
.
write_reg
=
isar_write
,
.
write_reg
=
isar_write
,
};
};
static
void
static
irqreturn_t
sedlbauer_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
sedlbauer_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -292,12 +292,12 @@ sedlbauer_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -292,12 +292,12 @@ sedlbauer_interrupt(int intno, void *dev_id, struct pt_regs *regs)
/* The card tends to generate interrupts while being removed
/* The card tends to generate interrupts while being removed
causing us to just crash the kernel. bad. */
causing us to just crash the kernel. bad. */
printk
(
KERN_WARNING
"Sedlbauer: card not available!
\n
"
);
printk
(
KERN_WARNING
"Sedlbauer: card not available!
\n
"
);
return
;
return
IRQ_NONE
;
}
}
hscxisac_irq
(
intno
,
dev_id
,
regs
);
return
hscxisac_irq
(
intno
,
dev_id
,
regs
);
}
}
static
void
static
irqreturn_t
sedlbauer_isar_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
sedlbauer_isar_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -334,6 +334,7 @@ sedlbauer_isar_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -334,6 +334,7 @@ sedlbauer_isar_interrupt(int intno, void *dev_id, struct pt_regs *regs)
isac_write
(
cs
,
ISAC_MASK
,
0x0
);
isac_write
(
cs
,
ISAC_MASK
,
0x0
);
isar_write
(
cs
,
0
,
ISAR_IRQBIT
,
ISAR_IRQMSK
);
isar_write
(
cs
,
0
,
ISAR_IRQBIT
,
ISAR_IRQMSK
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
int
static
int
...
...
drivers/isdn/hisax/sportster.c
View file @
2efd7260
...
@@ -111,13 +111,14 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -111,13 +111,14 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
sportster_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
sportster_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
hscxisac_irq
(
intno
,
dev_id
,
regs
);
hscxisac_irq
(
intno
,
dev_id
,
regs
);
bytein
(
cs
->
hw
.
spt
.
cfg_reg
+
SPORTSTER_RES_IRQ
+
1
);
bytein
(
cs
->
hw
.
spt
.
cfg_reg
+
SPORTSTER_RES_IRQ
+
1
);
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/teleint.c
View file @
2efd7260
...
@@ -178,7 +178,7 @@ static struct bc_hw_ops hfc_ops = {
...
@@ -178,7 +178,7 @@ static struct bc_hw_ops hfc_ops = {
.
write_reg
=
WriteHFC
,
.
write_reg
=
WriteHFC
,
};
};
static
void
static
irqreturn_t
teleint_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
teleint_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -198,6 +198,7 @@ teleint_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -198,6 +198,7 @@ teleint_interrupt(int intno, void *dev_id, struct pt_regs *regs)
writereg
(
cs
->
hw
.
hfc
.
addr
|
1
,
cs
->
hw
.
hfc
.
addr
,
ISAC_MASK
,
0xFF
);
writereg
(
cs
->
hw
.
hfc
.
addr
|
1
,
cs
->
hw
.
hfc
.
addr
,
ISAC_MASK
,
0xFF
);
writereg
(
cs
->
hw
.
hfc
.
addr
|
1
,
cs
->
hw
.
hfc
.
addr
,
ISAC_MASK
,
0x0
);
writereg
(
cs
->
hw
.
hfc
.
addr
|
1
,
cs
->
hw
.
hfc
.
addr
,
ISAC_MASK
,
0x0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hisax/telespci.c
View file @
2efd7260
...
@@ -199,7 +199,7 @@ static struct bc_hw_ops hscx_ops = {
...
@@ -199,7 +199,7 @@ static struct bc_hw_ops hscx_ops = {
.
write_fifo
=
hscx_write_fifo
,
.
write_fifo
=
hscx_write_fifo
,
};
};
static
void
static
irqreturn_t
telespci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
telespci_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
#define MAXCOUNT 20
#define MAXCOUNT 20
...
@@ -223,6 +223,7 @@ telespci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -223,6 +223,7 @@ telespci_interrupt(int intno, void *dev_id, struct pt_regs *regs)
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
0
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
hscx_write
(
cs
,
1
,
HSCX_MASK
,
0x0
);
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
struct
card_ops
telespci_ops
=
{
static
struct
card_ops
telespci_ops
=
{
...
...
drivers/isdn/hisax/w6692.c
View file @
2efd7260
...
@@ -287,7 +287,7 @@ W6692B_interrupt(struct IsdnCardState *cs, u8 bchan)
...
@@ -287,7 +287,7 @@ W6692B_interrupt(struct IsdnCardState *cs, u8 bchan)
}
}
}
}
static
void
static
irqreturn_t
w6692_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
w6692_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
...
@@ -395,6 +395,7 @@ w6692_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -395,6 +395,7 @@ w6692_interrupt(int intno, void *dev_id, struct pt_regs *regs)
w6692_write_reg
(
cs
,
W_IMASK
,
0xff
);
w6692_write_reg
(
cs
,
W_IMASK
,
0xff
);
}
}
spin_unlock
(
&
cs
->
lock
);
spin_unlock
(
&
cs
->
lock
);
return
IRQ_HANDLED
;
}
}
static
void
static
void
...
...
drivers/isdn/hysdn/boardergo.c
View file @
2efd7260
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
/***************************************************/
/***************************************************/
/* The cards interrupt handler. Called from system */
/* The cards interrupt handler. Called from system */
/***************************************************/
/***************************************************/
static
void
static
irqreturn_t
ergo_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
ergo_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
hysdn_card
*
card
=
dev_id
;
/* parameter from irq */
hysdn_card
*
card
=
dev_id
;
/* parameter from irq */
...
@@ -41,16 +41,16 @@ ergo_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -41,16 +41,16 @@ ergo_interrupt(int intno, void *dev_id, struct pt_regs *regs)
uchar
volatile
b
;
uchar
volatile
b
;
if
(
!
card
)
if
(
!
card
)
return
;
/* error -> spurious interrupt */
return
IRQ_NONE
;
/* error -> spurious interrupt */
if
(
!
card
->
irq_enabled
)
if
(
!
card
->
irq_enabled
)
return
;
/* other device interrupting or irq switched off */
return
IRQ_NONE
;
/* other device interrupting or irq switched off */
save_flags
(
flags
);
save_flags
(
flags
);
cli
();
/* no further irqs allowed */
cli
();
/* no further irqs allowed */
if
(
!
(
bytein
(
card
->
iobase
+
PCI9050_INTR_REG
)
&
PCI9050_INTR_REG_STAT1
))
{
if
(
!
(
bytein
(
card
->
iobase
+
PCI9050_INTR_REG
)
&
PCI9050_INTR_REG_STAT1
))
{
restore_flags
(
flags
);
/* restore old state */
restore_flags
(
flags
);
/* restore old state */
return
;
/* no interrupt requested by E1 */
return
IRQ_NONE
;
/* no interrupt requested by E1 */
}
}
/* clear any pending ints on the board */
/* clear any pending ints on the board */
dpr
=
card
->
dpram
;
dpr
=
card
->
dpram
;
...
@@ -62,6 +62,7 @@ ergo_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -62,6 +62,7 @@ ergo_interrupt(int intno, void *dev_id, struct pt_regs *regs)
if
(
!
card
->
hw_lock
)
if
(
!
card
->
hw_lock
)
schedule_work
(
&
card
->
irq_queue
);
schedule_work
(
&
card
->
irq_queue
);
restore_flags
(
flags
);
restore_flags
(
flags
);
return
IRQ_HANDLED
;
}
/* ergo_interrupt */
}
/* ergo_interrupt */
/******************************************************************************/
/******************************************************************************/
...
...
drivers/isdn/pcbit/layer2.c
View file @
2efd7260
...
@@ -524,7 +524,7 @@ pcbit_firmware_bug(struct pcbit_dev *dev)
...
@@ -524,7 +524,7 @@ pcbit_firmware_bug(struct pcbit_dev *dev)
}
}
}
}
void
irqreturn_t
pcbit_irq_handler
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
pcbit_irq_handler
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
{
struct
pcbit_dev
*
dev
;
struct
pcbit_dev
*
dev
;
...
@@ -536,11 +536,11 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -536,11 +536,11 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
if
(
!
dev
)
{
if
(
!
dev
)
{
printk
(
KERN_WARNING
"pcbit_irq_handler: wrong device
\n
"
);
printk
(
KERN_WARNING
"pcbit_irq_handler: wrong device
\n
"
);
return
;
return
IRQ_NONE
;
}
}
if
(
dev
->
interrupt
)
{
if
(
dev
->
interrupt
)
{
printk
(
KERN_DEBUG
"pcbit: reentering interrupt hander
\n
"
);
printk
(
KERN_DEBUG
"pcbit: reentering interrupt hander
\n
"
);
return
;
return
IRQ_HANDLED
;
}
}
dev
->
interrupt
=
1
;
dev
->
interrupt
=
1
;
...
@@ -549,7 +549,7 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -549,7 +549,7 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
if
(
dev
->
l2_state
==
L2_STARTING
||
dev
->
l2_state
==
L2_ERROR
)
{
if
(
dev
->
l2_state
==
L2_STARTING
||
dev
->
l2_state
==
L2_ERROR
)
{
pcbit_l2_active_conf
(
dev
,
info
);
pcbit_l2_active_conf
(
dev
,
info
);
dev
->
interrupt
=
0
;
dev
->
interrupt
=
0
;
return
;
return
IRQ_HANDLED
;
}
}
if
(
info
&
0x40U
)
{
/* E bit set */
if
(
info
&
0x40U
)
{
/* E bit set */
#ifdef DEBUG
#ifdef DEBUG
...
@@ -557,11 +557,11 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -557,11 +557,11 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
#endif
#endif
pcbit_l2_error
(
dev
);
pcbit_l2_error
(
dev
);
dev
->
interrupt
=
0
;
dev
->
interrupt
=
0
;
return
;
return
IRQ_HANDLED
;
}
}
if
(
dev
->
l2_state
!=
L2_RUNNING
&&
dev
->
l2_state
!=
L2_LOADING
)
{
if
(
dev
->
l2_state
!=
L2_RUNNING
&&
dev
->
l2_state
!=
L2_LOADING
)
{
dev
->
interrupt
=
0
;
dev
->
interrupt
=
0
;
return
;
return
IRQ_HANDLED
;
}
}
ack_seq
=
(
info
>>
3
)
&
0x07U
;
ack_seq
=
(
info
>>
3
)
&
0x07U
;
read_seq
=
(
info
&
0x07U
);
read_seq
=
(
info
&
0x07U
);
...
@@ -582,6 +582,7 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
...
@@ -582,6 +582,7 @@ pcbit_irq_handler(int interrupt, void *devptr, struct pt_regs *regs)
info
|=
dev
->
send_seq
;
info
|=
dev
->
send_seq
;
writeb
(
info
,
dev
->
sh_mem
+
BANK4
);
writeb
(
info
,
dev
->
sh_mem
+
BANK4
);
return
IRQ_HANDLED
;
}
}
...
...
drivers/isdn/pcbit/layer2.h
View file @
2efd7260
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
#ifndef LAYER2_H
#ifndef LAYER2_H
#define LAYER2_H
#define LAYER2_H
#include <linux/interrupt.h>
#include <asm/byteorder.h>
#include <asm/byteorder.h>
#define BANK1 0x0000U
/* PC -> Board */
#define BANK1 0x0000U
/* PC -> Board */
...
@@ -122,7 +124,7 @@ struct frame_buf {
...
@@ -122,7 +124,7 @@ struct frame_buf {
extern
int
pcbit_l2_write
(
struct
pcbit_dev
*
dev
,
ulong
msg
,
ushort
refnum
,
extern
int
pcbit_l2_write
(
struct
pcbit_dev
*
dev
,
ulong
msg
,
ushort
refnum
,
struct
sk_buff
*
skb
,
unsigned
short
hdr_len
);
struct
sk_buff
*
skb
,
unsigned
short
hdr_len
);
extern
void
pcbit_irq_handler
(
int
interrupt
,
void
*
,
struct
pt_regs
*
regs
);
extern
irqreturn_t
pcbit_irq_handler
(
int
interrupt
,
void
*
,
struct
pt_regs
*
regs
);
extern
struct
pcbit_dev
*
dev_pcbit
[
MAX_PCBIT_CARDS
];
extern
struct
pcbit_dev
*
dev_pcbit
[
MAX_PCBIT_CARDS
];
...
...
drivers/isdn/sc/init.c
View file @
2efd7260
...
@@ -36,7 +36,7 @@ static int do_reset = 0;
...
@@ -36,7 +36,7 @@ static int do_reset = 0;
static
int
sup_irq
[]
=
{
11
,
10
,
9
,
5
,
12
,
14
,
7
,
3
,
4
,
6
};
static
int
sup_irq
[]
=
{
11
,
10
,
9
,
5
,
12
,
14
,
7
,
3
,
4
,
6
};
#define MAX_IRQS 10
#define MAX_IRQS 10
extern
void
interrupt_handler
(
int
,
void
*
,
struct
pt_regs
*
);
extern
irqreturn_t
interrupt_handler
(
int
,
void
*
,
struct
pt_regs
*
);
extern
int
sndpkt
(
int
,
int
,
int
,
struct
sk_buff
*
);
extern
int
sndpkt
(
int
,
int
,
int
,
struct
sk_buff
*
);
extern
int
command
(
isdn_ctrl
*
);
extern
int
command
(
isdn_ctrl
*
);
extern
int
indicate_status
(
int
,
int
,
ulong
,
char
*
);
extern
int
indicate_status
(
int
,
int
,
ulong
,
char
*
);
...
...
drivers/isdn/sc/interrupt.c
View file @
2efd7260
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include "hardware.h"
#include "hardware.h"
#include "message.h"
#include "message.h"
#include "card.h"
#include "card.h"
#include <linux/interrupt.h>
extern
int
indicate_status
(
int
,
int
,
ulong
,
char
*
);
extern
int
indicate_status
(
int
,
int
,
ulong
,
char
*
);
extern
void
check_phystat
(
unsigned
long
);
extern
void
check_phystat
(
unsigned
long
);
...
@@ -44,7 +45,8 @@ int get_card_from_irq(int irq)
...
@@ -44,7 +45,8 @@ int get_card_from_irq(int irq)
/*
/*
*
*
*/
*/
void
interrupt_handler
(
int
interrupt
,
void
*
cardptr
,
struct
pt_regs
*
regs
)
{
irqreturn_t
interrupt_handler
(
int
interrupt
,
void
*
cardptr
,
struct
pt_regs
*
regs
)
{
RspMessage
rcvmsg
;
RspMessage
rcvmsg
;
int
channel
;
int
channel
;
...
@@ -54,7 +56,7 @@ void interrupt_handler(int interrupt, void * cardptr, struct pt_regs *regs ) {
...
@@ -54,7 +56,7 @@ void interrupt_handler(int interrupt, void * cardptr, struct pt_regs *regs ) {
if
(
!
IS_VALID_CARD
(
card
))
{
if
(
!
IS_VALID_CARD
(
card
))
{
pr_debug
(
"Invalid param: %d is not a valid card id
\n
"
,
card
);
pr_debug
(
"Invalid param: %d is not a valid card id
\n
"
,
card
);
return
;
return
IRQ_NONE
;
}
}
pr_debug
(
"%s: Entered Interrupt handler
\n
"
,
adapter
[
card
]
->
devicename
);
pr_debug
(
"%s: Entered Interrupt handler
\n
"
,
adapter
[
card
]
->
devicename
);
...
@@ -242,4 +244,5 @@ void interrupt_handler(int interrupt, void * cardptr, struct pt_regs *regs ) {
...
@@ -242,4 +244,5 @@ void interrupt_handler(int interrupt, void * cardptr, struct pt_regs *regs ) {
}
/* while */
}
/* while */
pr_debug
(
"%s: Exiting Interrupt Handler
\n
"
,
adapter
[
card
]
->
devicename
);
pr_debug
(
"%s: Exiting Interrupt Handler
\n
"
,
adapter
[
card
]
->
devicename
);
return
IRQ_HANDLED
;
}
}
drivers/isdn/tpam/tpam.h
View file @
2efd7260
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <linux/isdnif.h>
#include <linux/isdnif.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
/* Maximum number of channels for this board */
/* Maximum number of channels for this board */
#define TPAM_NBCHANNEL 30
#define TPAM_NBCHANNEL 30
...
@@ -197,7 +198,7 @@ extern int parse_U3DataInd(struct sk_buff *, u32 *, u8 **, u16 *);
...
@@ -197,7 +198,7 @@ extern int parse_U3DataInd(struct sk_buff *, u32 *, u8 **, u16 *);
/* Function prototypes from tpam_queues.c */
/* Function prototypes from tpam_queues.c */
extern
void
tpam_enqueue
(
tpam_card
*
,
struct
sk_buff
*
);
extern
void
tpam_enqueue
(
tpam_card
*
,
struct
sk_buff
*
);
extern
void
tpam_enqueue_data
(
tpam_channel
*
,
struct
sk_buff
*
);
extern
void
tpam_enqueue_data
(
tpam_channel
*
,
struct
sk_buff
*
);
extern
void
tpam_irq
(
int
,
void
*
,
struct
pt_regs
*
);
extern
irqreturn_t
tpam_irq
(
int
,
void
*
,
struct
pt_regs
*
);
extern
void
tpam_recv_tq
(
tpam_card
*
);
extern
void
tpam_recv_tq
(
tpam_card
*
);
extern
void
tpam_send_tq
(
tpam_card
*
);
extern
void
tpam_send_tq
(
tpam_card
*
);
...
...
drivers/isdn/tpam/tpam_commands.c
View file @
2efd7260
...
@@ -173,7 +173,8 @@ static int tpam_command_ioctl_dspsave(tpam_card *card, u32 arg) {
...
@@ -173,7 +173,8 @@ static int tpam_command_ioctl_dspsave(tpam_card *card, u32 arg) {
* Return: 0 if OK, <0 on errors.
* Return: 0 if OK, <0 on errors.
*/
*/
static
int
tpam_command_ioctl_dsprun
(
tpam_card
*
card
)
{
static
int
tpam_command_ioctl_dsprun
(
tpam_card
*
card
)
{
u32
signature
=
0
,
timeout
,
i
;
u32
signature
=
0
,
i
;
unsigned
long
timeout
;
isdn_ctrl
ctrl
;
isdn_ctrl
ctrl
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
...
...
drivers/isdn/tpam/tpam_queues.c
View file @
2efd7260
...
@@ -74,7 +74,8 @@ void tpam_enqueue_data(tpam_channel *channel, struct sk_buff *skb) {
...
@@ -74,7 +74,8 @@ void tpam_enqueue_data(tpam_channel *channel, struct sk_buff *skb) {
* dev_id: the registered board to the irq
* dev_id: the registered board to the irq
* regs: not used.
* regs: not used.
*/
*/
void
tpam_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
irqreturn_t
tpam_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
tpam_card
*
card
=
(
tpam_card
*
)
dev_id
;
tpam_card
*
card
=
(
tpam_card
*
)
dev_id
;
u32
ackupload
,
uploadptr
;
u32
ackupload
,
uploadptr
;
u32
waiting_too_long
;
u32
waiting_too_long
;
...
@@ -115,7 +116,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -115,7 +116,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
printk
(
KERN_ERR
"TurboPAM(tpam_irq): "
printk
(
KERN_ERR
"TurboPAM(tpam_irq): "
"alloc_skb failed
\n
"
);
"alloc_skb failed
\n
"
);
spin_unlock
(
&
card
->
lock
);
spin_unlock
(
&
card
->
lock
);
return
;
return
IRQ_HANDLED
;
}
}
/* build the skb_header */
/* build the skb_header */
...
@@ -147,7 +148,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -147,7 +148,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
spin_unlock
(
&
card
->
lock
);
spin_unlock
(
&
card
->
lock
);
printk
(
KERN_ERR
"TurboPAM(tpam_irq): "
printk
(
KERN_ERR
"TurboPAM(tpam_irq): "
"waiting too long...
\n
"
);
"waiting too long...
\n
"
);
return
;
return
IRQ_HANDLED
;
}
}
}
while
(
hpic
&
0x00000002
);
}
while
(
hpic
&
0x00000002
);
...
@@ -169,7 +170,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -169,7 +170,7 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
skb_queue_tail
(
&
card
->
recvq
,
skb
);
skb_queue_tail
(
&
card
->
recvq
,
skb
);
schedule_work
(
&
card
->
recv_tq
);
schedule_work
(
&
card
->
recv_tq
);
}
}
return
;
return
IRQ_HANDLED
;
}
}
else
{
else
{
/* it is a ack from the board */
/* it is a ack from the board */
...
@@ -185,10 +186,8 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
...
@@ -185,10 +186,8 @@ void tpam_irq(int irq, void *dev_id, struct pt_regs *regs) {
/* schedule the send queue for execution */
/* schedule the send queue for execution */
schedule_work
(
&
card
->
send_tq
);
schedule_work
(
&
card
->
send_tq
);
return
;
}
}
return
IRQ_HANDLED
;
/* not reached */
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment