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
9f2db9bb
Commit
9f2db9bb
authored
Mar 28, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Implement pcibios_bus_to_resource.
parent
7533a2c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+17
-0
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+4
-0
No files found.
arch/sparc64/kernel/pci.c
View file @
9f2db9bb
...
...
@@ -553,6 +553,23 @@ void pcibios_resource_to_bus(struct pci_dev *pdev, struct pci_bus_region *region
region
->
end
=
res
->
end
-
zero_res
.
start
;
}
void
pcibios_bus_to_resource
(
struct
pci_dev
*
pdev
,
struct
resource
*
res
,
struct
pci_bus_region
*
region
)
{
struct
pci_pbm_info
*
pbm
=
pci_bus2pbm
[
pdev
->
bus
->
number
];
struct
resource
*
root
;
res
->
start
=
region
->
start
;
res
->
end
=
region
->
end
;
if
(
res
->
flags
&
IORESOURCE_IO
)
root
=
&
pbm
->
io_space
;
else
root
=
&
pbm
->
mem_space
;
pbm
->
parent
->
resource_adjust
(
pdev
,
res
,
root
);
}
char
*
__init
pcibios_setup
(
char
*
str
)
{
if
(
!
strcmp
(
str
,
"onboardfirst"
))
{
...
...
include/asm-sparc64/pci.h
View file @
9f2db9bb
...
...
@@ -209,6 +209,10 @@ extern void
pcibios_resource_to_bus
(
struct
pci_dev
*
dev
,
struct
pci_bus_region
*
region
,
struct
resource
*
res
);
extern
void
pcibios_bus_to_resource
(
struct
pci_dev
*
dev
,
struct
resource
*
res
,
struct
pci_bus_region
*
region
);
#endif
/* __KERNEL__ */
#endif
/* __SPARC64_PCI_H */
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