1 /*
2  * Copyright (c) 2022 Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Licensed under the Apache License, Version 2.0 (the License); you may
7  * not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef __IO_FLASH_H__
20 #define __IO_FLASH_H__
21 
22 #include "io_storage.h"
23 
24 typedef struct io_flash_dev_spec {
25     uintptr_t buffer;
26     size_t bufferlen;
27     uint32_t base_addr;
28     uintptr_t flash_driver;
29 } io_flash_dev_spec_t;
30 
31 struct io_dev_connector;
32 
33 /* Register the flash driver with the IO abstraction internally it register a
34  * block device*/
35 int register_io_dev_flash(const struct io_dev_connector **dev_con);
36 
37 #endif /* __IO_FLASH_H__ */
38