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 rc = xwds_device_vop_probe(&iochip->bc.dev);
93 return rc;
94}
xwer_t xwds_device_vop_probe(struct xwds_device *dev)
设备基本操作函数:探测设备
Definition device.c:67
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.c101 行定义.

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

◆ xwds_iochip_vop_start()

static xwer_t xwds_iochip_vop_start ( struct xwds_iochip iochip)
static

XWDS VOP:启动IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c114 行定义.

115{
116 xwer_t rc;
117
118 rc = xwds_device_vop_start(&iochip->bc.dev);
119 return rc;
120}
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.c127 行定义.

128{
129 xwer_t rc;
130
131 rc = xwds_device_vop_stop(&iochip->bc.dev);
132 return rc;
133}
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.c142 行定义.

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

◆ xwds_iochip_vop_resume()

static xwer_t xwds_iochip_vop_resume ( struct xwds_iochip iochip)
static

XWDS VOP:继续IOCHIP

参数
[in]iochipIOCHIP对象指针

在文件 chip.c155 行定义.

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

变量说明

◆ 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:101
static xwer_t xwds_iochip_vop_start(struct xwds_iochip *iochip)
XWDS VOP:启动IOCHIP
Definition chip.c:114
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:142
static xwer_t xwds_iochip_vop_resume(struct xwds_iochip *iochip)
XWDS VOP:继续IOCHIP
Definition chip.c:155
static xwer_t xwds_iochip_vop_stop(struct xwds_iochip *iochip)
XWDS VOP:停止IOCHIP
Definition chip.c:127

在文件 chip.c45 行定义.