]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[myri10ge] Add NonVolatile Option (nvo) support
authorGlenn Brown <glenn@myri.com>
Wed, 23 Jun 2010 20:18:36 +0000 (13:18 -0700)
committerMichael Brown <mcb30@ipxe.org>
Thu, 24 Jun 2010 22:36:58 +0000 (23:36 +0100)
commit66df967cb472b8d8825a779b1df360c342db61b7
tree2f19c5d661252d07d19f04b00e26d88c215abcc9
parent978c840365894598f4c3046e8680e3567e1bfa97
[myri10ge] Add NonVolatile Option (nvo) support

Add NonVolatile Option (nvo) and NonVolatile Storage (nvs) support to
the myri10ge driver using the EEPROM read/write mechanism provided by
the NIC's Vendor Specific PCI capability.

The myri10ge NIC is capabile of storing 64KB or more of nonvolatile
options, but this patch advertises only 512 bytes of nvo storage
because iPXE malloc's a buffer matching the total size we advertise.
512 is plenty without wasting malloc'd memory.  (The 2 other drivers
currently supporting nvo advertise 256 bytes or less.)

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/myri10ge.c