mbgtools-lx
4.2.8
|
#include <mbgclock.h>
#include <mbgversion.h>
#include <mbgioctl.h>
#include <pcpsirq.h>
#include <mbgddmsg.h>
#include <stddef.h>
#include <linux/termios.h>
#include <linux/pci.h>
#include <macioctl.h>
#include <lx-shared.h>
Go to the source code of this file.
Macros | |
#define | EXPORT_SYMTAB |
#define | _MBGCLOCK |
#define | MBG_COPYRIGHT "(c) Meinberg 2001-" MBG_CURRENT_COPYRIGHT_YEAR_STR |
#define | MBG_DRVR_NAME "mbgclock" |
#define | MBGCLOCK_MAX_DEVS 20 |
#define | DEBUG_IRQ_LATENCY 0 |
#define | DEBUG_IRQ_TIMING 0 |
#define | DEBUG_SYS_IRQS 0 |
#define | OMIT_PRIV_CHECKING 0 |
#define | DRV_NAME MBG_DRVR_NAME |
#define | MBG_SIZE_TLG 33 |
#define | _min(_a, _b) ( ( (_b) < (_a) ) ? (_b) : (_a) ) |
#define | CYCLIC_TIMEOUT ( (ulong) 2 * HZ ) |
#define | _kill_fasync(_fa, _sig, _band) kill_fasync( *(_fa), _sig ) |
#define | __exit |
#define | DEBUG_HW_LPT 0 |
#define | _mbg_dbg_hw_lpt_vars |
#define | _mbg_dbg_hw_lpt_set_bit(_b) ; |
#define | _mbg_dbg_hw_lpt_clr_bit(_b) ; |
#define | _usb_read_thread_should_stop() signal_pending( current ) |
#define | _usb_read_thread_exit(_pddev, _v) complete_and_exit( &pddev->usb_read_thread.exit, (_v) ) |
#define | _usb_read_thread_started(_pddev) ( (_pddev)->usb_read_thread.pid != 0 ) |
#define | _usb_read_thread_start(_fnc, _pddev) |
#define | _usb_read_thread_failed_to_start(_pddev) ( (_pddev)->usb_read_thread.pid == 0 ) |
#define | _usb_read_thread_set_unused(_pddev) (_pddev)->usb_read_thread.pid = 0; |
#define | _usb_read_thread_stop(_pddev) |
#define | _usb_read_thread_daemonize(_pddev) |
Functions | |
static void | mbgdrvr_delete_device (PCPS_DDEV *pddev) |
static void | ddev_list_free (void) |
static int | ddev_list_alloc (void) |
static PCPS_DDEV ** | ddev_list_locate_minor (unsigned int minor) |
static PCPS_DDEV ** | ddev_list_locate_device (PCPS_BUS_FLAGS bus_flags, PCPS_DEV_ID dev_id, PCPS_SN_STR sernum) |
static int | ddev_list_remove_entry (PCPS_DDEV *pddev) |
static int | ddev_list_add_entry (PCPS_DDEV *pddev) |
static void | pcps_time_to_time_str (const PCPS_TIME *t, char *s, size_t max_len) |
static irqreturn_t | mbgclock_irq_handler (int hw_irq, void *arg, struct pt_regs *regs) |
__mbg_inline int | get_cyclic_lock (PCPS_DDEV *pddev, unsigned long *p_flags, const char *fnc_name) |
__mbg_inline void | release_cyclic_lock (PCPS_DDEV *pddev, unsigned long *p_flags, const char *fnc_name) |
static int | mbgdrvr_disable_cyclic (PCPS_DDEV *pddev) |
static int | mbgdrvr_enable_cyclic (PCPS_DDEV *pddev, unsigned int force) |
static unsigned int | mbgclock_poll (struct file *filp, poll_table *pt) |
static int | mbgclock_fasync (int fd, struct file *filp, int on) |
static int | mbgclock_flush (struct file *filp) |
static int | mbgclock_open (struct inode *inode, struct file *filp) |
static int | mbgclock_release (struct inode *inode, struct file *filp) |
static ssize_t | mbgclock_read (struct file *filp, char *buffer, size_t count, loff_t *ppos) |
static ssize_t | mbgclock_write (struct file *filp, const char *buffer, size_t count, loff_t *ppos) |
static int | mbgdrvr_ioctl_emu_serial (struct file *filp, unsigned int cmd, unsigned long arg) |
static long | mbgclock_unlocked_ioctl (struct file *filp, unsigned int cmd, unsigned long arg) |
static int | mbgclock_ioctl (struct inode *not_used, struct file *filp, unsigned int cmd, unsigned long arg) |
static int | mbgclock_mmap (struct file *filp, struct vm_area_struct *vma) |
int __init | mbgclock_init_module (void) |
int | mbgclock_default_get_fast_hr_timestamp (PCPS_TIME_STAMP *p_ts) |
Read a high resolution PCPS_TIME_STAMP structure via memory mapped access. More... | |
EXPORT_SYMBOL (mbgclock_default_get_fast_hr_timestamp) | |
int | mbgclock_default_get_fast_hr_timestamp_cycles (PCPS_TIME_STAMP_CYCLES *p_ts_cyc) |
Read a high resolution PCPS_TIME_STAMP_CYCLES structure via memory mapped access. More... | |
EXPORT_SYMBOL (mbgclock_default_get_fast_hr_timestamp_cycles) | |
int | mbgclock_default_clr_ucap_buff (void) |
Clear the on-board user capture FIFO buffer. More... | |
EXPORT_SYMBOL (mbgclock_default_clr_ucap_buff) | |
int | mbgclock_default_get_ucap_entries (PCPS_UCAP_ENTRIES *p) |
Read user capture FIFO information. More... | |
EXPORT_SYMBOL (mbgclock_default_get_ucap_entries) | |
int | mbgclock_default_get_ucap_event (PCPS_HR_TIME *p) |
Retrieve single time capture event. More... | |
EXPORT_SYMBOL (mbgclock_default_get_ucap_event) | |
Variables | |
PCPS_DRVR_INFO | drvr_info |
int | pretend_sync |
static PCPS_DDEV * | default_fast_hr_time_pddev |
static PCPS_DDEV * | default_ucap_pddev |
static int | io [PCPS_MAX_ISA_CARDS] |
static int | irq [PCPS_MAX_ISA_CARDS] |
static int | major = 0 |
static int | minor = 0 |
static int | max_devs = 20 |
static int | ddev_list_alloc_size |
static PCPS_DDEV ** | ddev_list |
static struct semaphore | sem_fops |
struct file_operations | mbgclock_fops |
MBGCLOCK_DEFAULT_GET_FAST_HR_TIMESTAMP_FNC | get_fast_hr_timestamp_fnc = mbgclock_default_get_fast_hr_timestamp |
MBGCLOCK_DEFAULT_GET_FAST_HR_TIMESTAMP_CYCLES_FNC | get_fast_hr_timestamp_cycles_fnc = mbgclock_default_get_fast_hr_timestamp_cycles |
MBGCLOCK_DEFAULT_CLR_UCAP_BUFF_FNC | clr_ucap_buff_fnc = mbgclock_default_clr_ucap_buff |
MBGCLOCK_DEFAULT_GET_UCAP_ENTRIES_FNC | get_ucap_entries_fnc = mbgclock_default_get_ucap_entries |
MBGCLOCK_DEFAULT_GET_UCAP_EVENT_FNC | get_ucap_event_fnc = mbgclock_default_get_ucap_event |
#define __exit |
Definition at line 384 of file mbgclock_main.c.
#define _kill_fasync | ( | _fa, | |
_sig, | |||
_band | |||
) | kill_fasync( *(_fa), _sig ) |
Definition at line 378 of file mbgclock_main.c.
Referenced by mbgclock_irq_handler(), and release_cyclic_lock().
#define _mbg_dbg_hw_lpt_clr_bit | ( | _b | ) | ; |
Definition at line 428 of file mbgclock_main.c.
Referenced by mbgclock_irq_handler(), mbgclock_open(), mbgclock_release(), and mbgdrvr_disable_cyclic().
#define _mbg_dbg_hw_lpt_set_bit | ( | _b | ) | ; |
Definition at line 427 of file mbgclock_main.c.
Referenced by mbgclock_irq_handler(), mbgclock_open(), mbgclock_release(), and mbgdrvr_disable_cyclic().
#define _mbg_dbg_hw_lpt_vars |
Definition at line 426 of file mbgclock_main.c.
Referenced by mbgclock_irq_handler(), mbgclock_open(), mbgclock_release(), and mbgdrvr_disable_cyclic().
#define _MBGCLOCK |
Definition at line 172 of file mbgclock_main.c.
Definition at line 367 of file mbgclock_main.c.
Referenced by mbgclock_read().
#define _usb_read_thread_daemonize | ( | _pddev | ) |
Definition at line 535 of file mbgclock_main.c.
Referenced by release_cyclic_lock().
#define _usb_read_thread_exit | ( | _pddev, | |
_v | |||
) | complete_and_exit( &pddev->usb_read_thread.exit, (_v) ) |
Definition at line 515 of file mbgclock_main.c.
Referenced by release_cyclic_lock().
#define _usb_read_thread_failed_to_start | ( | _pddev | ) | ( (_pddev)->usb_read_thread.pid == 0 ) |
Definition at line 525 of file mbgclock_main.c.
Referenced by mbgdrvr_enable_cyclic().
#define _usb_read_thread_set_unused | ( | _pddev | ) | (_pddev)->usb_read_thread.pid = 0; |
Definition at line 528 of file mbgclock_main.c.
Referenced by mbgdrvr_enable_cyclic(), and release_cyclic_lock().
#define _usb_read_thread_should_stop | ( | ) | signal_pending( current ) |
Definition at line 512 of file mbgclock_main.c.
Referenced by release_cyclic_lock().
#define _usb_read_thread_start | ( | _fnc, | |
_pddev | |||
) |
Definition at line 521 of file mbgclock_main.c.
Referenced by mbgdrvr_enable_cyclic().
#define _usb_read_thread_started | ( | _pddev | ) | ( (_pddev)->usb_read_thread.pid != 0 ) |
Definition at line 518 of file mbgclock_main.c.
Referenced by mbgdrvr_disable_cyclic(), and mbgdrvr_enable_cyclic().
#define _usb_read_thread_stop | ( | _pddev | ) |
Definition at line 531 of file mbgclock_main.c.
Referenced by mbgdrvr_disable_cyclic().
#define CYCLIC_TIMEOUT ( (ulong) 2 * HZ ) |
Definition at line 369 of file mbgclock_main.c.
Referenced by mbgclock_poll(), and mbgclock_read().
#define DEBUG_HW_LPT 0 |
Definition at line 395 of file mbgclock_main.c.
#define DEBUG_IRQ_LATENCY 0 |
Definition at line 201 of file mbgclock_main.c.
#define DEBUG_IRQ_TIMING 0 |
Definition at line 209 of file mbgclock_main.c.
#define DEBUG_SYS_IRQS 0 |
Definition at line 217 of file mbgclock_main.c.
#define DRV_NAME MBG_DRVR_NAME |
Definition at line 363 of file mbgclock_main.c.
#define EXPORT_SYMTAB |
Definition at line 170 of file mbgclock_main.c.
#define MBG_COPYRIGHT "(c) Meinberg 2001-" MBG_CURRENT_COPYRIGHT_YEAR_STR |
Definition at line 190 of file mbgclock_main.c.
Referenced by mbgclock_init_module().
#define MBG_DRVR_NAME "mbgclock" |
Definition at line 192 of file mbgclock_main.c.
Referenced by pcps_init_ddev(), and pcps_probe_device().
#define MBG_SIZE_TLG 33 |
Definition at line 365 of file mbgclock_main.c.
Referenced by mbgclock_read().
#define MBGCLOCK_MAX_DEVS 20 |
Definition at line 195 of file mbgclock_main.c.
#define OMIT_PRIV_CHECKING 0 |
Definition at line 225 of file mbgclock_main.c.
|
static |
Definition at line 673 of file mbgclock_main.c.
References max_devs, mbg_kdd_msg(), and MBG_LOG_WARN.
|
static |
Definition at line 563 of file mbgclock_main.c.
References _mbgddmsg_2, _pcps_kmalloc, ddev_list_alloc_size, DEBUG_DRVR, max_devs, mbg_kdd_msg(), MBG_LOG_ERR, and MBG_LOG_INFO.
Referenced by mbgclock_init_module().
|
static |
Definition at line 548 of file mbgclock_main.c.
References _mbgddmsg_0, _pcps_kfree, ddev_list_alloc_size, DEBUG_DRVR, and MBG_LOG_INFO.
|
static |
Definition at line 610 of file mbgclock_main.c.
References _mbgddmsg_2, _mbgddmsg_3, _pcps_ddev_dev_id, _pcps_ddev_sernum, DEBUG_DRVR, max_devs, and MBG_LOG_INFO.
|
static |
Definition at line 587 of file mbgclock_main.c.
References max_devs, mbg_kdd_msg(), and MBG_LOG_WARN.
Referenced by mbgclock_open().
|
static |
Definition at line 648 of file mbgclock_main.c.
References PCPS_DDEV_s::lx_dev, max_devs, mbg_kdd_msg(), and MBG_LOG_WARN.
EXPORT_SYMBOL | ( | mbgclock_default_get_fast_hr_timestamp | ) |
EXPORT_SYMBOL | ( | mbgclock_default_get_fast_hr_timestamp_cycles | ) |
EXPORT_SYMBOL | ( | mbgclock_default_clr_ucap_buff | ) |
EXPORT_SYMBOL | ( | mbgclock_default_get_ucap_entries | ) |
EXPORT_SYMBOL | ( | mbgclock_default_get_ucap_event | ) |
__mbg_inline int get_cyclic_lock | ( | PCPS_DDEV * | pddev, |
unsigned long * | p_flags, | ||
const char * | fnc_name | ||
) |
Definition at line 842 of file mbgclock_main.c.
References _down_interruptible_pddev, and _pcps_ddev_is_usb.
Referenced by mbgclock_poll(), and mbgclock_read().
int mbgclock_default_clr_ucap_buff | ( | void | ) |
Clear the on-board user capture FIFO buffer.
This function can be called from other kernel drivers to clear the user capture FIFO buffer on the first device registered by the driver which supports this call.
Definition at line 2781 of file mbgclock_main.c.
References _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit, _mbgddmsg_fnc_exit_err_dec, _pcps_sem_dec, _pcps_sem_inc_safe, _pcps_write_byte, EXPORT_SYMBOL(), MBG_ERR_IRQ_UNSAFE, MBG_ERR_NOT_SUPP_BY_DEV, and PCPS_CLR_UCAP_BUFF.
int mbgclock_default_get_fast_hr_timestamp | ( | PCPS_TIME_STAMP * | p_ts | ) |
Read a high resolution PCPS_TIME_STAMP structure via memory mapped access.
This function can be called from other kernel drivers to read a timestamp of the current time from the first device registered by the driver which supports this call.
*p_ts | Pointer to a PCPS_TIME_STAMP structure to be filled up |
Definition at line 2708 of file mbgclock_main.c.
References _mbg_swab_pcps_time_stamp, _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit, do_get_fast_hr_timestamp_safe(), EXPORT_SYMBOL(), MBG_ERR_NOT_SUPP_BY_DEV, and MBG_SUCCESS.
int mbgclock_default_get_fast_hr_timestamp_cycles | ( | PCPS_TIME_STAMP_CYCLES * | p_ts_cyc | ) |
Read a high resolution PCPS_TIME_STAMP_CYCLES structure via memory mapped access.
This function can be called from other kernel drivers to read a timestamp of the current time from the first device registered by the driver which supports this call. The returned structure also contains an associated cycles counter value which can be used to determine the latency.
*p_ts_cyc | Pointer to a PCPS_TIME_STAMP_CYCLES structure to be filled up |
Definition at line 2745 of file mbgclock_main.c.
References _mbg_swab_pcps_time_stamp_cycles, _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit, do_get_fast_hr_timestamp_cycles_safe(), EXPORT_SYMBOL(), MBG_ERR_NOT_SUPP_BY_DEV, and MBG_SUCCESS.
int mbgclock_default_get_ucap_entries | ( | PCPS_UCAP_ENTRIES * | p | ) |
Read user capture FIFO information.
Read a PCPS_UCAP_ENTRIES structure to retrieve the number of saved user capture events and the maximum capture buffer size from the first device registered by the driver which supports this call.
Definition at line 2823 of file mbgclock_main.c.
References _mbg_swab_pcps_ucap_entries, _mbgddmsg_4, _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit_err_dec, _pcps_read_var, _pcps_sem_dec, _pcps_sem_inc_safe, EXPORT_SYMBOL(), PCPS_UCAP_ENTRIES::max, MBG_ERR_IRQ_UNSAFE, MBG_ERR_NOT_SUPP_BY_DEV, MBG_LOG_FMT_LEAVING, MBG_LOG_INFO, PCPS_GIVE_UCAP_ENTRIES, and PCPS_UCAP_ENTRIES::used.
int mbgclock_default_get_ucap_event | ( | PCPS_HR_TIME * | p | ) |
Retrieve single time capture event.
Retrieve a single time capture event from the on-board FIFO buffer of the first device registered by the driver which supports this call. The captured event time is returned in a PCPS_HR_TIME structure. The oldest entry of the FIFO is retrieved and then removed from the FIFO. If no capture event is available in the FIFO buffer then both the seconds and the fractions of the returned timestamp are 0.
Definition at line 2871 of file mbgclock_main.c.
References _mbg_swab_pcps_hr_time, _mbgddmsg_4, _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit_err_dec, _pcps_read_var, _pcps_sem_dec, _pcps_sem_inc_safe, EXPORT_SYMBOL(), PCPS_TIME_STAMP::frac, MBG_ERR_IRQ_UNSAFE, MBG_ERR_NOT_SUPP_BY_DEV, MBG_LOG_FMT_LEAVING, MBG_LOG_INFO, PCPS_GIVE_UCAP_EVENT, PCPS_TIME_STAMP::sec, and PCPS_HR_TIME::tstamp.
|
static |
Definition at line 1260 of file mbgclock_main.c.
References PCPS_DDEV_s::fasyncptr, mbgclock_flush(), and mbgdrvr_get_pddev().
|
static |
Definition at line 1283 of file mbgclock_main.c.
References PCPS_DDEV_s::data_avail, and mbgdrvr_get_pddev().
Referenced by mbgclock_fasync().
int __init mbgclock_init_module | ( | void | ) |
Definition at line 2522 of file mbgclock_main.c.
References _mbgddmsg_1, _mbgddmsg_fnc_entry, _mbgddmsg_fnc_exit_err_dec, _mbgddmsg_fnc_exit_success, _sema_init_pddev, ddev_list_alloc(), debug, DEBUG_DRVR, driver_name, force_io_access, force_mm16_access, io, irq, major, max_devs, MBG_COPYRIGHT, mbg_kdd_msg(), MBG_LOG_INFO, MBG_LOG_WARN, MBG_MAJOR_VERSION_CODE, MBG_MICRO_VERSION_CODE, MBG_MINOR_VERSION_CODE, minor, PCPS_DRVR_INFO::n_devs, pcps_cleanup_ddev(), pcps_detect_devices(), pcps_detect_isa_devices(), pcps_init_ddev(), pretend_sync, and sem_fops.
|
static |
Definition at line 1841 of file mbgclock_main.c.
References _mbgddmsg_1, DEBUG_DRVR, MBG_LOG_INFO, and mbgclock_unlocked_ioctl().
|
static |
Definition at line 731 of file mbgclock_main.c.
References _kill_fasync, _mbg_dbg_hw_lpt_clr_bit, _mbg_dbg_hw_lpt_set_bit, _mbg_dbg_hw_lpt_vars, _pcps_ddev_ack_irq, _pcps_ddev_has_gen_irq, _pcps_ddev_irq_num, _pcps_ddev_sernum, _pcps_ddev_type_name, _pcps_read_var, IRQ_HANDLED, IRQ_NONE, jiffies, MBG_DEV_NAME_FMT, mbg_kdd_msg(), MBG_LOG_INFO, MBG_LOG_WARN, mbg_rc_is_success, and PCPS_GIVE_TIME.
Referenced by mbgdrvr_enable_cyclic(), and pcps_time_to_time_str().
|
static |
Definition at line 1858 of file mbgclock_main.c.
References _mbgddmsg_3, _mbgddmsg_4, DEBUG_DRVR, mbg_kdd_msg(), MBG_LOG_ERR, MBG_LOG_INFO, mbgdrvr_get_pddev(), PCPS_RSRC_INFO::mem, PCPS_DDEV_s::rsrc_info, and MBG_IOMEM_RSRC::start_raw.
|
static |
Definition at line 1302 of file mbgclock_main.c.
References _down_interruptible, _mbg_dbg_hw_lpt_clr_bit, _mbg_dbg_hw_lpt_set_bit, _mbg_dbg_hw_lpt_vars, _mbgddmsg_2, _mbgddmsg_3, _up, ddev_list_locate_minor(), DEBUG_DRVR, mbg_kdd_msg(), MBG_LOG_INFO, MBG_LOG_WARN, minor, PCPS_DDEV_s::open_count, and sem_fops.
|
static |
Definition at line 1188 of file mbgclock_main.c.
References _pcps_ddev_sernum, _pcps_ddev_type_name, CYCLIC_TIMEOUT, PCPS_DDEV_s::data_avail, get_cyclic_lock(), jiffies, PCPS_DDEV_s::jiffies_at_irq, MBG_DEV_NAME_FMT, mbg_kdd_msg(), MBG_LOG_DEBUG, MBG_LOG_WARN, mbgdrvr_enable_cyclic(), mbgdrvr_get_pddev(), release_cyclic_lock(), and PCPS_DDEV_s::wait_queue.
|
static |
Definition at line 1467 of file mbgclock_main.c.
References _mbgddmsg_1, _mbgddmsg_3, _mbgddmsg_4, _min, _pcps_ddev_is_usb, _pcps_ddev_sernum, _pcps_ddev_type_name, CYCLIC_TIMEOUT, PCPS_DDEV_s::data_avail, debug, DEBUG_DRVR, get_cyclic_lock(), get_dev_connected(), MBG_DEV_NAME_FMT, mbg_kdd_msg(), MBG_LOG_ERR, MBG_LOG_INFO, MBG_LOG_WARN, MBG_SIZE_TLG, mbgdrvr_enable_cyclic(), mbgdrvr_get_pddev(), PCPS_DDEV_s::open_count, pcps_time_to_time_str(), release_cyclic_lock(), PCPS_DDEV_s::t, and PCPS_DDEV_s::wait_queue.
|
static |
Definition at line 1373 of file mbgclock_main.c.
References _down_interruptible, _mbg_dbg_hw_lpt_clr_bit, _mbg_dbg_hw_lpt_set_bit, _mbg_dbg_hw_lpt_vars, _mbgddmsg_2, _mbgddmsg_4, _mbgddmsg_5, _pcps_ddev_sernum, _pcps_ddev_type_name, _up, DEBUG_DRVR, PCPS_DDEV_s::fasyncptr, get_dev_connected(), MBG_DEV_NAME_FMT, MBG_LOG_INFO, MBG_LOG_WARN, mbgdrvr_delete_device(), mbgdrvr_disable_cyclic(), minor, PCPS_DDEV_s::open_count, and sem_fops.
|
static |
Definition at line 1717 of file mbgclock_main.c.
References _mbg_kdd_msg_4, _mbgddmsg_5, _pcps_ddev_sernum, _pcps_ddev_type_name, ioctl_get_required_privilege(), IOCTL_PCPS_GENERIC_READ_GPS, ioctl_switch(), MBG_DEV_NAME_FMT, MBG_LOG_INFO, MBG_LOG_WARN, MBG_REQ_PRIVL_CFG_READ, MBG_REQ_PRIVL_CFG_WRITE, MBG_REQ_PRIVL_EXT_STATUS, MBG_REQ_PRIVL_NONE, MBG_REQ_PRIVL_SYSTEM, mbgdrvr_get_pddev(), mbgdrvr_ioctl_emu_serial(), and mbgioctl_get_name().
Referenced by mbgclock_ioctl().
|
static |
Definition at line 1622 of file mbgclock_main.c.
References _mbgddmsg_1, and MBG_LOG_WARN.
|
static |
Referenced by mbgclock_release().
|
static |
Definition at line 1006 of file mbgclock_main.c.
References _mbg_dbg_hw_lpt_clr_bit, _mbg_dbg_hw_lpt_set_bit, _mbg_dbg_hw_lpt_vars, _mbgddmsg_0, _mbgddmsg_1, _mbgddmsg_2, _pcps_ddev_disb_irq, _pcps_ddev_irq_num, _pcps_ddev_is_usb, _pcps_ddev_sernum, _pcps_ddev_type_name, _usb_read_thread_started, _usb_read_thread_stop, DEBUG_DRVR, PCPS_DDEV_s::irq_stat_info, MBG_DEV_NAME_FMT, MBG_LOG_INFO, PCPS_IRQ_NONE, PCPS_IRQ_STAT_ENABLE_CALLED, and PCPS_IRQ_STAT_ENABLED.
Referenced by mbgclock_release(), and mbgdrvr_enable_cyclic().
|
static |
Definition at line 1056 of file mbgclock_main.c.
References _mbgddmsg_2, _mbgddmsg_4, _pcps_ddev_enb_irq, _pcps_ddev_irq_num, _pcps_ddev_is_isa, _pcps_ddev_is_usb, _pcps_ddev_sernum, _pcps_ddev_type_name, _usb_read_thread_failed_to_start, _usb_read_thread_set_unused, _usb_read_thread_start, _usb_read_thread_started, DEBUG_DRVR, driver_name, PCPS_DDEV_s::irq_stat_info, jiffies, PCPS_DDEV_s::jiffies_at_irq, MBG_DEV_NAME_FMT, mbg_kdd_msg(), MBG_LOG_ERR, MBG_LOG_INFO, MBG_LOG_WARN, mbgclock_irq_handler(), mbgdrvr_disable_cyclic(), PCPS_DDEV_s::open_count, PCPS_IRQ_1_SEC, PCPS_IRQ_STAT_ENABLE_CALLED, PCPS_IRQ_STAT_ENABLED, and PCPS_IRQ_STAT_UNSAFE.
Referenced by mbgclock_poll(), and mbgclock_read().
|
static |
Definition at line 1639 of file mbgclock_main.c.
References _mbgddmsg_1, _mbgddmsg_2, _mbgddmsg_5, DEBUG_DRVR, DEBUG_IOCTL, MBG_LOG_INFO, and MBG_LOG_WARN.
Referenced by mbgclock_unlocked_ioctl().
|
static |
Definition at line 697 of file mbgclock_main.c.
References PCPS_TIME::hour, mbgclock_irq_handler(), PCPS_TIME::mday, PCPS_TIME::min, PCPS_TIME::month, PCPS_TIME::offs_utc, PCPS_DL_ANN, PCPS_DL_ENB, PCPS_FREER, PCPS_INVT, PCPS_LS_ANN, PCPS_SYNCD, pretend_sync, PCPS_TIME::sec, PCPS_TIME::status, PCPS_TIME::wday, and PCPS_TIME::year.
Referenced by mbgclock_read().
__mbg_inline void release_cyclic_lock | ( | PCPS_DDEV * | pddev, |
unsigned long * | p_flags, | ||
const char * | fnc_name | ||
) |
Definition at line 861 of file mbgclock_main.c.
References _down_interruptible, _down_interruptible_pddev, _kill_fasync, _mbgddmsg_2, _mbgddmsg_4, _mbgddmsg_6, _pcps_ddev_is_usb, _pcps_ddev_sernum, _pcps_ddev_type_name, _up, _up_pddev, _usb_read_thread_daemonize, _usb_read_thread_exit, _usb_read_thread_set_unused, _usb_read_thread_should_stop, PCPS_DDEV_s::cmd, PCPS_DDEV_s::cmd_info, PCPS_DDEV_s::data_avail, DEBUG_DRVR, PCPS_DDEV_s::dev_mutex, PCPS_DDEV_s::fasyncptr, PCPS_TIME::hour, jiffies, PCPS_DDEV_s::jiffies_at_irq, MBG_DEV_NAME_FMT, MBG_ERR_TIMEOUT, MBG_LOG_INFO, MBG_LOG_WARN, mbg_rc_is_error, mbg_strerror(), PCPS_TIME::min, PCPS_TIME::sec, PCPS_TIME::sec100, PCPS_DDEV_s::t, and PCPS_DDEV_s::wait_queue.
Referenced by mbgclock_poll(), and mbgclock_read().
MBGCLOCK_DEFAULT_CLR_UCAP_BUFF_FNC clr_ucap_buff_fnc = mbgclock_default_clr_ucap_buff |
Definition at line 2909 of file mbgclock_main.c.
|
static |
Definition at line 387 of file mbgclock_main.c.
|
static |
Definition at line 258 of file mbgclock_main.c.
Referenced by ddev_list_alloc(), and ddev_list_free().
|
static |
Definition at line 238 of file mbgclock_main.c.
|
static |
Definition at line 239 of file mbgclock_main.c.
PCPS_DRVR_INFO drvr_info |
Definition at line 230 of file mbgclock_main.c.
Referenced by ioctl_switch().
MBGCLOCK_DEFAULT_GET_FAST_HR_TIMESTAMP_CYCLES_FNC get_fast_hr_timestamp_cycles_fnc = mbgclock_default_get_fast_hr_timestamp_cycles |
Definition at line 2907 of file mbgclock_main.c.
MBGCLOCK_DEFAULT_GET_FAST_HR_TIMESTAMP_FNC get_fast_hr_timestamp_fnc = mbgclock_default_get_fast_hr_timestamp |
Definition at line 2906 of file mbgclock_main.c.
MBGCLOCK_DEFAULT_GET_UCAP_ENTRIES_FNC get_ucap_entries_fnc = mbgclock_default_get_ucap_entries |
Definition at line 2910 of file mbgclock_main.c.
MBGCLOCK_DEFAULT_GET_UCAP_EVENT_FNC get_ucap_event_fnc = mbgclock_default_get_ucap_event |
Definition at line 2911 of file mbgclock_main.c.
|
static |
Definition at line 251 of file mbgclock_main.c.
Referenced by mbgclock_init_module().
|
static |
Definition at line 252 of file mbgclock_main.c.
Referenced by mbgclock_init_module(), and pcps_cleanup_device().
|
static |
Definition at line 255 of file mbgclock_main.c.
Referenced by mbg_snprint_revision(), and mbgclock_init_module().
|
static |
Definition at line 257 of file mbgclock_main.c.
Referenced by ddev_list_add_entry(), ddev_list_alloc(), ddev_list_locate_device(), ddev_list_locate_minor(), ddev_list_remove_entry(), mbgclock_init_module(), and setup_dev_fn_list().
struct file_operations mbgclock_fops |
Definition at line 1917 of file mbgclock_main.c.
|
static |
Definition at line 256 of file mbgclock_main.c.
Referenced by mbg_snprint_revision(), mbgclock_init_module(), mbgclock_open(), and mbgclock_release().
int pretend_sync |
Definition at line 233 of file mbgclock_main.c.
Referenced by mbgclock_init_module(), and pcps_time_to_time_str().
|
static |
Definition at line 388 of file mbgclock_main.c.
Referenced by mbgclock_init_module(), mbgclock_open(), mbgclock_release(), and mbgdrvr_get_pddev().