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
7e6eed16
Commit
7e6eed16
authored
Nov 19, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: removed pcibios_read_config_* and pcibios_write_config_* functions.
parent
44a61fa4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
56 deletions
+2
-56
drivers/pci/Makefile
drivers/pci/Makefile
+2
-2
drivers/pci/compat.c
drivers/pci/compat.c
+0
-37
include/linux/pci.h
include/linux/pci.h
+0
-17
No files found.
drivers/pci/Makefile
View file @
7e6eed16
...
...
@@ -3,10 +3,10 @@
#
export-objs
:=
access.o hotplug.o pci-driver.o pci.o pool.o
\
probe.o proc.o search.o
compat.o
setup-bus.o
probe.o proc.o search.o setup-bus.o
obj-y
+=
access.o probe.o pci.o pool.o quirks.o
\
compat.o
names.o pci-driver.o search.o hotplug.o
names.o pci-driver.o search.o hotplug.o
obj-$(CONFIG_PM)
+=
power.o
obj-$(CONFIG_PROC_FS)
+=
proc.o
...
...
drivers/pci/compat.c
deleted
100644 → 0
View file @
44a61fa4
/*
* $Id: compat.c,v 1.1 1998/02/16 10:35:50 mj Exp $
*
* PCI Bus Services -- Function For Backward Compatibility
*
* Copyright 1998--2000 Martin Mares <mj@ucw.cz>
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
/* Obsolete functions, these will be going away... */
#define PCI_OP(rw,size,type) \
int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn, \
unsigned char where, unsigned type val) \
{ \
struct pci_dev *dev = pci_find_slot(bus, dev_fn); \
if (!dev) return PCIBIOS_DEVICE_NOT_FOUND; \
return pci_##rw##_config_##size(dev, where, val); \
}
PCI_OP
(
read
,
byte
,
char
*
)
PCI_OP
(
read
,
word
,
short
*
)
PCI_OP
(
read
,
dword
,
int
*
)
PCI_OP
(
write
,
byte
,
char
)
PCI_OP
(
write
,
word
,
short
)
PCI_OP
(
write
,
dword
,
int
)
EXPORT_SYMBOL
(
pcibios_read_config_byte
);
EXPORT_SYMBOL
(
pcibios_read_config_word
);
EXPORT_SYMBOL
(
pcibios_read_config_dword
);
EXPORT_SYMBOL
(
pcibios_write_config_byte
);
EXPORT_SYMBOL
(
pcibios_write_config_word
);
EXPORT_SYMBOL
(
pcibios_write_config_dword
);
include/linux/pci.h
View file @
7e6eed16
...
...
@@ -517,21 +517,6 @@ void pcibios_update_resource(struct pci_dev *, struct resource *,
void
pcibios_update_irq
(
struct
pci_dev
*
,
int
irq
);
void
pcibios_fixup_pbus_ranges
(
struct
pci_bus
*
,
struct
pbus_set_ranges_data
*
);
/* Backward compatibility, don't use in new code! */
int
pcibios_read_config_byte
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
char
*
val
);
int
pcibios_read_config_word
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
short
*
val
);
int
pcibios_read_config_dword
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
int
*
val
);
int
pcibios_write_config_byte
(
unsigned
char
bus
,
unsigned
char
dev_fn
,
unsigned
char
where
,
unsigned
char
val
);
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
);
/* Generic PCI functions used internally */
int
pci_bus_exists
(
const
struct
list_head
*
list
,
int
nr
);
...
...
@@ -668,8 +653,6 @@ extern struct pci_dev *isa_bridge;
static
inline
int
pci_present
(
void
)
{
return
0
;
}
#define _PCI_NOP(o,s,t) \
static inline int pcibios_##o##_config_##s (u8 bus, u8 dfn, u8 where, t val) \
{ return PCIBIOS_FUNC_NOT_SUPPORTED; } \
static inline int pci_##o##_config_##s (struct pci_dev *dev, int where, t val) \
{ return PCIBIOS_FUNC_NOT_SUPPORTED; }
#define _PCI_NOP_ALL(o,x) _PCI_NOP(o,byte,u8 x) \
...
...
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