people/mcb30/gpxe.git
14 years agoAdded nvo_save()
Michael Brown [Mon, 4 Dec 2006 22:04:10 +0000 (22:04 +0000)]
Added nvo_save()

14 years agoAdd the concept of a fragment list for non-volatile stored options.
Michael Brown [Mon, 4 Dec 2006 21:46:13 +0000 (21:46 +0000)]
Add the concept of a fragment list for non-volatile stored options.

14 years agoFixed two logic errors that were cancelling each other out.
Michael Brown [Mon, 4 Dec 2006 21:12:52 +0000 (21:12 +0000)]
Fixed two logic errors that were cancelling each other out.

14 years agoMigrated etherfabric driver to using generic SPI layer.
Michael Brown [Mon, 4 Dec 2006 20:47:51 +0000 (20:47 +0000)]
Migrated etherfabric driver to using generic SPI layer.

14 years agoAdded the generic block-splitting code to nvs.c
Michael Brown [Mon, 4 Dec 2006 19:06:07 +0000 (19:06 +0000)]
Added the generic block-splitting code to nvs.c

14 years agoAdded generic SPI protocol handler with read and write support.
Michael Brown [Mon, 4 Dec 2006 18:32:55 +0000 (18:32 +0000)]
Added generic SPI protocol handler with read and write support.

14 years agoAbstracted out part of the concept of an SPI device to a generalised NVS
Michael Brown [Mon, 4 Dec 2006 18:23:06 +0000 (18:23 +0000)]
Abstracted out part of the concept of an SPI device to a generalised NVS
device.

Separated the mechanisms of non-volatile storage access and non-volatile
stored options.

14 years agoChanged length parameter in SPI methods to be a byte length, rather than
Michael Brown [Mon, 4 Dec 2006 16:09:59 +0000 (16:09 +0000)]
Changed length parameter in SPI methods to be a byte length, rather than
a word length.

14 years agoGeneralised the SPI abstraction layer to also be able to handle interfaces
Michael Brown [Mon, 4 Dec 2006 15:36:51 +0000 (15:36 +0000)]
Generalised the SPI abstraction layer to also be able to handle interfaces
that don't provide the full flexibility of a bit-bashing interface.

Temporarily hacked rtl8139.c to use the new interface.

14 years agoForce syntax-checking on assertions even in non-asserting builds.
Michael Brown [Mon, 4 Dec 2006 15:09:57 +0000 (15:09 +0000)]
Force syntax-checking on assertions even in non-asserting builds.

14 years agoMove ANSI C standard prototypes to stdlib.h; leave the gPXE-specific
Michael Brown [Sat, 2 Dec 2006 20:10:21 +0000 (20:10 +0000)]
Move ANSI C standard prototypes to stdlib.h; leave the gPXE-specific
function prototypes (e.g. malloc_dma()) in malloc.h.

14 years agoBasic non-volatile storage support
Michael Brown [Wed, 29 Nov 2006 02:41:08 +0000 (02:41 +0000)]
Basic non-volatile storage support

14 years agoMake the "drive number" option apply to iSCSI as well as AoE
Michael Brown [Wed, 29 Nov 2006 00:27:10 +0000 (00:27 +0000)]
Make the "drive number" option apply to iSCSI as well as AoE

14 years agoMerged changes from Solarflare
Michael Brown [Tue, 28 Nov 2006 13:25:23 +0000 (13:25 +0000)]
Merged changes from Solarflare

14 years agoCreate "username" and "password" DHCP options, ready for placing this
Michael Brown [Tue, 28 Nov 2006 02:14:20 +0000 (02:14 +0000)]
Create "username" and "password" DHCP options, ready for placing this
information in NVS.

14 years agoUpdated to use asynchronous operation model for iSCSI requests
Michael Brown [Tue, 28 Nov 2006 00:29:02 +0000 (00:29 +0000)]
Updated to use asynchronous operation model for iSCSI requests

Added CHAP authentication

14 years agoMarked memcmp/strcmp as "pure" functions, to allow gcc to optimise
Michael Brown [Mon, 27 Nov 2006 23:50:24 +0000 (23:50 +0000)]
Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise
away code such as

  if ( strcmp ( some_string, "some_value" ) != 0 ) {
     DBG ( "Bad value received!" );
  }

14 years agoImplemented realloc(), and changed the semantics of malloc(0) to allow
Michael Brown [Fri, 24 Nov 2006 16:51:18 +0000 (16:51 +0000)]
Implemented realloc(), and changed the semantics of malloc(0) to allow
for realloc(0) being a valid way to free memory.

14 years agoFixed off-by-one error
Michael Brown [Wed, 22 Nov 2006 04:54:17 +0000 (04:54 +0000)]
Fixed off-by-one error

14 years agoAdded "name" field to digest algorithms
Michael Brown [Tue, 21 Nov 2006 16:14:50 +0000 (16:14 +0000)]
Added "name" field to digest algorithms

14 years agoAdded debug statements.
Michael Brown [Tue, 21 Nov 2006 16:14:17 +0000 (16:14 +0000)]
Added debug statements.

Don't crash when called on an uninitialised chap structure; this
allows us to avoid extra checks within iscsi.c to make sure that we
receive the CHAP_XXX keys in a sensible order.

14 years agoReduce from 157 to 123 bytes
Michael Brown [Tue, 21 Nov 2006 16:01:12 +0000 (16:01 +0000)]
Reduce from 157 to 123 bytes

14 years agoAdded generic CHAP layer, independent of iSCSI
Michael Brown [Tue, 21 Nov 2006 13:26:59 +0000 (13:26 +0000)]
Added generic CHAP layer, independent of iSCSI

14 years agoMade it temporarily possible to call MD5 routines directly from external
Michael Brown [Wed, 15 Nov 2006 04:22:22 +0000 (04:22 +0000)]
Made it temporarily possible to call MD5 routines directly from external
code, rather than going through the digest layer.

Removed a spurious line of constants.

14 years agoNote to self: do not write code late at night
Michael Brown [Wed, 15 Nov 2006 04:16:26 +0000 (04:16 +0000)]
Note to self: do not write code late at night

14 years agoMay as well add octal support to strtoul()
Michael Brown [Wed, 15 Nov 2006 02:57:24 +0000 (02:57 +0000)]
May as well add octal support to strtoul()

14 years agoFixed endp bug in strtoul()
Michael Brown [Wed, 15 Nov 2006 02:54:28 +0000 (02:54 +0000)]
Fixed endp bug in strtoul()

14 years agoExtend strtoul() to cope with hex as well as decimal. Doesn't cope
Michael Brown [Wed, 15 Nov 2006 02:52:06 +0000 (02:52 +0000)]
Extend strtoul() to cope with hex as well as decimal.  Doesn't cope
with octal yet, but we can probably live without that.

14 years agoSplit login into security negotation and operational parameter
Michael Brown [Tue, 3 Oct 2006 09:17:38 +0000 (09:17 +0000)]
Split login into security negotation and operational parameter
negotiation phases, to allow inclusion of CHAP authentication.

14 years agoInhibit compiler warnings on DBG() when building a non-debug object,
Michael Brown [Wed, 27 Sep 2006 11:09:56 +0000 (11:09 +0000)]
Inhibit compiler warnings on DBG() when building a non-debug object,
while retaining the format string checking.

14 years agoWe don't actually have a stdio.h header file. Our printf() functions are
Michael Brown [Wed, 27 Sep 2006 10:58:14 +0000 (10:58 +0000)]
We don't actually have a stdio.h header file.  Our printf() functions are
defined in vsprintf.h.  (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)

There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.

14 years agoadded stdio.h to includes for DBG compilation
Marty Connor [Wed, 27 Sep 2006 05:57:06 +0000 (05:57 +0000)]
added stdio.h to includes for DBG compilation

14 years agoinclude stdio.h to suppress printf warning, general warnings fixups
Marty Connor [Wed, 27 Sep 2006 04:04:55 +0000 (04:04 +0000)]
include stdio.h to suppress printf warning, general warnings fixups

14 years agoeth_ntoa and warnings cleanup
Marty Connor [Wed, 27 Sep 2006 03:05:21 +0000 (03:05 +0000)]
eth_ntoa and warnings cleanup

14 years agoeth_ntoa cleanup. still has warnings. needs work.
Marty Connor [Wed, 27 Sep 2006 03:00:21 +0000 (03:00 +0000)]
eth_ntoa cleanup.  still has warnings.  needs work.

14 years agoeth_ntoa and warnings cleanup
Marty Connor [Wed, 27 Sep 2006 02:18:07 +0000 (02:18 +0000)]
eth_ntoa and warnings cleanup

14 years agoeth_ntoa and warnings cleanup
Marty Connor [Wed, 27 Sep 2006 02:07:59 +0000 (02:07 +0000)]
eth_ntoa and warnings cleanup

14 years agocompilation warnings cleanup
Marty Connor [Tue, 26 Sep 2006 22:18:00 +0000 (22:18 +0000)]
compilation warnings cleanup

14 years agoeth_ntoa cleanup
Marty Connor [Tue, 26 Sep 2006 22:11:45 +0000 (22:11 +0000)]
eth_ntoa cleanup

14 years agowarnings cleanup (still gives lots of compilation warnings from unused functions...
Marty Connor [Tue, 26 Sep 2006 22:09:03 +0000 (22:09 +0000)]
warnings cleanup (still gives lots of compilation warnings from unused functions and missing legacy support)

14 years agowarnings cleanup
Marty Connor [Tue, 26 Sep 2006 22:04:33 +0000 (22:04 +0000)]
warnings cleanup

14 years agocompilation warnings cleanup
Marty Connor [Tue, 26 Sep 2006 21:58:08 +0000 (21:58 +0000)]
compilation warnings cleanup

14 years agoeth_ntoa and compilation warnings fixes
Marty Connor [Tue, 26 Sep 2006 21:33:12 +0000 (21:33 +0000)]
eth_ntoa and compilation warnings fixes

14 years agoeth_ntoa fixes
Marty Connor [Tue, 26 Sep 2006 21:06:29 +0000 (21:06 +0000)]
eth_ntoa fixes

14 years agoMinor fix
Michael Brown [Mon, 25 Sep 2006 14:41:54 +0000 (14:41 +0000)]
Minor fix

14 years agoeth_ntoa and warnings fixups, memcpy compilation fix
Marty Connor [Mon, 25 Sep 2006 09:06:50 +0000 (09:06 +0000)]
eth_ntoa and warnings fixups, memcpy compilation fix

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 03:52:01 +0000 (03:52 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 03:21:25 +0000 (03:21 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 02:55:13 +0000 (02:55 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 02:47:50 +0000 (02:47 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 02:41:46 +0000 (02:41 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 02:18:11 +0000 (02:18 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa and warnings fixups
Marty Connor [Mon, 25 Sep 2006 02:11:52 +0000 (02:11 +0000)]
eth_ntoa and warnings fixups

14 years agoeth_ntoa fixups
Marty Connor [Wed, 20 Sep 2006 00:20:37 +0000 (00:20 +0000)]
eth_ntoa fixups

14 years agoeth_ntoa fixups
Marty Connor [Wed, 20 Sep 2006 00:06:52 +0000 (00:06 +0000)]
eth_ntoa fixups

14 years agoeth_ntoa fixups
Marty Connor [Wed, 20 Sep 2006 00:00:44 +0000 (00:00 +0000)]
eth_ntoa fixups

14 years agoeth_ntoa fixups
Marty Connor [Tue, 19 Sep 2006 16:33:46 +0000 (16:33 +0000)]
eth_ntoa fixups

14 years agoeth_ntoa fixups
Marty Connor [Tue, 19 Sep 2006 15:58:37 +0000 (15:58 +0000)]
eth_ntoa fixups

14 years agoeth_ntoa fixup
Marty Connor [Tue, 19 Sep 2006 15:49:57 +0000 (15:49 +0000)]
eth_ntoa fixup

14 years agoeth_ntoa fixup, some warnings fixups (isa/pnp fixups still needed)
Marty Connor [Tue, 19 Sep 2006 15:23:28 +0000 (15:23 +0000)]
eth_ntoa fixup, some warnings fixups (isa/pnp fixups still needed)

14 years agoeth_ntoa fixup, _disable arg fixup
Marty Connor [Tue, 19 Sep 2006 15:17:51 +0000 (15:17 +0000)]
eth_ntoa fixup, _disable arg fixup

14 years agofix args to _disable routine
Marty Connor [Tue, 19 Sep 2006 15:01:16 +0000 (15:01 +0000)]
fix args to _disable routine

14 years agoMinor edit to make HEAD build
Marty Connor [Tue, 19 Sep 2006 14:16:15 +0000 (14:16 +0000)]
Minor edit to make HEAD build

14 years agoKilled
Michael Brown [Mon, 18 Sep 2006 21:57:59 +0000 (21:57 +0000)]
Killed

14 years agoRemoved as a gesture of goodwill following a request from Microsoft
Michael Brown [Mon, 18 Sep 2006 21:56:15 +0000 (21:56 +0000)]
Removed as a gesture of goodwill following a request from Microsoft

14 years agoKilled
Michael Brown [Mon, 18 Sep 2006 21:55:27 +0000 (21:55 +0000)]
Killed

14 years agocommented out contents of core/nic.c, which should now be obsolete.
Marty Connor [Mon, 18 Sep 2006 15:08:08 +0000 (15:08 +0000)]
commented out contents of core/nic.c, which should now be obsolete.

14 years agoDBG MAC addr printout in driver
Marty Connor [Fri, 15 Sep 2006 12:54:11 +0000 (12:54 +0000)]
DBG MAC addr printout in driver

14 years agochange MAC address printout to DBG using eth_ntoa (temporary legacy support)
Marty Connor [Fri, 15 Sep 2006 12:42:43 +0000 (12:42 +0000)]
change MAC address printout to DBG using eth_ntoa (temporary legacy support)

14 years agoMade eth_ntoa() public for use in legacy drivers' DBG() statements.
Michael Brown [Fri, 15 Sep 2006 12:34:34 +0000 (12:34 +0000)]
Made eth_ntoa() public for use in legacy drivers' DBG() statements.

14 years agoget rid of compile warnings (except intentionally generated ones)
Marty Connor [Thu, 14 Sep 2006 20:54:05 +0000 (20:54 +0000)]
get rid of compile warnings (except intentionally generated ones)

14 years agofix DBG macro unknown variable
Marty Connor [Thu, 14 Sep 2006 20:34:53 +0000 (20:34 +0000)]
fix DBG macro unknown variable

14 years agoFix compile warnings, remove unused var
Marty Connor [Thu, 14 Sep 2006 17:58:23 +0000 (17:58 +0000)]
Fix compile warnings, remove unused var

14 years agoupdate DBG_DISCARD macro to allow the compiler to see the argument for compile-time...
Marty Connor [Thu, 14 Sep 2006 17:38:17 +0000 (17:38 +0000)]
update DBG_DISCARD macro to allow the compiler to see the argument for compile-time checking, while still having it optimized away during compilation

14 years agoFixed DBG macro format, fixed compile warnings. removed extra parameter from mtd80x_d...
Marty Connor [Thu, 14 Sep 2006 17:15:53 +0000 (17:15 +0000)]
Fixed DBG macro format, fixed compile warnings. removed extra parameter from mtd80x_disable(...)

14 years agoRemove nic_disable call from drivers. Call should be made at a higher level
Marty Connor [Thu, 14 Sep 2006 14:51:38 +0000 (14:51 +0000)]
Remove nic_disable call from drivers.  Call should be made at a higher level

14 years agoRemove printf of MAC address in driver.
Marty Connor [Thu, 14 Sep 2006 14:06:33 +0000 (14:06 +0000)]
Remove printf of MAC address in driver.

14 years agoRestored the le32_to_cpus() and cpu_to_le32s() calls
Michael Brown [Mon, 11 Sep 2006 17:54:50 +0000 (17:54 +0000)]
Restored the le32_to_cpus() and cpu_to_le32s() calls

14 years agoAdded the "swap in place" macros
Michael Brown [Mon, 11 Sep 2006 17:54:19 +0000 (17:54 +0000)]
Added the "swap in place" macros

14 years agoTidied up.
Michael Brown [Mon, 11 Sep 2006 17:45:51 +0000 (17:45 +0000)]
Tidied up.

14 years agoReduced size from 2087 bytes to 1056 bytes
Michael Brown [Mon, 11 Sep 2006 17:18:06 +0000 (17:18 +0000)]
Reduced size from 2087 bytes to 1056 bytes

14 years agoTaken from Linux's md5.c. This implementation is not very
Michael Brown [Mon, 11 Sep 2006 16:30:36 +0000 (16:30 +0000)]
Taken from Linux's md5.c.  This implementation is not very
size-efficient, and will probably be rewritten.

The md5.c from MatrixSSL is too ugly to consider importing.

14 years agoGeneralisation of a message digest algorithm
Michael Brown [Mon, 11 Sep 2006 16:29:45 +0000 (16:29 +0000)]
Generalisation of a message digest algorithm

14 years agoAdded geometry-guessing code based on the partition table
Michael Brown [Fri, 8 Sep 2006 22:22:03 +0000 (22:22 +0000)]
Added geometry-guessing code based on the partition table

14 years agoFix gcc-induced reference to memcpy
Michael Brown [Fri, 1 Sep 2006 10:48:35 +0000 (10:48 +0000)]
Fix gcc-induced reference to memcpy

14 years agoCheck that serial port init actually happens
Michael Brown [Fri, 1 Sep 2006 00:26:32 +0000 (00:26 +0000)]
Check that serial port init actually happens

14 years agoAdded debug to catch initialisation failures
Michael Brown [Fri, 1 Sep 2006 00:19:09 +0000 (00:19 +0000)]
Added debug to catch initialisation failures

14 years agoCheck to see if we've reached the end of the map before attempting to
Michael Brown [Thu, 31 Aug 2006 13:25:45 +0000 (13:25 +0000)]
Check to see if we've reached the end of the map before attempting to
skip past an empty region, otherwise we end up generating an infinitely
long e820 map.  (Yes, there *are* real systems that provide e820 maps
with a zero-length region at the end...)

14 years agoHopefully fix gcc3 build issue
Michael Brown [Wed, 30 Aug 2006 13:55:52 +0000 (13:55 +0000)]
Hopefully fix gcc3 build issue

14 years agoAdded extra debugging
Michael Brown [Wed, 30 Aug 2006 13:39:07 +0000 (13:39 +0000)]
Added extra debugging

14 years ago.zrom is still broken; use .rom by default
Michael Brown [Mon, 28 Aug 2006 01:59:56 +0000 (01:59 +0000)]
.zrom is still broken; use .rom by default

14 years agoDocument requisite patch for qemu
Michael Brown [Mon, 28 Aug 2006 01:58:52 +0000 (01:58 +0000)]
Document requisite patch for qemu

14 years agoAdd --enable-show-ips; it's useful when using the profiling code.
Michael Brown [Mon, 28 Aug 2006 01:54:59 +0000 (01:54 +0000)]
Add --enable-show-ips; it's useful when using the profiling code.

14 years agoAdded iBFT construction to iSCSI boot test
Michael Brown [Sun, 27 Aug 2006 23:54:20 +0000 (23:54 +0000)]
Added iBFT construction to iSCSI boot test

14 years agoAdded generic function for calculating ACPI table checksum
Michael Brown [Sun, 27 Aug 2006 22:02:08 +0000 (22:02 +0000)]
Added generic function for calculating ACPI table checksum

14 years agoDoes anyone still use 9600 baud?
Michael Brown [Sun, 27 Aug 2006 01:39:11 +0000 (01:39 +0000)]
Does anyone still use 9600 baud?

14 years agoCorrect option number for DHCP_DNS_SERVERS, and add it to the request
Michael Brown [Sun, 27 Aug 2006 01:37:58 +0000 (01:37 +0000)]
Correct option number for DHCP_DNS_SERVERS, and add it to the request
list.

14 years agoAdded support for INT 13,15; NTLDR calls it (though it may not
Michael Brown [Sun, 27 Aug 2006 01:22:01 +0000 (01:22 +0000)]
Added support for INT 13,15; NTLDR calls it (though it may not
actually do anything with the result, since it carried on using us
even when we returned failure).

14 years agoAdded support for INT 13,15; NTLDR calls it (though it may not
Michael Brown [Sat, 26 Aug 2006 23:42:02 +0000 (23:42 +0000)]
Added support for INT 13,15; NTLDR calls it (though it may not
actually do anything with the result, since it carried on using us
even when we returned failure).

14 years agoUse TEXT16_CODE() rather than manually specifying ".code16" etc, since
Michael Brown [Thu, 24 Aug 2006 18:43:28 +0000 (18:43 +0000)]
Use TEXT16_CODE() rather than manually specifying ".code16" etc, since
our manual ".code32" will break a KEEP_IT_REAL build.