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
cbdac834
Commit
cbdac834
authored
Dec 17, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: On Sabre, only access PCI controller config space specially.
parent
3296c872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
arch/sparc64/kernel/pci_sabre.c
arch/sparc64/kernel/pci_sabre.c
+10
-4
No files found.
arch/sparc64/kernel/pci_sabre.c
View file @
cbdac834
...
...
@@ -321,10 +321,7 @@ static int __sabre_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
static
int
sabre_read_pci_cfg
(
struct
pci_bus
*
bus
,
unsigned
int
devfn
,
int
where
,
int
size
,
u32
*
value
)
{
if
(
bus
->
number
)
return
__sabre_read_pci_cfg
(
bus
,
devfn
,
where
,
size
,
value
);
if
(
sabre_out_of_range
(
devfn
))
{
if
(
!
bus
->
number
&&
sabre_out_of_range
(
devfn
))
{
switch
(
size
)
{
case
1
:
*
value
=
0xff
;
...
...
@@ -339,6 +336,15 @@ static int sabre_read_pci_cfg(struct pci_bus *bus, unsigned int devfn,
return
PCIBIOS_SUCCESSFUL
;
}
if
(
bus
->
number
||
PCI_SLOT
(
devfn
))
return
__sabre_read_pci_cfg
(
bus
,
devfn
,
where
,
size
,
value
);
/* When accessing PCI config space of the PCI controller itself (bus
* 0, device slot 0, function 0) there are restrictions. Each
* register must be accessed as it's natural size. Thus, for example
* the Vendor ID must be accessed as a 16-bit quantity.
*/
switch
(
size
)
{
case
1
:
if
(
where
<
8
)
{
...
...
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