diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-10-09 00:32:31 -0700 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-10-11 01:26:19 -0500 |
commit | 35c955970af6c90429a558470c779d158ce54ea9 (patch) | |
tree | f386f15252fcfd8812d7087ab6b14cf892f49ea3 /libflash/ipmi-hiomap.h | |
parent | c0b84547521da5be92eea9e4bef60a1971cca283 (diff) | |
download | blackbird-skiboot-35c955970af6c90429a558470c779d158ce54ea9.tar.gz blackbird-skiboot-35c955970af6c90429a558470c779d158ce54ea9.zip |
libflash: Add ipmi-hiomap
ipmi-hiomap implements the PNOR access control protocol formerly known
as "the mbox protocol" but uses IPMI instead of the AST LPC mailbox as a
transport. As there is no-longer any mailbox involved in this alternate
implementation the old protocol name is quite misleading, and so it has
been renamed to "the hiomap protoocol" (Host I/O Mapping protocol). The
same commands and events are used though this client-side implementation
assumes v2 of the protocol is supported by the BMC.
The code is a heavily-reworked copy of the mbox-flash source and is
introduced this way to allow for the mbox implementation's eventual
removal.
mbox-flash should in theory be renamed to mbox-hiomap for consistency,
but as it is on life-support effective immediately we may as well just
remove it entirely when the time is right.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
[stewart: prlog debug over prerror for mbox fallback, fix indent]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash/ipmi-hiomap.h')
-rw-r--r-- | libflash/ipmi-hiomap.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libflash/ipmi-hiomap.h b/libflash/ipmi-hiomap.h new file mode 100644 index 00000000..4742b7d8 --- /dev/null +++ b/libflash/ipmi-hiomap.h @@ -0,0 +1,28 @@ +/* Copyright 2018 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_IPMI_HIOMAP_H +#define __LIBFLASH_IPMI_HIOMAP_H + +#include <stdbool.h> +#include <stdint.h> + +#include "blocklevel.h" + +int ipmi_hiomap_init(struct blocklevel_device **bl); +void ipmi_hiomap_exit(struct blocklevel_device *bl); + +#endif /* __LIBFLASH_IPMI_HIOMAP_H */ |