summaryrefslogtreecommitdiff
path: root/com32/chain/utility.h
blob: 0cdb36f2ee8effb6b017590cac4dd27522b4813f (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
#ifndef _COM32_CHAIN_UTILITY_H
#define _COM32_CHAIN_UTILITY_H

#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

/* vim: set ts=8 sts=4 sw=4 noet: */