]> git.lizzy.rs Git - plan9front.git/blob - sys/src/boot/pc/fns.h
9boot: always check if a20 is already enabled, use different keyboard code, retry...
[plan9front.git] / sys / src / boot / pc / fns.h
1 /* handy strings in l.s */
2 extern char origin[];
3 extern char hex[];
4 extern char crnl[];
5 extern char bootname[];
6
7 /* l.s */
8 void start(void *sp);
9 int getc(void);
10 int gotc(void);
11 void putc(int c);
12 void usleep(int t);
13 void halt(void);
14 void jump(void *pc);
15
16 int read(void *f, void *data, int len);
17 int readn(void *f, void *data, int len);
18 void close(void *f);
19 void unload(void);
20
21 void memset(void *p, int v, int n);
22 void memmove(void *dst, void *src, int n);
23 int memcmp(void *src, void *dst, int n);
24 int strlen(char *s);
25 char *strchr(char *s, int c);
26 char *strrchr(char *s, int c);
27 void print(char *s);
28
29 char *configure(void *f, char *path);
30 char *bootkern(void *f);
31
32 /* a20.s */
33 int a20(void);
34
35 /* e820.s */
36 ulong e820(ulong bx, void *p);
37
38 /* apm.s */
39 void apm(int id);