i8237.hh (7903:7fcfb515d7bf) | i8237.hh (9808:13ffc0066b76) |
---|---|
1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 38 unchanged lines hidden (view full) --- 47 typedef I8237Params Params; 48 49 const Params * 50 params() const 51 { 52 return dynamic_cast<const Params *>(_params); 53 } 54 | 1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 38 unchanged lines hidden (view full) --- 47 typedef I8237Params Params; 48 49 const Params * 50 params() const 51 { 52 return dynamic_cast<const Params *>(_params); 53 } 54 |
55 I8237(Params *p) : BasicPioDevice(p), latency(p->pio_latency), maskReg(0) | 55 I8237(Params *p) : BasicPioDevice(p, 16), latency(p->pio_latency), maskReg(0) |
56 { | 56 { |
57 pioSize = 16; | |
58 } 59 Tick read(PacketPtr pkt); 60 61 Tick write(PacketPtr pkt); 62 63 virtual void serialize(std::ostream &os); 64 virtual void unserialize(Checkpoint *cp, const std::string §ion); 65}; 66 67} // namespace X86ISA 68 69#endif //__DEV_X86_I8237_HH__ | 57 } 58 Tick read(PacketPtr pkt); 59 60 Tick write(PacketPtr pkt); 61 62 virtual void serialize(std::ostream &os); 63 virtual void unserialize(Checkpoint *cp, const std::string §ion); 64}; 65 66} // namespace X86ISA 67 68#endif //__DEV_X86_I8237_HH__ |