From 35c955970af6c90429a558470c779d158ce54ea9 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 9 Oct 2018 00:32:31 -0700 Subject: 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 [stewart: prlog debug over prerror for mbox fallback, fix indent] Signed-off-by: Stewart Smith --- libflash/ipmi-hiomap.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libflash/ipmi-hiomap.h (limited to 'libflash/ipmi-hiomap.h') 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 +#include + +#include "blocklevel.h" + +int ipmi_hiomap_init(struct blocklevel_device **bl); +void ipmi_hiomap_exit(struct blocklevel_device *bl); + +#endif /* __LIBFLASH_IPMI_HIOMAP_H */ -- cgit v1.2.1