summaryrefslogtreecommitdiff
path: root/drivers/dahdi
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-10-11 12:22:16 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-10-11 12:22:16 +0000
commitf4f98f29f675220efb8908bd0275b6df07ecaf65 (patch)
tree83c1d496715f17eb5b3b6a98624b67e4c4e4a34b /drivers/dahdi
parentc58795834191f3a9fb887bf3fc4e249e3da67555 (diff)
Add a few kernel-doc comments
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7371 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r--drivers/dahdi/dahdi-base.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index af7f66f..5f60acd 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -5637,6 +5637,14 @@ static int dahdi_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
return dahdi_chan_ioctl(inode, file, cmd, data, unit);
}
+
+/**
+ * dahdi_register() - Unregister a new DAHDI span
+ * @span The DAHDI span
+ *
+ * Registers a span for usage with DAHDI. All the channel numbers in it
+ * will get the lowest available channel numbers.
+ */
int dahdi_register(struct dahdi_span *span, int prefmaster)
{
int x;
@@ -5723,6 +5731,14 @@ int dahdi_register(struct dahdi_span *span, int prefmaster)
return 0;
}
+
+/**
+ * dahdi_unregister() - Unregister a DAHDI span
+ * @span The DAHDI span
+ *
+ * Unregisters a span that has been previously registered with
+ * dahdi_register().
+ */
int dahdi_unregister(struct dahdi_span *span)
{
int x;
@@ -6681,6 +6697,16 @@ static void __dahdi_hooksig_pvt(struct dahdi_chan *chan, enum dahdi_rxsig rxsig)
}
}
+/**
+ * dahdi_hooksig() - send a signal on a channel to userspace
+ * @chan The DAHDI channel
+ * @rxsig Signal (number) to send
+ *
+ * Called from a channel driver to send a DAHDI signal to userspace.
+ * The signal will be queued for delivery to userspace.
+ *
+ * If the signal is the same as previous one sent, it won't be re-sent.
+ */
void dahdi_hooksig(struct dahdi_chan *chan, enum dahdi_rxsig rxsig)
{
/* skip if no change */
@@ -6690,6 +6716,14 @@ void dahdi_hooksig(struct dahdi_chan *chan, enum dahdi_rxsig rxsig)
spin_unlock_irqrestore(&chan->lock, flags);
}
+
+/**
+ * dahdi_rbsbits() - set Rx RBS bits on the channel
+ * @chan The DAHDI channel
+ * @cursig The bits to set
+ *
+ * Set the channel's rxsig and act accordingly.
+ */
void dahdi_rbsbits(struct dahdi_chan *chan, int cursig)
{
unsigned long flags;