Chameleon

Chameleon Svn Source Tree

Root/branches/rewrite/i386/include/IOKit/firewire/IOFWUtils.h

Source at commit 1166 created 13 years 10 days ago.
By meklort, Fixed recent Makefile changes. Please do not use /Users/evan/SourceCode/tmp/chameleon/trunk or VPATH. the *only* time you should use /Users/evan/SourceCode/tmp/chameleon/trunk is when setting the SRCROOT variable. Also note that very soon make pkg is going to be removed. The pkg build script in trunk is very out of date. Instead please use the package maker at http://forge.voodooprojects.org/p/chameleonApplications/. Once this is ready for trunk it will be merged.
1/*
2 * IOFWUtils.h
3 * IOFireWireFamily
4 *
5 * Created by Niels on Fri Aug 16 2002.
6 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
7 *
8 */
9
10#import <IOKit/IOTypes.h>
11
12////////////////////////////////////////////////////////////////////////////////
13//
14// Useful FireWire utility functions.
15//
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21UInt16 FWComputeCRC16(const UInt32 *pQuads, UInt32 numQuads);
22UInt16 FWUpdateCRC16(UInt16 crc16, UInt32 quad);
23
24UInt32 AddFWCycleTimeToFWCycleTime( UInt32 cycleTime1, UInt32 cycleTime2 );
25UInt32 SubtractFWCycleTimeFromFWCycleTime( UInt32 cycleTime1, UInt32 cycleTime2);
26
27void IOFWGetAbsoluteTime( AbsoluteTime * result );
28
29#ifdef __cplusplus
30}
31#endif
32
33

Archive Download this file

Revision: 1166