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
ff97c0a4
Commit
ff97c0a4
authored
Jul 15, 2003
by
David S. Miller
Committed by
David S. Miller
Jul 15, 2003
Browse files
Options
Browse Files
Download
Plain Diff
Merge cheetah:src/BK/sparc-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5
parents
892e6ce5
b07700d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+10
-15
No files found.
arch/sparc64/kernel/pci.c
View file @
ff97c0a4
...
@@ -804,25 +804,20 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
...
@@ -804,25 +804,20 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
/* Return the domain nuber for this pci bus */
/* Return the domain nuber for this pci bus */
int
pci_domain_nr
(
struct
pci_bus
*
bus
)
int
pci_domain_nr
(
struct
pci_bus
*
p
bus
)
{
{
struct
pci
dev_cookie
*
cookie
=
bus
->
sysdata
;
struct
pci
_pbm_info
*
pbm
=
p
bus
->
sysdata
;
int
ret
;
int
ret
;
if
(
cookie
!=
NULL
)
{
if
(
pbm
==
NULL
||
pbm
->
parent
==
NULL
)
{
struct
pci_pbm_info
*
pbm
=
cookie
->
pbm
;
if
(
pbm
==
NULL
||
pbm
->
parent
==
NULL
)
{
ret
=
-
ENXIO
;
}
else
{
struct
pci_controller_info
*
p
=
pbm
->
parent
;
ret
=
p
->
index
;
if
(
p
->
pbms_same_domain
==
0
)
ret
=
((
ret
<<
1
)
+
((
pbm
==
&
pbm
->
parent
->
pbm_B
)
?
1
:
0
));
}
}
else
{
ret
=
-
ENXIO
;
ret
=
-
ENXIO
;
}
else
{
struct
pci_controller_info
*
p
=
pbm
->
parent
;
ret
=
p
->
index
;
if
(
p
->
pbms_same_domain
==
0
)
ret
=
((
ret
<<
1
)
+
((
pbm
==
&
pbm
->
parent
->
pbm_B
)
?
1
:
0
));
}
}
return
ret
;
return
ret
;
...
...
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