#define HPEE_MAX_LENGTH 0x2000 /* maximum eeprom length */
#define HPEE_SLOT_INFO(slot) (20+(48*slot))
struct eeprom_header
{
u_int32_t num_writes; /* number of writes */
u_int8_t flags; /* flags, usage? */
u_int8_t ver_maj;
u_int8_t ver_min;
u_int8_t num_slots; /* number of EISA slots in system */
u_int16_t csum; /* checksum, I don't know how to calculate this */
u_int8_t pad[10];
} __attribute__ ((packed));
#define HPEE_FUNCTION_INFO_HAVE_TYPE 0x01 #define HPEE_FUNCTION_INFO_HAVE_MEMORY 0x02 #define HPEE_FUNCTION_INFO_HAVE_IRQ 0x04 #define HPEE_FUNCTION_INFO_HAVE_DMA 0x08 #define HPEE_FUNCTION_INFO_HAVE_PORT 0x10 #define HPEE_FUNCTION_INFO_HAVE_PORT_INIT 0x20 /* I think there are two slighty different * versions of the function_info field * one int the fixed header and one optional
* in the parsed slot data area */ #define HPEE_FUNCTION_INFO_HAVE_FUNCTION 0x01 #define HPEE_FUNCTION_INFO_F_DISABLED 0x80 #define HPEE_FUNCTION_INFO_CFG_FREE_FORM 0x40
u_int8_t function_info;
#define HPEE_FLAG_BOARD_IS_ISA 0x01 /* flag and minor version for isa board */
u_int8_t flags;
u_int8_t pad[24];
} __attribute__ ((packed));
/* memory descriptor: byte 1 */ #define HPEE_MEMORY_WIDTH_MASK 0x03 #define HPEE_MEMORY_WIDTH_BYTE 0x00 #define HPEE_MEMORY_WIDTH_WORD 0x01 #define HPEE_MEMORY_WIDTH_DWORD 0x02 #define HPEE_MEMORY_DECODE_MASK 0x0c #define HPEE_MEMORY_DECODE_20BITS 0x00 #define HPEE_MEMORY_DECODE_24BITS 0x04 #define HPEE_MEMORY_DECODE_32BITS 0x08 /* byte 2 and 3 are a 16bit LE value
* containing the memory size in kilobytes */ /* byte 4,5,6 are a 24bit LE value
* containing the memory base address */
#define HPEE_PORT_MAX_ENT 20 /* port entry byte 0 */ #define HPEE_PORT_SIZE_MASK 0x1f #define HPEE_PORT_SHARED 0x40 #define HPEE_PORT_MORE 0x80 /* byte 1 and 2 is a 16bit LE value
* containing the start port number */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.