Go to the source code of this file.
Defines | |
| #define | mem_getByte(memspace, paddr) plat_memGetByte((memspace), (paddr)) |
Typedefs | |
| typedef enum PmMemSpace_e | PmMemSpace_t |
| typedef enum PmMemSpace_e * | pPmMemSpace_t |
Enumerations | |
| enum | PmMemSpace_e { MEMSPACE_RAM = 0, MEMSPACE_PROG, MEMSPACE_EEPROM, MEMSPACE_SEEPROM, MEMSPACE_OTHER0, MEMSPACE_OTHER1, MEMSPACE_OTHER2, MEMSPACE_OTHER3 } |
Functions | |
| uint16_t | mem_getWord (PmMemSpace_t memspace, uint8_t const **paddr) |
| uint32_t | mem_getInt (PmMemSpace_t memspace, uint8_t const **paddr) |
| void | mem_copy (PmMemSpace_t memspace, uint8_t **pdest, uint8_t const **psrc, uint16_t count) |
| uint16_t | mem_getStringLength (PmMemSpace_t memspace, uint8_t const *const pstr) |
| PmReturn_t | mem_cmpn (uint8_t *cname, uint8_t cnamelen, PmMemSpace_t memspace, uint8_t const **paddr) |
VM memory header.
| #define mem_getByte | ( | memspace, | |||
| paddr | ) | plat_memGetByte((memspace), (paddr)) |
Returns the byte at the given address in memspace.
Increments the address (just like getc and read(1)) to make image loading work (recursive).
| memspace | memory space/type | |
| paddr | ptr to address |
| typedef enum PmMemSpace_e PmMemSpace_t |
Memory Space enum.
Defines the different addressable areas of the system.
| enum PmMemSpace_e |
Memory Space enum.
Defines the different addressable areas of the system.
| PmReturn_t mem_cmpn | ( | uint8_t * | cname, | |
| uint8_t | cnamelen, | |||
| PmMemSpace_t | memspace, | |||
| uint8_t const ** | paddr | |||
| ) |
Compares a byte array in RAM to a byte array in the given memory space
| cname | Pointer to byte array in RAM | |
| cnamelen | Length of byte array to compare | |
| memspace | Memory space of other byte array | |
| paddr | Pointer to address of other byte array |
| void mem_copy | ( | PmMemSpace_t | memspace, | |
| uint8_t ** | pdest, | |||
| uint8_t const ** | psrc, | |||
| uint16_t | count | |||
| ) |
Copies count number of bytes from src in memspace to dest in RAM. Leaves dest and src pointing one byte past end of the data.
| memspace | memory space/type of source | |
| pdest | ptr to destination address | |
| psrc | ptr to source address | |
| count | number of bytes to copy |
| uint32_t mem_getInt | ( | PmMemSpace_t | memspace, | |
| uint8_t const ** | paddr | |||
| ) |
Returns the 4-byte int at the given address in memspace.
Int obtained in LITTLE ENDIAN order (per Python convention). afterward, addr points one byte past the int.
| memspace | memory space | |
| paddr | ptr to address |
| uint16_t mem_getStringLength | ( | PmMemSpace_t | memspace, | |
| uint8_t const *const | pstr | |||
| ) |
| uint16_t mem_getWord | ( | PmMemSpace_t | memspace, | |
| uint8_t const ** | paddr | |||
| ) |
Returns the 2-byte word at the given address in memspace.
Word obtained in LITTLE ENDIAN order (per Python convention). afterward, addr points one byte past the word.
| memspace | memory space | |
| paddr | ptr to address |
1.5.9