diff options
Diffstat (limited to 'amalthea/context.h')
-rw-r--r-- | amalthea/context.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/amalthea/context.h b/amalthea/context.h new file mode 100644 index 0000000..3f88930 --- /dev/null +++ b/amalthea/context.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Amalthea context related macros. + * + * Copyright (C) 2022 Google LLC + */ + +#ifndef __AMALTHEA_CONTEXT_H__ +#define __AMALTHEA_CONTEXT_H__ + +/* The stream IDs used for each core. */ +#define INST_SID_FOR_CORE(_x_) ((1 << 6) | ((_x_) << 4) | (0 << 3)) +#define DATA_SID_FOR_CORE(_x_) ((1 << 6) | ((_x_) << 4) | (1 << 3)) +#define IDMA_SID_FOR_CORE(_x_) ((1 << 6) | ((_x_) << 4)) + +#endif /* __AMALTHEA_CONTEXT_H__ */ |