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
fcafa96f
Commit
fcafa96f
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sn: Remove the pcibr_wrap... functions
From: Pat Gefre <pfg@sgi.com> Remove the pcibr_wrap... functions
parent
fac02301
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c
arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c
+0
-42
No files found.
arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c
View file @
fcafa96f
...
...
@@ -82,48 +82,6 @@ pcibr_intr_bits(pciio_info_t info,
}
/*
* Get the next wrapper pointer queued in the interrupt circular buffer.
*/
pcibr_intr_wrap_t
pcibr_wrap_get
(
pcibr_intr_cbuf_t
cbuf
)
{
pcibr_intr_wrap_t
wrap
;
if
(
cbuf
->
ib_in
==
cbuf
->
ib_out
)
panic
(
"pcibr intr circular buffer empty, cbuf=0x%p, ib_in=ib_out=%d
\n
"
,
(
void
*
)
cbuf
,
cbuf
->
ib_out
);
wrap
=
cbuf
->
ib_cbuf
[
cbuf
->
ib_out
++
];
cbuf
->
ib_out
=
cbuf
->
ib_out
%
IBUFSIZE
;
return
(
wrap
);
}
/*
* Queue a wrapper pointer in the interrupt circular buffer.
*/
void
pcibr_wrap_put
(
pcibr_intr_wrap_t
wrap
,
pcibr_intr_cbuf_t
cbuf
)
{
int
in
;
/*
* Multiple CPUs could be executing this code simultaneously
* if a handler has registered multiple interrupt lines and
* the interrupts are directed to different CPUs.
*/
spin_lock
(
&
cbuf
->
ib_lock
);
in
=
(
cbuf
->
ib_in
+
1
)
%
IBUFSIZE
;
if
(
in
==
cbuf
->
ib_out
)
panic
(
"pcibr intr circular buffer full, cbuf=0x%p, ib_in=%d
\n
"
,
(
void
*
)
cbuf
,
cbuf
->
ib_in
);
cbuf
->
ib_cbuf
[
cbuf
->
ib_in
]
=
wrap
;
cbuf
->
ib_in
=
in
;
spin_unlock
(
&
cbuf
->
ib_lock
);
return
;
}
/*
* On SN systems there is a race condition between a PIO read response
* and DMA's. In rare cases, the read response may beat the DMA, causing
...
...
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