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
01bb3440
Commit
01bb3440
authored
Jul 23, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/pci_hp-2.5
parents
3b89dbbd
a36a2ed3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
85 deletions
+88
-85
drivers/hotplug/cpqphp_core.c
drivers/hotplug/cpqphp_core.c
+18
-18
drivers/hotplug/cpqphp_pci.c
drivers/hotplug/cpqphp_pci.c
+4
-4
drivers/hotplug/ibmphp_core.c
drivers/hotplug/ibmphp_core.c
+16
-16
drivers/hotplug/pci_hotplug_core.c
drivers/hotplug/pci_hotplug_core.c
+40
-37
drivers/hotplug/pci_hotplug_util.c
drivers/hotplug/pci_hotplug_util.c
+1
-1
drivers/hotplug/pcihp_skeleton.c
drivers/hotplug/pcihp_skeleton.c
+9
-9
No files found.
drivers/hotplug/cpqphp_core.c
View file @
01bb3440
...
...
@@ -81,15 +81,15 @@ static int get_latch_status (struct hotplug_slot *slot, u8 *value);
static
int
get_adapter_status
(
struct
hotplug_slot
*
slot
,
u8
*
value
);
static
struct
hotplug_slot_ops
cpqphp_hotplug_slot_ops
=
{
owner:
THIS_MODULE
,
set_attention_status:
set_attention_status
,
enable_slot:
process_SI
,
disable_slot:
process_SS
,
hardware_test:
hardware_test
,
get_power_status:
get_power_status
,
get_attention_status:
get_attention_status
,
get_latch_status:
get_latch_status
,
get_adapter_status:
get_adapter_status
,
.
owner
=
THIS_MODULE
,
.
set_attention_status
=
set_attention_status
,
.
enable_slot
=
process_SI
,
.
disable_slot
=
process_SS
,
.
hardware_test
=
hardware_test
,
.
get_power_status
=
get_power_status
,
.
get_attention_status
=
get_attention_status
,
.
get_latch_status
=
get_latch_status
,
.
get_adapter_status
=
get_adapter_status
,
};
...
...
@@ -1387,14 +1387,14 @@ static void unload_cpqphpd(void)
static
struct
pci_device_id
hpcd_pci_tbl
[]
__devinitdata
=
{
{
/* handle any PCI Hotplug controller */
class:
((
PCI_CLASS_SYSTEM_PCI_HOTPLUG
<<
8
)
|
0x00
),
class_mask:
~
0
,
.
class
=
((
PCI_CLASS_SYSTEM_PCI_HOTPLUG
<<
8
)
|
0x00
),
.
class_mask
=
~
0
,
/* no matter who makes it */
vendor:
PCI_ANY_ID
,
device:
PCI_ANY_ID
,
subvendor:
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
.
vendor
=
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* end: all zeroes */
}
};
...
...
@@ -1404,9 +1404,9 @@ MODULE_DEVICE_TABLE(pci, hpcd_pci_tbl);
static
struct
pci_driver
cpqhpc_driver
=
{
name:
"pci_hotplug"
,
id_table:
hpcd_pci_tbl
,
probe:
cpqhpc_probe
,
.
name
=
"pci_hotplug"
,
.
id_table
=
hpcd_pci_tbl
,
.
probe
=
cpqhpc_probe
,
/* remove: cpqhpc_remove_one, */
};
...
...
drivers/hotplug/cpqphp_pci.c
View file @
01bb3440
...
...
@@ -232,17 +232,17 @@ static int unconfigure_visit_pci_dev_phase1 (struct pci_dev_wrapped *wrapped_dev
static
struct
pci_visit
configure_functions
=
{
visit_pci_dev:
configure_visit_pci_dev
,
.
visit_pci_dev
=
configure_visit_pci_dev
,
};
static
struct
pci_visit
unconfigure_functions_phase1
=
{
post_visit_pci_dev:
unconfigure_visit_pci_dev_phase1
.
post_visit_pci_dev
=
unconfigure_visit_pci_dev_phase1
};
static
struct
pci_visit
unconfigure_functions_phase2
=
{
post_visit_pci_bus:
unconfigure_visit_pci_bus_phase2
,
post_visit_pci_dev:
unconfigure_visit_pci_dev_phase2
.
post_visit_pci_bus
=
unconfigure_visit_pci_bus_phase2
,
.
post_visit_pci_dev
=
unconfigure_visit_pci_dev_phase2
};
...
...
drivers/hotplug/ibmphp_core.c
View file @
01bb3440
...
...
@@ -893,12 +893,12 @@ static int ibm_unconfigure_visit_pci_dev_phase1 (struct pci_dev_wrapped *wrapped
}
static
struct
pci_visit
ibm_unconfigure_functions_phase1
=
{
post_visit_pci_dev:
ibm_unconfigure_visit_pci_dev_phase1
,
.
post_visit_pci_dev
=
ibm_unconfigure_visit_pci_dev_phase1
,
};
static
struct
pci_visit
ibm_unconfigure_functions_phase2
=
{
post_visit_pci_bus:
ibm_unconfigure_visit_pci_bus_phase2
,
post_visit_pci_dev:
ibm_unconfigure_visit_pci_dev_phase2
,
.
post_visit_pci_bus
=
ibm_unconfigure_visit_pci_bus_phase2
,
.
post_visit_pci_dev
=
ibm_unconfigure_visit_pci_dev_phase2
,
};
static
int
ibm_unconfigure_device
(
struct
pci_func
*
func
)
...
...
@@ -962,7 +962,7 @@ static int configure_visit_pci_dev (struct pci_dev_wrapped *wrapped_dev, struct
}
static
struct
pci_visit
configure_functions
=
{
visit_pci_dev:
configure_visit_pci_dev
,
.
visit_pci_dev
=
configure_visit_pci_dev
,
};
static
int
ibm_configure_device
(
struct
pci_func
*
func
)
...
...
@@ -1494,19 +1494,19 @@ int ibmphp_disable_slot (struct hotplug_slot *hotplug_slot)
}
struct
hotplug_slot_ops
ibmphp_hotplug_slot_ops
=
{
owner:
THIS_MODULE
,
set_attention_status:
set_attention_status
,
enable_slot:
enable_slot
,
disable_slot:
ibmphp_disable_slot
,
hardware_test:
NULL
,
get_power_status:
get_power_status
,
get_attention_status:
get_attention_status
,
get_latch_status:
get_latch_status
,
get_adapter_status:
get_adapter_present
,
.
owner
=
THIS_MODULE
,
.
set_attention_status
=
set_attention_status
,
.
enable_slot
=
enable_slot
,
.
disable_slot
=
ibmphp_disable_slot
,
.
hardware_test
=
NULL
,
.
get_power_status
=
get_power_status
,
.
get_attention_status
=
get_attention_status
,
.
get_latch_status
=
get_latch_status
,
.
get_adapter_status
=
get_adapter_present
,
/* get_max_bus_speed_status: get_max_bus_speed,
get_max_adapter_speed_status:
get_max_adapter_speed,
get_cur_bus_speed_status:
get_cur_bus_speed,
get_card_bus_names_status:
get_card_bus_names,
.get_max_adapter_speed_status =
get_max_adapter_speed,
.get_cur_bus_speed_status =
get_cur_bus_speed,
.get_card_bus_names_status =
get_card_bus_names,
*/
};
...
...
drivers/hotplug/pci_hotplug_core.c
View file @
01bb3440
...
...
@@ -48,7 +48,7 @@
#define MY_NAME THIS_MODULE->name
#endif
#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt
, MY_NAME, __FUNCTION__
, ## arg); } while (0)
#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt
, MY_NAME , __FUNCTION__
, ## arg); } while (0)
#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
#define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
...
...
@@ -109,6 +109,9 @@ static struct inode *pcihpfs_get_inode (struct super_block *sb, int mode, int de
case
S_IFDIR
:
inode
->
i_op
=
&
pcihpfs_dir_inode_operations
;
inode
->
i_fop
=
&
simple_dir_operations
;
/* directory inodes start off with i_nlink == 2 (for "." entry) */
inode
->
i_nlink
++
;
break
;
}
}
...
...
@@ -227,71 +230,71 @@ static int default_open (struct inode *inode, struct file *filp)
}
static
struct
file_operations
default_file_operations
=
{
read:
default_read_file
,
write:
default_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
default_read_file
,
.
write
=
default_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
/* file ops for the "power" files */
static
ssize_t
power_read_file
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
ssize_t
power_write_file
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
struct
file_operations
power_file_operations
=
{
read:
power_read_file
,
write:
power_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
power_read_file
,
.
write
=
power_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
/* file ops for the "attention" files */
static
ssize_t
attention_read_file
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
ssize_t
attention_write_file
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
struct
file_operations
attention_file_operations
=
{
read:
attention_read_file
,
write:
attention_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
attention_read_file
,
.
write
=
attention_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
/* file ops for the "latch" files */
static
ssize_t
latch_read_file
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
struct
file_operations
latch_file_operations
=
{
read:
latch_read_file
,
write:
default_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
latch_read_file
,
.
write
=
default_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
/* file ops for the "presence" files */
static
ssize_t
presence_read_file
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
offset
);
static
struct
file_operations
presence_file_operations
=
{
read:
presence_read_file
,
write:
default_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
presence_read_file
,
.
write
=
default_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
/* file ops for the "test" files */
static
ssize_t
test_write_file
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
struct
file_operations
test_file_operations
=
{
read:
default_read_file
,
write:
test_write_file
,
open:
default_open
,
llseek:
default_file_lseek
,
.
read
=
default_read_file
,
.
write
=
test_write_file
,
.
open
=
default_open
,
.
llseek
=
default_file_lseek
,
};
static
struct
inode_operations
pcihpfs_dir_inode_operations
=
{
create:
pcihpfs_create
,
lookup:
simple_lookup
,
unlink:
pcihpfs_unlink
,
mkdir:
pcihpfs_mkdir
,
rmdir:
pcihpfs_rmdir
,
mknod:
pcihpfs_mknod
,
.
create
=
pcihpfs_create
,
.
lookup
=
simple_lookup
,
.
unlink
=
pcihpfs_unlink
,
.
mkdir
=
pcihpfs_mkdir
,
.
rmdir
=
pcihpfs_rmdir
,
.
mknod
=
pcihpfs_mknod
,
};
static
struct
super_operations
pcihpfs_ops
=
{
statfs:
simple_statfs
,
drop_inode:
generic_delete_inode
,
.
statfs
=
simple_statfs
,
.
drop_inode
=
generic_delete_inode
,
};
static
int
pcihpfs_fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
...
...
@@ -327,10 +330,10 @@ static struct super_block *pcihpfs_get_sb(struct file_system_type *fs_type,
}
static
struct
file_system_type
pcihpfs_type
=
{
owner:
THIS_MODULE
,
name:
"pcihpfs"
,
get_sb:
pcihpfs_get_sb
,
kill_sb:
kill_litter_super
,
.
owner
=
THIS_MODULE
,
.
name
=
"pcihpfs"
,
.
get_sb
=
pcihpfs_get_sb
,
.
kill_sb
=
kill_litter_super
,
};
static
int
get_mount
(
void
)
...
...
drivers/hotplug/pci_hotplug_util.c
View file @
01bb3440
...
...
@@ -41,7 +41,7 @@
#define MY_NAME THIS_MODULE->name
#endif
#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt
, MY_NAME, __FUNCTION__
, ## arg); } while (0)
#define dbg(fmt, arg...) do { if (debug) printk(KERN_DEBUG "%s: %s: " fmt
, MY_NAME , __FUNCTION__
, ## arg); } while (0)
#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
#define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
...
...
drivers/hotplug/pcihp_skeleton.c
View file @
01bb3440
...
...
@@ -89,15 +89,15 @@ static int get_latch_status (struct hotplug_slot *slot, u8 *value);
static
int
get_adapter_status
(
struct
hotplug_slot
*
slot
,
u8
*
value
);
static
struct
hotplug_slot_ops
skel_hotplug_slot_ops
=
{
owner:
THIS_MODULE
,
enable_slot:
enable_slot
,
disable_slot:
disable_slot
,
set_attention_status:
set_attention_status
,
hardware_test:
hardware_test
,
get_power_status:
get_power_status
,
get_attention_status:
get_attention_status
,
get_latch_status:
get_latch_status
,
get_adapter_status:
get_adapter_status
,
.
owner
=
THIS_MODULE
,
.
enable_slot
=
enable_slot
,
.
disable_slot
=
disable_slot
,
.
set_attention_status
=
set_attention_status
,
.
hardware_test
=
hardware_test
,
.
get_power_status
=
get_power_status
,
.
get_attention_status
=
get_attention_status
,
.
get_latch_status
=
get_latch_status
,
.
get_adapter_status
=
get_adapter_status
,
};
...
...
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