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
afa223c5
Commit
afa223c5
authored
Mar 10, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up couple of bugs in Integrator PCI code.
parent
1534bc17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
arch/arm/mach-integrator/pci.c
arch/arm/mach-integrator/pci.c
+0
-1
arch/arm/mach-integrator/pci_v3.c
arch/arm/mach-integrator/pci_v3.c
+4
-3
include/asm-arm/mach/pci.h
include/asm-arm/mach/pci.h
+0
-6
No files found.
arch/arm/mach-integrator/pci.c
View file @
afa223c5
...
@@ -113,7 +113,6 @@ static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
...
@@ -113,7 +113,6 @@ static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
extern
void
pci_v3_init
(
void
*
);
extern
void
pci_v3_init
(
void
*
);
struct
hw_pci
integrator_pci
__initdata
=
{
struct
hw_pci
integrator_pci
__initdata
=
{
mem_offset:
0x40000000
,
swizzle:
integrator_swizzle
,
swizzle:
integrator_swizzle
,
map_irq:
integrator_map_irq
,
map_irq:
integrator_map_irq
,
setup:
pci_v3_setup
,
setup:
pci_v3_setup
,
...
...
arch/arm/mach-integrator/pci_v3.c
View file @
afa223c5
...
@@ -435,7 +435,7 @@ static int __init pci_v3_setup_resources(struct resource **resource)
...
@@ -435,7 +435,7 @@ static int __init pci_v3_setup_resources(struct resource **resource)
resource
[
1
]
=
&
non_mem
;
resource
[
1
]
=
&
non_mem
;
resource
[
2
]
=
&
pre_mem
;
resource
[
2
]
=
&
pre_mem
;
return
0
;
return
1
;
}
}
/*
/*
...
@@ -529,8 +529,10 @@ int __init pci_v3_setup(int nr, struct pci_sys_data *sys)
...
@@ -529,8 +529,10 @@ int __init pci_v3_setup(int nr, struct pci_sys_data *sys)
{
{
int
ret
=
0
;
int
ret
=
0
;
if
(
nr
==
0
)
if
(
nr
==
0
)
{
sys
->
mem_offset
=
0x40000000
;
ret
=
pci_v3_setup_resources
(
sys
->
resource
);
ret
=
pci_v3_setup_resources
(
sys
->
resource
);
}
return
ret
;
return
ret
;
}
}
...
@@ -634,7 +636,6 @@ void __init pci_v3_preinit(void)
...
@@ -634,7 +636,6 @@ void __init pci_v3_preinit(void)
void
__init
pci_v3_postinit
(
void
)
void
__init
pci_v3_postinit
(
void
)
{
{
unsigned
int
pci_cmd
;
unsigned
int
pci_cmd
;
int
ret
;
pci_cmd
=
PCI_COMMAND_MEMORY
|
pci_cmd
=
PCI_COMMAND_MEMORY
|
PCI_COMMAND_MASTER
|
PCI_COMMAND_INVALIDATE
;
PCI_COMMAND_MASTER
|
PCI_COMMAND_INVALIDATE
;
...
...
include/asm-arm/mach/pci.h
View file @
afa223c5
...
@@ -19,12 +19,6 @@ struct hw_pci {
...
@@ -19,12 +19,6 @@ struct hw_pci {
/* Setup bus resources */
/* Setup bus resources */
void
(
*
setup_resources
)(
struct
resource
**
);
void
(
*
setup_resources
)(
struct
resource
**
);
/*
* This is the offset of PCI memory base registers
* to physical memory.
*/
unsigned
long
mem_offset
;
/* IRQ swizzle */
/* IRQ swizzle */
u8
(
*
swizzle
)(
struct
pci_dev
*
dev
,
u8
*
pin
);
u8
(
*
swizzle
)(
struct
pci_dev
*
dev
,
u8
*
pin
);
...
...
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