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

玄武设备栈:IO扩展芯片 更多...

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

浏览源代码.

函数

static xwer_t xwds_iochip_vop_probe (struct xwds_iochip *iochip)
 XWDS VOP:探测IOCHIP
 
static xwer_t xwds_iochip_vop_remove (struct xwds_iochip *iochip)
 XWDS VOP:移除IOCHIP
 
static xwer_t xwds_iochip_vop_start (struct xwds_iochip *iochip)
 XWDS VOP:启动IOCHIP
 
static xwer_t xwds_iochip_vop_stop (struct xwds_iochip *iochip)
 XWDS VOP:停止IOCHIP
 
static xwer_t xwds_iochip_vop_suspend (struct xwds_iochip *iochip)
 XWDS VOP:暂停IOCHIP
 
static xwer_t xwds_iochip_vop_resume (struct xwds_iochip *iochip)
 XWDS VOP:继续IOCHIP
 
void xwds_iochip_construct (struct xwds_iochip *iochip)
 XWDS API:IOCHIP对象的构造函数
 
void xwds_iochip_destruct (struct xwds_iochip *iochip)
 XWDS API:IOCHIP对象的析构函数
 
xwer_t xwds_iochip_grab (struct xwds_iochip *iochip)
 XWDS API:增加对象的引用计数
 
xwer_t xwds_iochip_put (struct xwds_iochip *iochip)
 XWDS API:减少对象的引用计数
 

变量

const struct xwds_virtual_operation xwds_iochip_vop
 

详细描述

玄武设备栈:IO扩展芯片

作者

在文件 chip.c 中定义.

函数说明

◆ xwds_iochip_vop_probe()

static xwer_t xwds_iochip_vop_probe ( struct xwds_iochip iochip)
static

XWDS VOP:探测IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c88 行定义.

89{
90 xwer_t rc;
91
92 XWDS_VALIDATE(iochip->xwccfg, "nullptr", -EFAULT);
93
94 rc = xwds_device_vop_probe(&iochip->bc.dev);
95 return rc;
96}
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:97
union xwds_iochip::@19 bc
函数调用图:

◆ xwds_iochip_vop_remove()

static xwer_t xwds_iochip_vop_remove ( struct xwds_iochip iochip)
static

XWDS VOP:移除IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c103 行定义.

104{
105 xwer_t rc;
106
107 rc = xwds_device_vop_remove(&iochip->bc.dev);
108 return rc;
109}
xwer_t xwds_device_vop_remove(struct xwds_device *dev)
设备基本操作函数:删除设备
Definition device.c:86
函数调用图:

◆ xwds_iochip_vop_resume()

static xwer_t xwds_iochip_vop_resume ( struct xwds_iochip iochip)
static

XWDS VOP:继续IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c157 行定义.

158{
159 xwer_t rc;
160
161 rc = xwds_device_vop_resume(&iochip->bc.dev);
162 return rc;
163}
xwer_t xwds_device_vop_resume(struct xwds_device *dev)
设备基本操作函数:继续设备
Definition device.c:163
函数调用图:

◆ xwds_iochip_vop_start()

static xwer_t xwds_iochip_vop_start ( struct xwds_iochip iochip)
static

XWDS VOP:启动IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c116 行定义.

117{
118 xwer_t rc;
119
120 rc = xwds_device_vop_start(&iochip->bc.dev);
121 return rc;
122}
xwer_t xwds_device_vop_start(struct xwds_device *dev)
设备基本操作函数:启动设备
Definition device.c:105
函数调用图:

◆ xwds_iochip_vop_stop()

static xwer_t xwds_iochip_vop_stop ( struct xwds_iochip iochip)
static

XWDS VOP:停止IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c129 行定义.

130{
131 xwer_t rc;
132
133 rc = xwds_device_vop_stop(&iochip->bc.dev);
134 return rc;
135}
xwer_t xwds_device_vop_stop(struct xwds_device *dev)
设备基本操作函数:停止设备
Definition device.c:124
函数调用图:

◆ xwds_iochip_vop_suspend()

static xwer_t xwds_iochip_vop_suspend ( struct xwds_iochip iochip)
static

XWDS VOP:暂停IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c144 行定义.

145{
146 xwer_t rc;
147
148 rc = xwds_device_vop_suspend(&iochip->bc.dev);
149 return rc;
150}
xwer_t xwds_device_vop_suspend(struct xwds_device *dev)
设备基本操作函数:暂停设备
Definition device.c:144
函数调用图:

变量说明

◆ xwds_iochip_vop

const struct xwds_virtual_operation xwds_iochip_vop
初始值:
= {
.probe = (void *)xwds_iochip_vop_probe,
.remove = (void *)xwds_iochip_vop_remove,
.start = (void *)xwds_iochip_vop_start,
.stop = (void *)xwds_iochip_vop_stop,
.suspend = (void *)xwds_iochip_vop_suspend,
.resume = (void *)xwds_iochip_vop_resume,
}
static xwer_t xwds_iochip_vop_remove(struct xwds_iochip *iochip)
XWDS VOP:移除IOCHIP
Definition chip.c:103
static xwer_t xwds_iochip_vop_start(struct xwds_iochip *iochip)
XWDS VOP:启动IOCHIP
Definition chip.c:116
static xwer_t xwds_iochip_vop_probe(struct xwds_iochip *iochip)
XWDS VOP:探测IOCHIP
Definition chip.c:88
static xwer_t xwds_iochip_vop_suspend(struct xwds_iochip *iochip)
XWDS VOP:暂停IOCHIP
Definition chip.c:144
static xwer_t xwds_iochip_vop_resume(struct xwds_iochip *iochip)
XWDS VOP:继续IOCHIP
Definition chip.c:157
static xwer_t xwds_iochip_vop_stop(struct xwds_iochip *iochip)
XWDS VOP:停止IOCHIP
Definition chip.c:129

在文件 chip.c45 行定义.