I8259.py (5827:ac2c268bf4f1) I8259.py (5859:2519ba935a5c)
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

39
40class I8259(BasicPioDevice):
41 type = 'I8259'
42 cxx_class='X86ISA::I8259'
43 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
44 output = Param.X86IntSourcePin(X86IntSourcePin(),
45 'The pin this I8259 drives')
46 mode = Param.X86I8259CascadeMode('How this I8259 is cascaded')
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

39
40class I8259(BasicPioDevice):
41 type = 'I8259'
42 cxx_class='X86ISA::I8259'
43 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
44 output = Param.X86IntSourcePin(X86IntSourcePin(),
45 'The pin this I8259 drives')
46 mode = Param.X86I8259CascadeMode('How this I8259 is cascaded')
47 slave = Param.I8259('Slave I8259, if any')
47 slave = Param.I8259(NULL, 'Slave I8259, if any')
48
49 def pin(self, line):
50 return X86IntSinkPin(device=self, number=line)
48
49 def pin(self, line):
50 return X86IntSinkPin(device=self, number=line)