i8254.hh (11168:f98eb2da15a4) | i8254.hh (11175:2324ed5fa9f4) |
---|---|
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; --- 67 unchanged lines hidden (view full) --- 76 { 77 return dynamic_cast<const Params *>(_params); 78 } 79 80 I8254(Params *p) : BasicPioDevice(p, 4), latency(p->pio_latency), 81 pit(p->name, this), intPin(p->int_pin) 82 { 83 } | 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; --- 67 unchanged lines hidden (view full) --- 76 { 77 return dynamic_cast<const Params *>(_params); 78 } 79 80 I8254(Params *p) : BasicPioDevice(p, 4), latency(p->pio_latency), 81 pit(p->name, this), intPin(p->int_pin) 82 { 83 } |
84 Tick read(PacketPtr pkt); | 84 Tick read(PacketPtr pkt) override; |
85 | 85 |
86 Tick write(PacketPtr pkt); | 86 Tick write(PacketPtr pkt) override; |
87 88 bool 89 outputHigh(unsigned int num) 90 { 91 return pit.outputHigh(num); 92 } 93 94 uint8_t --- 12 unchanged lines hidden (view full) --- 107 writeControl(uint8_t val) 108 { 109 pit.writeControl(val); 110 } 111 112 void serialize(CheckpointOut &cp) const override; 113 void unserialize(CheckpointIn &cp) override; 114 | 87 88 bool 89 outputHigh(unsigned int num) 90 { 91 return pit.outputHigh(num); 92 } 93 94 uint8_t --- 12 unchanged lines hidden (view full) --- 107 writeControl(uint8_t val) 108 { 109 pit.writeControl(val); 110 } 111 112 void serialize(CheckpointOut &cp) const override; 113 void unserialize(CheckpointIn &cp) override; 114 |
115 virtual void startup(); | 115 void startup() override; |
116 117}; 118 119} // namespace X86ISA 120 121#endif //__DEV_X86_SOUTH_BRIDGE_I8254_HH__ | 116 117}; 118 119} // namespace X86ISA 120 121#endif //__DEV_X86_SOUTH_BRIDGE_I8254_HH__ |