blob: 8a08be7157067d4c412e22cc476ee22daeef3b03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef _COM32_CHAIN_UTILITY_H
#define _COM32_CHAIN_UTILITY_H
#include <stdint.h>
#include <syslinux/disk.h>
#define bpbUNK 0
#define bpbV20 1
#define bpbV30 2
#define bpbV32 3
#define bpbV34 4
#define bpbV40 5
#define bpbVNT 6
#define bpbV70 7
#define l2c_cnul 0
#define l2c_cadd 1
#define l2c_cmax 2
void error(const char *msg);
int guid_is0(const struct guid *guid);
void wait_key(void);
void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, uint32_t mode);
uint32_t get_file_lba(const char *filename);
int drvoff_detect(int type, unsigned int *off);
int bpb_detect(const uint8_t *bpb, const char *tag);
#endif
/* vim: set ts=8 sts=4 sw=4 noet: */
|