28 lines
453 B
C
28 lines
453 B
C
#ifndef __STREAMED_H__
|
|
#define __STREAMED_H__
|
|
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include "client.h"
|
|
|
|
#define STREAM_MODE_READ 0
|
|
#define STREAM_MODE_WRITE 1
|
|
|
|
|
|
typedef struct {
|
|
ClientContext* clientContext;
|
|
uint32_t regId;
|
|
uint64_t startAddr;
|
|
uint64_t segLen;
|
|
uint8_t mode;
|
|
} StreamReg;
|
|
|
|
typedef struct {
|
|
StreamReg* regs;
|
|
size_t regCount;
|
|
size_t allocatedSize;
|
|
} DeviceSegStreamReg;
|
|
|
|
|
|
#endif //ifndef __STREAMED_H__
|