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
2931f4bd
Commit
2931f4bd
authored
Oct 03, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: remove pciconfig_iobase, its broken when IO resources are > 4GB
parent
709eb0f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
32 deletions
+2
-32
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+2
-2
arch/ppc64/kernel/pci.c
arch/ppc64/kernel/pci.c
+0
-30
No files found.
arch/ppc64/kernel/misc.S
View file @
2931f4bd
...
...
@@ -705,7 +705,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_fstat64
.
llong
.
sys32_pciconfig_read
.
llong
.
sys32_pciconfig_write
.
llong
.
sys_ni_syscall
/*
200
-
reserved
for
sys_
pciconfig_iobase
*/
.
llong
.
sys_ni_syscall
/*
200
-
old
pciconfig_iobase
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
MacOnLinux
*/
.
llong
.
sys_getdents64
.
llong
.
sys_pivot_root
...
...
@@ -948,7 +948,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_ni_syscall
/*
32
bit
only
fstat64
*/
.
llong
.
sys_ni_syscall
/*
32
bit
only
pciconfig_read
*/
.
llong
.
sys_ni_syscall
/*
32
bit
only
pciconfig_write
*/
.
llong
.
sys_ni_syscall
/*
200
-
reserved
-
sys_
pciconfig_iobase
*/
.
llong
.
sys_ni_syscall
/*
200
-
old
pciconfig_iobase
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
MacOnLinux
*/
.
llong
.
sys_getdents64
.
llong
.
sys_pivot_root
...
...
arch/ppc64/kernel/pci.c
View file @
2931f4bd
...
...
@@ -729,36 +729,6 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
return
ret
;
}
/* Provide information on locations of various I/O regions in physical
* memory. Do this on a per-card basis so that we choose the right
* root bridge.
* Note that the returned IO or memory base is a physical address
*/
long
sys_pciconfig_iobase
(
long
which
,
unsigned
long
bus
,
unsigned
long
devfn
)
{
struct
pci_controller
*
hose
=
pci_bus_to_hose
(
bus
);
long
result
=
-
EOPNOTSUPP
;
if
(
!
hose
)
return
-
ENODEV
;
switch
(
which
)
{
case
IOBASE_BRIDGE_NUMBER
:
return
(
long
)
hose
->
first_busno
;
case
IOBASE_MEMORY
:
return
(
long
)
hose
->
pci_mem_offset
;
case
IOBASE_IO
:
return
(
long
)
hose
->
io_base_phys
;
case
IOBASE_ISA_IO
:
return
(
long
)
isa_io_base
;
case
IOBASE_ISA_MEM
:
return
(
long
)
isa_mem_base
;
}
return
result
;
}
/************************************************************************/
/* Formats the device information and location for service. */
/* - Pass in pci_dev* pointer to the device. */
...
...
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