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
efaaaacf
Commit
efaaaacf
authored
Aug 16, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Corrected testing for peer PCI bus root.
From Jay Estabrook <Jay.Estabrook@compaq.com>.
parent
24b06c5c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
10 deletions
+7
-10
arch/alpha/kernel/core_marvel.c
arch/alpha/kernel/core_marvel.c
+1
-1
arch/alpha/kernel/core_mcpcia.c
arch/alpha/kernel/core_mcpcia.c
+1
-1
arch/alpha/kernel/core_titan.c
arch/alpha/kernel/core_titan.c
+1
-2
arch/alpha/kernel/core_tsunami.c
arch/alpha/kernel/core_tsunami.c
+2
-3
arch/alpha/kernel/core_wildfire.c
arch/alpha/kernel/core_wildfire.c
+1
-2
arch/alpha/kernel/sys_dp264.c
arch/alpha/kernel/sys_dp264.c
+1
-1
No files found.
arch/alpha/kernel/core_marvel.c
View file @
efaaaacf
...
...
@@ -524,7 +524,7 @@ mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where)
if
(
!
io7_port
->
enabled
)
return
addr
;
if
(
hose
->
bus
==
pbus
)
{
if
(
!
pbus
->
parent
)
{
/* No parent means peer PCI bus. */
/* Don't support idsel > 20 on primary bus. */
if
(
devfn
>=
PCI_DEVFN
(
21
,
0
))
return
addr
;
...
...
arch/alpha/kernel/core_mcpcia.c
View file @
efaaaacf
...
...
@@ -185,7 +185,7 @@ mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where,
/* Type 1 configuration cycle for *ALL* busses. */
*
type1
=
1
;
if
(
hose
->
bus
==
pbus
)
if
(
!
pbus
->
parent
)
/* No parent means peer PCI bus. */
bus
=
0
;
addr
=
(
bus
<<
16
)
|
(
devfn
<<
8
)
|
(
where
);
addr
<<=
5
;
/* swizzle for SPARSE */
...
...
arch/alpha/kernel/core_titan.c
View file @
efaaaacf
...
...
@@ -43,7 +43,6 @@ struct
* BIOS32-style PCI interface:
*/
#define DEBUG_MCHECK 0
/* 0 = minimum, 1 = debug, 2 = dump+dump */
#define DEBUG_CONFIG 0
#if DEBUG_CONFIG
...
...
@@ -123,7 +122,7 @@ mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where,
"pci_addr=0x%p, type1=0x%p)
\n
"
,
bus
,
device_fn
,
where
,
pci_addr
,
type1
));
if
(
hose
->
bus
==
pbus
)
if
(
!
pbus
->
parent
)
/* No parent means peer PCI bus. */
bus
=
0
;
*
type1
=
(
bus
!=
0
);
...
...
arch/alpha/kernel/core_tsunami.c
View file @
efaaaacf
...
...
@@ -45,7 +45,6 @@ struct
* BIOS32-style PCI interface:
*/
#define DEBUG_MCHECK 0
/* 0 = minimal, 1 = debug, 2 = debug+dump. */
#define DEBUG_CONFIG 0
#if DEBUG_CONFIG
...
...
@@ -100,8 +99,8 @@ mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where,
DBG_CFG
((
"mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x, "
"pci_addr=0x%p, type1=0x%p)
\n
"
,
bus
,
device_fn
,
where
,
pci_addr
,
type1
));
if
(
hose
->
bus
==
pbus
)
if
(
!
pbus
->
parent
)
/* No parent means peer PCI bus. */
bus
=
0
;
*
type1
=
(
bus
!=
0
);
...
...
arch/alpha/kernel/core_wildfire.c
View file @
efaaaacf
...
...
@@ -24,7 +24,6 @@
#include "proto.h"
#include "pci_impl.h"
#define DEBUG_MCHECK 0
/* 0 = minimal, 1 = debug, 2 = debug+dump. */
#define DEBUG_CONFIG 0
#define DEBUG_DUMP_REGS 0
#define DEBUG_DUMP_CONFIG 1
...
...
@@ -367,7 +366,7 @@ mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where,
"pci_addr=0x%p, type1=0x%p)
\n
"
,
bus
,
device_fn
,
where
,
pci_addr
,
type1
));
if
(
hose
->
bus
==
pbus
)
if
(
!
pbus
->
parent
)
/* No parent means peer PCI bus. */
bus
=
0
;
*
type1
=
(
bus
!=
0
);
...
...
arch/alpha/kernel/sys_dp264.c
View file @
efaaaacf
...
...
@@ -463,7 +463,7 @@ monet_swizzle(struct pci_dev *dev, u8 *pinp)
struct
pci_controller
*
hose
=
dev
->
sysdata
;
int
slot
,
pin
=
*
pinp
;
if
(
hose
->
bus
==
dev
->
bus
)
{
if
(
!
dev
->
bus
->
parent
)
{
slot
=
PCI_SLOT
(
dev
->
devfn
);
}
/* Check for the built-in bridge on hose 1. */
...
...
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