diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-19 13:36:15 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-06-19 13:36:15 +0000 |
commit | 9d886a8e34490fabc3a1e3a0ebba5f8a43a6fd49 (patch) | |
tree | 8ac596c49aed7284efdb19c2b97900248436aa44 /drivers/dahdi/xpp/mmapbus.h | |
parent | 55896756afb1dc68c66712885cd310f8a11494e2 (diff) |
Further XPP driver adjustments:
* More complete Kconfig.
* Verification of FXO init script moved here from tools.
* Perl init scripts are verified.
* Correct name XppConf*ig*.
* Add the files for xpp_mmap .
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4408 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/mmapbus.h')
-rw-r--r-- | drivers/dahdi/xpp/mmapbus.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/mmapbus.h b/drivers/dahdi/xpp/mmapbus.h new file mode 100644 index 0000000..98fad66 --- /dev/null +++ b/drivers/dahdi/xpp/mmapbus.h @@ -0,0 +1,26 @@ +#ifndef MMAPBUS_H +#define MMAPBUS_H + +#include <linux/device.h> + +struct mmap_device { + char *name; + struct mmap_driver *driver; + struct device dev; +}; +#define to_mmap_device(x) container_of(x, struct mmap_device, dev) + +struct mmap_driver { + struct module *module; + struct device_driver driver; +}; +#define to_mmap_driver(x) container_of(x, struct mmap_driver, driver) + +int register_mmap_bus(void); +void unregister_mmap_bus(void); +int register_mmap_device(struct mmap_device *dev); +void unregister_mmap_device(struct mmap_device *dev); +int register_mmap_driver(struct mmap_driver *driver); +void unregister_mmap_driver(struct mmap_driver *driver); + +#endif |