diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-11-07 00:35:44 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-11-07 00:35:44 +0000 |
commit | 93f2c79e4043aa443a32b3db17e2bf8b75732c74 (patch) | |
tree | 8b51c5a982d281ee69156bf007c53875a988c965 /drivers/dahdi/voicebus/voicebus.h | |
parent | d93b9a3bac393efea1a1b1dc3013429a77c151fa (diff) |
voicebus: Add optional sysfs entry for reading a boards current latency.
This is off by default since it hasn't been tested on a full range of kernels,
but can be useful for quickly seeing differences for latencies on different
cards installed in the system.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7522 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus/voicebus.h')
-rw-r--r-- | drivers/dahdi/voicebus/voicebus.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dahdi/voicebus/voicebus.h b/drivers/dahdi/voicebus/voicebus.h index 18c37e0..16768df 100644 --- a/drivers/dahdi/voicebus/voicebus.h +++ b/drivers/dahdi/voicebus/voicebus.h @@ -37,7 +37,8 @@ struct voicebus; void voicebus_setdebuglevel(struct voicebus *vb, u32 level); int voicebus_getdebuglevel(struct voicebus *vb); -struct pci_dev * voicebus_get_pci_dev(struct voicebus *vb); +struct pci_dev *voicebus_get_pci_dev(struct voicebus *vb); +void *voicebus_pci_dev_to_context(struct pci_dev *pdev); int voicebus_init(struct pci_dev* pdev, u32 framesize, const char *board_name, void (*handle_receive)(void *buffer, void *context), @@ -54,7 +55,7 @@ void voicebus_set_handlers(struct voicebus *vb, void voicebus_release(struct voicebus *vb); int voicebus_start(struct voicebus *vb); int voicebus_stop(struct voicebus *vb); -void * voicebus_alloc(struct voicebus* vb); +void *voicebus_alloc(struct voicebus* vb); void voicebus_free(struct voicebus *vb, void *vbb); int voicebus_transmit(struct voicebus *vb, void *vbb); int voicebus_set_minlatency(struct voicebus *vb, unsigned int milliseconds); |