“2d1047d8a2631b584a8fd849a7cb17a4f2909c0c”上不存在“zh-cn/application-dev/git@gitcode.net:openharmony/docs.git”
提交 ac6bb025 编写于 作者: J Jag Raman 提交者: David S. Miller

sparc64: specify the device class in VIO version info. packet

Specify the class of VIO device in the version info. packet. The device's
class identifies the type of VIO device, whether it's DISK, CONSOLE,
NETWORK, etc... This packet is used in the handshake between the
client and server for this device.
Signed-off-by: NJagannathan Raman <jag.raman@oracle.com>
Reviewed-by: NLiam Merwick <liam.merwick@oracle.com>
Reviewed-by: NShannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7b6e04a3
...@@ -286,6 +286,7 @@ static int process_ver_info(struct vio_driver_state *vio, ...@@ -286,6 +286,7 @@ static int process_ver_info(struct vio_driver_state *vio,
ver.minor = vap->minor; ver.minor = vap->minor;
pkt->minor = ver.minor; pkt->minor = ver.minor;
pkt->tag.stype = VIO_SUBTYPE_ACK; pkt->tag.stype = VIO_SUBTYPE_ACK;
pkt->dev_class = vio->dev_class;
viodbg(HS, "SEND VERSION ACK maj[%u] min[%u]\n", viodbg(HS, "SEND VERSION ACK maj[%u] min[%u]\n",
pkt->major, pkt->minor); pkt->major, pkt->minor);
err = send_ctrl(vio, &pkt->tag, sizeof(*pkt)); err = send_ctrl(vio, &pkt->tag, sizeof(*pkt));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册