#include <stddef.h>#include <sys/types.h>#include <sys/stat.h>#include <stdlib.h>#include <stdio.h>#include <limits.h>#include <string.h>#include <errno.h>#include <ibm/partition.h>#include <ibm/bios.h>#include <minix/config.h>#include <minix/type.h>#include <minix/dmap.h>#include <minix/const.h>#include <minix/minlib.h>#include <minix/syslib.h>#include <kernel/const.h>#include <sys/video.h>#include "rawfs.h"#include "boot.h"Go to the source code of this file.
Classes | |
| struct | token |
| struct | biosdev |
Defines | |
| #define | BIOS (!UNIX) |
| #define | nil 0 |
| #define | _POSIX_SOURCE 1 |
| #define | _MINIX 1 |
| #define | EXTERN |
| #define | arraysize(a) (sizeof(a) / sizeof((a)[0])) |
| #define | arraylimit(a) ((a) + arraysize(a)) |
| #define | between(a, c, z) ((unsigned) ((c) - (a)) <= ((z) - (a))) |
| #define | CDSECTOR_SIZE 2048 |
| #define | FACTOR (CDSECTOR_SIZE/SECTOR_SIZE) |
| #define | istty (1) |
| #define | alarm(n) (0) |
| #define | null (resnames[0]) |
| #define | b_getenv(name) (*searchenv(name)) |
| #define | STRINGIT2(x) #x |
| #define | STRINGIT1(x) STRINGIT2(x) |
| #define | DEV_FD0 0x0200 |
| #define | minor_p0s0 128 |
| #define | apm_perror(label, ax) ((void)0) |
| #define | apm_printf |
| #define | B_NOSIG -1 |
Enumerations | |
| enum | resnames { R_NULL, R_BOOT, R_CTTY, R_DELAY, R_ECHO, R_EXIT, R_HELP, R_LS, R_MENU, R_OFF, R_SAVE, R_SET, R_TRAP, R_UNSET } |
| enum | whatfun { NOFUN, SELECT, DEFFUN, USERFUN } |
Functions | |
| char * | bios_err (int err) |
| int | readsectors (u32_t bufaddr, u32_t sector, U8_t count) |
| char * | unix_err (int err) |
| void | rwerr (char *rw, off_t sec, int err) |
| void | readerr (off_t sec, int err) |
| void | writerr (off_t sec, int err) |
| void | readblock (off_t blk, char *buf, int block_size) |
| char * | readline (void) |
| int | sugar (char *tok) |
| char * | onetoken (char **aline) |
| token ** | tokenize (token **acmds, char *line) |
| char * | poptoken (void) |
| void | voidtoken (void) |
| void | parse_code (char *code) |
| int | interrupt (void) |
| int | get_master (char *master, struct part_entry **table, u32_t pos) |
| void | initialize (void) |
| int | reserved (char *s) |
| void | sfree (char *s) |
| char * | copystr (char *s) |
| int | is_default (environment *e) |
| environment ** | searchenv (char *name) |
| char * | b_value (char *name) |
| char * | b_body (char *name) |
| int | b_setenv (int flags, char *name, char *arg, char *value) |
| int | b_setvar (int flags, char *name, char *value) |
| void | b_unset (char *name) |
| long | a2l (char *a) |
| char * | ul2a (u32_t n, unsigned b) |
| char * | ul2a10 (u32_t n) |
| unsigned | a2x (char *a) |
| void | get_parameters (void) |
| void | addparm (char *n) |
| void | save_parameters (void) |
| void | show_env (void) |
| int | numprefix (char *s, char **ps) |
| int | numeric (char *s) |
| dev_t | name2dev (char *name) |
| int | exec_bootstrap (void) |
| void | boot_device (char *devname) |
| void | ctty (char *line) |
| void | ls (char *dir) |
| u32_t | milli_time (void) |
| u32_t | milli_since (u32_t base) |
| void | unschedule (void) |
| void | schedule (long msec, char *cmd) |
| int | expired (void) |
| void | delay (char *msec) |
| if (e->arg![1]=',') | |
| void | help (void) |
| void | execute (void) |
| int | run_trailer (void) |
| void | monitor (void) |
| void | boot (void) |
Variables | |
| char | version [] = "2.20" |
| int | serial_line = -1 |
| u16_t | vid_port |
| u32_t | vid_mem_base |
| u32_t | vid_mem_size |
| int | fsok = -1 |
| unsigned char | boot_spec [24] |
| token * | cmds |
| int | err |
| int | activate |
| struct biosdev | bootdev |
| struct biosdev | tmpdev |
| char | resnames [][6] |
| char * | addptr |
| char * | Thandler |
| u32_t | Tbase |
| u32_t | Tcount |
| enum whatfun | arg [0] |
| #define CDSECTOR_SIZE 2048 |
| #define FACTOR (CDSECTOR_SIZE/SECTOR_SIZE) |
| enum resnames |
| int b_setenv | ( | int | flags, | |
| char * | name, | |||
| char * | arg, | |||
| char * | value | |||
| ) |
| int get_master | ( | char * | master, | |
| struct part_entry ** | table, | |||
| u32_t | pos | |||
| ) |
| int is_default | ( | environment * | e | ) |
| environment** searchenv | ( | char * | name | ) |
| char resnames[][6] |
| int serial_line = -1 |
1.5.8