i8254.hh (7903:7fcfb515d7bf) i8254.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;

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

72 typedef I8254Params Params;
73
74 const Params *
75 params() const
76 {
77 return dynamic_cast<const Params *>(_params);
78 }
79
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;

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

72 typedef I8254Params Params;
73
74 const Params *
75 params() const
76 {
77 return dynamic_cast<const Params *>(_params);
78 }
79
80 I8254(Params *p) : BasicPioDevice(p), latency(p->pio_latency),
80 I8254(Params *p) : BasicPioDevice(p, 4), latency(p->pio_latency),
81 pit(p->name, this), intPin(p->int_pin)
82 {
81 pit(p->name, this), intPin(p->int_pin)
82 {
83 pioSize = 4;
84 }
85 Tick read(PacketPtr pkt);
86
87 Tick write(PacketPtr pkt);
88
89 bool
90 outputHigh(unsigned int num)
91 {

--- 29 unchanged lines hidden ---
83 }
84 Tick read(PacketPtr pkt);
85
86 Tick write(PacketPtr pkt);
87
88 bool
89 outputHigh(unsigned int num)
90 {

--- 29 unchanged lines hidden ---