10#include "dawn/porting/config.hxx"
11#include "dawn/prog/common.hxx"
33 PROG_REDIRECT_CFG_FIRST = 0,
34 PROG_REDIRECT_CFG_IOBIND = 1,
35 PROG_REDIRECT_CFG_LAST = 31
53#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
54 const char *getClassNameStr()
const override
85 return CProgRedirect::cfgId(
false, size, PROG_REDIRECT_CFG_IOBIND);
91 SProgRedirectIOBind cfg;
97 std::vector<SRedirectBind *> binds;
99 int configureDesc(
const CDescObject &desc);
100 int allocObject(
const SProgRedirectIOBind *cfg);
102#ifdef CONFIG_DAWN_IO_NOTIFY
103 static int ioNotifierCb(
void *priv, io_ddata_t *data);
Descriptor wrapper for individual object configuration.
Base class for all PROG (processing) objects.
@ PROG_CLASS_REDIRECT
Generic input-to-output routing bridge.
Input-to-output routing Program.
bool hasThread() const
Check if a background thread is active.
int deinit()
De-initialize object.
int init()
One-time initialize object after bindings are resolved.
int doStop()
Stop implementation hook.
int configure()
Configure object from descriptor data.
int doStart()
Start implementation hook.
static ObjectCfgId objectCfg(uint8_t type, uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Construct 32-bit ConfigID from component fields.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
Out-of-tree user-extension hooks for Dawn.
One redirect binding payload (2 uint32_t words).
@ OBJTYPE_PROG
Program/algorithm object type.
@ DTYPE_ANY
Wildcard data type (matches any actual type).
uint32_t ObjectId
ObjectID type - single 32-bit value.
static ObjectId objectId(uint8_t type, uint16_t cls, uint8_t dtype, uint8_t flags, uint16_t priv)
Construct 32-bit ObjectID from component fields.
32-bit encoded object identifier (union with bit field).