gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
fs9p.hh File Reference
#include <map>
#include <memory>
#include <string>
#include "base/pollevent.hh"
#include "dev/virtio/base.hh"

Go to the source code of this file.

Classes

struct  P9MsgHeader
 
class  VirtIO9PBase
 This class implements a VirtIO transport layer for the 9p network file system. More...
 
struct  VirtIO9PBase::Config
 VirtIO 9p configuration structure. More...
 
class  VirtIO9PBase::FSQueue
 Virtqueue for 9p requests. More...
 
class  VirtIO9PProxy
 VirtIO 9p proxy base class. More...
 
class  VirtIO9PDiod
 VirtIO 9p proxy that communicates with the diod 9p server using pipes. More...
 
class  VirtIO9PDiod::DiodDataEvent
 
class  VirtIO9PSocket
 VirtIO 9p proxy that communicates with a 9p server over tcp sockets. More...
 
class  VirtIO9PSocket::SocketDataEvent
 

Typedefs

typedef uint8_t P9MsgType
 
typedef uint16_t P9Tag
 

Functions

template<typename T >
p9toh (T v)
 Convert p9 byte order (LE) to host byte order. More...
 
template<typename T >
htop9 (T v)
 Convert host byte order to p9 byte order (LE) More...
 
template<>
P9MsgHeader p9toh (P9MsgHeader v)
 
template<>
P9MsgHeader htop9 (P9MsgHeader v)
 

Variables

struct P9MsgHeader M5_ATTR_PACKED
 

Typedef Documentation

typedef uint8_t P9MsgType

Definition at line 50 of file fs9p.hh.

typedef uint16_t P9Tag

Definition at line 53 of file fs9p.hh.

Function Documentation

template<typename T >
T htop9 ( v)
inline

Convert host byte order to p9 byte order (LE)

Definition at line 70 of file fs9p.hh.

References htole().

Referenced by htop9(), VirtIO9PProxy::recvTMsg(), and VirtIO9PBase::sendRMsg().

template<>
P9MsgHeader htop9 ( P9MsgHeader  v)
inline

Definition at line 82 of file fs9p.hh.

References htop9(), P9MsgHeader::len, P9MsgHeader::tag, P9MsgHeader::type, and ArmISA::v.

template<typename T >
T p9toh ( v)
inline

Convert p9 byte order (LE) to host byte order.

Definition at line 66 of file fs9p.hh.

References letoh().

Referenced by VirtIO9PBase::FSQueue::onNotifyDescriptor(), p9toh(), and VirtIO9PProxy::serverDataReady().

template<>
P9MsgHeader p9toh ( P9MsgHeader  v)
inline

Definition at line 73 of file fs9p.hh.

References P9MsgHeader::len, p9toh(), P9MsgHeader::tag, P9MsgHeader::type, and ArmISA::v.

Variable Documentation

struct P9MsgHeader M5_ATTR_PACKED

Generated on Fri Jun 9 2017 13:03:58 for gem5 by doxygen 1.8.6