Show
Ignore:
Timestamp:
04/02/07 12:35:17 (14 years ago)
Author:
pieterpalmers
Message:

* name change from FreeBoB to FFADO
* replaced tabs by 4 spaces
* got rid of end-of-line spaces
* made all license and copyrights conform

library becomes LGPL, apps become GPL
explicitly state LGPL v2.1 and GPL v2 (don't like v3 draft)

copyrights are 2005-2007 Daniel & Pieter
except for the MotU stuff (C) Jonathan, Pieter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/cycles.h

    r384 r445  
    11/* cycles.h 
    22 
    3 FreeBob Streaming API 
    4 FreeBob = Firewire (pro-)audio for linux 
     3FFADO Streaming API 
     4FFADO = Firewire (pro-)audio for linux 
    55 
    6 http://freebob.sf.net 
     6http://ffado.sf.net 
    77 
    88Based upon cycles.h from the jackdmp package. 
     
    1111  Copyright (C) 2001 Paul Davis 
    1212  Code derived from various headers from the Linux kernel 
    13    
     13 
    1414This program is free software; you can redistribute it and/or modify 
    1515it under the terms of the GNU General Public License as published by 
     
    2828*/ 
    2929 
    30 #ifndef __freebob_cycles_h__ 
    31 #define __freebob_cycles_h__ 
     30#ifndef __FFADO_CYCLES_H__ 
     31#define __FFADO_CYCLES_H__ 
    3232 
    3333/* 
     
    4343 * that we reschedule before that wraps. Scheduling at least every 
    4444 * four billion cycles just basically sounds like a good idea, 
    45  * regardless of how fast the machine is.  
     45 * regardless of how fast the machine is. 
    4646 */ 
    4747 
     
    5252/* PowerPC */ 
    5353 
    54 #define CPU_FTR_601                    0x00000100 
     54#define CPU_FTR_601            0x00000100 
    5555 
    5656typedef unsigned long cycles_t; 
     
    6565 
    6666    __asm__ __volatile__( 
    67         "98:   mftb %0\n" 
     67        "98:    mftb %0\n" 
    6868        "99:\n" 
    6969        ".section __ftr_fixup,\"a\"\n" 
    70         "      .long %1\n" 
    71         "      .long 0\n" 
    72         "      .long 98b\n" 
    73         "      .long 99b\n" 
     70        "    .long %1\n" 
     71        "    .long 0\n" 
     72        "    .long 98b\n" 
     73        "    .long 99b\n" 
    7474        ".previous" 
    7575    : "=r" (ret) : "i" (CPU_FTR_601)); 
     
    100100#endif 
    101101 
    102 #endif /* __freebob_cycles_h__ */ 
     102#endif // __FFADO_CYCLES_H__