cmos.hh (14290:fa11f961ae4e) | cmos.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; --- 42 unchanged lines hidden (view full) --- 51 uint8_t regs[numRegs]; 52 53 uint8_t readRegister(uint8_t reg); 54 void writeRegister(uint8_t reg, uint8_t val); 55 56 class X86RTC : public MC146818 57 { 58 public: | 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; --- 42 unchanged lines hidden (view full) --- 51 uint8_t regs[numRegs]; 52 53 uint8_t readRegister(uint8_t reg); 54 void writeRegister(uint8_t reg, uint8_t val); 55 56 class X86RTC : public MC146818 57 { 58 public: |
59 std::vector<::IntSourcePin<X86RTC> *> intPin; | 59 std::vector |
60 61 X86RTC(EventManager *em, const std::string &n, const struct tm time, 62 bool bcd, Tick frequency, int int_pin_count) : 63 MC146818(em, n, time, bcd, frequency) 64 { 65 for (int i = 0; i < int_pin_count; i++) { | 60 61 X86RTC(EventManager *em, const std::string &n, const struct tm time, 62 bool bcd, Tick frequency, int int_pin_count) : 63 MC146818(em, n, time, bcd, frequency) 64 { 65 for (int i = 0; i < int_pin_count; i++) { |
66 intPin.push_back(new ::IntSourcePin<X86RTC>( | 66 intPin.push_back(new IntSourcePin |
67 csprintf("%s.int_pin[%d]", n, i), i, this)); 68 } 69 } 70 protected: 71 void handleEvent(); 72 } rtc; 73 74 public: --- 32 unchanged lines hidden --- | 67 csprintf("%s.int_pin[%d]", n, i), i, this)); 68 } 69 } 70 protected: 71 void handleEvent(); 72 } rtc; 73 74 public: --- 32 unchanged lines hidden --- |