Changeset 445 for trunk/libffado/src/libutil/cycles.h
- Timestamp:
- 04/02/07 12:35:17 (14 years ago)
- Files:
-
- trunk/libffado/src/libutil/cycles.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libutil/cycles.h
r384 r445 1 1 /* cycles.h 2 2 3 F reeBobStreaming API4 F reeBob= Firewire (pro-)audio for linux3 FFADO Streaming API 4 FFADO = Firewire (pro-)audio for linux 5 5 6 http://f reebob.sf.net6 http://ffado.sf.net 7 7 8 8 Based upon cycles.h from the jackdmp package. … … 11 11 Copyright (C) 2001 Paul Davis 12 12 Code derived from various headers from the Linux kernel 13 13 14 14 This program is free software; you can redistribute it and/or modify 15 15 it under the terms of the GNU General Public License as published by … … 28 28 */ 29 29 30 #ifndef __ freebob_cycles_h__31 #define __ freebob_cycles_h__30 #ifndef __FFADO_CYCLES_H__ 31 #define __FFADO_CYCLES_H__ 32 32 33 33 /* … … 43 43 * that we reschedule before that wraps. Scheduling at least every 44 44 * 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. 46 46 */ 47 47 … … 52 52 /* PowerPC */ 53 53 54 #define CPU_FTR_601 54 #define CPU_FTR_601 0x00000100 55 55 56 56 typedef unsigned long cycles_t; … … 65 65 66 66 __asm__ __volatile__( 67 "98: 67 "98: mftb %0\n" 68 68 "99:\n" 69 69 ".section __ftr_fixup,\"a\"\n" 70 " 71 " 72 " 73 " 70 " .long %1\n" 71 " .long 0\n" 72 " .long 98b\n" 73 " .long 99b\n" 74 74 ".previous" 75 75 : "=r" (ret) : "i" (CPU_FTR_601)); … … 100 100 #endif 101 101 102 #endif / * __freebob_cycles_h__ */102 #endif // __FFADO_CYCLES_H__