blob: a2679da151249a0b2940b243afd4a45f9a491f06 [file] [log] [blame]
/*
* Google LWIS I/O Entry Implementation
*
* Copyright (c) 2021 Google, LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef LWIS_IO_ENTRY_H_
#define LWIS_IO_ENTRY_H_
#include "lwis_commands.h"
#include "lwis_device.h"
/*
* lwis_io_entry_poll:
* Polls a register for a specified time or until it reaches the expected value.
*/
int lwis_io_entry_poll(struct lwis_device *lwis_dev, struct lwis_io_entry *entry,
bool non_blocking);
/*
* lwis_io_entry_read_assert:
* Returns error if a register's value is not as expected.
*/
int lwis_io_entry_read_assert(struct lwis_device *lwis_dev, struct lwis_io_entry *entry);
#endif /* LWIS_IO_ENTRY_H_ */