[BACK]Return to uboot.h CVS log [TXT][DIR] Up to [local] / prex-old / boot / avr32 / include

File: [local] / prex-old / boot / avr32 / include / uboot.h (download)

Revision 1.1, Tue Jul 15 22:54:49 2008 UTC (15 years, 10 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD

initial bits of bootldr driver for U-Boot -- now we are able to query first
stage bootloader about physical memory, flash, serial port speed etc.

#ifndef BOOT_AVR32_INCLUDE_UBOOT_H
#define BOOT_AVR32_INCLUDE_UBOOT_H

#include <sys/types.h>

/*
 * Interface to U-Boot bootloader.
 */

#define UBOOT_CFRAMESIZE	0x40

/* configuration frame that u-boot places into RAM */
struct uboot_cframe {
	uint32_t	ucf_unknown0[2];

	uint32_t	ucf_baudrate;

	uint32_t	ucf_unknown1[6];

	uint32_t	ucf_bootparams;

	uint32_t	ucf_memstart;
	uint32_t	ucf_memsize;

	uint32_t	ucf_flashstart;
	uint32_t	ucf_flashsize;
	uint32_t	ucf_flashoffset;

	uint32_t	ucf_crc32;
} __attribute__((packed));


struct uboot_cframe *uboot_map(uint32_t cframeaddr);


#endif /* !BOOT_AVR32_INCLUDE_UBOOT_H */