| /* SPDX-License-Identifier: GPL-2.0 */ |
| * Generic serial GNSS receiver driver |
| * Copyright (C) 2018 Johan Hovold <johan@kernel.org> |
| #ifndef _LINUX_GNSS_SERIAL_H |
| #define _LINUX_GNSS_SERIAL_H |
| #include <asm/termbits.h> |
| struct serdev_device *serdev; |
| struct gnss_device *gdev; |
| const struct gnss_serial_ops *ops; |
| enum gnss_serial_pm_state { |
| int (*set_power)(struct gnss_serial *gserial, |
| enum gnss_serial_pm_state state); |
| extern const struct dev_pm_ops gnss_serial_pm_ops; |
| struct gnss_serial *gnss_serial_allocate(struct serdev_device *gserial, |
| void gnss_serial_free(struct gnss_serial *gserial); |
| int gnss_serial_register(struct gnss_serial *gserial); |
| void gnss_serial_deregister(struct gnss_serial *gserial); |
| static inline void *gnss_serial_get_drvdata(struct gnss_serial *gserial) |
| #endif /* _LINUX_GNSS_SERIAL_H */ |