Skip to content

Commit

Permalink
Python: Add bindings for osd_cl_scm
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
imphil committed Sep 12, 2019
1 parent dd88864 commit 62183dd
Show file tree
Hide file tree
Showing 3 changed files with 901 additions and 367 deletions.
19 changes: 19 additions & 0 deletions src/python/src/cosd.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,25 @@ cdef extern from "osd/cl_mam.h" nogil:
const void *data, size_t nbyte,
uint64_t start_addr)

cdef extern from "osd/cl_scm.h" nogil:
cdef struct osd_subnet_desc:
uint16_t vendor_id;
uint16_t device_id
uint16_t max_pkt_len

osd_result osd_cl_scm_cpus_start(osd_hostmod_ctx *hostmod_ctx,
unsigned int subnet_addr)

osd_result osd_cl_scm_cpus_stop(osd_hostmod_ctx *hostmod_ctx,
unsigned int subnet_addr)

osd_result osd_cl_scm_system_reset(osd_hostmod_ctx *hostmod_ctx,
unsigned int subnet_addr, bint reset)

osd_result osd_cl_scm_get_subnetinfo(osd_hostmod_ctx *hostmod_ctx,
unsigned int subnet_addr,
osd_subnet_desc *subnet_desc)

cdef extern from "osd/module.h" nogil:
cdef struct osd_module_desc:
uint16_t addr
Expand Down
Loading

0 comments on commit 62183dd

Please sign in to comment.