]> asedeno.scripts.mit.edu Git - pssh.git/blob - arm/forms/form_armcalls.c
5801391f6521ca49b0081fce8e63f2fa4ca81def
[pssh.git] / arm / forms / form_armcalls.c
1 /**********
2  * Copyright (c) 2007 Alejandro R Sedeno.  All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
23  * OF THE POSSIBILITY OF SUCH DAMAGE.
24  **********/
25
26 #include "includes.h"
27 #include "pealstub.h"
28
29 /*
30 void dbg_beep(int, int);
31 void dbg_beep(int hz, int ms)
32 {
33      SndCommandType snd;
34      UInt16 volume = PrefGetPreference(prefGameSoundVolume);
35      snd.cmd = sndCmdFreqDurationAmp;
36      snd.reserved = 0;
37      snd.param1 = hz; // frequency in Hz
38      snd.param2 = ms; // duration in ms
39      snd.param3 = volume; // volume [0..sndMaxAmp]
40      SndDoCmd(NULL, &snd, false);
41 }
42 */
43
44 uint32_t CheckDeviceTreo_stub(uint32_t *);
45 uint32_t CheckDeviceTreo_stub(uint32_t *param)
46 {
47      uint32_t companyID = 0;
48      uint32_t deviceID = 0;
49      FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID);
50      FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceID);
51
52      if (((companyID == 'hspr') &&
53           (deviceID == 'H101' || deviceID == 'H102')) ||
54          (companyID == 'Palm' && deviceID == 'D052'))
55      {
56           return 1;
57      }
58      return 0;
59 }