Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

peek.c

Go to the documentation of this file.
00001 
00002 void *pmac_get(char *name, void *base, long int size)
00003 {
00004 #ifdef DEBUG_PMAC
00005   return (void *) 0;
00006 #else
00007   void *pmac;
00008 
00009   /* remove any previous defs of phys mem */
00010   smem_remove(name);
00011 
00012   if ((pmac = (void *)
00013        smem_create(name, (char *) base, size, SM_READ | SM_WRITE)) == NULL)
00014   {
00015     perror("can't get physical memory");
00016     return (void *) 0;
00017   }
00018 
00019   return pmac;
00020 #endif
00021 }

Generated on Sun Dec 2 15:56:51 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001