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/skiboot.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/skiboot.h')
-rw-r--r-- | include/skiboot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index 9dfe0e7..beaa7db 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -201,6 +201,9 @@ struct flash_chip; extern int flash_register(struct flash_chip *chip, bool is_system_flash); extern bool flash_load_resource(enum resource_id id, uint32_t subid, void *buf, size_t *len); +extern bool flash_reserve(void); +extern void flash_release(void); + /* NVRAM support */ extern void nvram_init(void); |