csrtext
struct csrtext *textleaf;
textleaf = (struct csrtext *)(reg + reg->val);
#define MAX_TEXT ((CROM_MAX_CHUNK_LEN + 1) * 4 - sizeof(struct csrtext))
struct csrtext *tl;
tl = (struct csrtext *) &chunk->data;
tl->crc_len = howmany(sizeof(struct csrtext) + len, sizeof(uint32_t));