diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hwspinlock.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h index c246522a9551..08a2fee40659 100644 --- a/include/linux/hwspinlock.h +++ b/include/linux/hwspinlock.h | |||
| @@ -20,12 +20,15 @@ | |||
| 20 | 20 | ||
| 21 | #include <linux/err.h> | 21 | #include <linux/err.h> |
| 22 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
| 23 | #include <linux/device.h> | ||
| 23 | 24 | ||
| 24 | /* hwspinlock mode argument */ | 25 | /* hwspinlock mode argument */ |
| 25 | #define HWLOCK_IRQSTATE 0x01 /* Disable interrupts, save state */ | 26 | #define HWLOCK_IRQSTATE 0x01 /* Disable interrupts, save state */ |
| 26 | #define HWLOCK_IRQ 0x02 /* Disable interrupts, don't save state */ | 27 | #define HWLOCK_IRQ 0x02 /* Disable interrupts, don't save state */ |
| 27 | 28 | ||
| 28 | struct hwspinlock; | 29 | struct hwspinlock; |
| 30 | struct hwspinlock_device; | ||
| 31 | struct hwspinlock_ops; | ||
| 29 | 32 | ||
| 30 | /** | 33 | /** |
| 31 | * struct hwspinlock_pdata - platform data for hwspinlock drivers | 34 | * struct hwspinlock_pdata - platform data for hwspinlock drivers |
| @@ -57,8 +60,9 @@ struct hwspinlock_pdata { | |||
| 57 | 60 | ||
| 58 | #if defined(CONFIG_HWSPINLOCK) || defined(CONFIG_HWSPINLOCK_MODULE) | 61 | #if defined(CONFIG_HWSPINLOCK) || defined(CONFIG_HWSPINLOCK_MODULE) |
| 59 | 62 | ||
| 60 | int hwspin_lock_register(struct hwspinlock *lock); | 63 | int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev, |
| 61 | struct hwspinlock *hwspin_lock_unregister(unsigned int id); | 64 | const struct hwspinlock_ops *ops, int base_id, int num_locks); |
| 65 | int hwspin_lock_unregister(struct hwspinlock_device *bank); | ||
| 62 | struct hwspinlock *hwspin_lock_request(void); | 66 | struct hwspinlock *hwspin_lock_request(void); |
| 63 | struct hwspinlock *hwspin_lock_request_specific(unsigned int id); | 67 | struct hwspinlock *hwspin_lock_request_specific(unsigned int id); |
| 64 | int hwspin_lock_free(struct hwspinlock *hwlock); | 68 | int hwspin_lock_free(struct hwspinlock *hwlock); |
