Files
luban-lite/bsp/common/include/aic_partition.h

35 lines
824 B
C
Raw Permalink Normal View History

2023-11-30 19:48:02 +08:00
/*
2025-07-22 11:15:46 +08:00
* Copyright (c) 2023-2025, ArtInChip Technology Co., Ltd
2023-11-30 19:48:02 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Mingfeng.Li <mingfeng.li@artinchip.com>
* Dehuang Wu <dehuang.wu@artinchip.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <aic_common.h>
2024-01-27 08:47:24 +08:00
#ifndef _AIC_PARTITION_H_
#define _AIC_PARTITION_H_
#define MAX_PARTITION_NAME 144
2023-11-30 19:48:02 +08:00
struct aic_partition {
char name[MAX_PARTITION_NAME];
2025-07-22 11:15:46 +08:00
int index;
2024-01-27 08:47:24 +08:00
u64 start;
u64 size;
2023-11-30 19:48:02 +08:00
struct aic_partition *next;
};
struct aic_partition *aic_part_mtd_parse(char *parts);
struct aic_partition *aic_part_gpt_parse(char *parts);
2025-07-22 11:15:46 +08:00
struct aic_partition *aic_part_get_byname(struct aic_partition *head, const char *name);
2023-11-30 19:48:02 +08:00
void aic_part_free(struct aic_partition *head);
void aic_part_dump(struct aic_partition *head);
2024-01-27 08:47:24 +08:00
#endif