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 --- 26 unchanged lines hidden (view full) --- 35 map = {'I8259Master' : 0, 36 'I8259Slave' : 1, 37 'I8259Single' : 2 38 } 39 40class I8259(BasicPioDevice): 41 type = 'I8259' 42 cxx_class='X86ISA::I8259' |
43 output = Param.X86IntSourcePin(X86IntSourcePin(), 44 'The pin this I8259 drives') 45 mode = Param.X86I8259CascadeMode('How this I8259 is cascaded') 46 slave = Param.I8259(NULL, 'Slave I8259, if any') 47 48 def pin(self, line): 49 return X86IntSinkPin(device=self, number=line) |