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
c2c0b5d0
Commit
c2c0b5d0
authored
Oct 02, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: remove pcibios_find_class()
parent
f7ce058b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
drivers/pci/compat.c
drivers/pci/compat.c
+0
-17
include/linux/pci.h
include/linux/pci.h
+0
-3
No files found.
drivers/pci/compat.c
View file @
c2c0b5d0
...
...
@@ -19,22 +19,6 @@ pcibios_present(void)
return
!
list_empty
(
&
pci_devices
);
}
int
pcibios_find_class
(
unsigned
int
class
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
devfn
)
{
const
struct
pci_dev
*
dev
=
NULL
;
int
cnt
=
0
;
while
((
dev
=
pci_find_class
(
class
,
dev
)))
if
(
index
==
cnt
++
)
{
*
bus
=
dev
->
bus
->
number
;
*
devfn
=
dev
->
devfn
;
return
PCIBIOS_SUCCESSFUL
;
}
return
PCIBIOS_DEVICE_NOT_FOUND
;
}
int
pcibios_find_device
(
unsigned
short
vendor
,
unsigned
short
device
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
devfn
)
...
...
@@ -75,5 +59,4 @@ EXPORT_SYMBOL(pcibios_read_config_dword);
EXPORT_SYMBOL
(
pcibios_write_config_byte
);
EXPORT_SYMBOL
(
pcibios_write_config_word
);
EXPORT_SYMBOL
(
pcibios_write_config_dword
);
EXPORT_SYMBOL
(
pcibios_find_class
);
EXPORT_SYMBOL
(
pcibios_find_device
);
include/linux/pci.h
View file @
c2c0b5d0
...
...
@@ -533,7 +533,6 @@ int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
unsigned
char
where
,
unsigned
short
val
);
int
pcibios_write_config_dword
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
int
val
);
int
pcibios_find_class
(
unsigned
int
class_code
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
);
int
pcibios_find_device
(
unsigned
short
vendor
,
unsigned
short
dev_id
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
);
...
...
@@ -661,8 +660,6 @@ void pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t addr);
#ifndef CONFIG_PCI
static
inline
int
pcibios_present
(
void
)
{
return
0
;
}
static
inline
int
pcibios_find_class
(
unsigned
int
class_code
,
unsigned
short
index
,
unsigned
char
*
bus
,
unsigned
char
*
dev_fn
)
{
return
PCIBIOS_DEVICE_NOT_FOUND
;
}
#define _PCI_NOP(o,s,t) \
static inline int pcibios_##o##_config_##s (u8 bus, u8 dfn, u8 where, t val) \
...
...
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