i8254.hh (14290:fa11f961ae4e) i8254.hh (14291:722551795497)
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;

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

58 X86Intel8254Timer(const std::string &name, I8254 * _parent) :
59 Intel8254Timer(_parent, name), parent(_parent)
60 {}
61 };
62
63
64 X86Intel8254Timer pit;
65
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;

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

58 X86Intel8254Timer(const std::string &name, I8254 * _parent) :
59 Intel8254Timer(_parent, name), parent(_parent)
60 {}
61 };
62
63
64 X86Intel8254Timer pit;
65
66 std::vector<::IntSourcePin<I8254> *> intPin;
66 std::vector *> intPin;
67
68 void counterInterrupt(unsigned int num);
69
70 public:
71 typedef I8254Params Params;
72
73 Port &
74 getPort(const std::string &if_name, PortID idx=InvalidPortID) override

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

84 {
85 return dynamic_cast<const Params *>(_params);
86 }
87
88 I8254(Params *p) : BasicPioDevice(p, 4), latency(p->pio_latency),
89 pit(p->name, this)
90 {
91 for (int i = 0; i < p->port_int_pin_connection_count; i++) {
67
68 void counterInterrupt(unsigned int num);
69
70 public:
71 typedef I8254Params Params;
72
73 Port &
74 getPort(const std::string &if_name, PortID idx=InvalidPortID) override

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

84 {
85 return dynamic_cast<const Params *>(_params);
86 }
87
88 I8254(Params *p) : BasicPioDevice(p, 4), latency(p->pio_latency),
89 pit(p->name, this)
90 {
91 for (int i = 0; i < p->port_int_pin_connection_count; i++) {
92 intPin.push_back(new ::IntSourcePin<I8254>(csprintf(
92 intPin.push_back(new IntSourcePin(csprintf(
93 "%s.int_pin[%d]", name(), i), i, this));
94 }
95 }
96 Tick read(PacketPtr pkt) override;
97
98 Tick write(PacketPtr pkt) override;
99
100 bool

--- 33 unchanged lines hidden ---
93 "%s.int_pin[%d]", name(), i), i, this));
94 }
95 }
96 Tick read(PacketPtr pkt) override;
97
98 Tick write(PacketPtr pkt) override;
99
100 bool

--- 33 unchanged lines hidden ---