src/boot/boot.h File Reference

Go to the source code of this file.

Classes

struct  vector
struct  memory
struct  bios_env
struct  environment

Defines

#define DEBUG   0
#define SECTOR_SIZE   512
#define SECTOR_SHIFT   9
#define RATIO(b)   ((b) / SECTOR_SIZE)
#define PARAMSEC   1
#define DSKBASE   0x1E
#define DSKPARSIZE   11
#define ESC   '\33'
#define HEADERPOS   0x00600L
#define FREEPOS   0x08000L
#define BOOTPOS   0x07C00L
#define SIGNATURE   0xAA55
#define SIGNATOFF   510
#define MONO_MODE   0x07
#define COLOR_MODE   0x03
#define EXTERN   extern
#define CDNAME   "cd"
#define FL_CARRY   0x0001
#define E_SPECIAL   0x01
#define E_DEV   0x02
#define E_RESERVED   0x04
#define E_STICKY   0x07
#define E_VAR   0x08
#define E_FUNCTION   0x10
#define DOS   0

Typedefs

typedef struct bios_env bios_env_t

Functions

void exit (int code)
u32_t mon2abs (void *ptr)
u32_t vec2abs (vector *vec)
void raw_copy (u32_t dstaddr, u32_t srcaddr, u32_t count)
u16_t get_word (u32_t addr)
void put_word (u32_t addr, U16_t word)
void relocate (void)
int dev_open (void)
int dev_close (void)
int dev_boundary (u32_t sector)
int readsectors (u32_t bufaddr, u32_t sector, U8_t count)
int writesectors (u32_t bufaddr, u32_t sector, U8_t count)
int biosreadsectors (u32_t bufaddr, u32_t sector, U8_t count)
int getch (void)
void scan_keyboard (void)
void ungetch (int c)
int escape (void)
void putch (int c)
void set_mode (unsigned mode)
void clear_screen (void)
u16_t get_bus (void)
u16_t get_video (void)
u32_t get_tick (void)
void bootstrap (int device, struct part_entry *entry)
void minix (u32_t koff, u32_t kcs, u32_t kds, char *bootparams, size_t paramsize, u32_t aout)
void int15 (bios_env_t *)
char * b_value (char *name)
int b_setvar (int flags, char *name, char *value)
void b_unset (char *name)
void parse_code (char *code)
void bootminix (void)
void readerr (off_t sec, int err)
char * ul2a (u32_t n, unsigned b)
char ** ul2a10 (u32_t n)
long a2l (char *a)
unsigned a2x (char *a)
dev_t name2dev (char *name)
int numprefix (char *s, char **ps)
int numeric (char *s)
char * unix_err (int err)
int run_trailer (void)
void readblock (off_t, char *, int)
void delay (char *)

Variables

EXTERN vector rem_part
EXTERN u32_t caddr
EXTERN u32_t daddr
EXTERN u32_t runsize
EXTERN u16_t device
EXTERN u16_t cddevice
EXTERN memory mem [3]
EXTERN int mon_return
EXTERN int cdbooted
EXTERN environmentenv
int fsok
EXTERN u32_t lowsec


Define Documentation

#define BOOTPOS   0x07C00L

Definition at line 36 of file boot.h.

#define CDNAME   "cd"

Definition at line 63 of file boot.h.

#define COLOR_MODE   0x03

Definition at line 42 of file boot.h.

#define DEBUG   0

Definition at line 5 of file boot.h.

#define DOS   0

Definition at line 212 of file boot.h.

#define DSKBASE   0x1E

Definition at line 16 of file boot.h.

#define DSKPARSIZE   11

Definition at line 17 of file boot.h.

#define E_DEV   0x02

Definition at line 150 of file boot.h.

#define E_FUNCTION   0x10

Definition at line 156 of file boot.h.

#define E_RESERVED   0x04

Definition at line 151 of file boot.h.

#define E_SPECIAL   0x01

Definition at line 149 of file boot.h.

#define E_STICKY   0x07

Definition at line 152 of file boot.h.

#define E_VAR   0x08

Definition at line 155 of file boot.h.

#define ESC   '\33'

Definition at line 19 of file boot.h.

#define EXTERN   extern

Definition at line 47 of file boot.h.

#define FL_CARRY   0x0001

Definition at line 82 of file boot.h.

#define FREEPOS   0x08000L

Definition at line 23 of file boot.h.

#define HEADERPOS   0x00600L

Definition at line 21 of file boot.h.

#define MONO_MODE   0x07

Definition at line 41 of file boot.h.

#define PARAMSEC   1

Definition at line 14 of file boot.h.

#define RATIO ( b   )     ((b) / SECTOR_SIZE)

Definition at line 12 of file boot.h.

#define SECTOR_SHIFT   9

Definition at line 11 of file boot.h.

#define SECTOR_SIZE   512

Definition at line 10 of file boot.h.

#define SIGNATOFF   510

Definition at line 38 of file boot.h.

#define SIGNATURE   0xAA55

Definition at line 37 of file boot.h.


Typedef Documentation

typedef struct bios_env bios_env_t


Function Documentation

long a2l ( char *  a  ) 

Definition at line 867 of file boot.c.

unsigned a2x ( char *  a  ) 

Definition at line 897 of file boot.c.

int b_setvar ( int  flags,
char *  name,
char *  value 
)

Definition at line 829 of file boot.c.

void b_unset ( char *  name  ) 

Definition at line 841 of file boot.c.

char* b_value ( char *  name  ) 

Definition at line 776 of file boot.c.

int biosreadsectors ( u32_t  bufaddr,
u32_t  sector,
U8_t  count 
)

void bootminix ( void   ) 

Definition at line 756 of file bootimage.c.

void bootstrap ( int  device,
struct part_entry entry 
)

void clear_screen ( void   ) 

Definition at line 209 of file autopart.c.

void delay ( char *   ) 

Definition at line 1539 of file boot.c.

int dev_boundary ( u32_t  sector  ) 

int dev_close ( void   ) 

int dev_open ( void   ) 

int escape ( void   ) 

void exit ( int  code  ) 

Definition at line 31 of file exit.c.

u16_t get_bus ( void   ) 

u32_t get_tick ( void   ) 

u16_t get_video ( void   ) 

u16_t get_word ( u32_t  addr  ) 

int getch ( void   ) 

Definition at line 622 of file getline.c.

void int15 ( bios_env_t  ) 

void minix ( u32_t  koff,
u32_t  kcs,
u32_t  kds,
char *  bootparams,
size_t  paramsize,
u32_t  aout 
)

u32_t mon2abs ( void *  ptr  ) 

dev_t name2dev ( char *  name  ) 

Definition at line 1110 of file boot.c.

int numeric ( char *  s  ) 

Definition at line 1096 of file boot.c.

int numprefix ( char *  s,
char **  ps 
)

Definition at line 1079 of file boot.c.

void parse_code ( char *  code  ) 

Definition at line 474 of file boot.c.

void put_word ( u32_t  addr,
U16_t  word 
)

void putch ( int  c  ) 

void raw_copy ( u32_t  dstaddr,
u32_t  srcaddr,
u32_t  count 
)

void readblock ( off_t  ,
char *  ,
int   
)

Definition at line 180 of file boot.c.

void readerr ( off_t  sec,
int  err 
)

Definition at line 177 of file boot.c.

int readsectors ( u32_t  bufaddr,
u32_t  sector,
U8_t  count 
)

Definition at line 128 of file boot.c.

void relocate ( void   ) 

int run_trailer ( void   ) 

Definition at line 1903 of file boot.c.

void scan_keyboard ( void   ) 

void set_mode ( unsigned  mode  ) 

char* ul2a ( u32_t  n,
unsigned  b 
)

char* * ul2a10 ( u32_t  n  ) 

Definition at line 891 of file boot.c.

void ungetch ( int  c  ) 

char* unix_err ( int  err  ) 

Definition at line 161 of file boot.c.

u32_t vec2abs ( vector vec  ) 

int writesectors ( u32_t  bufaddr,
u32_t  sector,
U8_t  count 
)


Variable Documentation

EXTERN u32_t caddr

Definition at line 57 of file boot.h.

EXTERN int cdbooted

Definition at line 72 of file boot.h.

EXTERN u16_t cddevice

Definition at line 61 of file boot.h.

EXTERN u32_t daddr

Definition at line 57 of file boot.h.

EXTERN u16_t device

Definition at line 60 of file boot.h.

EXTERN environment* env

Definition at line 168 of file boot.h.

int fsok

Definition at line 55 of file boot.c.

EXTERN u32_t lowsec

Definition at line 177 of file boot.h.

EXTERN memory mem[3]

Definition at line 70 of file boot.h.

EXTERN int mon_return

Definition at line 71 of file boot.h.

EXTERN vector rem_part

Definition at line 55 of file boot.h.

EXTERN u32_t runsize

Definition at line 58 of file boot.h.


Generated on Tue Mar 9 04:36:21 2010 for Minix by  doxygen 1.5.8