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
7typedef struct SGEntry
8{
12
13typedef struct SGArray
14{
18
19void SGArray_Init(SGArray *sga);
21void SGArray_Dump(SGArray *sga);
22
23#endif /* __SGA_H__ */
24
uint64_t len
Definition: multiboot.h:2
void SGArray_Dump(SGArray *sga)
Definition: sga.c:30
uint64_t length
Definition: sga.h:10
#define SGARRAY_MAX_ENTRIES
Definition: sga.h:5
SGEntry entries[SGARRAY_MAX_ENTRIES]
Definition: sga.h:16
void SGArray_Init(SGArray *sga)
Definition: sga.c:12
int SGArray_Append(SGArray *sga, uint64_t off, uint64_t len)
Definition: sga.c:18
uint32_t len
Definition: sga.h:15
uint64_t offset
Definition: sga.h:9
Definition: sga.h:14
Definition: sga.h:8
unsigned int uint32_t
Definition: types.h:12
unsigned long uint64_t
Definition: types.h:13