VirtIOConsole.py (12237:fdd8c4c63356) VirtIOConsole.py (13665:9c7fe3811b88)
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

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

34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 *
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

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

34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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
42from m5.objects.VirtIO import VirtIODeviceBase
43from m5.objects.Serial import SerialDevice
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
52 device = Param.SerialDevice("Serial device attached to this device")
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
52 device = Param.SerialDevice("Serial device attached to this device")