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
e1a2f13e
Commit
e1a2f13e
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: Remove a lot of PCI core only functions from include/linux/pci.h
parent
62945310
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
53 deletions
+50
-53
drivers/pci/bus.c
drivers/pci/bus.c
+0
-1
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/hotplug/acpiphp_glue.c
+1
-0
drivers/pci/hotplug/acpiphp_pci.c
drivers/pci/hotplug/acpiphp_pci.c
+1
-0
drivers/pci/hotplug/cpci_hotplug_pci.c
drivers/pci/hotplug/cpci_hotplug_pci.c
+1
-0
drivers/pci/hotplug/cpqphp_pci.c
drivers/pci/hotplug/cpqphp_pci.c
+1
-0
drivers/pci/hotplug/ibmphp_core.c
drivers/pci/hotplug/ibmphp_core.c
+1
-0
drivers/pci/pci.h
drivers/pci/pci.h
+44
-0
drivers/pci/setup-res.c
drivers/pci/setup-res.c
+1
-1
include/linux/pci.h
include/linux/pci.h
+0
-51
No files found.
drivers/pci/bus.c
View file @
e1a2f13e
...
...
@@ -129,6 +129,5 @@ void pci_enable_bridges(struct pci_bus *bus)
}
}
EXPORT_SYMBOL
(
pci_bus_alloc_resource
);
EXPORT_SYMBOL
(
pci_bus_add_devices
);
EXPORT_SYMBOL
(
pci_enable_bridges
);
drivers/pci/hotplug/acpiphp_glue.c
View file @
e1a2f13e
...
...
@@ -34,6 +34,7 @@
#include <linux/init.h>
#include <asm/semaphore.h>
#include "../pci.h"
#include "pci_hotplug.h"
#include "acpiphp.h"
...
...
drivers/pci/hotplug/acpiphp_pci.c
View file @
e1a2f13e
...
...
@@ -35,6 +35,7 @@
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include "../pci.h"
#include "pci_hotplug.h"
#include "acpiphp.h"
...
...
drivers/pci/hotplug/cpci_hotplug_pci.c
View file @
e1a2f13e
...
...
@@ -28,6 +28,7 @@
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/proc_fs.h>
#include "../pci.h"
#include "pci_hotplug.h"
#include "cpci_hotplug.h"
...
...
drivers/pci/hotplug/cpqphp_pci.c
View file @
e1a2f13e
...
...
@@ -34,6 +34,7 @@
#include <linux/workqueue.h>
#include <linux/proc_fs.h>
#include <linux/pci.h>
#include "../pci.h"
#include "cpqphp.h"
#include "cpqphp_nvram.h"
#include "../../../arch/i386/pci/pci.h"
/* horrible hack showing how processor dependent we are... */
...
...
drivers/pci/hotplug/ibmphp_core.c
View file @
e1a2f13e
...
...
@@ -35,6 +35,7 @@
#include <linux/delay.h>
#include <linux/wait.h>
#include <linux/smp_lock.h>
#include "../pci.h"
#include "../../../arch/i386/pci/pci.h"
/* for struct irq_routing_table */
#include "ibmphp.h"
...
...
drivers/pci/pci.h
View file @
e1a2f13e
...
...
@@ -3,3 +3,47 @@
extern
int
pci_hotplug
(
struct
device
*
dev
,
char
**
envp
,
int
num_envp
,
char
*
buffer
,
int
buffer_size
);
extern
void
pci_create_sysfs_dev_files
(
struct
pci_dev
*
pdev
);
extern
int
pci_bus_alloc_resource
(
struct
pci_bus
*
bus
,
struct
resource
*
res
,
unsigned
long
size
,
unsigned
long
align
,
unsigned
long
min
,
unsigned
int
type_mask
,
void
(
*
alignf
)(
void
*
,
struct
resource
*
,
unsigned
long
,
unsigned
long
),
void
*
alignf_data
);
extern
int
pci_proc_attach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_detach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_attach_bus
(
struct
pci_bus
*
bus
);
extern
int
pci_proc_detach_bus
(
struct
pci_bus
*
bus
);
/* Functions for PCI Hotplug drivers to use */
extern
struct
pci_bus
*
pci_add_new_bus
(
struct
pci_bus
*
parent
,
struct
pci_dev
*
dev
,
int
busnr
);
extern
unsigned
int
pci_do_scan_bus
(
struct
pci_bus
*
bus
);
extern
void
pci_remove_bus_device
(
struct
pci_dev
*
dev
);
extern
int
pci_remove_device_safe
(
struct
pci_dev
*
dev
);
struct
pci_dev_wrapped
{
struct
pci_dev
*
dev
;
void
*
data
;
};
struct
pci_bus_wrapped
{
struct
pci_bus
*
bus
;
void
*
data
;
};
struct
pci_visit
{
int
(
*
pre_visit_pci_bus
)
(
struct
pci_bus_wrapped
*
,
struct
pci_dev_wrapped
*
);
int
(
*
post_visit_pci_bus
)
(
struct
pci_bus_wrapped
*
,
struct
pci_dev_wrapped
*
);
int
(
*
pre_visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
int
(
*
visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
int
(
*
post_visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
};
extern
int
pci_visit_dev
(
struct
pci_visit
*
fn
,
struct
pci_dev_wrapped
*
wrapped_dev
,
struct
pci_bus_wrapped
*
wrapped_parent
);
drivers/pci/setup-res.c
View file @
e1a2f13e
...
...
@@ -23,7 +23,7 @@
#include <linux/ioport.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include "pci.h"
#define DEBUG_CONFIG 0
#if DEBUG_CONFIG
...
...
include/linux/pci.h
View file @
e1a2f13e
...
...
@@ -548,10 +548,6 @@ static inline struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *s
}
int
pci_scan_slot
(
struct
pci_bus
*
bus
,
int
devfn
);
void
pci_bus_add_devices
(
struct
pci_bus
*
bus
);
int
pci_proc_attach_device
(
struct
pci_dev
*
dev
);
int
pci_proc_detach_device
(
struct
pci_dev
*
dev
);
int
pci_proc_attach_bus
(
struct
pci_bus
*
bus
);
int
pci_proc_detach_bus
(
struct
pci_bus
*
bus
);
void
pci_name_device
(
struct
pci_dev
*
dev
);
char
*
pci_class_name
(
u32
class
);
void
pci_read_bridge_bases
(
struct
pci_bus
*
child
);
...
...
@@ -640,24 +636,14 @@ int pci_request_region(struct pci_dev *, int, char *);
void
pci_release_region
(
struct
pci_dev
*
,
int
);
/* drivers/pci/bus.c */
int
pci_bus_alloc_resource
(
struct
pci_bus
*
bus
,
struct
resource
*
res
,
unsigned
long
size
,
unsigned
long
align
,
unsigned
long
min
,
unsigned
int
type_mask
,
void
(
*
alignf
)(
void
*
,
struct
resource
*
,
unsigned
long
,
unsigned
long
),
void
*
alignf_data
);
void
pci_enable_bridges
(
struct
pci_bus
*
bus
);
/* New-style probing supporting hot-pluggable devices */
int
pci_register_driver
(
struct
pci_driver
*
);
void
pci_unregister_driver
(
struct
pci_driver
*
);
void
pci_remove_bus_device
(
struct
pci_dev
*
);
void
pci_remove_behind_bridge
(
struct
pci_dev
*
);
struct
pci_driver
*
pci_dev_driver
(
const
struct
pci_dev
*
);
const
struct
pci_device_id
*
pci_match_device
(
const
struct
pci_device_id
*
ids
,
const
struct
pci_dev
*
dev
);
unsigned
int
pci_do_scan_bus
(
struct
pci_bus
*
bus
);
struct
pci_bus
*
pci_add_new_bus
(
struct
pci_bus
*
parent
,
struct
pci_dev
*
dev
,
int
busnr
);
int
pci_scan_bridge
(
struct
pci_bus
*
bus
,
struct
pci_dev
*
dev
,
int
max
,
int
pass
);
/* kmem_cache style wrapper around pci_alloc_consistent() */
...
...
@@ -672,42 +658,6 @@ void pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t addr);
extern
struct
pci_dev
*
isa_bridge
;
#endif
/* Some worker functions that PCI Hotplug drivers find useful */
struct
pci_dev_wrapped
{
struct
pci_dev
*
dev
;
void
*
data
;
};
struct
pci_bus_wrapped
{
struct
pci_bus
*
bus
;
void
*
data
;
};
struct
pci_visit
{
int
(
*
pre_visit_pci_bus
)
(
struct
pci_bus_wrapped
*
,
struct
pci_dev_wrapped
*
);
int
(
*
post_visit_pci_bus
)
(
struct
pci_bus_wrapped
*
,
struct
pci_dev_wrapped
*
);
int
(
*
pre_visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
int
(
*
visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
int
(
*
post_visit_pci_dev
)
(
struct
pci_dev_wrapped
*
,
struct
pci_bus_wrapped
*
);
};
extern
int
pci_visit_dev
(
struct
pci_visit
*
fn
,
struct
pci_dev_wrapped
*
wrapped_dev
,
struct
pci_bus_wrapped
*
wrapped_parent
);
extern
int
pci_remove_device_safe
(
struct
pci_dev
*
dev
);
static
inline
void
pci_dynids_set_use_driver_data
(
struct
pci_driver
*
pdrv
,
int
val
)
{
pdrv
->
dynids
.
use_driver_data
=
val
;
}
#endif
/* CONFIG_PCI */
/* Include architecture-dependent settings and functions */
...
...
@@ -756,7 +706,6 @@ static inline void pci_unregister_driver(struct pci_driver *drv) { }
static
inline
int
scsi_to_pci_dma_dir
(
unsigned
char
scsi_dir
)
{
return
scsi_dir
;
}
static
inline
int
pci_find_capability
(
struct
pci_dev
*
dev
,
int
cap
)
{
return
0
;
}
static
inline
const
struct
pci_device_id
*
pci_match_device
(
const
struct
pci_device_id
*
ids
,
const
struct
pci_dev
*
dev
)
{
return
NULL
;
}
static
inline
void
pci_dynids_set_use_driver_data
(
struct
pci_driver
*
pdrv
,
int
val
)
{
}
/* Power management related routines */
static
inline
int
pci_save_state
(
struct
pci_dev
*
dev
,
u32
*
buffer
)
{
return
0
;
}
...
...
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