diff options
| author | Michael Brown | 2012-04-24 22:48:48 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-04-26 15:17:24 +0200 |
| commit | 2c1e8d2cb13e2c46c43968765f220ef64f416940 (patch) | |
| tree | 8eb294049f3234d234df73907e19dc02dbfadb21 /src/include | |
| parent | [crypto] Do not allow build-time cryptography settings to be overridden (diff) | |
| download | ipxe-2c1e8d2cb13e2c46c43968765f220ef64f416940.tar.gz ipxe-2c1e8d2cb13e2c46c43968765f220ef64f416940.tar.xz ipxe-2c1e8d2cb13e2c46c43968765f220ef64f416940.zip | |
[natsemi] Replace driver for National Semicondutor NICs
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/threewire.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/ipxe/threewire.h b/src/include/ipxe/threewire.h index 135ef56a3..b5513ecdd 100644 --- a/src/include/ipxe/threewire.h +++ b/src/include/ipxe/threewire.h @@ -62,6 +62,19 @@ init_at93cx6 ( struct spi_device *device, unsigned int organisation ) { } /** + * Initialise Atmel AT93C06 serial EEPROM + * + * @v device SPI device + * @v organisation Word organisation (8 or 16) + */ +static inline __attribute__ (( always_inline )) void +init_at93c06 ( struct spi_device *device, unsigned int organisation ) { + device->nvs.size = ( 256 / organisation ); + device->address_len = ( ( organisation == 8 ) ? 7 : 6 ); + init_at93cx6 ( device, organisation ); +} + +/** * Initialise Atmel AT93C46 serial EEPROM * * @v device SPI device |
