40 if ((drv) && (drv->pwr_req)) {
41 rc = drv->pwr_req(soc,
id);
66 if ((drv) && (drv->pwr_rls)) {
67 rc = drv->pwr_rls(soc,
id);
100 if ((drv) && (drv->pwr_getvltg)) {
101 rc = drv->pwr_getvltg(soc,
id, buf, num);
106 goto err_drv_getvltg;
xwer_t xwds_pwr_req(struct xwds_soc *soc, xwid_t id)
XWDS API:申请电源
xwer_t xwds_soc_grab(struct xwds_soc *soc)
XWDS API:增加对象的引用计数
xwer_t xwds_soc_put(struct xwds_soc *soc)
XWDS API:减少对象的引用计数
#define xwds_cast(type, dev)
#define XWDS_VALIDATE(exp, errstr,...)
#define EFAULT
Bad address
#define ENOSYS
Function not implemented
#define ERANGE
Result too large
xwer_t xwds_pwr_rls(struct xwds_soc *soc, xwid_t id)
XWDS API:释放电源
xwer_t xwds_pwr_getvltg(struct xwds_soc *soc, xwid_t id, xwu32_t *buf, xwsz_t *num)
XWDS API:获取电源电压
const struct xwds_driver * drv