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
nexedi
linux
Commits
f73717fc
Commit
f73717fc
authored
Apr 20, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL SPARC]: Update for irqreturn_t.
parent
a5e103b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
drivers/serial/sunsab.c
drivers/serial/sunsab.c
+3
-1
drivers/serial/sunsu.c
drivers/serial/sunsu.c
+6
-2
drivers/serial/sunzilog.c
drivers/serial/sunzilog.c
+3
-1
No files found.
drivers/serial/sunsab.c
View file @
f73717fc
...
...
@@ -290,7 +290,7 @@ static void check_status(struct uart_sunsab_port *up,
wake_up_interruptible
(
&
up
->
port
.
info
->
delta_msr_wait
);
}
static
void
sunsab_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
sunsab_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
uart_sunsab_port
*
up
=
dev_id
;
union
sab82532_irq_status
status
;
...
...
@@ -339,6 +339,8 @@ static void sunsab_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
spin_unlock_irqrestore
(
&
up
->
port
.
lock
,
flags
);
return
IRQ_HANDLED
;
}
/* port->lock is not held. */
...
...
drivers/serial/sunsu.c
View file @
f73717fc
...
...
@@ -458,7 +458,7 @@ static _INLINE_ void check_modem_status(struct uart_sunsu_port *up)
wake_up_interruptible
(
&
up
->
port
.
info
->
delta_msr_wait
);
}
static
void
sunsu_serial_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
sunsu_serial_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
uart_sunsu_port
*
up
=
dev_id
;
unsigned
long
flags
;
...
...
@@ -476,6 +476,8 @@ static void sunsu_serial_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
while
(
!
(
serial_in
(
up
,
UART_IIR
)
&
UART_IIR_NO_INT
));
spin_unlock_irqrestore
(
&
up
->
port
.
lock
,
flags
);
return
IRQ_HANDLED
;
}
/* Separate interrupt handling path for keyboard/mouse ports. */
...
...
@@ -548,7 +550,7 @@ static void receive_kbd_ms_chars(struct uart_sunsu_port *up, struct pt_regs *reg
}
while
(
serial_in
(
up
,
UART_LSR
)
&
UART_LSR_DR
);
}
static
void
sunsu_kbd_ms_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
sunsu_kbd_ms_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
uart_sunsu_port
*
up
=
dev_id
;
...
...
@@ -559,6 +561,8 @@ static void sunsu_kbd_ms_interrupt(int irq, void *dev_id, struct pt_regs *regs)
receive_kbd_ms_chars
(
up
,
regs
,
(
status
&
UART_LSR_BI
)
!=
0
);
}
return
IRQ_HANDLED
;
}
static
unsigned
int
sunsu_tx_empty
(
struct
uart_port
*
port
)
...
...
drivers/serial/sunzilog.c
View file @
f73717fc
...
...
@@ -539,7 +539,7 @@ static void sunzilog_transmit_chars(struct uart_sunzilog_port *up,
ZS_WSYNC
(
channel
);
}
static
void
sunzilog_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
sunzilog_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
uart_sunzilog_port
*
up
=
dev_id
;
...
...
@@ -587,6 +587,8 @@ static void sunzilog_interrupt(int irq, void *dev_id, struct pt_regs *regs)
up
=
up
->
next
;
}
return
IRQ_HANDLED
;
}
/* A convenient way to quickly get R0 status. The caller must _not_ hold the
...
...
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