1/* 2 * Copyright (c) 2004-2005 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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Ali Saidi 29 * Andrew Schultz 30 * Miguel Serrano 31 */ 32 |
33#include "dev/mc146818.hh" 34 |
35#include <sys/time.h> 36 37#include <ctime> 38#include <string> 39 40#include "base/bitfield.hh" 41#include "base/time.hh" 42#include "base/trace.hh" 43#include "debug/MC146818.hh" |
44#include "dev/rtcreg.h" 45 46using namespace std; 47 48static uint8_t 49bcdize(uint8_t val) 50{ 51 uint8_t result; --- 299 unchanged lines hidden --- |