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
b8d2934f
Commit
b8d2934f
authored
Sep 17, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: extra argument for pcibios_enable_resources/device
parent
f2a5155d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
arch/ppc/kernel/pci.c
arch/ppc/kernel/pci.c
+7
-2
No files found.
arch/ppc/kernel/pci.c
View file @
b8d2934f
...
@@ -638,7 +638,7 @@ pcibios_assign_resources(void)
...
@@ -638,7 +638,7 @@ pcibios_assign_resources(void)
int
int
pcibios_enable_resources
(
struct
pci_dev
*
dev
)
pcibios_enable_resources
(
struct
pci_dev
*
dev
,
int
mask
)
{
{
u16
cmd
,
old_cmd
;
u16
cmd
,
old_cmd
;
int
idx
;
int
idx
;
...
@@ -647,6 +647,10 @@ pcibios_enable_resources(struct pci_dev *dev)
...
@@ -647,6 +647,10 @@ pcibios_enable_resources(struct pci_dev *dev)
pci_read_config_word
(
dev
,
PCI_COMMAND
,
&
cmd
);
pci_read_config_word
(
dev
,
PCI_COMMAND
,
&
cmd
);
old_cmd
=
cmd
;
old_cmd
=
cmd
;
for
(
idx
=
0
;
idx
<
6
;
idx
++
)
{
for
(
idx
=
0
;
idx
<
6
;
idx
++
)
{
/* Only set up the requested stuff */
if
(
!
(
mask
&
(
1
<<
idx
)))
continue
;
r
=
&
dev
->
resource
[
idx
];
r
=
&
dev
->
resource
[
idx
];
if
(
r
->
flags
&
IORESOURCE_UNSET
)
{
if
(
r
->
flags
&
IORESOURCE_UNSET
)
{
printk
(
KERN_ERR
"PCI: Device %s not available because of resource collisions
\n
"
,
dev
->
slot_name
);
printk
(
KERN_ERR
"PCI: Device %s not available because of resource collisions
\n
"
,
dev
->
slot_name
);
...
@@ -1191,7 +1195,7 @@ pcibios_update_irq(struct pci_dev *dev, int irq)
...
@@ -1191,7 +1195,7 @@ pcibios_update_irq(struct pci_dev *dev, int irq)
/* XXX FIXME - update OF device tree node interrupt property */
/* XXX FIXME - update OF device tree node interrupt property */
}
}
int
pcibios_enable_device
(
struct
pci_dev
*
dev
)
int
pcibios_enable_device
(
struct
pci_dev
*
dev
,
int
mask
)
{
{
u16
cmd
,
old_cmd
;
u16
cmd
,
old_cmd
;
int
idx
;
int
idx
;
...
@@ -1553,6 +1557,7 @@ fake_pci_bus(struct pci_controller *hose, int busnr)
...
@@ -1553,6 +1557,7 @@ fake_pci_bus(struct pci_controller *hose, int busnr)
printk
(
KERN_ERR
"Can't find hose for PCI bus %d!
\n
"
,
busnr
);
printk
(
KERN_ERR
"Can't find hose for PCI bus %d!
\n
"
,
busnr
);
}
}
bus
.
number
=
busnr
;
bus
.
number
=
busnr
;
bus
.
sysdata
=
hose
;
bus
.
ops
=
hose
?
hose
->
ops
:
&
null_pci_ops
;
bus
.
ops
=
hose
?
hose
->
ops
:
&
null_pci_ops
;
return
&
bus
;
return
&
bus
;
}
}
...
...
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