summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/shpchp.h
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2006-02-21 15:45:45 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 14:35:13 -0800
commitf7391f5325ea744f0632f7ef39a90085162743ac (patch)
treea7368b2ca639211743ba7fbc0dab7a9efaea02b7 /drivers/pci/hotplug/shpchp.h
parent68c0b671491088d79611fa965bbf94b3bc0024a4 (diff)
[PATCH] shpchp: event handling rework
The event handler of SHPCHP driver is unnecessarily very complex. In addition, current event handler can only a fixed number of events at the same time, and some of events would be lost if several number of events happened at the same time. This patch simplify the event handler by using 'work queue', and it also fix the above-mentioned issue. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp.h')
-rw-r--r--drivers/pci/hotplug/shpchp.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index 6e1fb1bdc243..87db07cfebdf 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -46,6 +46,7 @@
extern int shpchp_poll_mode;
extern int shpchp_poll_time;
extern int shpchp_debug;
+extern struct workqueue_struct *shpchp_wq;
/*#define dbg(format, arg...) do { if (shpchp_debug) printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); } while (0)*/
#define dbg(format, arg...) do { if (shpchp_debug) printk("%s: " format, MY_NAME , ## arg); } while (0)
@@ -70,11 +71,13 @@ struct slot {
struct hotplug_slot *hotplug_slot;
struct list_head slot_list;
char name[SLOT_NAME_SIZE];
+ struct work_struct work; /* work for button event */
};
struct event_info {
u32 event_type;
- u8 hp_slot;
+ struct slot *p_slot;
+ struct work_struct work;
};
struct controller {
@@ -85,11 +88,9 @@ struct controller {
int num_slots; /* Number of slots on ctlr */
int slot_num_inc; /* 1 or -1 */
struct pci_dev *pci_dev;
- struct event_info event_queue[10];
struct list_head slot_list;
struct hpc_ops *hpc_ops;
wait_queue_head_t queue; /* sleep & wake process */
- u8 next_event;
u8 bus;
u8 device;
u8 function;
@@ -180,9 +181,6 @@ struct hotplug_params {
/* sysfs functions for the hotplug controller info */
extern void shpchp_create_ctrl_files (struct controller *ctrl);
-/* controller functions */
-extern int shpchp_event_start_thread(void);
-extern void shpchp_event_stop_thread(void);
extern int shpchp_enable_slot(struct slot *slot);
extern int shpchp_disable_slot(struct slot *slot);
@@ -201,7 +199,8 @@ extern void get_hp_params_from_firmware(struct pci_dev *dev,
extern int shpchprm_get_physical_slot_number(struct controller *ctrl,
u32 *sun, u8 busnum, u8 devnum);
extern void shpchp_remove_ctrl_files(struct controller *ctrl);
-
+extern void cleanup_slots(struct controller *ctrl);
+extern void shpchp_pushbutton_thread(void *data);
/* Global variables */
extern struct list_head shpchp_ctrl_list;
ion value='libreoffice-5-0-3'>libreoffice-5-0-3 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2018-08-06ja translation of 'No Fill'cp-5.3-65cp-5.3-64cp-5.3-63cp-5.3-60cp-5.3-59cp-5.3-58cp-5.3-57cp-5.3-56cp-5.3-55co-5.3-63cd-5.3-61distro/collabora/cp-5.3distro/collabora/cd-5.3-3.4distro/collabora/cd-5.3-3.2Andras Timar1-1/+1
2018-07-30Updated Korean translationAndras Timar3-676/+422
2018-07-30Updated Japanese translationAndras Timar4-44/+33
2018-05-23remove extra ~ characters from German translationcp-5.3-53cp-5.3-52cp-5.3-51cp-5.3-50cp-5.3-49cp-5.3-47Andras Timar1-2/+2
2018-01-12Translation of backported features (from libreoffice-6-0)cp-5.3-66cp-5.3-46cp-5.3-44cp-5.3-43cp-5.3-42cp-5.3-41cp-5.3-40cp-5.3-39cp-5.3-38cp-5.3-37co-5.3-67co-5.3-66co-5.3-65co-5.3-58Andras Timar590-8995/+44502
2018-01-11update translations for 5.3.7 rc2Christian Lohmaier161-2878/+2882
2017-10-04update translations for 5.3.7 rc1libreoffice-5-3Christian Lohmaier218-3515/+2982
2017-08-21another set of translation updated for 5.3.6 rc1Christian Lohmaier26-326/+326
2017-08-16update translations for 5.3.6 rc1Christian Lohmaier161-2079/+2098
2017-07-30update translations for 5.3.5 rc2Christian Lohmaier380-7909/+7869
2017-07-12update translationsChristian Lohmaier2021-135235/+1027494
2017-06-13update translations for 5.3.4 rc2Christian Lohmaier113-3120/+2580
2017-06-01update translations for 5.3.4 rc1Christian Lohmaier373-10925/+20113
2017-05-03update translations for 5.3.3 rc2cp-5.3-36cp-5.3-35cp-5.3-33cp-5.3-32cp-5.3-29cp-5.3-28cp-5.3-26cp-5.3-25cp-5.3-24cp-5.3-22cp-5.3-21cp-5.3-19cp-5.3-18cp-5.3-17cp-5.3-15cp-5.3-14cp-5.3-13cp-5.3-12cp-5.3-11cd-5.3-23Christian Lohmaier224-2037/+2207
2017-04-18update templates for 5.3.3 rc1cp-5.3-9cp-5.3-8-wincp-5.3-8cp-5.3-7cp-5.3-6cp-5.3-10Christian Lohmaier1115-6536/+11101
2017-03-29update translations for 5.3.2 rc2Christian Lohmaier435-7270/+7253
2017-03-16update translations for 5.3.2 rc1Christian Lohmaier250-5537/+5490
2017-03-07update translations for 5.3.1 rc2Christian Lohmaier180-3786/+3755
2017-02-28update translations for 5.3.1 rc2cp-5.3-4cp-5.3-3cp-5.3-2cp-5.3-1Christian Lohmaier449-9305/+9232
2017-02-20update translations for 5.3.1 rc1Christian Lohmaier364-7615/+7592
2017-02-16update translations for 5.3.1 rc1Christian Lohmaier362-6308/+6292
2017-01-26update translations for 5.3.0 rc3Christian Lohmaier1010-24017/+23493
2017-01-18Updated Slovenian translationAndras Timar9-67/+76
2017-01-16update templates for 5.3.0 rc2Christian Lohmaier909-21403/+25423
2017-01-12Updated Slovenian translationAndras Timar23-52/+52
2017-01-10update translations for 5.3.0 rc2Christian Lohmaier2529-213516/+82308
2017-01-07Updated Slovenian translationAndras Timar51-173/+173
2016-12-28Updated Slovenian translationAndras Timar40-879/+699
2016-12-23update translations for 5.3.0 rc1Christian Lohmaier1707-52369/+180379
2016-12-22Update Slovenian translation (notebookbar)Andras Timar5-31/+31
2016-12-20Updated Slovenian translationAndras Timar15-337/+300
2016-12-14Updated Slovenian translationAndras Timar22-383/+575
2016-12-10update translations for 5.3.0 beta2Christian Lohmaier4249-477403/+364911
2016-11-23Branch libreoffice-5-3Christian Lohmaier0-0/+0
2016-11-23update translations for 5.3.0 beta1libreoffice-5-3-branch-pointChristian Lohmaier10249-1587027/+1577348
2016-11-22Updated Slovenian translationAndras Timar1-14/+14
2016-11-22Updated Slovenian translationAndras Timar19-153/+141
2016-11-20Updated Slovenian translationAndras Timar95-5099/+4967
2016-10-21Updated Slovenian translationAndras Timar45-1732/+1947
2016-10-19Updated Slovenian translationAndras Timar97-11736/+15400
2016-10-11update translations for 5.2.3 rc1Christian Lohmaier717-22657/+16475
2016-10-09Pootle updatejan Iversen1412-9039/+3326863
2016-08-30add Venetian (vec) translationChristian Lohmaier289-0/+281118
2016-08-30update translations for masterChristian Lohmaier