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
100c9a0b
Commit
100c9a0b
authored
Apr 20, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHAR SPARC]: Update for irqreturn_t.
parent
58ebf8d8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
drivers/sbus/char/aurora.c
drivers/sbus/char/aurora.c
+6
-4
drivers/sbus/char/bbc_i2c.c
drivers/sbus/char/bbc_i2c.c
+3
-1
drivers/sbus/char/cpwatchdog.c
drivers/sbus/char/cpwatchdog.c
+3
-3
drivers/sbus/char/uctrl.c
drivers/sbus/char/uctrl.c
+2
-1
No files found.
drivers/sbus/char/aurora.c
View file @
100c9a0b
...
@@ -265,7 +265,7 @@ for(i=0;i<TYPE_1_IRQS;i++)
...
@@ -265,7 +265,7 @@ for(i=0;i<TYPE_1_IRQS;i++)
return
0
;
return
0
;
}
}
static
void
aurora_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
static
irqreturn_t
aurora_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
/* Main probing routine, also sets irq. */
/* Main probing routine, also sets irq. */
static
int
aurora_probe
(
void
)
static
int
aurora_probe
(
void
)
...
@@ -701,7 +701,7 @@ static void aurora_check_modem(struct Aurora_board const * bp, int chip)
...
@@ -701,7 +701,7 @@ static void aurora_check_modem(struct Aurora_board const * bp, int chip)
}
}
/* The main interrupt processing routine */
/* The main interrupt processing routine */
static
void
aurora_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
aurora_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
unsigned
char
status
;
unsigned
char
status
;
unsigned
char
ack
,
chip
/*,chip_id*/
;
unsigned
char
ack
,
chip
/*,chip_id*/
;
...
@@ -719,7 +719,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
...
@@ -719,7 +719,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
/* old bp = IRQ_to_board[irq&0x0f];*/
/* old bp = IRQ_to_board[irq&0x0f];*/
if
(
!
bp
||
!
(
bp
->
flags
&
AURORA_BOARD_ACTIVE
))
if
(
!
bp
||
!
(
bp
->
flags
&
AURORA_BOARD_ACTIVE
))
return
;
return
IRQ_NONE
;
/* The while() below takes care of this.
/* The while() below takes care of this.
status = sbus_readb(&bp->r[0]->r[CD180_SRSR]);
status = sbus_readb(&bp->r[0]->r[CD180_SRSR]);
...
@@ -727,7 +727,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
...
@@ -727,7 +727,7 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
printk("mumu: %02x\n", status);
printk("mumu: %02x\n", status);
#endif
#endif
if (!(status&SRSR_ANYINT))
if (!(status&SRSR_ANYINT))
return; * Nobody has anything to say, so exit *
return
IRQ_NONE
; * Nobody has anything to say, so exit *
*/
*/
while
((
loop
++
<
48
)
&&
while
((
loop
++
<
48
)
&&
(
status
=
sbus_readb
(
&
bp
->
r
[
0
]
->
r
[
CD180_SRSR
])
&
SRSR_ANYINT
)){
(
status
=
sbus_readb
(
&
bp
->
r
[
0
]
->
r
[
CD180_SRSR
])
&
SRSR_ANYINT
)){
...
@@ -875,6 +875,8 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
...
@@ -875,6 +875,8 @@ static void aurora_interrupt(int irq, void * dev_id, struct pt_regs * regs)
}
}
}
}
#endif
#endif
return
IRQ_HANDLED
;
}
}
#ifdef AURORA_INT_DEBUG
#ifdef AURORA_INT_DEBUG
...
...
drivers/sbus/char/bbc_i2c.c
View file @
100c9a0b
...
@@ -331,7 +331,7 @@ EXPORT_SYMBOL(bbc_i2c_readb);
...
@@ -331,7 +331,7 @@ EXPORT_SYMBOL(bbc_i2c_readb);
EXPORT_SYMBOL
(
bbc_i2c_write_buf
);
EXPORT_SYMBOL
(
bbc_i2c_write_buf
);
EXPORT_SYMBOL
(
bbc_i2c_read_buf
);
EXPORT_SYMBOL
(
bbc_i2c_read_buf
);
static
void
bbc_i2c_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
bbc_i2c_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
bbc_i2c_bus
*
bp
=
dev_id
;
struct
bbc_i2c_bus
*
bp
=
dev_id
;
...
@@ -341,6 +341,8 @@ static void bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -341,6 +341,8 @@ static void bbc_i2c_interrupt(int irq, void *dev_id, struct pt_regs *regs)
if
(
bp
->
waiting
&&
if
(
bp
->
waiting
&&
!
(
readb
(
bp
->
i2c_control_regs
+
0x0
)
&
I2C_PCF_PIN
))
!
(
readb
(
bp
->
i2c_control_regs
+
0x0
)
&
I2C_PCF_PIN
))
wake_up
(
&
bp
->
wq
);
wake_up
(
&
bp
->
wq
);
return
IRQ_HANDLED
;
}
}
static
void
__init
reset_one_i2c
(
struct
bbc_i2c_bus
*
bp
)
static
void
__init
reset_one_i2c
(
struct
bbc_i2c_bus
*
bp
)
...
...
drivers/sbus/char/cpwatchdog.c
View file @
100c9a0b
...
@@ -201,7 +201,7 @@ MODULE_SUPPORTED_DEVICE
...
@@ -201,7 +201,7 @@ MODULE_SUPPORTED_DEVICE
#ifdef WD_DEBUG
#ifdef WD_DEBUG
static
void
wd_dumpregs
(
void
);
static
void
wd_dumpregs
(
void
);
#endif
#endif
static
void
wd_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
static
irqreturn_t
wd_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
static
void
wd_toggleintr
(
struct
wd_timer
*
pTimer
,
int
enable
);
static
void
wd_toggleintr
(
struct
wd_timer
*
pTimer
,
int
enable
);
static
void
wd_pingtimer
(
struct
wd_timer
*
pTimer
);
static
void
wd_pingtimer
(
struct
wd_timer
*
pTimer
);
static
void
wd_starttimer
(
struct
wd_timer
*
pTimer
);
static
void
wd_starttimer
(
struct
wd_timer
*
pTimer
);
...
@@ -444,7 +444,7 @@ static ssize_t wd_read(struct file * file, char * buffer,
...
@@ -444,7 +444,7 @@ static ssize_t wd_read(struct file * file, char * buffer,
#endif
/* ifdef WD_DEBUG */
#endif
/* ifdef WD_DEBUG */
}
}
static
void
wd_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
wd_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
/* Only WD0 will interrupt-- others are NMI and we won't
/* Only WD0 will interrupt-- others are NMI and we won't
* see them here....
* see them here....
...
@@ -456,7 +456,7 @@ static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -456,7 +456,7 @@ static void wd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
wd_dev
.
watchdog
[
WD0_ID
].
runstatus
|=
WD_STAT_SVCD
;
wd_dev
.
watchdog
[
WD0_ID
].
runstatus
|=
WD_STAT_SVCD
;
}
}
spin_unlock_irq
(
&
wd_dev
.
lock
);
spin_unlock_irq
(
&
wd_dev
.
lock
);
return
;
return
IRQ_HANDLED
;
}
}
static
struct
file_operations
wd_fops
=
{
static
struct
file_operations
wd_fops
=
{
...
...
drivers/sbus/char/uctrl.c
View file @
100c9a0b
...
@@ -217,10 +217,11 @@ uctrl_open(struct inode *inode, struct file *file)
...
@@ -217,10 +217,11 @@ uctrl_open(struct inode *inode, struct file *file)
return
0
;
return
0
;
}
}
void
uctrl_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
uctrl_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
uctrl_driver
*
driver
=
(
struct
uctrl_driver
*
)
dev_id
;
struct
uctrl_driver
*
driver
=
(
struct
uctrl_driver
*
)
dev_id
;
printk
(
"in uctrl_interrupt
\n
"
);
printk
(
"in uctrl_interrupt
\n
"
);
return
IRQ_HANDLED
;
}
}
static
struct
file_operations
uctrl_fops
=
{
static
struct
file_operations
uctrl_fops
=
{
...
...
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