Blame ld10k1/src/ld10k1_dump_file.h

Packit 427e91
/*
Packit 427e91
 *  EMU10k1 loader
Packit 427e91
 *
Packit 427e91
 *  Copyright (c) 2003,2004 by Peter Zubaj
Packit 427e91
 *
Packit 427e91
 *   This program is free software; you can redistribute it and/or modify
Packit 427e91
 *   it under the terms of the GNU General Public License as published by
Packit 427e91
 *   the Free Software Foundation;  either version 2 of the License, or
Packit 427e91
 *   (at your option) any later version.
Packit 427e91
 *
Packit 427e91
 *   This program is distributed in the hope that it will be useful,
Packit 427e91
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 427e91
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 427e91
 *   GNU General Public License for more details.
Packit 427e91
 *
Packit 427e91
 *   You should have received a copy of the GNU General Public License
Packit 427e91
 *   along with this program; if not, write to the Free Software
Packit 427e91
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit 427e91
 *
Packit 427e91
 */
Packit 427e91
Packit 427e91
#ifndef __LD10K1_DUMP_FILE_H
Packit 427e91
#define __LD10K1_DUMP_FILE_H
Packit 427e91
Packit 427e91
#define DUMP_TYPE_LIVE 0
Packit 427e91
#define DUMP_TYPE_AUDIGY_OLD 1
Packit 427e91
#define DUMP_TYPE_AUDIGY 2
Packit 427e91
Packit 427e91
typedef struct {
Packit 427e91
	char signature[16]; /* LD10K1 DUMP 001 */
Packit 427e91
	int dump_type;
Packit 427e91
	int tram_size;
Packit 427e91
	int ctl_count;
Packit 427e91
	int gpr_count;
Packit 427e91
	int tram_count;
Packit 427e91
	int instr_count;
Packit 427e91
} ld10k1_dump_t;
Packit 427e91
Packit 427e91
#define DUMP_TRAM_NULL 0
Packit 427e91
#define DUMP_TRAM_READ 1
Packit 427e91
#define DUMP_TRAM_WRITE 2
Packit 427e91
Packit 427e91
typedef struct {
Packit 427e91
	int type;
Packit 427e91
	unsigned int addr;
Packit 427e91
	unsigned int data;
Packit 427e91
} ld10k1_tram_dump_t;
Packit 427e91
Packit 427e91
typedef struct {
Packit 427e91
	int used;
Packit 427e91
	unsigned int op;
Packit 427e91
	unsigned int arg[4];
Packit 427e91
} ld10k1_instr_dump_t;
Packit 427e91
Packit 427e91
typedef struct {
Packit 427e91
	char name[44];
Packit 427e91
	int index;
Packit 427e91
	unsigned int vcount;		/* count of GPR (1..32) */
Packit 427e91
	unsigned int count;			/* count of GPR (1..32) */
Packit 427e91
	unsigned int gpr_idx[32];	/* GPR number(s) */
Packit 427e91
	unsigned int value[32];
Packit 427e91
	unsigned int min;			/* minimum range */
Packit 427e91
	unsigned int max;			/* maximum range */
Packit 427e91
	unsigned int translation;	/* typ - 0 - bool, num 1 - enum */
Packit 427e91
} ld10k1_ctl_dump_t;
Packit 427e91
Packit 427e91
#endif /* __LD10K1_DUMP_FILE_H */