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
e08085c0
Commit
e08085c0
authored
May 24, 2003
by
Geert Uytterhoeven
Committed by
Linus Torvalds
May 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] M68k IRQ API updates [9/20]
M68k MVME16x: Update to the new irq API (from Roman Zippel and me) [9/20]
parent
534313a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
arch/m68k/mvme16x/16xints.c
arch/m68k/mvme16x/16xints.c
+10
-8
arch/m68k/mvme16x/config.c
arch/m68k/mvme16x/config.c
+9
-8
No files found.
arch/m68k/mvme16x/16xints.c
View file @
e08085c0
...
...
@@ -20,14 +20,14 @@
#include <asm/ptrace.h>
#include <asm/irq.h>
static
void
mvme16x_defhand
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
);
static
irqreturn_t
mvme16x_defhand
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
);
/*
* This should ideally be 4 elements only, for speed.
*/
static
struct
{
void
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
);
irqreturn_t
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
);
unsigned
long
flags
;
void
*
dev_id
;
const
char
*
devname
;
...
...
@@ -60,7 +60,7 @@ void mvme16x_init_IRQ (void)
}
int
mvme16x_request_irq
(
unsigned
int
irq
,
void
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
),
irqreturn_t
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
),
unsigned
long
flags
,
const
char
*
devname
,
void
*
dev_id
)
{
if
(
irq
<
64
||
irq
>
255
)
{
...
...
@@ -104,14 +104,15 @@ void mvme16x_free_irq(unsigned int irq, void *dev_id)
irq_tab
[
irq
-
64
].
devname
=
NULL
;
}
void
mvme16x_process_int
(
unsigned
long
vec
,
struct
pt_regs
*
fp
)
irqreturn_t
mvme16x_process_int
(
unsigned
long
vec
,
struct
pt_regs
*
fp
)
{
if
(
vec
<
64
||
vec
>
255
)
if
(
vec
<
64
||
vec
>
255
)
{
printk
(
"mvme16x_process_int: Illegal vector %ld"
,
vec
);
else
{
return
IRQ_NONE
;
}
else
{
irq_tab
[
vec
-
64
].
count
++
;
irq_tab
[
vec
-
64
].
handler
(
vec
,
irq_tab
[
vec
-
64
].
dev_id
,
fp
);
return
IRQ_HANDLED
;
}
}
...
...
@@ -129,9 +130,10 @@ int show_mvme16x_interrupts (struct seq_file *p, void *v)
}
static
void
mvme16x_defhand
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
static
irqreturn_t
mvme16x_defhand
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
{
printk
(
"Unknown interrupt 0x%02x
\n
"
,
irq
);
return
IRQ_NONE
;
}
...
...
arch/m68k/mvme16x/config.c
View file @
e08085c0
...
...
@@ -40,7 +40,7 @@ extern t_bdid mvme_bdid;
static
MK48T08ptr_t
volatile
rtc
=
(
MK48T08ptr_t
)
MVME_RTC_BASE
;
extern
void
mvme16x_process_int
(
int
level
,
struct
pt_regs
*
regs
);
extern
irqreturn_t
mvme16x_process_int
(
int
level
,
struct
pt_regs
*
regs
);
extern
void
mvme16x_init_IRQ
(
void
);
extern
void
mvme16x_free_irq
(
unsigned
int
,
void
*
);
extern
int
show_mvme16x_interrupts
(
struct
seq_file
*
,
void
*
);
...
...
@@ -48,8 +48,8 @@ extern void mvme16x_enable_irq (unsigned int);
extern
void
mvme16x_disable_irq
(
unsigned
int
);
static
void
mvme16x_get_model
(
char
*
model
);
static
int
mvme16x_get_hardware_list
(
char
*
buffer
);
extern
int
mvme16x_request_irq
(
unsigned
int
irq
,
void
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
),
unsigned
long
flags
,
const
char
*
devname
,
void
*
dev_id
);
extern
void
mvme16x_sched_init
(
void
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
));
extern
int
mvme16x_request_irq
(
unsigned
int
irq
,
irqreturn_t
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
),
unsigned
long
flags
,
const
char
*
devname
,
void
*
dev_id
);
extern
void
mvme16x_sched_init
(
irqreturn_t
(
*
handler
)(
int
,
void
*
,
struct
pt_regs
*
));
extern
unsigned
long
mvme16x_gettimeoffset
(
void
);
extern
int
mvme16x_hwclk
(
int
,
struct
rtc_time
*
);
extern
int
mvme16x_set_clock_mmss
(
unsigned
long
);
...
...
@@ -61,7 +61,7 @@ int bcd2int (unsigned char b);
/* Save tick handler routine pointer, will point to do_timer() in
* kernel/sched.c, called via mvme16x_process_int() */
static
void
(
*
tick_handler
)(
int
,
void
*
,
struct
pt_regs
*
);
static
irqreturn_t
(
*
tick_handler
)(
int
,
void
*
,
struct
pt_regs
*
);
unsigned
short
mvme16x_config
;
...
...
@@ -193,7 +193,7 @@ void __init config_mvme16x(void)
}
}
static
void
mvme16x_abort_int
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
static
irqreturn_t
mvme16x_abort_int
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
{
p_bdid
p
=
&
mvme_bdid
;
unsigned
long
*
new
=
(
unsigned
long
*
)
vectors
;
...
...
@@ -218,15 +218,16 @@ static void mvme16x_abort_int (int irq, void *dev_id, struct pt_regs *fp)
*
(
new
+
0x5e
)
=
*
(
old
+
0x5e
);
/* ABORT switch */
else
*
(
new
+
0x6e
)
=
*
(
old
+
0x6e
);
/* ABORT switch */
return
IRQ_HANDLED
;
}
static
void
mvme16x_timer_int
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
static
irqreturn_t
mvme16x_timer_int
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
fp
)
{
*
(
volatile
unsigned
char
*
)
0xfff4201b
|=
8
;
tick_handler
(
irq
,
dev_id
,
fp
);
return
tick_handler
(
irq
,
dev_id
,
fp
);
}
void
mvme16x_sched_init
(
void
(
*
timer_routine
)(
int
,
void
*
,
struct
pt_regs
*
))
void
mvme16x_sched_init
(
irqreturn_t
(
*
timer_routine
)(
int
,
void
*
,
struct
pt_regs
*
))
{
p_bdid
p
=
&
mvme_bdid
;
int
irq
;
...
...
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