From f84d315fa5d5a4b94a137f4271532149c93b0a8a Mon Sep 17 00:00:00 2001 From: NicJA Date: Fri, 3 Jul 2015 12:18:57 +0000 Subject: [PATCH] start fleshing out the headers a little git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50906 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/storage/includes/device.h | 14 ++++++++++++++ rom/storage/includes/unit.h | 15 +++++++++++++++ rom/storage/includes/volume.h | 10 ++++++++++ rom/storage/storage_intern.h | 17 ++++++++++------- 4 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 rom/storage/includes/device.h create mode 100644 rom/storage/includes/unit.h create mode 100644 rom/storage/includes/volume.h diff --git a/rom/storage/includes/device.h b/rom/storage/includes/device.h new file mode 100644 index 0000000000..2ff71728e9 --- /dev/null +++ b/rom/storage/includes/device.h @@ -0,0 +1,14 @@ +#if !defined(_STORAGE_DEVICE_H) +#define _STORAGE_DEVICE_H + +/* + Definitions relating to storage devices (i.e controllers) + */ + +struct StorageDevice +{ + struct Node sd_Node; + struct List sd_Units; +}; + +#endif diff --git a/rom/storage/includes/unit.h b/rom/storage/includes/unit.h new file mode 100644 index 0000000000..da463a1eff --- /dev/null +++ b/rom/storage/includes/unit.h @@ -0,0 +1,15 @@ +#if !defined(_STORAGE_UNIT_H) +#define _STORAGE_UNIT_H + +/* + Definitions relating to storage units (i.e drives) + */ + +struct StorageUnit +{ + struct Node su_Node; // ln_Name points to the IDNode; + struct StorageDevice *su_Device; + struct List su_Volumes; +}; + +#endif diff --git a/rom/storage/includes/volume.h b/rom/storage/includes/volume.h new file mode 100644 index 0000000000..df23c50960 --- /dev/null +++ b/rom/storage/includes/volume.h @@ -0,0 +1,10 @@ +#if !defined(_STORAGE_VOLUME_H) +#define _STORAGE_VOLUME_H + +struct StorageVolume +{ + struct Node sv_Node; // ln_Name points to the IDNode; + struct StorageUnit *sv_Unit; +}; + +#endif diff --git a/rom/storage/storage_intern.h b/rom/storage/storage_intern.h index 5ee59805ac..c7c10a5c20 100644 --- a/rom/storage/storage_intern.h +++ b/rom/storage/storage_intern.h @@ -8,15 +8,12 @@ #include LC_LIBDEFS_FILE struct StorageBase_intern { - struct LibHeader lh; + struct LibHeader lh; + struct List sb_IDs; + struct List sb_Devices; }; -/* Namespace structures */ - -struct Storage_IDNode -{ - struct Node SIDN_Node; /* ln_Name = ID (e.g. "CD0") */ -}; +/* ID Namespace structures */ struct Storage_IDFamily { @@ -24,4 +21,10 @@ struct Storage_IDFamily struct List SIDF_IDs; }; +struct Storage_IDNode +{ + struct Node SIDN_Node; /* ln_Name = ID (e.g. "CD0") */ +}; + + #endif -- 2.11.4.GIT