Device.py (13665:9c7fe3811b88) Device.py (13892:0182a0601f66)
1# Copyright (c) 2012-2016 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

38#
39# Authors: Nathan Binkert
40# Glenn Bergmans
41
42from m5.params import *
43from m5.proxy import *
44from m5.util.fdthelper import *
45
1# Copyright (c) 2012-2016 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

38#
39# Authors: Nathan Binkert
40# Glenn Bergmans
41
42from m5.params import *
43from m5.proxy import *
44from m5.util.fdthelper import *
45
46from m5.objects.MemObject import MemObject
46from m5.objects.ClockedObject import ClockedObject
47
47
48class PioDevice(MemObject):
48class PioDevice(ClockedObject):
49 type = 'PioDevice'
50 cxx_header = "dev/io_device.hh"
51 abstract = True
52 pio = SlavePort("Programmed I/O port")
53 system = Param.System(Parent.any, "System this device is part of")
54
55 def generateBasicPioDeviceNode(self, state, name, pio_addr,
56 size, interrupts = None):

--- 50 unchanged lines hidden ---
49 type = 'PioDevice'
50 cxx_header = "dev/io_device.hh"
51 abstract = True
52 pio = SlavePort("Programmed I/O port")
53 system = Param.System(Parent.any, "System this device is part of")
54
55 def generateBasicPioDeviceNode(self, state, name, pio_addr,
56 size, interrupts = None):

--- 50 unchanged lines hidden ---