people/indolent/gpxe.git/.git
15 years agoFixed to properly catch multiply defined symbols.
Michael Brown [Sat, 23 Apr 2005 14:54:30 +0000 (14:54 +0000)]
Fixed to properly catch multiply defined symbols.

15 years agoSymbol errors caught by symcheck.pl
Michael Brown [Sat, 23 Apr 2005 14:45:37 +0000 (14:45 +0000)]
Symbol errors caught by symcheck.pl

15 years agoAdded "make symcheck"
Michael Brown [Sat, 23 Apr 2005 14:41:38 +0000 (14:41 +0000)]
Added "make symcheck"

15 years agoFirst working version
Michael Brown [Sat, 23 Apr 2005 14:41:15 +0000 (14:41 +0000)]
First working version

15 years agoShould be an <= comparison, not a < comparison.
Michael Brown [Sat, 23 Apr 2005 14:34:00 +0000 (14:34 +0000)]
Should be an <= comparison, not a < comparison.
(Detected using "make symcheck" :)

15 years agoCoerced into compiling.
Michael Brown [Fri, 22 Apr 2005 16:40:10 +0000 (16:40 +0000)]
Coerced into compiling.

15 years agoMake it easier to comment out individual SRC directories when things
Michael Brown [Fri, 22 Apr 2005 16:36:44 +0000 (16:36 +0000)]
Make it easier to comment out individual SRC directories when things
are broken...  :)

15 years agoTypo
Michael Brown [Fri, 22 Apr 2005 16:32:29 +0000 (16:32 +0000)]
Typo

15 years agoEnsured that all drivers call xxx_fill_nic().
Michael Brown [Fri, 22 Apr 2005 16:31:52 +0000 (16:31 +0000)]
Ensured that all drivers call xxx_fill_nic().

15 years agoCoerced into compiling
Michael Brown [Fri, 22 Apr 2005 16:27:56 +0000 (16:27 +0000)]
Coerced into compiling

15 years agoUpdated to new device probing API
Michael Brown [Fri, 22 Apr 2005 16:24:21 +0000 (16:24 +0000)]
Updated to new device probing API

15 years agoCoerced into compiling
Michael Brown [Fri, 22 Apr 2005 16:09:54 +0000 (16:09 +0000)]
Coerced into compiling

15 years agoCoerced into compiling.
Michael Brown [Fri, 22 Apr 2005 16:07:48 +0000 (16:07 +0000)]
Coerced into compiling.

15 years agoCoerced into actually compiling.
Michael Brown [Fri, 22 Apr 2005 16:06:46 +0000 (16:06 +0000)]
Coerced into actually compiling.

15 years agoFields in struct pci_device slightly changed.
Michael Brown [Fri, 22 Apr 2005 16:05:05 +0000 (16:05 +0000)]
Fields in struct pci_device slightly changed.

15 years agoisapnp_read_port can be set directly, rather than via a function call.
Michael Brown [Fri, 22 Apr 2005 16:03:25 +0000 (16:03 +0000)]
isapnp_read_port can be set directly, rather than via a function call.

15 years agoUpdated debug messages
Michael Brown [Fri, 22 Apr 2005 16:02:12 +0000 (16:02 +0000)]
Updated debug messages

15 years agoDocumented where to get hold of the datasheet.
Michael Brown [Fri, 22 Apr 2005 16:01:51 +0000 (16:01 +0000)]
Documented where to get hold of the datasheet.

15 years agoUpdated to new API.
Michael Brown [Fri, 22 Apr 2005 16:00:51 +0000 (16:00 +0000)]
Updated to new API.

15 years agoDebug message fixes.
Michael Brown [Fri, 22 Apr 2005 15:56:57 +0000 (15:56 +0000)]
Debug message fixes.

15 years agoUpdated to new bus API, and improved using the 3c5x9 reference manual.
Michael Brown [Fri, 22 Apr 2005 15:55:13 +0000 (15:55 +0000)]
Updated to new bus API, and improved using the 3c5x9 reference manual.

15 years agoNeed to leave structure zeroed
Michael Brown [Fri, 22 Apr 2005 15:33:35 +0000 (15:33 +0000)]
Need to leave structure zeroed

15 years agodisable() is a void
Michael Brown [Fri, 22 Apr 2005 12:07:22 +0000 (12:07 +0000)]
disable() is a void

15 years agoMust not go beyond end of driver's probe list.
Michael Brown [Fri, 22 Apr 2005 12:02:34 +0000 (12:02 +0000)]
Must not go beyond end of driver's probe list.

15 years agoUpdated to current API.
Michael Brown [Fri, 22 Apr 2005 11:57:35 +0000 (11:57 +0000)]
Updated to current API.

15 years agoUpdated to new API.
Michael Brown [Fri, 22 Apr 2005 11:56:49 +0000 (11:56 +0000)]
Updated to new API.

15 years agoConsistency
Michael Brown [Fri, 22 Apr 2005 11:56:27 +0000 (11:56 +0000)]
Consistency

15 years agoUpdated to new device API.
Michael Brown [Fri, 22 Apr 2005 11:29:40 +0000 (11:29 +0000)]
Updated to new device API.

15 years agoFix up fill_mca_nic.
Michael Brown [Fri, 22 Apr 2005 02:47:39 +0000 (02:47 +0000)]
Fix up fill_mca_nic.

15 years agoAdded friendly enable/disable functions
Michael Brown [Fri, 22 Apr 2005 02:43:24 +0000 (02:43 +0000)]
Added friendly enable/disable functions

15 years agoUpdated all common buses to new API.
Michael Brown [Fri, 22 Apr 2005 02:28:16 +0000 (02:28 +0000)]
Updated all common buses to new API.

15 years agoRevert debug message prefix back to none, since we sometimes want to use
Michael Brown [Fri, 22 Apr 2005 02:27:59 +0000 (02:27 +0000)]
Revert debug message prefix back to none, since we sometimes want to use
DBG() several times to build up a line.

15 years agoAutomatically updated with the program
Michael Brown [Thu, 21 Apr 2005 19:20:39 +0000 (19:20 +0000)]
Automatically updated with the program

#!/usr/bin/perl -w -pi -0777

use strict;

( my $type ) = /find_(\w+?)_boot_device/ or die "Could not find type\n";

( my $disable ) = /\.disable\s*=\s*(\w+)/ or die "Could not locate disable\n";

s/(${disable}\s*\(\s*struct\s+nic\s+\*nic)(\s*\)\s*\{)(\s*)/${1}, struct ${type}_device \*${type} __unused${2}${3}nic_disable ( nic );${3}/s;

s/(${disable}\s*\(\s*struct\s+nic\s+\*nic)(\s*\)\s*;)/${1}, struct ${type}_device \*${type}${2}/g;

s/^\s*.disable\s*=\s*${disable}\s*,\s*?$//m;

s/(_probe\s*\(\s*)struct\s+dev\s+\*dev/${1}struct nic \*nic/g;

s/^\s*struct\s+nic\s+\*nic\s*=\s*nic_device\s*\(\s*dev\s*\)\s*;\s*?$//m;

s/^(\s*)(nic->(ioaddr|irqno)\s*=\s*${type})/${1}${type}_fill_nic ( nic, ${type} );\n${1}${2}/m;

15 years agoTweaked API to minimise changes to existing drivers even further.
Michael Brown [Thu, 21 Apr 2005 19:04:53 +0000 (19:04 +0000)]
Tweaked API to minimise changes to existing drivers even further.

15 years agoUpdated to current API
Michael Brown [Thu, 21 Apr 2005 18:31:31 +0000 (18:31 +0000)]
Updated to current API

15 years agoMade macros more like the previous driver API, to minimise required
Michael Brown [Thu, 21 Apr 2005 18:30:12 +0000 (18:30 +0000)]
Made macros more like the previous driver API, to minimise required
changes.

15 years agoCreated a bus/device API that allows for the ROM prefix to specify an
Michael Brown [Thu, 21 Apr 2005 18:18:29 +0000 (18:18 +0000)]
Created a bus/device API that allows for the ROM prefix to specify an
initial device, and will also allow for e.g. a device menu to be presented
to the user.

15 years agoForce a standard format upon debug messages.
Michael Brown [Thu, 21 Apr 2005 18:16:54 +0000 (18:16 +0000)]
Force a standard format upon debug messages.

15 years agoTypo
Michael Brown [Thu, 21 Apr 2005 18:15:31 +0000 (18:15 +0000)]
Typo

15 years agobswap_16() exists; no need to use __bswap_16()
Michael Brown [Thu, 21 Apr 2005 16:38:28 +0000 (16:38 +0000)]
bswap_16() exists; no need to use __bswap_16()

15 years agoTrying to create a bus API.
Michael Brown [Wed, 20 Apr 2005 00:29:12 +0000 (00:29 +0000)]
Trying to create a bus API.

15 years agoFirst versions
Michael Brown [Tue, 19 Apr 2005 14:17:42 +0000 (14:17 +0000)]
First versions

15 years agoMoved floppy.c to i386 arch, since it's i386-specific.
Michael Brown [Mon, 18 Apr 2005 18:56:18 +0000 (18:56 +0000)]
Moved floppy.c to i386 arch, since it's i386-specific.

15 years agoAdded remaining bus functions.
Michael Brown [Mon, 18 Apr 2005 18:54:27 +0000 (18:54 +0000)]
Added remaining bus functions.

15 years agoCode fixed to operate correctly.
Michael Brown [Mon, 18 Apr 2005 15:48:20 +0000 (15:48 +0000)]
Code fixed to operate correctly.

15 years agoExtracted from firmware/pcbios/bios.c
Michael Brown [Mon, 18 Apr 2005 15:39:02 +0000 (15:39 +0000)]
Extracted from firmware/pcbios/bios.c

15 years agoAdded arch/i386/drivers/bus
Michael Brown [Mon, 18 Apr 2005 15:37:17 +0000 (15:37 +0000)]
Added arch/i386/drivers/bus

15 years agoMoved disk functions to drivers/bus/bios_disks.c
Michael Brown [Mon, 18 Apr 2005 15:35:39 +0000 (15:35 +0000)]
Moved disk functions to drivers/bus/bios_disks.c

15 years agoblib definition moved to Makefile.housekeeping.
Michael Brown [Mon, 18 Apr 2005 14:40:57 +0000 (14:40 +0000)]
blib definition moved to Makefile.housekeeping.

15 years agoFix endianness of dhcp device id structure.
Michael Brown [Mon, 18 Apr 2005 14:38:51 +0000 (14:38 +0000)]
Fix endianness of dhcp device id structure.

15 years ago"make bin/xxx DEBUG=yyy,zzz" now works seemingly perfectly. :)
Michael Brown [Mon, 18 Apr 2005 14:16:13 +0000 (14:16 +0000)]
"make bin/xxx DEBUG=yyy,zzz" now works seemingly perfectly.  :)

15 years ago"make xxx DEBUG=yyy,zzz" now working, but the "up to date" message is
Michael Brown [Mon, 18 Apr 2005 13:55:57 +0000 (13:55 +0000)]
"make xxx DEBUG=yyy,zzz" now working, but the "up to date" message is
getting suppressed.  :(

15 years agoBe nice to emacs
Michael Brown [Mon, 18 Apr 2005 12:59:50 +0000 (12:59 +0000)]
Be nice to emacs

15 years agoIgnore buildserial-related files.
Michael Brown [Mon, 18 Apr 2005 12:55:45 +0000 (12:55 +0000)]
Ignore buildserial-related files.

15 years agoNote to self: save files before checking in.
Michael Brown [Mon, 18 Apr 2005 12:54:27 +0000 (12:54 +0000)]
Note to self: save files before checking in.

15 years agoAdded warning about not using Config for single-object options.
Michael Brown [Mon, 18 Apr 2005 12:53:39 +0000 (12:53 +0000)]
Added warning about not using Config for single-object options.

15 years agoThis is, of course, the neater and much more obvious way to do it.
Michael Brown [Mon, 18 Apr 2005 12:45:31 +0000 (12:45 +0000)]
This is, of course, the neater and much more obvious way to do it.

15 years agoFix BUILD_SERIAL.
Michael Brown [Mon, 18 Apr 2005 12:43:18 +0000 (12:43 +0000)]
Fix BUILD_SERIAL.

Change from using #if to #ifdef, since #if can't cope with string
constants.

15 years agoMove RELOCATE into config.h
Michael Brown [Mon, 18 Apr 2005 11:00:42 +0000 (11:00 +0000)]
Move RELOCATE into config.h

Move ISA probe address logic from config.c into isa.c, create header file
config/isa.h.

15 years agoMoved console options to config.h
Michael Brown [Mon, 18 Apr 2005 10:19:36 +0000 (10:19 +0000)]
Moved console options to config.h

Removed CONFIG_{PCI,ISA,PCMCIA}, since buses are now always compiled and
linked in only if required by the individual driver objects.

15 years agoCONFIG_PCI and CONFIG_ISA no longer exist
Michael Brown [Mon, 18 Apr 2005 10:18:38 +0000 (10:18 +0000)]
CONFIG_PCI and CONFIG_ISA no longer exist

15 years agoSave a few bytes by using naturally-sized ints.
Michael Brown [Mon, 18 Apr 2005 09:17:27 +0000 (09:17 +0000)]
Save a few bytes by using naturally-sized ints.

15 years agoSplit out EISA driver into a separate file, since 3c509s can only take 16K
Michael Brown [Sun, 17 Apr 2005 17:52:33 +0000 (17:52 +0000)]
Split out EISA driver into a separate file, since 3c509s can only take 16K
ROMs (AFAIK).

15 years agoAvoid deleting .cvsignore
Michael Brown [Sun, 17 Apr 2005 16:24:36 +0000 (16:24 +0000)]
Avoid deleting .cvsignore

15 years agoSerial port configuration moved to config.h
Michael Brown [Sun, 17 Apr 2005 16:18:20 +0000 (16:18 +0000)]
Serial port configuration moved to config.h

15 years agoWhoops
Michael Brown [Sun, 17 Apr 2005 16:16:02 +0000 (16:16 +0000)]
Whoops

15 years agoAllow serial port options to be specified in a relatively friendly format.
Michael Brown [Sun, 17 Apr 2005 16:15:46 +0000 (16:15 +0000)]
Allow serial port options to be specified in a relatively friendly format.

15 years agoWorking format.
Michael Brown [Sun, 17 Apr 2005 16:01:13 +0000 (16:01 +0000)]
Working format.

15 years agoAdd MKCONFIG utility, and add "-I ." to CFLAGS so that we can work
Michael Brown [Sun, 17 Apr 2005 15:58:39 +0000 (15:58 +0000)]
Add MKCONFIG utility, and add "-I ." to CFLAGS so that we can work
with generated headers.

15 years agoUse mkconfig.pl to generate fragments from config.h
Michael Brown [Sun, 17 Apr 2005 15:57:34 +0000 (15:57 +0000)]
Use mkconfig.pl to generate fragments from config.h

Don't use -MP to generate phony rules for included files, otherwise
make won't use the pattern rule for config/%.h.  :(

15 years agoIf we end up with fragments that are older than config.h, set the
Michael Brown [Sun, 17 Apr 2005 15:56:32 +0000 (15:56 +0000)]
If we end up with fragments that are older than config.h, set the
timestamp on config.h to match the oldest fragment, to prevent make
from always attempting to rebuild the fragments.

15 years agoAll .h files in this directory are generated from the top-level config.h
Michael Brown [Sun, 17 Apr 2005 15:36:15 +0000 (15:36 +0000)]
All .h files in this directory are generated from the top-level config.h

15 years agoGenerate phony targets, so that we don't get screwed by missing config
Michael Brown [Sun, 17 Apr 2005 15:31:06 +0000 (15:31 +0000)]
Generate phony targets, so that we don't get screwed by missing config
header files.

15 years agoFirst version
Michael Brown [Sun, 17 Apr 2005 15:25:09 +0000 (15:25 +0000)]
First version

15 years agoExperiment; let's see if we can get individual config header files working.
Michael Brown [Sun, 17 Apr 2005 14:08:40 +0000 (14:08 +0000)]
Experiment; let's see if we can get individual config header files working.

15 years agoFound a home for MAKEROM_FLAGS_3c503.
Michael Brown [Sun, 17 Apr 2005 13:25:43 +0000 (13:25 +0000)]
Found a home for MAKEROM_FLAGS_3c503.

15 years ago3c509/3c529 no longer use legacy INCLUDE_xxx mechanism.
Michael Brown [Sun, 17 Apr 2005 13:16:13 +0000 (13:16 +0000)]
3c509/3c529 no longer use legacy INCLUDE_xxx mechanism.

15 years agoxstart16() fixed up to use new REAL_EXEC mechanism.
Michael Brown [Sun, 17 Apr 2005 12:36:45 +0000 (12:36 +0000)]
xstart16() fixed up to use new REAL_EXEC mechanism.

15 years agoMade copy_{to,from}_real volatile, so that they don't get optimised away.
Michael Brown [Sun, 17 Apr 2005 12:17:06 +0000 (12:17 +0000)]
Made copy_{to,from}_real volatile, so that they don't get optimised away.
Added REAL_FRAGMENT(), because it could conceivably be useful.

15 years agoWe don't refer to _bss and _ebss any more.
Michael Brown [Sun, 17 Apr 2005 11:47:18 +0000 (11:47 +0000)]
We don't refer to _bss and _ebss any more.

15 years agoRe-add the "." progress indicator.
Michael Brown [Sun, 17 Apr 2005 11:40:24 +0000 (11:40 +0000)]
Re-add the "." progress indicator.

15 years agoUse only the header files that we need
Michael Brown [Sun, 17 Apr 2005 10:51:05 +0000 (10:51 +0000)]
Use only the header files that we need

15 years agoNeed stddef.h to get size_t
Michael Brown [Sun, 17 Apr 2005 10:48:56 +0000 (10:48 +0000)]
Need stddef.h to get size_t

15 years agoprintf and sprintf now defined in vsprintf.h, drag in console.h to get
Michael Brown [Sun, 17 Apr 2005 10:45:13 +0000 (10:45 +0000)]
printf and sprintf now defined in vsprintf.h, drag in console.h to get
putchar() as well.

15 years agoGave vsprintf.c its own header file, and made console.h include it.
Michael Brown [Sun, 17 Apr 2005 10:44:26 +0000 (10:44 +0000)]
Gave vsprintf.c its own header file, and made console.h include it.

15 years agoAutomatically drag in console.h if DBG() is being defined as printf().
Michael Brown [Sun, 17 Apr 2005 10:25:06 +0000 (10:25 +0000)]
Automatically drag in console.h if DBG() is being defined as printf().

15 years agoNeed to prevent intermediate targets from being deleted, otherwise the
Michael Brown [Sat, 16 Apr 2005 23:47:47 +0000 (23:47 +0000)]
Need to prevent intermediate targets from being deleted, otherwise the
trick with "touch -B 2" doesn't work because the file that we're
carefully timestamping just gets deleted anyway.

15 years agoUse the correct case for -Ddebug_<object>
Michael Brown [Sat, 16 Apr 2005 23:33:52 +0000 (23:33 +0000)]
Use the correct case for -Ddebug_<object>

15 years agoImproved building of debugging objects. You can now specify a "DEBUG="
Michael Brown [Sat, 16 Apr 2005 23:28:36 +0000 (23:28 +0000)]
Improved building of debugging objects.  You can now specify a "DEBUG="
list for any build, e.g.
  make bin/pnic.dsk DEBUG=pci,pnic
This will drag in debugging-enabled versions of pci.c and pnic.c.

15 years agoPlace the call to adjust_pci_device() back in the individual drivers,
Michael Brown [Sat, 16 Apr 2005 17:30:37 +0000 (17:30 +0000)]
Place the call to adjust_pci_device() back in the individual drivers,
since we probably shouldn't be doing this to arbitrary devices during a
PCI bus scan...

15 years agoAvoid signed/unsigned warnings by explicitly making PCI_{BUS,DEV,FUNC}
Michael Brown [Sat, 16 Apr 2005 17:09:52 +0000 (17:09 +0000)]
Avoid signed/unsigned warnings by explicitly making PCI_{BUS,DEV,FUNC}
all return unsigned quantities.

15 years ago...this time with the correct syntax. :(
Michael Brown [Sat, 16 Apr 2005 14:54:11 +0000 (14:54 +0000)]
...this time with the correct syntax.  :(

15 years agoAdded activate_isapnp_device() line
Michael Brown [Sat, 16 Apr 2005 14:53:27 +0000 (14:53 +0000)]
Added activate_isapnp_device() line

15 years agoOptimise ISAPNP_READ_PORT_STEP
Michael Brown [Sat, 16 Apr 2005 14:50:41 +0000 (14:50 +0000)]
Optimise ISAPNP_READ_PORT_STEP

15 years agoRemove debugging call to getchar()
Michael Brown [Sat, 16 Apr 2005 14:42:48 +0000 (14:42 +0000)]
Remove debugging call to getchar()

15 years agoNow known to work with an old Adaptec 1505 that I found lying around.
Michael Brown [Sat, 16 Apr 2005 14:41:04 +0000 (14:41 +0000)]
Now known to work with an old Adaptec 1505 that I found lying around.

15 years agoConsistency
Michael Brown [Sat, 16 Apr 2005 11:43:16 +0000 (11:43 +0000)]
Consistency

15 years agoSpeed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present.
Michael Brown [Sat, 16 Apr 2005 11:42:56 +0000 (11:42 +0000)]
Speed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present.

15 years agoRead number of PCI buses returned by BIOS so that we can scan more
Michael Brown [Sat, 16 Apr 2005 11:16:31 +0000 (11:16 +0000)]
Read number of PCI buses returned by BIOS so that we can scan more
quickly.

15 years agoImproved debugging output
Michael Brown [Sat, 16 Apr 2005 10:19:13 +0000 (10:19 +0000)]
Improved debugging output