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
7998b3bd
Commit
7998b3bd
authored
Oct 14, 2010
by
Kyle McMartin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: convert gsc and dino pci interrupts to flow handlers
Signed-off-by:
Kyle McMartin
<
kyle@redhat.com
>
parent
14ff626a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
31 deletions
+13
-31
drivers/parisc/dino.c
drivers/parisc/dino.c
+6
-15
drivers/parisc/gsc.c
drivers/parisc/gsc.c
+7
-16
No files found.
drivers/parisc/dino.c
View file @
7998b3bd
...
...
@@ -296,7 +296,7 @@ static struct pci_port_ops dino_port_ops = {
.
outl
=
dino_out32
};
static
void
dino_
disable
_irq
(
unsigned
int
irq
)
static
void
dino_
mask
_irq
(
unsigned
int
irq
)
{
struct
dino_device
*
dino_dev
=
get_irq_chip_data
(
irq
);
int
local_irq
=
gsc_find_local_irq
(
irq
,
dino_dev
->
global_irq
,
DINO_LOCAL_IRQS
);
...
...
@@ -308,7 +308,7 @@ static void dino_disable_irq(unsigned int irq)
__raw_writel
(
dino_dev
->
imr
,
dino_dev
->
hba
.
base_addr
+
DINO_IMR
);
}
static
void
dino_
enable
_irq
(
unsigned
int
irq
)
static
void
dino_
unmask
_irq
(
unsigned
int
irq
)
{
struct
dino_device
*
dino_dev
=
get_irq_chip_data
(
irq
);
int
local_irq
=
gsc_find_local_irq
(
irq
,
dino_dev
->
global_irq
,
DINO_LOCAL_IRQS
);
...
...
@@ -345,20 +345,11 @@ static void dino_enable_irq(unsigned int irq)
}
}
static
unsigned
int
dino_startup_irq
(
unsigned
int
irq
)
{
dino_enable_irq
(
irq
);
return
0
;
}
static
struct
irq_chip
dino_interrupt_type
=
{
.
name
=
"GSC-PCI"
,
.
startup
=
dino_startup_irq
,
.
shutdown
=
dino_disable_irq
,
.
enable
=
dino_enable_irq
,
.
disable
=
dino_disable_irq
,
.
ack
=
no_ack_irq
,
.
end
=
no_end_irq
,
.
name
=
"GSC-PCI"
,
.
unmask
=
dino_unmask_irq
,
.
mask
=
dino_mask_irq
,
.
ack
=
no_ack_irq
,
};
...
...
drivers/parisc/gsc.c
View file @
7998b3bd
...
...
@@ -105,7 +105,7 @@ int gsc_find_local_irq(unsigned int irq, int *global_irqs, int limit)
return
NO_IRQ
;
}
static
void
gsc_asic_
disable
_irq
(
unsigned
int
irq
)
static
void
gsc_asic_
mask
_irq
(
unsigned
int
irq
)
{
struct
gsc_asic
*
irq_dev
=
get_irq_chip_data
(
irq
);
int
local_irq
=
gsc_find_local_irq
(
irq
,
irq_dev
->
global_irq
,
32
);
...
...
@@ -120,7 +120,7 @@ static void gsc_asic_disable_irq(unsigned int irq)
gsc_writel
(
imr
,
irq_dev
->
hpa
+
OFFSET_IMR
);
}
static
void
gsc_asic_
enable
_irq
(
unsigned
int
irq
)
static
void
gsc_asic_
unmask
_irq
(
unsigned
int
irq
)
{
struct
gsc_asic
*
irq_dev
=
get_irq_chip_data
(
irq
);
int
local_irq
=
gsc_find_local_irq
(
irq
,
irq_dev
->
global_irq
,
32
);
...
...
@@ -139,20 +139,11 @@ static void gsc_asic_enable_irq(unsigned int irq)
*/
}
static
unsigned
int
gsc_asic_startup_irq
(
unsigned
int
irq
)
{
gsc_asic_enable_irq
(
irq
);
return
0
;
}
static
struct
irq_chip
gsc_asic_interrupt_type
=
{
.
name
=
"GSC-ASIC"
,
.
startup
=
gsc_asic_startup_irq
,
.
shutdown
=
gsc_asic_disable_irq
,
.
enable
=
gsc_asic_enable_irq
,
.
disable
=
gsc_asic_disable_irq
,
.
ack
=
no_ack_irq
,
.
end
=
no_end_irq
,
.
name
=
"GSC-ASIC"
,
.
unmask
=
gsc_asic_unmask_irq
,
.
mask
=
gsc_asic_mask_irq
,
.
ack
=
no_ack_irq
,
};
int
gsc_assign_irq
(
struct
irq_chip
*
type
,
void
*
data
)
...
...
@@ -162,7 +153,7 @@ int gsc_assign_irq(struct irq_chip *type, void *data)
if
(
irq
>
GSC_IRQ_MAX
)
return
NO_IRQ
;
set_irq_chip_and_handler
(
irq
,
type
,
parisc_do_IRQ
);
set_irq_chip_and_handler
(
irq
,
type
,
handle_level_irq
);
set_irq_chip_data
(
irq
,
data
);
return
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