Thomas,
In general, a PCI Adapter should store configuration information related to the
PCI Adapter on the PCI Adapter itself. This could be in the same storage
device the UEFI driver resides or a separate storage device on the PCI Adapter.
You would use the PCI I/O Protocol services to access the storage device on
the PCI Adapter. If the information you want to store is related to
configuration settings set by the user, then you would implement HII Forms for
the adapter setup screens and would also implement the HII Config Access
Protocol to perform get/set operations to the storage device on the PCI Adapter.
It is not a good idea for PCI Adapters to use SetVariable(), because the
configuration settings will be stored in the platform which means they will not
travel with the adapter if it is moved to a different system and the platform
may not have enough storage space to support PCI adapters storing their
configuration settings.
Mike
From: Thomas Rognon [mailto:tcrog...@gmail.com]
Sent: Tuesday, May 28, 2013 7:38 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] How do I store data on a PCI card?
I have a basic Intel PCI network card that has 512k of space. I've successfully
flashed a UEFI driver onto it and got the driver to load when the computer
turns on.
I need to store information between boots for my driver and I cannot assume any
file systems are present. I tried using SetVariable, but I've found the some
motherboards do not always have sufficient space to store my information.
I've been using the EFI_PCI_IO_PROTOCOL with no success. I'm new to PCI if
that's not obvious haha. Thanks in advance for any help.
Thomas Rognon
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel