Skip to content

Commit 949dbc2

Browse files
committed
Python: Add bindings for osd_cl_scm
No bindings for osd_cl_scm_get_subnetinfo() so far, as this would require more work to get the subnet info passed in suitable form into a dict (and we don't need it at the moment).
1 parent 82f1cde commit 949dbc2

File tree

3 files changed

+901
-367
lines changed

3 files changed

+901
-367
lines changed

src/python/src/cosd.pxd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,25 @@ cdef extern from "osd/cl_mam.h" nogil:
240240
const void *data, size_t nbyte,
241241
uint64_t start_addr)
242242

243+
cdef extern from "osd/cl_scm.h" nogil:
244+
cdef struct osd_subnet_desc:
245+
uint16_t vendor_id;
246+
uint16_t device_id
247+
uint16_t max_pkt_len
248+
249+
osd_result osd_cl_scm_cpus_start(osd_hostmod_ctx *hostmod_ctx,
250+
unsigned int subnet_addr)
251+
252+
osd_result osd_cl_scm_cpus_stop(osd_hostmod_ctx *hostmod_ctx,
253+
unsigned int subnet_addr)
254+
255+
osd_result osd_cl_scm_system_reset(osd_hostmod_ctx *hostmod_ctx,
256+
unsigned int subnet_addr, bint reset)
257+
258+
osd_result osd_cl_scm_get_subnetinfo(osd_hostmod_ctx *hostmod_ctx,
259+
unsigned int subnet_addr,
260+
osd_subnet_desc *subnet_desc)
261+
243262
cdef extern from "osd/module.h" nogil:
244263
cdef struct osd_module_desc:
245264
uint16_t addr

0 commit comments

Comments
 (0)