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

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

35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37#
38# Authors: Andreas Sandberg
39
40from m5.params import *
41from m5.proxy import *
42from VirtIO import VirtIODeviceBase
1# -*- mode:python -*-
2
3# Copyright (c) 2014 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37#
38# Authors: Andreas Sandberg
39
40from m5.params import *
41from m5.proxy import *
42from VirtIO import VirtIODeviceBase
43from Serial import SerialDevice
43
44class VirtIOConsole(VirtIODeviceBase):
45 type = 'VirtIOConsole'
46 cxx_header = 'dev/virtio/console.hh'
47
48 qRecvSize = Param.Unsigned(16, "Receive queue size (descriptors)")
49 qTransSize = Param.Unsigned(16, "Transmit queue size (descriptors)")
50
44
45class VirtIOConsole(VirtIODeviceBase):
46 type = 'VirtIOConsole'
47 cxx_header = 'dev/virtio/console.hh'
48
49 qRecvSize = Param.Unsigned(16, "Receive queue size (descriptors)")
50 qTransSize = Param.Unsigned(16, "Transmit queue size (descriptors)")
51
51 terminal = Param.Terminal(Parent.any, "The terminal")
52 device = Param.SerialDevice("Serial device attached to this device")