mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-31 20:05:01 +00:00
Add 64bit build host support for the first level parameters (replace void* by u_int32_t)
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
003dc015eb
commit
2d8317cb92
@ -12,7 +12,6 @@
|
||||
#ifndef _BOOTBLOCK_H
|
||||
#define _BOOTBLOCK_H
|
||||
static __attribute__((used)) char* bootblock_header = "$CVSHeader$";
|
||||
#include <macos/devices.h>
|
||||
|
||||
/* first level structure */
|
||||
|
||||
@ -41,6 +40,30 @@ struct BootBlkHdr {
|
||||
|
||||
#define ASSERT_BBH(a) if ( sizeof(BootBlkHdr_t) != 138 ) { a }
|
||||
|
||||
#define COMMON_PARAMS \
|
||||
u_int32_t qLink; /* next queue entry */ \
|
||||
u_int16_t qType; /* queue type */ \
|
||||
u_int16_t ioTrap; /* routine trap */ \
|
||||
u_int32_t ioCmdAddr; /* routine address */ \
|
||||
u_int32_t ioCompletion; /* ptr to completion routine */ \
|
||||
u_int16_t ioResult; /* result code */ \
|
||||
u_int32_t ioNamePtr; /* pointer to pathname */ \
|
||||
int16_t ioVRefNum; /* volume specification */
|
||||
|
||||
typedef struct ParamBlockRec ParamBlockRec_t;
|
||||
struct ParamBlockRec {
|
||||
COMMON_PARAMS
|
||||
int16_t ioRefNum; /* file reference number */
|
||||
int8_t ioVersNum; /* version number */
|
||||
int8_t ioPermssn; /* read/write permission */
|
||||
u_int32_t ioMisc; /* miscellaneaous */
|
||||
u_int32_t ioBuffer; /* data buffer */
|
||||
u_int32_t ioReqCount; /* requested number of bytes */
|
||||
u_int32_t ioActCount; /* actual number of bytes */
|
||||
u_int16_t ioPosMode; /* positioning mode and newline char */
|
||||
int32_t ioPosOffset; /* positionning offset */
|
||||
} __attribute__((packed));
|
||||
|
||||
/* EMILE Boot block structure */
|
||||
|
||||
typedef struct eBootBlock eBootBlock_t;
|
||||
|
Loading…
Reference in New Issue
Block a user