dahdi-linux/drivers/dahdi/xpp/mmapbus.h
Shaun Ruffell bf3fe05dfb wct4xxp: Moving the transmit short detection behind debug module param.
This needs some more testing before it's on by default.  If the card is
otherwise functioning, these messages may be confusing to the user.  If
the card is not functioning, the driver can be reloaded with debug to
check for this condition.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9205 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-27 21:59:27 +00:00

27 lines
652 B
C

#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