comparison packages/redboot/current/include/redboot.h @ 284:3e80ecaaa3f8

* src/crc.c: Removed. Replaced with the CRC package. * src/cksum.c: Removed the posix_crc function. * src/flash.c: Use the crc package crc functions. * src/xyzModem.c: Ditto * include/redboot.h: Use the crc package include file. * cdl/redboot.cdl: removed crc.c
author asl
date Mon, 12 Aug 2002 07:54:52 +0000
parents a6660704f7a6
children 906a5d289c6d
comparison
equal deleted inserted replaced
283:f58bc1b2c2bc 284:3e80ecaaa3f8
59 #include <pkgconf/redboot.h> 59 #include <pkgconf/redboot.h>
60 #include <pkgconf/hal.h> 60 #include <pkgconf/hal.h>
61 #include <cyg/hal/hal_if.h> 61 #include <cyg/hal/hal_if.h>
62 #include <cyg/hal/hal_tables.h> 62 #include <cyg/hal/hal_tables.h>
63 #include <cyg/infra/diag.h> 63 #include <cyg/infra/diag.h>
64 #include <cyg/crc/crc.h>
64 #include <string.h> 65 #include <string.h>
65 66
66 #ifdef CYGPKG_REDBOOT_NETWORKING 67 #ifdef CYGPKG_REDBOOT_NETWORKING
67 #include <net/net.h> 68 #include <net/net.h>
68 #include <net/bootp.h> 69 #include <net/bootp.h>
136 #define _GETS_OK 1 137 #define _GETS_OK 1
137 138
138 // "console" selection 139 // "console" selection
139 externC int start_console(void); 140 externC int start_console(void);
140 externC void end_console(int old_console); 141 externC void end_console(int old_console);
141
142 // CRC support
143 unsigned short crc16(unsigned char *buf, int len);
144 unsigned long crc32(unsigned char *buf, int len);
145 142
146 // Alias functions 143 // Alias functions
147 #ifdef CYGSEM_REDBOOT_FLASH_ALIASES 144 #ifdef CYGSEM_REDBOOT_FLASH_ALIASES
148 externC char *flash_lookup_alias(char *alias, char *alias_buf); 145 externC char *flash_lookup_alias(char *alias, char *alias_buf);
149 #endif 146 #endif