summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-07-13 09:42:19 -0400
committerTom Rini <[email protected]>2021-07-13 09:42:19 -0400
commita7bdd2dd8e7685166767c5fecfdce7e5dc8a40be (patch)
treeb4b167b47aa3e4934734d75f62c9a7e5b94a91d5 /include
parent490101a5e5df65238b900b21b81361bc4b13da2e (diff)
parentb0b1449b3be9b93ecc57d91b0cb18ed81fc8a1ee (diff)
Merge tag 'efi-2021-10-rc1' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2021-10-rc1 Documentation * fix typo in signature.txt UEFI * provide file attributes in EFI_FILE_PROTOCOL.Read() * various capsule update fixes
Diffstat (limited to 'include')
-rw-r--r--include/fs.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/include/fs.h b/include/fs.h
index 0794b50d102..1c79e299fdd 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -6,6 +6,7 @@
#define _FS_H
#include <common.h>
+#include <rtc.h>
struct cmd_tbl;
@@ -160,13 +161,26 @@ int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len,
#define FS_DT_REG 8 /* regular file */
#define FS_DT_LNK 10 /* symbolic link */
-/*
- * A directory entry, returned by fs_readdir(). Returns information
+/**
+ * struct fs_dirent - directory entry
+ *
+ * A directory entry, returned by fs_readdir(). Returns information
* about the file/directory at the current directory entry position.
*/
struct fs_dirent {
- unsigned type; /* one of FS_DT_x (not a mask) */
- loff_t size; /* size in bytes */
+ /** @type: one of FS_DT_x (not a mask) */
+ unsigned int type;
+ /** @size: file size */
+ loff_t size;
+ /** @flags: attribute flags (FS_ATTR_*) */
+ u32 attr;
+ /** create_time: time of creation */
+ struct rtc_time create_time;
+ /** access_time: time of last access */
+ struct rtc_time access_time;
+ /** change_time: time of last modification */
+ struct rtc_time change_time;
+ /** name: file name */
char name[256];
};