CS350 COS
COS
Loading...
Searching...
No Matches
sga.h
Go to the documentation of this file.
1
2
#ifndef __SGA_H__
3
#define __SGA_H__
4
5
#define SGARRAY_MAX_ENTRIES 32
6
7
typedef
struct
SGEntry
8
{
9
uint64_t
offset
;
10
uint64_t
length
;
11
}
SGEntry
;
12
13
typedef
struct
SGArray
14
{
15
uint32_t
len
;
16
SGEntry
entries
[
SGARRAY_MAX_ENTRIES
];
17
}
SGArray
;
18
19
void
SGArray_Init
(
SGArray
*sga);
20
int
SGArray_Append
(
SGArray
*sga,
uint64_t
off,
uint64_t
len
);
21
void
SGArray_Dump
(
SGArray
*sga);
22
23
#endif
/* __SGA_H__ */
24
len
uint64_t len
Definition:
multiboot.h:2
SGArray_Dump
void SGArray_Dump(SGArray *sga)
Definition:
sga.c:30
SGEntry::length
uint64_t length
Definition:
sga.h:10
SGARRAY_MAX_ENTRIES
#define SGARRAY_MAX_ENTRIES
Definition:
sga.h:5
SGArray::entries
SGEntry entries[SGARRAY_MAX_ENTRIES]
Definition:
sga.h:16
SGArray_Init
void SGArray_Init(SGArray *sga)
Definition:
sga.c:12
SGArray_Append
int SGArray_Append(SGArray *sga, uint64_t off, uint64_t len)
Definition:
sga.c:18
SGArray::len
uint32_t len
Definition:
sga.h:15
SGEntry::offset
uint64_t offset
Definition:
sga.h:9
SGArray
Definition:
sga.h:14
SGEntry
Definition:
sga.h:8
uint32_t
unsigned int uint32_t
Definition:
types.h:12
uint64_t
unsigned long uint64_t
Definition:
types.h:13
sys
include
sga.h
Generated by
1.9.6