diff options
author | Martyn Welch | 2009-10-29 17:34:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-12-11 21:23:17 +0100 |
commit | c813f592a5e65cfd9321f51c95a6977e9518dde6 (patch) | |
tree | e2d75f7720bff912ddbf92e7921d3856079eacad /drivers/staging/vme/vme_api.txt | |
parent | staging: vme: correct array overflow (diff) | |
download | kernel-qcow2-linux-c813f592a5e65cfd9321f51c95a6977e9518dde6.tar.gz kernel-qcow2-linux-c813f592a5e65cfd9321f51c95a6977e9518dde6.tar.xz kernel-qcow2-linux-c813f592a5e65cfd9321f51c95a6977e9518dde6.zip |
Staging: vme: Pull common VME interrupt handling into core code
Currently the VME callback infrastructure is replicated in each VME driver.
Move this common code into the VME core. Rename functions to fit in better
with naming of other VME functions.
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme/vme_api.txt')
-rw-r--r-- | drivers/staging/vme/vme_api.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vme/vme_api.txt b/drivers/staging/vme/vme_api.txt index 591eba5c9036..36b7a3c8421f 100644 --- a/drivers/staging/vme/vme_api.txt +++ b/drivers/staging/vme/vme_api.txt @@ -290,10 +290,10 @@ status ID combination. Any given combination can only be assigned a single callback function. A void pointer parameter is provided, the value of which is passed to the callback function, the use of this pointer is user undefined: - int vme_request_irq(struct device *dev, int level, int statid, + int vme_irq_request(struct device *dev, int level, int statid, void (*callback)(int, int, void *), void *priv); - void vme_free_irq(struct device *dev, int level, int statid); + void vme_irq_free(struct device *dev, int level, int statid); The callback parameters are as follows. Care must be taken in writing a callback function, callback functions run in interrupt context: @@ -307,7 +307,7 @@ Interrupt Generation The following function can be used to generate a VME interrupt at a given VME level and VME status ID: - int vme_generate_irq(struct device *dev, int level, int statid); + int vme_irq_generate(struct device *dev, int level, int statid); Location monitors |