Revision 5fafdf24 hw/slavio_timer.c

b/hw/slavio_timer.c
2 2
 * QEMU Sparc SLAVIO timer controller emulation
3 3
 *
4 4
 * Copyright (c) 2003-2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
38 38
 * This is the timer/counter part of chip STP2001 (Slave I/O), also
39 39
 * produced as NCR89C105. See
40 40
 * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt
41
 * 
41
 *
42 42
 * The 31-bit counter is incremented every 500ns by bit 9. Bits 8..0
43 43
 * are zero. Bit 31 is 1 when count has been reached.
44 44
 *
......
210 210
{
211 211
    SLAVIO_TIMERState *s = opaque;
212 212
    uint32_t tmp;
213
    
213
   
214 214
    if (version_id != 2)
215 215
        return -EINVAL;
216 216

  

Also available in: Unified diff