diff options
author | Joel Stanley <joel@jms.id.au> | 2015-01-29 14:47:54 +1030 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-03-04 16:01:23 +0800 |
commit | d6fb45e3b29df30e30ac400cfb8b030719207213 (patch) | |
tree | d3072e29af542d8815d7a7fa33e179ac5d207bbc /include/ipmi.h | |
parent | f51aeaa4fa5074f747684643bf6ebff3e0884f67 (diff) | |
download | skiboot-d6fb45e3b29df30e30ac400cfb8b030719207213.zip skiboot-d6fb45e3b29df30e30ac400cfb8b030719207213.tar.gz skiboot-d6fb45e3b29df30e30ac400cfb8b030719207213.tar.bz2 |
hw/ipmi: Disable flash access when requested
BMC based systems contain a PNOR to provide flash storage. The host
normally has exclusive access to the PNOR, however the BMC may use IPMI
to request access to perform functions such as update the firmware.
Indicate to users of the flash that the device is busy by taking the
lock, and setting a per-flash busy flag, which causes flash operations
to return OPAL_BUSY.
Minor changes from Jeremy Kerr
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r-- | include/ipmi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ipmi.h b/include/ipmi.h index 9e52916..de5a61b 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -91,7 +91,6 @@ #define IPMI_NETFN_CHASSIS 0x00 #define IPMI_NETFN_STORAGE 0x0a #define IPMI_NETFN_APP 0x06 -#define IPMI_NETFN_OEM 0x32 #define IPMI_WRITE_FRU IPMI_CODE(IPMI_NETFN_STORAGE, 0x12) #define IPMI_GET_SEL_INFO IPMI_CODE(IPMI_NETFN_STORAGE, 0x40) @@ -110,7 +109,9 @@ #define IPMI_GET_MESSAGE IPMI_CODE(IPMI_NETFN_APP, 0x33) #define IPMI_READ_EVENT IPMI_CODE(IPMI_NETFN_APP, 0x35) -#define IPMI_PARTIAL_ADD_ESEL IPMI_CODE(IPMI_NETFN_OEM, 0xf0) +/* AMI OEM comamnds. AMI uses NETFN 0x3a and 0x32 */ +#define IPMI_PARTIAL_ADD_ESEL IPMI_CODE(0x32, 0xf0) +#define IPMI_PNOR_ACCESS_STATUS IPMI_CODE(0x3a, 0x07) /* * IPMI response codes. |