XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
chip.c 文件参考

玄武设备栈:SOC 更多...

#include <xwcd/ds/standard.h>
#include <string.h>
#include <xwcd/ds/soc/chip.h>
chip.c 的引用(Include)关系图:

浏览源代码.

函数

static xwer_t xwds_soc_vop_probe (struct xwds_soc *soc)
 XWDS VOP:探测SOC
 
static xwer_t xwds_soc_vop_remove (struct xwds_soc *soc)
 XWDS VOP:移除SOC
 
static xwer_t xwds_soc_vop_start (struct xwds_soc *soc)
 XWDS VOP:启动SOC
 
static xwer_t xwds_soc_vop_stop (struct xwds_soc *soc)
 XWDS VOP:停止SOC
 
static xwer_t xwds_soc_vop_suspend (struct xwds_soc *soc)
 XWDS VOP:暂停SOC
 
static xwer_t xwds_soc_vop_resume (struct xwds_soc *soc)
 XWDS VOP:继续SOC
 
void xwds_soc_construct (struct xwds_soc *soc)
 XWDS API:SOC构造函数
 
void xwds_soc_destruct (struct xwds_soc *soc)
 XWDS API:SOC对象的析构函数
 
xwer_t xwds_soc_grab (struct xwds_soc *soc)
 XWDS API:增加对象的引用计数
 
xwer_t xwds_soc_put (struct xwds_soc *soc)
 XWDS API:减少对象的引用计数
 
xwer_t xwds_soc_get_reset_reason (struct xwds_soc *soc, xwu64_t *reason)
 XWDS API:获取复位原因
 
xwer_t xwds_soc_get_wkup_source (struct xwds_soc *soc, xwu64_t *source)
 XWDS API:获取唤醒源
 

变量

const struct xwds_virtual_operation xwds_soc_vop
 

详细描述

玄武设备栈:SOC

作者

在文件 chip.c 中定义.

函数说明

◆ xwds_soc_vop_probe()

static xwer_t xwds_soc_vop_probe ( struct xwds_soc soc)
static

XWDS VOP:探测SOC

参数
[in]socSOC对象指针

在文件 chip.c136 行定义.

137{
138 xwer_t rc;
139
140 XWDS_VALIDATE(soc->xwccfg, "nullptr", -EFAULT);
141
142 rc = xwds_device_vop_probe(&soc->dev);
143 return rc;
144}
xwer_t xwds_device_vop_probe(struct xwds_device *dev)
设备基本操作函数:探测设备
Definition device.c:67
#define XWDS_VALIDATE(exp, errstr,...)
Definition standard.h:51
#define EFAULT
Bad address
Definition errno.h:44
signed long xwer_t
Definition type.h:554
struct xwds_device dev
Definition chip.h:168
const void * xwccfg
Definition chip.h:171
函数调用图:

◆ xwds_soc_vop_remove()

static xwer_t xwds_soc_vop_remove ( struct xwds_soc soc)
static

XWDS VOP:移除SOC

参数
[in]socSOC对象指针

在文件 chip.c151 行定义.

152{
153 xwer_t rc;
154
155 rc = xwds_device_vop_remove(&soc->dev);
156 return rc;
157}
xwer_t xwds_device_vop_remove(struct xwds_device *dev)
设备基本操作函数:删除设备
Definition device.c:86
函数调用图:

◆ xwds_soc_vop_start()

static xwer_t xwds_soc_vop_start ( struct xwds_soc soc)
static

XWDS VOP:启动SOC

参数
[in]socSOC对象指针

在文件 chip.c164 行定义.

165{
166 xwer_t rc;
167
168 rc = xwds_device_vop_start(&soc->dev);
169 return rc;
170}
xwer_t xwds_device_vop_start(struct xwds_device *dev)
设备基本操作函数:启动设备
Definition device.c:105
函数调用图:

◆ xwds_soc_vop_stop()

static xwer_t xwds_soc_vop_stop ( struct xwds_soc soc)
static

XWDS VOP:停止SOC

参数
[in]socSOC对象指针

在文件 chip.c177 行定义.

178{
179 xwer_t rc;
180
181 rc = xwds_device_vop_stop(&soc->dev);
182 return rc;
183}
xwer_t xwds_device_vop_stop(struct xwds_device *dev)
设备基本操作函数:停止设备
Definition device.c:124
函数调用图:

◆ xwds_soc_vop_suspend()

static xwer_t xwds_soc_vop_suspend ( struct xwds_soc soc)
static

XWDS VOP:暂停SOC

参数
[in]socSOC对象指针

在文件 chip.c192 行定义.

193{
194 xwer_t rc;
195
196 rc = xwds_device_vop_suspend(&soc->dev);
197 return rc;
198}
xwer_t xwds_device_vop_suspend(struct xwds_device *dev)
设备基本操作函数:暂停设备
Definition device.c:144
函数调用图:

◆ xwds_soc_vop_resume()

static xwer_t xwds_soc_vop_resume ( struct xwds_soc soc)
static

XWDS VOP:继续SOC

参数
[in]socSOC对象指针

在文件 chip.c205 行定义.

206{
207 xwer_t rc;
208
209 rc = xwds_device_vop_resume(&soc->dev);
210 return rc;
211}
xwer_t xwds_device_vop_resume(struct xwds_device *dev)
设备基本操作函数:继续设备
Definition device.c:163
函数调用图:

变量说明

◆ xwds_soc_vop

const struct xwds_virtual_operation xwds_soc_vop
初始值:
= {
.probe = (void *)xwds_soc_vop_probe,
.remove = (void *)xwds_soc_vop_remove,
.start = (void *)xwds_soc_vop_start,
.stop = (void *)xwds_soc_vop_stop,
.suspend = (void *)xwds_soc_vop_suspend,
.resume = (void *)xwds_soc_vop_resume,
}
static xwer_t xwds_soc_vop_stop(struct xwds_soc *soc)
XWDS VOP:停止SOC
Definition chip.c:177
static xwer_t xwds_soc_vop_probe(struct xwds_soc *soc)
XWDS VOP:探测SOC
Definition chip.c:136
static xwer_t xwds_soc_vop_start(struct xwds_soc *soc)
XWDS VOP:启动SOC
Definition chip.c:164
static xwer_t xwds_soc_vop_resume(struct xwds_soc *soc)
XWDS VOP:继续SOC
Definition chip.c:205
static xwer_t xwds_soc_vop_remove(struct xwds_soc *soc)
XWDS VOP:移除SOC
Definition chip.c:151
static xwer_t xwds_soc_vop_suspend(struct xwds_soc *soc)
XWDS VOP:暂停SOC
Definition chip.c:192

在文件 chip.c45 行定义.