diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-02-22 20:31:01 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-23 16:04:27 +1100 |
commit | 23fe769115c41e8859ce3d23dc75953bfb290f45 (patch) | |
tree | b6a9de29eef704d45c71557480b5ee68279d988a /libflash/mbox-flash.h | |
parent | c78cd1b4d6c14d17ec202f503b4182b6fd96afbd (diff) | |
download | skiboot-23fe769115c41e8859ce3d23dc75953bfb290f45.zip skiboot-23fe769115c41e8859ce3d23dc75953bfb290f45.tar.gz skiboot-23fe769115c41e8859ce3d23dc75953bfb290f45.tar.bz2 |
libflash: blocklevel backend for MBOX flash access
The use MBOX protocol to request flash access from the BMC. Then
read/write to the 'flash' through windows it creates on LPC FW space.
Reference implementation of the mbox flash daemon for BMC userspace:
https://github.com/cyrilbur-ibm/mboxbridge
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/mbox-flash.h')
-rw-r--r-- | libflash/mbox-flash.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libflash/mbox-flash.h b/libflash/mbox-flash.h new file mode 100644 index 0000000..cd587d4 --- /dev/null +++ b/libflash/mbox-flash.h @@ -0,0 +1,24 @@ +/* Copyright 2017 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __LIBFLASH_MBOX_FLASH_H +#define __LIBFLASH_MBOX_FLASH_H + +int mbox_flash_init(struct blocklevel_device **bl); +void mbox_flash_exit(struct blocklevel_device *bl); +#endif /* __LIBFLASH_MBOX_FLASH_H */ + + |