?? tm1stuff.h
字號:
/*
* +-------------------------------------------------------------------+
* | Copyright (c) 1995,1996,1997 by Philips Semiconductors. |
* | |
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such a |
* | license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided |
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | Philips Semiconductors. |
* | |
* | This code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +-------------------------------------------------------------------+
*
*
* Module name : TM1stuff.h
*
* Last update : 97/05/30
*
* Description :
*
* This module provides function to download and run executables on
* a TM-1000 with a Mac as host
*
* Revision :
*/
/*-----------------------------includes-------------------------------------*/
#include <NameRegistry.h>
#include "TMDownLoader.h"
#include "tmtypes.h"
/*-----------------------------defines---------------------------------------*/
/* Maximum number of TriMedia's in system (arbitrary). */
#define MAX_TM 16
#define ALL_NODES (-1)
#define DEFAULT_FREQUENCY (100 * 1000 * 1000)
#define STDIN_HANDLE 0
#define STDOUT_HANDLE 1
#define STDERR_HANDLE 2
/*-------------------------------exported-types------------------------------*/
typedef struct TriMediaInfo
{
UInt32 sdram_base;
UInt32 sdram_size;
UInt32 mmio_base;
UInt32 frequency;
UInt32 revision_id;
char node_name[64];
char slot[4];
UInt8 ConfigHeader[64];
RegEntryID NodeID;
int Exit_Status;
Boolean TM_running;
} TriMediaInfo, *TriMediaInfoPtr;
/*-----------------------------exported-GLOBALS----------------------------------------*/
extern TriMediaInfo TMInfo[MAX_TM]; /* Info block for each TriMedia. */
extern int NumberOfTMs; /* Total TriMedia's found in system. */
extern int nodesLoaded; /* Number of TriMedia nodes loaded with code. */
extern char stdin_file[FILENAME_MAX]; /* stdout file. Console if empty. */
extern char stdout_file[FILENAME_MAX]; /* stdout file. Console if empty. */
extern char stderr_file[FILENAME_MAX]; /* stderr file. Console if empty. */
extern int stdin_fd;
extern int stdout_fd;
extern int stderr_fd;
/*------------------------------exported-functions------------------------------------*/
Boolean AllocateSharedHostMemory (int nbytes, void** pp_lin_mem, unsigned long* pl_ph_mem);
Boolean FreeSharedHostMemory(void* shm_ptr);
Boolean TMQuit(void);
void FindTMs(void);
Boolean InitTM( Boolean reinitialize , Int32 node);
Boolean LoadTM(UInt number_of_nodes, Int32 node, char *filename, TMDwnLdr_SharedSectionTab_Handle h, int argc, char *argv[]);
Boolean StartTM(Int32 node);
void StartTMHostComm(void);
Boolean TMRunning(void);
Boolean ResetTM(Int32 node);
Boolean GetTMPreference(const char * name, char * value);
int GetTMExitStatus(Int32 node);
int FindTM(char *InNameNode);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -