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
b61d534d
Commit
b61d534d
authored
Aug 15, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use pci_name() in sparc64 PCI layer.
parent
6a891249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+2
-2
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+6
-6
No files found.
arch/sparc64/kernel/pci.c
View file @
b61d534d
...
@@ -438,7 +438,7 @@ int pci_assign_resource(struct pci_dev *pdev, int resource)
...
@@ -438,7 +438,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
,
p
dev
->
dev
.
name
);
resource
,
p
ci_name
(
pdev
)
);
}
else
{
}
else
{
/* Update PCI config space. */
/* Update PCI config space. */
pbm
->
parent
->
base_address_update
(
pdev
,
resource
);
pbm
->
parent
->
base_address_update
(
pdev
,
resource
);
...
@@ -465,7 +465,7 @@ void pdev_sort_resources(struct pci_dev *dev, struct resource_list *head)
...
@@ -465,7 +465,7 @@ void pdev_sort_resources(struct pci_dev *dev, struct resource_list *head)
if
(
!
r_align
)
{
if
(
!
r_align
)
{
printk
(
KERN_WARNING
"PCI: Ignore bogus resource %d "
printk
(
KERN_WARNING
"PCI: Ignore bogus resource %d "
"[%lx:%lx] of %s
\n
"
,
"[%lx:%lx] of %s
\n
"
,
i
,
r
->
start
,
r
->
end
,
dev
->
dev
.
name
);
i
,
r
->
start
,
r
->
end
,
pci_name
(
dev
)
);
continue
;
continue
;
}
}
r_align
=
(
i
<
PCI_BRIDGE_RESOURCES
)
?
r_align
+
1
:
r
->
start
;
r_align
=
(
i
<
PCI_BRIDGE_RESOURCES
)
?
r_align
+
1
:
r
->
start
;
...
...
arch/sparc64/kernel/pci_common.c
View file @
b61d534d
...
@@ -391,7 +391,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
...
@@ -391,7 +391,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
]),
p
dev
->
dev
.
name
);
res
->
start
,
(
res
-
&
pdev
->
resource
[
0
]),
p
ci_name
(
pdev
)
);
continue
;
continue
;
}
}
}
}
...
@@ -413,7 +413,7 @@ static void __init pdev_record_assignments(struct pci_pbm_info *pbm,
...
@@ -413,7 +413,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
,
p
dev
->
dev
.
name
);
p
ci_name
(
pdev
)
);
}
}
}
}
}
}
...
@@ -490,7 +490,7 @@ static void __init pdev_assign_unassigned(struct pci_pbm_info *pbm,
...
@@ -490,7 +490,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
,
p
dev
->
dev
.
name
);
i
,
p
ci_name
(
pdev
)
);
prom_halt
();
prom_halt
();
}
}
...
@@ -992,7 +992,7 @@ void pci_scan_for_target_abort(struct pci_controller_info *p,
...
@@ -992,7 +992,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'
),
p
dev
->
dev
.
name
,
status
);
p
ci_name
(
pdev
)
,
status
);
}
}
}
}
...
@@ -1018,7 +1018,7 @@ void pci_scan_for_master_abort(struct pci_controller_info *p,
...
@@ -1018,7 +1018,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'
),
p
dev
->
dev
.
name
,
status
);
p
ci_name
(
pdev
)
,
status
);
}
}
}
}
...
@@ -1045,7 +1045,7 @@ void pci_scan_for_parity_error(struct pci_controller_info *p,
...
@@ -1045,7 +1045,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'
),
p
dev
->
dev
.
name
,
status
);
p
ci_name
(
pdev
)
,
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