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
bba0c8d1
Commit
bba0c8d1
authored
Nov 17, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: PCI device name changes.
parent
5c72e210
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+1
-1
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+6
-6
No files found.
arch/sparc64/kernel/pci.c
View file @
bba0c8d1
...
@@ -461,7 +461,7 @@ int pci_assign_resource(struct pci_dev *pdev, int resource)
...
@@ -461,7 +461,7 @@ int pci_assign_resource(struct pci_dev *pdev, int resource)
if
(
err
<
0
)
{
if
(
err
<
0
)
{
printk
(
"PCI: Failed to allocate resource %d for %s
\n
"
,
printk
(
"PCI: Failed to allocate resource %d for %s
\n
"
,
resource
,
pdev
->
name
);
resource
,
pdev
->
dev
.
name
);
}
else
{
}
else
{
/* Update PCI config space. */
/* Update PCI config space. */
pbm
->
parent
->
base_address_update
(
pdev
,
resource
);
pbm
->
parent
->
base_address_update
(
pdev
,
resource
);
...
...
arch/sparc64/kernel/pci_common.c
View file @
bba0c8d1
...
@@ -404,7 +404,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
...
@@ -404,7 +404,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
if
((
res
->
start
>>
32
)
!=
0UL
)
{
if
((
res
->
start
>>
32
)
!=
0UL
)
{
printk
(
KERN_ERR
"PCI: OBP assigns out of range MEM address "
printk
(
KERN_ERR
"PCI: OBP assigns out of range MEM address "
"%016lx for region %ld on device %s
\n
"
,
"%016lx for region %ld on device %s
\n
"
,
res
->
start
,
(
res
-
&
pdev
->
resource
[
0
]),
pdev
->
name
);
res
->
start
,
(
res
-
&
pdev
->
resource
[
0
]),
pdev
->
dev
.
name
);
continue
;
continue
;
}
}
}
}
...
@@ -426,7 +426,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
...
@@ -426,7 +426,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
"[%016lx:%016lx] of device %s
\n
"
,
"[%016lx:%016lx] of device %s
\n
"
,
(
res
-
&
pdev
->
resource
[
0
]),
(
res
-
&
pdev
->
resource
[
0
]),
res
->
start
,
res
->
end
,
res
->
start
,
res
->
end
,
pdev
->
name
);
pdev
->
dev
.
name
);
}
}
}
}
}
}
...
@@ -503,7 +503,7 @@ static void __init pdev_assign_unassigned(struct pci_pbm_info *pbm,
...
@@ -503,7 +503,7 @@ static void __init pdev_assign_unassigned(struct pci_pbm_info *pbm,
if
(
allocate_resource
(
root
,
res
,
size
+
1
,
min
,
max
,
align
,
NULL
,
NULL
)
<
0
)
{
if
(
allocate_resource
(
root
,
res
,
size
+
1
,
min
,
max
,
align
,
NULL
,
NULL
)
<
0
)
{
/* uh oh */
/* uh oh */
prom_printf
(
"PCI: Failed to allocate resource %d for %s
\n
"
,
prom_printf
(
"PCI: Failed to allocate resource %d for %s
\n
"
,
i
,
pdev
->
name
);
i
,
pdev
->
dev
.
name
);
prom_halt
();
prom_halt
();
}
}
...
@@ -1005,7 +1005,7 @@ void pci_scan_for_target_abort(struct pci_controller_info *p,
...
@@ -1005,7 +1005,7 @@ void pci_scan_for_target_abort(struct pci_controller_info *p,
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
printk
(
"PCI%d(PBM%c): Device [%s] saw Target Abort [%016x]
\n
"
,
printk
(
"PCI%d(PBM%c): Device [%s] saw Target Abort [%016x]
\n
"
,
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
pdev
->
name
,
status
);
pdev
->
dev
.
name
,
status
);
}
}
}
}
...
@@ -1031,7 +1031,7 @@ void pci_scan_for_master_abort(struct pci_controller_info *p,
...
@@ -1031,7 +1031,7 @@ void pci_scan_for_master_abort(struct pci_controller_info *p,
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
printk
(
"PCI%d(PBM%c): Device [%s] received Master Abort [%016x]
\n
"
,
printk
(
"PCI%d(PBM%c): Device [%s] received Master Abort [%016x]
\n
"
,
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
pdev
->
name
,
status
);
pdev
->
dev
.
name
,
status
);
}
}
}
}
...
@@ -1058,7 +1058,7 @@ void pci_scan_for_parity_error(struct pci_controller_info *p,
...
@@ -1058,7 +1058,7 @@ void pci_scan_for_parity_error(struct pci_controller_info *p,
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
pci_write_config_word
(
pdev
,
PCI_STATUS
,
error_bits
);
printk
(
"PCI%d(PBM%c): Device [%s] saw Parity Error [%016x]
\n
"
,
printk
(
"PCI%d(PBM%c): Device [%s] saw Parity Error [%016x]
\n
"
,
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
p
->
index
,
((
pbm
==
&
p
->
pbm_A
)
?
'A'
:
'B'
),
pdev
->
name
,
status
);
pdev
->
dev
.
name
,
status
);
}
}
}
}
...
...
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