diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2010-09-09 12:04:57 -0500 |
|---|---|---|
| committer | Patrick Williams <iawillia@us.ibm.com> | 2010-09-09 12:04:57 -0500 |
| commit | b4f1ab54b36f7dc273b9a80081c019f7d6618715 (patch) | |
| tree | b92783ceee76262fce9057c4e7537c8390a9c603 /src/include/sys | |
| parent | fbedff5e909777a1d646947bd4f9beca6ddf7024 (diff) | |
| download | talos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.tar.gz talos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.zip | |
Support modules.
Diffstat (limited to 'src/include/sys')
| -rw-r--r-- | src/include/sys/vfs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index 579b9ba34..e596030fe 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -3,6 +3,13 @@ #include <stdint.h> +#define VFS_MODULE_MAX 128 +#define VFS_MODULE_NAME_MAX 64 +#define VFS_SYMBOL_INIT _init +#define VFS_SYMBOL_START _start +#define VFS_STRINGIFY(X) #X +#define VFS_TOSTRING(X) VFS_STRINGIFY(X) + #ifdef __cplusplus extern "C" { @@ -19,6 +26,17 @@ enum VfsMessages VFS_MSG_RESOLVE_MSGQ, }; +struct VfsSystemModule +{ + const char module[VFS_MODULE_NAME_MAX]; + void (*init)(void*); + void (*start)(void*); +}; + +extern VfsSystemModule VFS_MODULES[VFS_MODULE_MAX]; +extern uint64_t VFS_LAST_ADDRESS; + + #ifdef __cplusplus } #endif |

