PSI sics-cvs-psi-complete-tree-post-site-support

This commit is contained in:
2004-03-09 15:18:11 +00:00
committed by Douglas Clowes
parent 6373f6b0fb
commit ae77364de2
196 changed files with 8344 additions and 3485 deletions

1
dummy/cd_obj Normal file
View File

@@ -0,0 +1 @@
cd ../obj/$SICS_VERSION/dummy

102
dummy/dummy.c Normal file
View File

@@ -0,0 +1,102 @@
/*------------------------------------------------------------------------
D U M M Y
This is an empty site interface for SICS. Can be used as a starting
point for own site specific stuff.
copyright: see file COPYRIGHT
Mark Koennecke, June 2003
-----------------------------------------------------------------------*/
#include <stdlib.h>
#include <assert.h>
#include <fortify.h>
#include <sics.h>
#include <motor.h>
#include <tcl.h>
#include <site.h>
static pSite siteDummy = NULL;
/*----------------------------------------------------------------------*/
static void AddDummyCommands(SicsInterp *pInter){
}
/*---------------------------------------------------------------------*/
static void RemoveDummyCommands(SicsInterp *pSics){
}
/*-------------------------------------------------------------------*/
static pMotor CreateDummyMotor(SConnection *pCon, int argc, char *argv[]){
pMotor pNew = NULL;
return pNew;
}
/*-------------------------------------------------------------------*/
static pCounterDriver CreateDummyCounterDriver(SConnection *pCon,
int argc,
char *argv[]){
pCounterDriver pNew = NULL;
return pNew;
}
/*-------------------------------------------------------------------*/
static HistDriver *CreateDummyHistMem(char *name, pStringDict pOptions){
HistDriver *pNew = NULL;
return pNew;
}
/*-------------------------------------------------------------------*/
static pVelSelDriv CreateDummyVelSelDriv(char *name, char *array,
Tcl_Interp *pTcl){
pVelSelDriv pNew = NULL;
return pNew;
}
/*-------------------------------------------------------------------*/
static pCodri CreateDummyController(SConnection *pCon,int argc, char *argv[]){
pCodri pNew = NULL;
return pNew;
}
/*------------------------------------------------------------------*/
static pEVControl InstallDummyEnvironmentController(SicsInterp *pSics,
SConnection *pCon,
int argc, char *argv[]){
pEVControl pNew = NULL;
pEVDriver pDriv = NULL;
return pNew;
}
/*-----------------------------------------------------------------*/
static int ConfigureDummyScan(pScanData self, char *option){
return 0;
}
/*--------------------------------------------------------------------*/
static void KillDummySite(void *site){
free(site);
siteDummy = NULL;
}
/*---------------------------------------------------------------------
The scheme here goes along the lines of the singleton design pattern
---------------------------------------------------------------------*/
pSite getSite(void){
if(siteDummy == NULL){
siteDummy = (pSite)malloc(sizeof(Site));
/*
we cannot go on if we do not even have enough memory to allocate
the site data structure
*/
assert(siteDummy);
/*
initializing function pointers
*/
siteDummy->AddSiteCommands = AddDummyCommands;
siteDummy->RemoveSiteCommands = RemoveDummyCommands;
siteDummy->CreateMotor = CreateDummyMotor;
siteDummy->CreateCounterDriver = CreateDummyCounterDriver;
siteDummy->CreateHistogramMemoryDriver = CreateDummyHistMem;
siteDummy->CreateVelocitySelector = CreateDummyVelSelDriv;
siteDummy->CreateControllerDriver = CreateDummyController;
siteDummy->InstallEnvironmentController =
InstallDummyEnvironmentController;
siteDummy->ConfigureScan = ConfigureDummyScan;
siteDummy->KillSite = KillDummySite;
}
return siteDummy;
}

View File

@@ -1,18 +1,23 @@
#---------------------------------------------------------------------------
# Makefile for the Matrix library
#-------------------------------------------------------------------------
# common part of the makefile for the Dummy specific parts of SICS
#
# Mark Koennecke, November 1996
#--------------------------------------------------------------------------
# Mark Koennecke, June 2003
#-------------------------------------------------------------------------
.SUFFIXES:
.SUFFIXES: .c .o .f
OBJ= matadd.o matcreat.o matdet.o matdump.o matdurbn.o materr.o \
matinv.o matmul.o matsolve.o matsub.o matsubx.o mattoepz.o \
mattran.o
VPATH=$(SRC)
ROOT=..
libmatrix.a: $(OBJ)
- rm -f libmatrix.a
ar cr libmatrix.a $(OBJ)
ranlib libmatrix.a
OBJ=dummy.o
all: libdummy.a
libdummy.a: $(OBJ)
rm -f libdummy.a
ar cr libdummy.a $(OBJ)
ranlib libdummy.a
clean:
rm -f *.o
rm -f *.a
rm -f *.o

View File

@@ -1,3 +1,6 @@
#include makefile_alpha
include makefile_linux
# this makefile delegates to a version specific makefile
# where root is
S_UP=..
include ../make_forward

View File

@@ -0,0 +1,13 @@
#---------------------------------------------------------------------------
# Makefile for the Dummy specific part of SICS
# machine-dependent part for Tru64 Unix
#
# Mark Koennecke, June 2003
#--------------------------------------------------------------------------
CC = cc
CFLAGS = -std1 -g $(DFORTIFY) -I$(SRC)..
DUMMY=_dummy
include ../alpha_def
include make_gen

View File

@@ -0,0 +1,13 @@
#---------------------------------------------------------------------------
# Makefile for the Dummy specific part of SICS
# machine-dependent part for Redhat Linux with AFS at PSI
#
# Mark Koennecke, June 2003
#--------------------------------------------------------------------------
CC = gcc
CFLAGS = -g $(DFORTIFY) -I../$(SRC)
DUMMY=_dummy
include ../$(SRC)linux_def
include $(SRC)make_gen