#define DEFAULT_SERIAL_OPTIONS "9600 8N1" #define DEFAULT_SERIAL_DEVICE "/dev/tty00" #define DEFAULT_BASE_ADDRESS 0x00000000 #define DEFAULT_ENTRY_ADDRESS 0x00000000 #define DEFAULT_BAUD_RATE 38400 struct bootoptions { char *serial_device; /* serial device name */ char *serial_options; /* serial options */ char *image_file; /* image filename */ unsigned int image_size; /* image size to download */ unsigned int image_offset; /* offset into image to start download at */ unsigned int base_address; /* base address to load to */ unsigned int entry_address; /* entry address */ unsigned int regs[16]; /* Processor registers */ char *exec; /* binary to exec */ unsigned int baud_rate; /* baud rate to download at */ char *o_image_file; /* other image filename */ unsigned int o_image_size; /* other image size to download */ unsigned int o_base_address; /* other base address to load to */ }; extern struct bootoptions boot_options;