Marty Connor
9b3c4e4d79
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
před 17 roky
Michael Brown
2dc8ed1eb8
Work around Etherboot 5.4 bug when multiple packets are received.
před 17 roky
Michael Brown
0958726ebb
It's not just Etherboot that fails to generate TX completions.
před 17 roky
Michael Brown
adb3dd03e5
Document TX completion bug.
před 17 roky
Michael Brown
e42eba4af4
Use a common base-memory packet buffer for DHCP construction (as used
by PXE and NBI) and UNDI packets (as used by undinet and UNDI).
před 17 roky
Michael Brown
f77815f2b1
Kill off hotplug.h and just make net devices normal reference-counted
structures.
DHCP still broken and #if 0'd out.
před 17 roky
Michael Brown
3e2c6b6736
pkbuff->iobuf changeover
Achieved via Perl using:
perl -pi -e 's/pk_buff/io_buffer/g; s/Packet buffer/I\/O buffer/ig; ' \
-e 's/pkbuff\.h/iobuf.h/g; s/pkb_/iob_/g; s/_pkb/_iob/g; ' \
-e 's/pkb/iobuf/g; s/PKB/IOB/g;'
před 17 roky
Michael Brown
520d9c36af
Updated ISAPnP, EISA, MCA and ISA buses to current device model.
ISA 3c509 is currently non-functional, although the EISA (3c509-eisa) and
MCA (3c529) variants should build OK.
None of this code is yet tested.
před 17 roky
Michael Brown
7d9267561b
Don't call PXENV_STOP_UNDI in the kpxeprefix. This slighy breaks the
clean separation between loading and starting, but does mean that more
PXE stacks survive the process.
před 17 roky
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
před 17 roky
Michael Brown
f547f148d3
Use {get,set}_fbms() so that allocated base memory is correctly hidden.
před 17 roky
Michael Brown
d0f4e9a54b
Add some trace messages for important events
před 17 roky
Michael Brown
4b77061881
Pick up the return status code from the correct place now that we
don't overwrite the parameter block until *after* the debug code.
před 17 roky
Michael Brown
5817c9f114
When an UNDI API call fails, print everything there is to know about it.
před 17 roky
Michael Brown
6a3c76c8e0
Always send EOI. We can't feasibly share interrupts (since we have no
clue what the "previous" interrupt handler will do, which could range
from "just an iret" to "disable the interrupt"), and that means that
we have to take responsibility for ACKing all interrupts. Joy.
před 17 roky
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
před 17 roky
Michael Brown
fdc97499bf
Add device description fields to struct device.
před 17 roky
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
před 17 roky
Michael Brown
dad5274522
Add "name" field to struct device to allow human-readable hardware device
names.
Add "dev" pointer in struct net_device to tie network interfaces back to a
hardware device.
Force natural alignment of data types in __table() macros. This seems to
prevent gcc from taking the unilateral decision to occasionally increase
their alignment (which screws up the table packing).
před 17 roky
Michael Brown
c65fae2475
Add RX quotas to the net device poll() method. This avoids the problem
of alloc_pkb() exhaustion when e.g. an iSCSI-booted DOS session is left
idle for a long time at the C:\ prompt and builds up a huge packet
backlog.
před 17 roky
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
před 17 roky
Michael Brown
b7fcfe8ece
Added net device TX queue; this will be needed to support the PXE UNDI API
(which will need us to wait for TX completions).
Added debug autocolourisation to netdevice.c
před 17 roky
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
před 17 roky
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
před 17 roky
Michael Brown
2738bdf74b
Obsoleted by drivers/net/undionly.c
před 17 roky
Michael Brown
d606edb41d
Added UNDI root bus driver (which saves including all the PCI bus code,
UNDI ROM code etc. when you just want a "undi.kpxe"-type image).
This driver cannot be used in conjunction with any other driver (it will
crash), or in any other format than .kpxe (it just won't find any network
devices).
před 17 roky
Michael Brown
159930862f
Added missing call to undinet_remove()
před 17 roky
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
před 17 roky
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
před 17 roky
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
před 17 roky
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
před 17 roky
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
před 17 roky
Michael Brown
075d79f6d4
Checking in obsolete but working memory-scanning code just for the record
před 17 roky
Michael Brown
67e824b539
Neaten up debug messages
před 17 roky
Michael Brown
f08093b0d9
Remove spurious debug message
před 17 roky
Michael Brown
f0edd11c7d
Now split out into undirom.c and undiload.c
před 17 roky
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
před 17 roky
Michael Brown
66f7bcc785
Tidied up debug messages
před 17 roky
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
před 17 roky
Michael Brown
359c888aec
Remove obsolete includes
před 17 roky
Michael Brown
6fc75f659b
Separated out UNDI ROM location code into undirom.c, and use struct
undi_rom rather than struct pxe_driver. (This is part of the naming
consistency fixes).
před 17 roky
Michael Brown
675fe200e5
Use "struct undi_device" instead of "struct pxe_device", and use the
function prefix "undinet_" and the variable name "undinic" in undinet.c,
so that we can reserve the variable name "undi" for a struct undi_device.
The idea is that we preserve the Etherboot 5.4 convention that the "UNDI"
code refers to our using an underlying UNDI stack, while the "PXE" code
refers to our providing a PXE API.
před 17 roky
Michael Brown
36c1e1aa57
Renamed undi.c to undinet.c. (undi.c will become the UNDI PCI driver)
před 17 roky
Michael Brown
234d81728a
Obsolete
před 17 roky
Michael Brown
d3558fdd3a
Remove accidentally checked-in code
před 17 roky
Michael Brown
85a41b25fe
Move START_UNDI, UNDI_STARTUP, UNDI_INITIALIZE and
UNDI_GET_INFORMATION calls into drivers/net/undi.c. undi_probe() now
gets given a pxe_device representing a PXE stack that has been loaded
into memory but not initialised in any way.
před 17 roky
Michael Brown
23cb837951
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
před 17 roky
Michael Brown
9ab5c0dde7
Remove redundant debug message
před 17 roky
Michael Brown
fa9055197d
UNDI loader routine now works
před 17 roky
Marty Connor
7dee2556f4
Fixed typo
před 17 roky