3 #ifndef LANDISK_STAND_BOOT_H__
4 #define LANDISK_STAND_BOOT_H__
7 #define PCLOCK 33333333
11 #define NELEMENTS(a) (sizeof(a) / sizeof(a[0]))
15 #define roundup(v,s) ((v + ((s) - 1)) & (~((s) - 1)))
18 int parsebootfile(const char *fname
, char **devname
,
19 uint
*unit
, uint
*partition
, const char **file
);
20 int bios2dev(int biosdev
, char **devname
, u_int
*unit
, u_int sector
,
26 int bioscons_getc(void);
27 void bioscons_putc(int c
);
29 int biosdisk_read(int dev
, uint32_t blkaddr
, void *buf
, size_t nblks
);
31 void cache_enable(void);
32 void cache_disable(void);
33 void cache_flush(void);
37 uint32_t gettick(void);
42 void puthex(int val
, int size
);
44 #endif /* LANDISK_STAND_BOOT_H__ */