diff options
author | David Altobelli <david.altobelli@hp.com> | 2009-08-17 19:07:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:50:48 -0400 |
commit | 9f7048412163d8f8175ba01063f3db02d42cc6a7 (patch) | |
tree | 900018fc99f3218d146012cacb7eda9a98d48a23 /drivers/misc/hpilo.h | |
parent | 66d5e5169c96f3e0175235e2bcbaedc8bc1c728f (diff) |
hpilo: add interrupt handler
Add interrupt handler to hpilo. This is enablement for poll handler,
and it also simplifies the logic for handling an iLO reset, because now
only the interrupt handler needs to look for reset, the file system
interfaces only need to return failure when a reset has happened.
Signed-off-by: David Altobelli <david.altobelli@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/hpilo.h')
-rw-r--r-- | drivers/misc/hpilo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/misc/hpilo.h b/drivers/misc/hpilo.h index 03a14c82aad9..38576050776a 100644 --- a/drivers/misc/hpilo.h +++ b/drivers/misc/hpilo.h | |||
@@ -46,11 +46,14 @@ struct ilo_hwinfo { | |||
46 | 46 | ||
47 | spinlock_t alloc_lock; | 47 | spinlock_t alloc_lock; |
48 | spinlock_t fifo_lock; | 48 | spinlock_t fifo_lock; |
49 | spinlock_t open_lock; | ||
49 | 50 | ||
50 | struct cdev cdev; | 51 | struct cdev cdev; |
51 | }; | 52 | }; |
52 | 53 | ||
53 | /* offset from mmio_vaddr */ | 54 | /* offset from mmio_vaddr for enabling doorbell interrupts */ |
55 | #define DB_IRQ 0xB2 | ||
56 | /* offset from mmio_vaddr for outbound communications */ | ||
54 | #define DB_OUT 0xD4 | 57 | #define DB_OUT 0xD4 |
55 | /* DB_OUT reset bit */ | 58 | /* DB_OUT reset bit */ |
56 | #define DB_RESET 26 | 59 | #define DB_RESET 26 |
@@ -131,6 +134,9 @@ struct ccb_data { | |||
131 | /* pointer to hardware device info */ | 134 | /* pointer to hardware device info */ |
132 | struct ilo_hwinfo *ilo_hw; | 135 | struct ilo_hwinfo *ilo_hw; |
133 | 136 | ||
137 | /* queue for this ccb to wait for recv data */ | ||
138 | wait_queue_head_t ccb_waitq; | ||
139 | |||
134 | /* usage count, to allow for shared ccb's */ | 140 | /* usage count, to allow for shared ccb's */ |
135 | int ccb_cnt; | 141 | int ccb_cnt; |
136 | 142 | ||