1 #ifndef _IPXE_THREEWIRE_H 2 #define _IPXE_THREEWIRE_H 24 #define THREEWIRE_READ 0x6 27 #define THREEWIRE_WRITE 0x5 30 #define THREEWIRE_EWEN 0x4 33 #define THREEWIRE_EWEN_ADDRESS INT_MAX 40 #define THREEWIRE_WRITE_MDELAY 10 FILE_LICENCE(GPL2_OR_LATER)
A non-volatile storage device.
uint64_t address
Base address.
init_at93cx6(device, organisation)
int threewire_detect_address_len(struct spi_device *device)
Autodetect device address length.
int threewire_write(struct nvs_device *nvs, unsigned int address, const void *data, size_t len)
Write data to three-wire device.
static unsigned int organisation
static __attribute__((always_inline)) void init_at93cx6(struct spi_device *device
Initialise Atmel AT93C06 serial EEPROM.
uint8_t data[48]
Additional event data.
int threewire_read(struct nvs_device *nvs, unsigned int address, void *data, size_t len)
Read data from three-wire device.