diff options
author | Michal Soltys <soltys@ziu.info> | 2010-08-28 01:06:13 +0200 |
---|---|---|
committer | Michal Soltys <soltys@ziu.info> | 2010-09-28 09:32:52 +0200 |
commit | 0d591b9348e43cf59cd4857dcc0e9029566d96e5 (patch) | |
tree | 5916f3f441a6cca1434c3f44ffe12f55feba774e /com32/chain/utility.h | |
parent | 32bcebfdcf56da6b27688d2b78dc42ef59453dd0 (diff) | |
download | syslinux-0d591b9348e43cf59cd4857dcc0e9029566d96e5.tar.gz |
chain module: setbpb changes, bss & bs options, bugfixes
Generic function detecting BPB type (7 versions) have been added.
set{hid,geo,drv} have been replaced by single setbpb option, using
mentioned function to make more precise decisions what to update where.
Full BSS and BS emulation has been added, also employing BPB detection.
Some logic/flow changes in chain's main(). There was also a bug, in
which backup sector was populated with wrong data.
Appropriate documentation updates.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'com32/chain/utility.h')
-rw-r--r-- | com32/chain/utility.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/com32/chain/utility.h b/com32/chain/utility.h index b77f633b..0cdb36f2 100644 --- a/com32/chain/utility.h +++ b/com32/chain/utility.h @@ -4,11 +4,21 @@ #include <stdint.h> #include <syslinux/disk.h> +#define bpbV20 1 +#define bpbV30 2 +#define bpbV32 3 +#define bpbV34 4 +#define bpbV40 5 +#define bpbVNT 6 +#define bpbV70 7 + void error(const char *msg); int guid_is0(const struct guid *guid); void wait_key(void); uint32_t lba2chs(const struct disk_info *di, uint64_t lba); uint32_t get_file_lba(const char *filename); +int drvoff_detect(int type, unsigned int *off); +int bpb_detect(const uint8_t *bpb); #endif |