Skip to content

Commit 3598ae9

Browse files
committed
[SDK] arc.h: Isolate the ARC-specific definitions from those specific to the NT OS Loader Parameter Block
1 parent 5187834 commit 3598ae9

File tree

1 file changed

+111
-106
lines changed
  • sdk/include/reactos/arc

1 file changed

+111
-106
lines changed

sdk/include/reactos/arc/arc.h

Lines changed: 111 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,117 @@ typedef struct _CONFIGURATION_COMPONENT
160160
PCHAR Identifier;
161161
} CONFIGURATION_COMPONENT, *PCONFIGURATION_COMPONENT;
162162

163+
typedef struct _MONITOR_CONFIGURATION_DATA
164+
{
165+
USHORT Version;
166+
USHORT Revision;
167+
USHORT HorizontalResolution;
168+
USHORT HorizontalDisplayTime;
169+
USHORT HorizontalBackPorch;
170+
USHORT HorizontalFrontPorch;
171+
USHORT HorizontalSync;
172+
USHORT VerticalResolution;
173+
USHORT VerticalBackPorch;
174+
USHORT VerticalFrontPorch;
175+
USHORT VerticalSync;
176+
USHORT HorizontalScreenSize;
177+
USHORT VerticalScreenSize;
178+
} MONITOR_CONFIGURATION_DATA, *PMONITOR_CONFIGURATION_DATA;
179+
180+
typedef struct _FLOPPY_CONFIGURATION_DATA
181+
{
182+
USHORT Version;
183+
USHORT Revision;
184+
CHAR Size[8];
185+
ULONG MaxDensity;
186+
ULONG MountDensity;
187+
} FLOPPY_CONFIGURATION_DATA, *PFLOPPY_CONFIGURATION_DATA;
188+
189+
typedef struct _TIMEINFO
190+
{
191+
USHORT Year;
192+
USHORT Month;
193+
USHORT Day;
194+
USHORT Hour;
195+
USHORT Minute;
196+
USHORT Second;
197+
} TIMEINFO;
198+
199+
typedef enum _MEMORY_TYPE
200+
{
201+
MemoryExceptionBlock,
202+
MemorySystemBlock,
203+
MemoryFree,
204+
MemoryBad,
205+
MemoryLoadedProgram,
206+
MemoryFirmwareTemporary,
207+
MemoryFirmwarePermanent,
208+
MemoryFreeContiguous,
209+
MemorySpecialMemory,
210+
MemoryMaximum
211+
} MEMORY_TYPE;
212+
213+
typedef struct _MEMORY_DESCRIPTOR
214+
{
215+
MEMORY_TYPE MemoryType;
216+
PFN_NUMBER BasePage;
217+
PFN_NUMBER PageCount;
218+
} MEMORY_DESCRIPTOR, *PMEMORY_DESCRIPTOR;
219+
220+
typedef int CONFIGTYPE;
221+
typedef struct tagFILEINFORMATION
222+
{
223+
LARGE_INTEGER StartingAddress;
224+
LARGE_INTEGER EndingAddress;
225+
LARGE_INTEGER CurrentAddress;
226+
CONFIGTYPE Type;
227+
ULONG FileNameLength;
228+
UCHAR Attributes;
229+
CHAR Filename[32];
230+
} FILEINFORMATION;
231+
232+
typedef
233+
ARC_STATUS
234+
(*ARC_CLOSE)(
235+
ULONG FileId
236+
);
237+
238+
typedef
239+
ARC_STATUS
240+
(*ARC_GET_FILE_INFORMATION)(
241+
ULONG FileId,
242+
FILEINFORMATION* Information
243+
);
244+
245+
typedef
246+
ARC_STATUS
247+
(*ARC_OPEN)(
248+
CHAR* Path,
249+
OPENMODE OpenMode,
250+
ULONG* FileId
251+
);
252+
253+
typedef
254+
ARC_STATUS
255+
(*ARC_READ)(
256+
ULONG FileId,
257+
VOID* Buffer,
258+
ULONG N, ULONG* Count
259+
);
260+
261+
typedef
262+
ARC_STATUS
263+
(*ARC_SEEK)(
264+
ULONG FileId,
265+
LARGE_INTEGER* Position,
266+
SEEKMODE SeekMode
267+
);
268+
269+
270+
//
271+
// Definitions for the NT OS Loader and the Loader Parameter Block
272+
//
273+
163274
typedef struct _CONFIGURATION_COMPONENT_DATA
164275
{
165276
struct _CONFIGURATION_COMPONENT_DATA *Parent;
@@ -203,37 +314,6 @@ typedef enum _TYPE_OF_MEMORY
203314
LoaderMaximum
204315
} TYPE_OF_MEMORY;
205316

206-
typedef enum _MEMORY_TYPE
207-
{
208-
MemoryExceptionBlock,
209-
MemorySystemBlock,
210-
MemoryFree,
211-
MemoryBad,
212-
MemoryLoadedProgram,
213-
MemoryFirmwareTemporary,
214-
MemoryFirmwarePermanent,
215-
MemoryFreeContiguous,
216-
MemorySpecialMemory,
217-
MemoryMaximum
218-
} MEMORY_TYPE;
219-
220-
typedef struct _TIMEINFO
221-
{
222-
USHORT Year;
223-
USHORT Month;
224-
USHORT Day;
225-
USHORT Hour;
226-
USHORT Minute;
227-
USHORT Second;
228-
} TIMEINFO;
229-
230-
typedef struct _MEMORY_DESCRIPTOR
231-
{
232-
MEMORY_TYPE MemoryType;
233-
PFN_NUMBER BasePage;
234-
PFN_NUMBER PageCount;
235-
} MEMORY_DESCRIPTOR, *PMEMORY_DESCRIPTOR;
236-
237317
typedef struct _MEMORY_ALLOCATION_DESCRIPTOR
238318
{
239319
LIST_ENTRY ListEntry;
@@ -268,32 +348,6 @@ typedef struct _ARC_DISK_INFORMATION
268348
LIST_ENTRY DiskSignatureListHead;
269349
} ARC_DISK_INFORMATION, *PARC_DISK_INFORMATION;
270350

271-
typedef struct _MONITOR_CONFIGURATION_DATA
272-
{
273-
USHORT Version;
274-
USHORT Revision;
275-
USHORT HorizontalResolution;
276-
USHORT HorizontalDisplayTime;
277-
USHORT HorizontalBackPorch;
278-
USHORT HorizontalFrontPorch;
279-
USHORT HorizontalSync;
280-
USHORT VerticalResolution;
281-
USHORT VerticalBackPorch;
282-
USHORT VerticalFrontPorch;
283-
USHORT VerticalSync;
284-
USHORT HorizontalScreenSize;
285-
USHORT VerticalScreenSize;
286-
} MONITOR_CONFIGURATION_DATA, *PMONITOR_CONFIGURATION_DATA;
287-
288-
typedef struct _FLOPPY_CONFIGURATION_DATA
289-
{
290-
USHORT Version;
291-
USHORT Revision;
292-
CHAR Size[8];
293-
ULONG MaxDensity;
294-
ULONG MountDensity;
295-
} FLOPPY_CONFIGURATION_DATA, *PFLOPPY_CONFIGURATION_DATA;
296-
297351
//
298352
// SMBIOS Table Header (FIXME: maybe move to smbios.h?)
299353
//
@@ -807,53 +861,4 @@ typedef struct _LOADER_PARAMETER_BLOCK
807861
#endif
808862
} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
809863

810-
typedef int CONFIGTYPE;
811-
typedef struct tagFILEINFORMATION
812-
{
813-
LARGE_INTEGER StartingAddress;
814-
LARGE_INTEGER EndingAddress;
815-
LARGE_INTEGER CurrentAddress;
816-
CONFIGTYPE Type;
817-
ULONG FileNameLength;
818-
UCHAR Attributes;
819-
CHAR Filename[32];
820-
} FILEINFORMATION;
821-
822-
typedef
823-
ARC_STATUS
824-
(*ARC_CLOSE)(
825-
ULONG FileId
826-
);
827-
828-
typedef
829-
ARC_STATUS
830-
(*ARC_GET_FILE_INFORMATION)(
831-
ULONG FileId,
832-
FILEINFORMATION* Information
833-
);
834-
835-
typedef
836-
ARC_STATUS
837-
(*ARC_OPEN)(
838-
CHAR* Path,
839-
OPENMODE OpenMode,
840-
ULONG* FileId
841-
);
842-
843-
typedef
844-
ARC_STATUS
845-
(*ARC_READ)(
846-
ULONG FileId,
847-
VOID* Buffer,
848-
ULONG N, ULONG* Count
849-
);
850-
851-
typedef
852-
ARC_STATUS
853-
(*ARC_SEEK)(
854-
ULONG FileId,
855-
LARGE_INTEGER* Position,
856-
SEEKMODE SeekMode
857-
);
858-
859864
#endif

0 commit comments

Comments
 (0)