summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpd.h
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-11-17 12:09:10 -0600
committerShaun Ruffell <sruffell@digium.com>2011-04-15 14:21:13 -0500
commitb3c86b81ae638d90ee27a821e962e297ab85cbe4 (patch)
treec70e2c6b0e74c5bc3a20e6c597df1f9fbc7ca891 /drivers/dahdi/xpp/xpd.h
parent9c8aa9db7eca1c91bd37bd5b55add0cee40d7cd9 (diff)
dahdi: register/unregister devices as opposed to individual spans.
Increasingly, spans are implemented by devices that support more than a single span. Introduce a 'struct dahdi_device' object which explicitly contains multiple spans. This will also allow a cleaner representation of spans and devices in sysfs since order of arrival will not determine the layout of the devices. This also gives the core of dahdi a way to know the relationship between spans. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Diffstat (limited to 'drivers/dahdi/xpp/xpd.h')
-rw-r--r--drivers/dahdi/xpp/xpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xpd.h b/drivers/dahdi/xpp/xpd.h
index 2d4b6eb..66ba88c 100644
--- a/drivers/dahdi/xpp/xpd.h
+++ b/drivers/dahdi/xpp/xpd.h
@@ -154,6 +154,7 @@ const char *xpd_statename(enum xpd_state st);
struct phonedev {
const struct phoneops *phoneops; /* Card level operations */
+ struct dahdi_device *ddev;
struct dahdi_span span;
struct dahdi_chan *chans[32];
#define XPD_CHAN(xpd,chan) (PHONEDEV(xpd).chans[(chan)])