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
c2f71c4c
Commit
c2f71c4c
authored
Apr 20, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET SUN]: Update for irqreturn_t.
parent
dd3d5004
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
drivers/net/sunbmac.c
drivers/net/sunbmac.c
+3
-1
drivers/net/sungem.c
drivers/net/sungem.c
+3
-1
drivers/net/sunhme.c
drivers/net/sunhme.c
+6
-2
drivers/net/sunlance.c
drivers/net/sunlance.c
+3
-1
drivers/net/sunqe.c
drivers/net/sunqe.c
+3
-1
No files found.
drivers/net/sunbmac.c
View file @
c2f71c4c
...
...
@@ -874,7 +874,7 @@ static void bigmac_rx(struct bigmac *bp)
printk
(
KERN_NOTICE
"%s: Memory squeeze, deferring packet.
\n
"
,
bp
->
dev
->
name
);
}
static
void
bigmac_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
bigmac_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
bigmac
*
bp
=
(
struct
bigmac
*
)
dev_id
;
u32
qec_status
,
bmac_status
;
...
...
@@ -895,6 +895,8 @@ static void bigmac_interrupt(int irq, void *dev_id, struct pt_regs *regs)
if
(
bmac_status
&
CREG_STAT_RXIRQ
)
bigmac_rx
(
bp
);
return
IRQ_HANDLED
;
}
static
int
bigmac_open
(
struct
net_device
*
dev
)
...
...
drivers/net/sungem.c
View file @
c2f71c4c
...
...
@@ -773,7 +773,7 @@ static void gem_rx(struct gem *gp)
gp
->
dev
->
name
);
}
static
void
gem_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
gem_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
net_device
*
dev
=
dev_id
;
struct
gem
*
gp
=
dev
->
priv
;
...
...
@@ -792,6 +792,8 @@ static void gem_interrupt(int irq, void *dev_id, struct pt_regs *regs)
out:
spin_unlock
(
&
gp
->
lock
);
return
IRQ_HANDLED
;
}
static
void
gem_tx_timeout
(
struct
net_device
*
dev
)
...
...
drivers/net/sunhme.c
View file @
c2f71c4c
...
...
@@ -2101,7 +2101,7 @@ static void happy_meal_rx(struct happy_meal *hp, struct net_device *dev)
RXD
((
">"
));
}
static
void
happy_meal_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
happy_meal_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
struct
happy_meal
*
hp
=
dev
->
priv
;
...
...
@@ -2135,10 +2135,12 @@ static void happy_meal_interrupt(int irq, void *dev_id, struct pt_regs *regs)
HMD
((
"done
\n
"
));
out:
spin_unlock
(
&
hp
->
happy_lock
);
return
IRQ_HANDLED
;
}
#ifdef CONFIG_SBUS
static
void
quattro_sbus_interrupt
(
int
irq
,
void
*
cookie
,
struct
pt_regs
*
ptregs
)
static
irqreturn_t
quattro_sbus_interrupt
(
int
irq
,
void
*
cookie
,
struct
pt_regs
*
ptregs
)
{
struct
quattro
*
qp
=
(
struct
quattro
*
)
cookie
;
int
i
;
...
...
@@ -2183,6 +2185,8 @@ static void quattro_sbus_interrupt(int irq, void *cookie, struct pt_regs *ptregs
spin_unlock
(
&
hp
->
happy_lock
);
}
HMD
((
"done
\n
"
));
return
IRQ_HANDLED
;
}
#endif
...
...
drivers/net/sunlance.c
View file @
c2f71c4c
...
...
@@ -812,7 +812,7 @@ static void lance_tx_pio(struct net_device *dev)
spin_unlock
(
&
lp
->
lock
);
}
static
void
lance_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
lance_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
struct
lance_private
*
lp
=
(
struct
lance_private
*
)
dev
->
priv
;
...
...
@@ -871,6 +871,8 @@ static void lance_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
sbus_writew
(
LE_C0_INEA
,
lp
->
lregs
+
RDP
);
return
IRQ_HANDLED
;
}
/* Build a fake network packet and send it to ourselves. */
...
...
drivers/net/sunqe.c
View file @
c2f71c4c
...
...
@@ -456,7 +456,7 @@ static void qe_tx_reclaim(struct sunqe *qep);
* so we just run through each qe and check to see who is signaling
* and thus needs to be serviced.
*/
static
void
qec_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
qec_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
sunqec
*
qecp
=
(
struct
sunqec
*
)
dev_id
;
u32
qec_status
;
...
...
@@ -495,6 +495,8 @@ static void qec_interrupt(int irq, void *dev_id, struct pt_regs *regs)
qec_status
>>=
4
;
channel
++
;
}
return
IRQ_HANDLED
;
}
static
int
qe_open
(
struct
net_device
*
dev
)
...
...
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