mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-10 16:23:42 +00:00
Add DD_MAX_DRIVER, the maximum driver number in block0
This commit is contained in:
parent
af1851a9d4
commit
a056ab5960
@ -33,6 +33,8 @@ struct DriverInfo {
|
|||||||
int16_t Type;
|
int16_t Type;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
#define DD_MAX_DRIVER 61
|
||||||
|
|
||||||
struct DriverDescriptor {
|
struct DriverDescriptor {
|
||||||
int16_t Sig;
|
int16_t Sig;
|
||||||
int16_t BlkSize;
|
int16_t BlkSize;
|
||||||
@ -41,7 +43,7 @@ struct DriverDescriptor {
|
|||||||
int16_t DevId;
|
int16_t DevId;
|
||||||
int32_t Data;
|
int32_t Data;
|
||||||
int16_t DrvrCount;
|
int16_t DrvrCount;
|
||||||
struct DriverInfo DrvInfo[61];
|
struct DriverInfo DrvInfo[DD_MAX_DRIVER];
|
||||||
int8_t Pad[6];
|
int8_t Pad[6];
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
#define ASSERT_DD(a) if ( sizeof(struct DriverDescriptor) != 512 ) { a }
|
#define ASSERT_DD(a) if ( sizeof(struct DriverDescriptor) != 512 ) { a }
|
||||||
|
Loading…
Reference in New Issue
Block a user