1/* $NetBSD$ */ 2 3#ifndef LANDISK_STAND_BOOT_H__ 4#define LANDISK_STAND_BOOT_H__ 5 6#ifndef PCLOCK 7#define PCLOCK 33333333 8#endif 9 10#ifndef NELEMENTS 11#define NELEMENTS(a) (sizeof(a) / sizeof(a[0])) 12#endif 13 14#ifndef roundup 15#define roundup(v,s) ((v + ((s) - 1)) & (~((s) - 1))) 16#endif 17 18int parsebootfile(const char *fname, char **devname, 19 uint *unit, uint *partition, const char **file); 20int bios2dev(int biosdev, char **devname, u_int *unit, u_int sector, 21 u_int *ptnp); 22 23void halt(void); 24void reboot(void); 25 26int bioscons_getc(void); 27void bioscons_putc(int c); 28 29int biosdisk_read(int dev, uint32_t blkaddr, void *buf, size_t nblks); 30 31void cache_enable(void); 32void cache_disable(void); 33void cache_flush(void); 34 35int tick_init(void); 36void tick_stop(void); 37uint32_t gettick(void); 38void delay(int ms); 39 40int db_monitor(void); 41 42void puthex(int val, int size); 43 44#endif /* LANDISK_STAND_BOOT_H__ */ 45