56 DBGC (
device,
"3wire %p reading %zd bytes at %04x\n",
61 DBGC (
device,
"3wire %p could not read: %s\n",
79 const void *
data,
size_t len ) {
86 DBGC (
device,
"3wire %p writing %zd bytes at %04x\n",
92 DBGC (
device,
"3wire %p could not enable writing: %s\n",
100 DBGC (
device,
"3wire %p could not write: %s\n",
129 DBGC (
device,
"3wire %p could not autodetect address "
134 DBGC (
device,
"3wire %p autodetected address length %d\n",
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
#define assert(condition)
Assert a condition at run-time.
uint8_t data[48]
Additional event data.
uint64_t address
Base address.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define THREEWIRE_WRITE_MDELAY
Time to wait for write cycles to complete.
#define THREEWIRE_WRITE
Write data to memory array.
#define THREEWIRE_EWEN
Write enable.
#define THREEWIRE_EWEN_ADDRESS
Address to be used for write enable command.
#define THREEWIRE_READ
Read data from memory array.
#define SPI_MODE_THREEWIRE
Threewire-compatible mode.
#define SPI_AUTODETECT_ADDRESS_LEN
SPI magic autodetection address length.
char * strerror(int errno)
Retrieve string representation of error number.
A non-volatile storage device.
unsigned int word_len_log2
Word length.
struct nvs_device nvs
NVS device.
int threewire_detect_address_len(struct spi_device *device)
Autodetect device address length.
int threewire_read(struct nvs_device *nvs, unsigned int address, void *data, size_t len)
Read data from three-wire device.
int threewire_write(struct nvs_device *nvs, unsigned int address, const void *data, size_t len)
Write data to three-wire device.
Three-wire serial interface.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.