console.hh (10389:42d0d62ee057) console.hh (12237:fdd8c4c63356)
1/*
2 * Copyright (c) 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 26 unchanged lines hidden (view full) ---

35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Sandberg
38 */
39
40#ifndef __DEV_VIRTIO_CONSOLE_HH__
41#define __DEV_VIRTIO_CONSOLE_HH__
42
1/*
2 * Copyright (c) 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 26 unchanged lines hidden (view full) ---

35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Sandberg
38 */
39
40#ifndef __DEV_VIRTIO_CONSOLE_HH__
41#define __DEV_VIRTIO_CONSOLE_HH__
42
43#include "dev/serial.hh"
43#include "dev/virtio/base.hh"
44#include "dev/virtio/base.hh"
44#include "dev/terminal.hh"
45
46struct VirtIOConsoleParams;
47
48/**
49 * VirtIO console
50 *
51 * The VirtIO console uses the following queues:
52 * -# Port0 receive (from host to guest)

--- 89 unchanged lines hidden (view full) ---

142
143 protected:
144 VirtIOConsole &parent;
145 };
146 /** Transmit queue for port 0 */
147 TermTransQueue qTrans;
148
149 protected:
45
46struct VirtIOConsoleParams;
47
48/**
49 * VirtIO console
50 *
51 * The VirtIO console uses the following queues:
52 * -# Port0 receive (from host to guest)

--- 89 unchanged lines hidden (view full) ---

142
143 protected:
144 VirtIOConsole &parent;
145 };
146 /** Transmit queue for port 0 */
147 TermTransQueue qTrans;
148
149 protected:
150 Terminal &term;
150 SerialDevice &device;
151 MakeCallback<VirtIOConsole::TermRecvQueue,
152 &VirtIOConsole::TermRecvQueue::trySend> callbackDataAvail;
153};
154
155#endif // __DEV_VIRTIO_CONSOLE_HH__
151 MakeCallback<VirtIOConsole::TermRecvQueue,
152 &VirtIOConsole::TermRecvQueue::trySend> callbackDataAvail;
153};
154
155#endif // __DEV_VIRTIO_CONSOLE_HH__