img.h

Go to the documentation of this file.
00001 /*
00002 # This file is Copyright 2003, 2006, 2007, 2009 Dean Hall.
00003 #
00004 # This file is part of the PyMite VM.
00005 # The PyMite VM is free software: you can redistribute it and/or modify
00006 # it under the terms of the GNU GENERAL PUBLIC LICENSE Version 2.
00007 #
00008 # The PyMite VM is distributed in the hope that it will be useful,
00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011 # A copy of the GNU GENERAL PUBLIC LICENSE Version 2
00012 # is seen in the file COPYING in this directory.
00013 */
00014 
00015 
00016 #ifndef __IMG_H__
00017 #define __IMG_H__
00018 
00019 
00030 #define PM_NUM_IMG_PATHS 4
00031 
00032 
00033 typedef struct PmImgPaths_s
00034 {
00035     PmMemSpace_t memspace[PM_NUM_IMG_PATHS];
00036     uint8_t const *pimg[PM_NUM_IMG_PATHS];
00037     uint8_t pathcount;
00038 }
00039 PmImgPaths_t, *pPmImgPaths_t;
00040 
00041 
00050 typedef struct PmCodeImgObj_s
00051 {
00053     PmObjDesc_t od;
00054 
00056     uint8_t val[1];
00057 } PmCodeImgObj_t,
00058  *pPmCodeImgObj_t;
00059 
00060 
00070 PmReturn_t img_findInPaths(pPmObj_t pname, PmMemSpace_t *r_memspace,
00071                            uint8_t const **r_imgaddr);
00072 
00080 PmReturn_t img_appendToPath(PmMemSpace_t memspace, uint8_t *paddr);
00081 
00082 #endif /* __IMG_H__ */

Generated on Wed Feb 24 13:37:02 2010 for Python-on-a-chip by  doxygen 1.5.9