iPXE
Three-wire device types

Functions

static __attribute__ ((always_inline)) void init_at93c06(struct spi_device *device
 Initialise Atmel AT93C06 serial EEPROM.
 init_at93cx6 (device, organisation)

Variables

static unsigned int organisation
device nvs block_size = 1
device command_len = 3
device device nvs read = threewire_read
device nvs write = threewire_write
device address_len = ( ( organisation == 8 ) ? 7 : 6 )

Detailed Description

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline) )
inlinestatic

Initialise Atmel AT93C06 serial EEPROM.

Initialise Atmel AT93C66 serial EEPROM.

Initialise Atmel AT93C56 serial EEPROM.

Initialise Atmel AT93C46 serial EEPROM.

Parameters
deviceSPI device
organisationWord organisation (8 or 16)

◆ init_at93cx6()

init_at93cx6 ( device ,
organisation  )

References organisation.

Variable Documentation

◆ organisation

unsigned int organisation
Initial value:
{
device->nvs.word_len_log2 = ( ( organisation == 8 ) ? 0 : 1 )
static unsigned int organisation
Definition threewire.h:57
A hardware device.
Definition device.h:77

Definition at line 57 of file threewire.h.

Referenced by init_at93cx6().

◆ block_size

device nvs block_size = 1

Definition at line 59 of file threewire.h.

Referenced by slam_mc_socket_deliver(), and slam_pull_header().

◆ command_len

device command_len = 3

Definition at line 60 of file threewire.h.

Referenced by guestrpc_command().

◆ read

Definition at line 61 of file threewire.h.

◆ write

◆ address_len

device address_len = ( ( organisation == 8 ) ? 7 : 6 )

Definition at line 74 of file threewire.h.

Referenced by falcon_spi_rw().