Michael Brown [Sat, 23 Apr 2005 14:45:37 +0000 (14:45 +0000)]
Symbol errors caught by symcheck.pl
Michael Brown [Sat, 23 Apr 2005 14:41:38 +0000 (14:41 +0000)]
Added "make symcheck"
Michael Brown [Sat, 23 Apr 2005 14:41:15 +0000 (14:41 +0000)]
First working version
Michael Brown [Sat, 23 Apr 2005 14:34:00 +0000 (14:34 +0000)]
Should be an <= comparison, not a < comparison.
(Detected using "make symcheck" :)
Michael Brown [Fri, 22 Apr 2005 16:40:10 +0000 (16:40 +0000)]
Coerced into compiling.
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... :)
Michael Brown [Fri, 22 Apr 2005 16:32:29 +0000 (16:32 +0000)]
Typo
Michael Brown [Fri, 22 Apr 2005 16:31:52 +0000 (16:31 +0000)]
Ensured that all drivers call xxx_fill_nic().
Michael Brown [Fri, 22 Apr 2005 16:27:56 +0000 (16:27 +0000)]
Coerced into compiling
Michael Brown [Fri, 22 Apr 2005 16:24:21 +0000 (16:24 +0000)]
Updated to new device probing API
Michael Brown [Fri, 22 Apr 2005 16:09:54 +0000 (16:09 +0000)]
Coerced into compiling
Michael Brown [Fri, 22 Apr 2005 16:07:48 +0000 (16:07 +0000)]
Coerced into compiling.
Michael Brown [Fri, 22 Apr 2005 16:06:46 +0000 (16:06 +0000)]
Coerced into actually compiling.
Michael Brown [Fri, 22 Apr 2005 16:05:05 +0000 (16:05 +0000)]
Fields in struct pci_device slightly changed.
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.
Michael Brown [Fri, 22 Apr 2005 16:02:12 +0000 (16:02 +0000)]
Updated debug messages
Michael Brown [Fri, 22 Apr 2005 16:01:51 +0000 (16:01 +0000)]
Documented where to get hold of the datasheet.
Michael Brown [Fri, 22 Apr 2005 16:00:51 +0000 (16:00 +0000)]
Updated to new API.
Michael Brown [Fri, 22 Apr 2005 15:56:57 +0000 (15:56 +0000)]
Debug message fixes.
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.
Michael Brown [Fri, 22 Apr 2005 15:33:35 +0000 (15:33 +0000)]
Need to leave structure zeroed
Michael Brown [Fri, 22 Apr 2005 12:07:22 +0000 (12:07 +0000)]
disable() is a void
Michael Brown [Fri, 22 Apr 2005 12:02:34 +0000 (12:02 +0000)]
Must not go beyond end of driver's probe list.
Michael Brown [Fri, 22 Apr 2005 11:57:35 +0000 (11:57 +0000)]
Updated to current API.
Michael Brown [Fri, 22 Apr 2005 11:56:49 +0000 (11:56 +0000)]
Updated to new API.
Michael Brown [Fri, 22 Apr 2005 11:56:27 +0000 (11:56 +0000)]
Consistency
Michael Brown [Fri, 22 Apr 2005 11:29:40 +0000 (11:29 +0000)]
Updated to new device API.
Michael Brown [Fri, 22 Apr 2005 02:47:39 +0000 (02:47 +0000)]
Fix up fill_mca_nic.
Michael Brown [Fri, 22 Apr 2005 02:43:24 +0000 (02:43 +0000)]
Added friendly enable/disable functions
Michael Brown [Fri, 22 Apr 2005 02:28:16 +0000 (02:28 +0000)]
Updated all common buses to new API.
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.
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;
Michael Brown [Thu, 21 Apr 2005 19:04:53 +0000 (19:04 +0000)]
Tweaked API to minimise changes to existing drivers even further.
Michael Brown [Thu, 21 Apr 2005 18:31:31 +0000 (18:31 +0000)]
Updated to current API
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.
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.
Michael Brown [Thu, 21 Apr 2005 18:16:54 +0000 (18:16 +0000)]
Force a standard format upon debug messages.
Michael Brown [Thu, 21 Apr 2005 18:15:31 +0000 (18:15 +0000)]
Typo
Michael Brown [Thu, 21 Apr 2005 16:38:28 +0000 (16:38 +0000)]
bswap_16() exists; no need to use __bswap_16()
Michael Brown [Wed, 20 Apr 2005 00:29:12 +0000 (00:29 +0000)]
Trying to create a bus API.
Michael Brown [Tue, 19 Apr 2005 14:17:42 +0000 (14:17 +0000)]
First versions
Michael Brown [Mon, 18 Apr 2005 18:56:18 +0000 (18:56 +0000)]
Moved floppy.c to i386 arch, since it's i386-specific.
Michael Brown [Mon, 18 Apr 2005 18:54:27 +0000 (18:54 +0000)]
Added remaining bus functions.
Michael Brown [Mon, 18 Apr 2005 15:48:20 +0000 (15:48 +0000)]
Code fixed to operate correctly.
Michael Brown [Mon, 18 Apr 2005 15:39:02 +0000 (15:39 +0000)]
Extracted from firmware/pcbios/bios.c
Michael Brown [Mon, 18 Apr 2005 15:37:17 +0000 (15:37 +0000)]
Added arch/i386/drivers/bus
Michael Brown [Mon, 18 Apr 2005 15:35:39 +0000 (15:35 +0000)]
Moved disk functions to drivers/bus/bios_disks.c
Michael Brown [Mon, 18 Apr 2005 14:40:57 +0000 (14:40 +0000)]
blib definition moved to Makefile.housekeeping.
Michael Brown [Mon, 18 Apr 2005 14:38:51 +0000 (14:38 +0000)]
Fix endianness of dhcp device id structure.
Michael Brown [Mon, 18 Apr 2005 14:16:13 +0000 (14:16 +0000)]
"make bin/xxx DEBUG=yyy,zzz" now works seemingly perfectly. :)
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. :(
Michael Brown [Mon, 18 Apr 2005 12:59:50 +0000 (12:59 +0000)]
Be nice to emacs
Michael Brown [Mon, 18 Apr 2005 12:55:45 +0000 (12:55 +0000)]
Ignore buildserial-related files.
Michael Brown [Mon, 18 Apr 2005 12:54:27 +0000 (12:54 +0000)]
Note to self: save files before checking in.
Michael Brown [Mon, 18 Apr 2005 12:53:39 +0000 (12:53 +0000)]
Added warning about not using Config for single-object options.
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.
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.
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.
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.
Michael Brown [Mon, 18 Apr 2005 10:18:38 +0000 (10:18 +0000)]
CONFIG_PCI and CONFIG_ISA no longer exist
Michael Brown [Mon, 18 Apr 2005 09:17:27 +0000 (09:17 +0000)]
Save a few bytes by using naturally-sized ints.
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).
Michael Brown [Sun, 17 Apr 2005 16:24:36 +0000 (16:24 +0000)]
Avoid deleting .cvsignore
Michael Brown [Sun, 17 Apr 2005 16:18:20 +0000 (16:18 +0000)]
Serial port configuration moved to config.h
Michael Brown [Sun, 17 Apr 2005 16:16:02 +0000 (16:16 +0000)]
Whoops
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.
Michael Brown [Sun, 17 Apr 2005 16:01:13 +0000 (16:01 +0000)]
Working format.
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.
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. :(
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.
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
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.
Michael Brown [Sun, 17 Apr 2005 15:25:09 +0000 (15:25 +0000)]
First version
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.
Michael Brown [Sun, 17 Apr 2005 13:25:43 +0000 (13:25 +0000)]
Found a home for MAKEROM_FLAGS_3c503.
Michael Brown [Sun, 17 Apr 2005 13:16:13 +0000 (13:16 +0000)]
3c509/3c529 no longer use legacy INCLUDE_xxx mechanism.
Michael Brown [Sun, 17 Apr 2005 12:36:45 +0000 (12:36 +0000)]
xstart16() fixed up to use new REAL_EXEC mechanism.
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.
Michael Brown [Sun, 17 Apr 2005 11:47:18 +0000 (11:47 +0000)]
We don't refer to _bss and _ebss any more.
Michael Brown [Sun, 17 Apr 2005 11:40:24 +0000 (11:40 +0000)]
Re-add the "." progress indicator.
Michael Brown [Sun, 17 Apr 2005 10:51:05 +0000 (10:51 +0000)]
Use only the header files that we need
Michael Brown [Sun, 17 Apr 2005 10:48:56 +0000 (10:48 +0000)]
Need stddef.h to get size_t
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.
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.
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().
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.
Michael Brown [Sat, 16 Apr 2005 23:33:52 +0000 (23:33 +0000)]
Use the correct case for -Ddebug_<object>
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.
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...
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.
Michael Brown [Sat, 16 Apr 2005 14:54:11 +0000 (14:54 +0000)]
...this time with the correct syntax. :(
Michael Brown [Sat, 16 Apr 2005 14:53:27 +0000 (14:53 +0000)]
Added activate_isapnp_device() line
Michael Brown [Sat, 16 Apr 2005 14:50:41 +0000 (14:50 +0000)]
Optimise ISAPNP_READ_PORT_STEP
Michael Brown [Sat, 16 Apr 2005 14:42:48 +0000 (14:42 +0000)]
Remove debugging call to getchar()
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.
Michael Brown [Sat, 16 Apr 2005 11:43:16 +0000 (11:43 +0000)]
Consistency
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.
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.
Michael Brown [Sat, 16 Apr 2005 10:19:13 +0000 (10:19 +0000)]
Improved debugging output
Michael Brown [Sat, 16 Apr 2005 10:04:56 +0000 (10:04 +0000)]
Made debug messages more consistent.