Marty Connor
9b3c4e4d79
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
17 年之前
Michael Brown
2dc8ed1eb8
Work around Etherboot 5.4 bug when multiple packets are received.
17 年之前
Michael Brown
0958726ebb
It's not just Etherboot that fails to generate TX completions.
17 年之前
Michael Brown
adb3dd03e5
Document TX completion bug.
17 年之前
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).
17 年之前
Michael Brown
f77815f2b1
Kill off hotplug.h and just make net devices normal reference-counted
structures.
DHCP still broken and #if 0'd out.
17 年之前
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;'
17 年之前
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.
17 年之前
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.
17 年之前
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
17 年之前
Michael Brown
f547f148d3
Use {get,set}_fbms() so that allocated base memory is correctly hidden.
17 年之前
Michael Brown
d0f4e9a54b
Add some trace messages for important events
17 年之前
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.
17 年之前
Michael Brown
5817c9f114
When an UNDI API call fails, print everything there is to know about it.
17 年之前
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.
17 年之前
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
17 年之前
Michael Brown
fdc97499bf
Add device description fields to struct device.
17 年之前
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
17 年之前
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).
17 年之前
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.
17 年之前
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
17 年之前
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
17 年之前
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
17 年之前
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
17 年之前
Michael Brown
2738bdf74b
Obsoleted by drivers/net/undionly.c
17 年之前
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).
17 年之前
Michael Brown
159930862f
Added missing call to undinet_remove()
17 年之前
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
17 年之前
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
17 年之前
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
17 年之前
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
17 年之前
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
17 年之前
Michael Brown
075d79f6d4
Checking in obsolete but working memory-scanning code just for the record
17 年之前
Michael Brown
67e824b539
Neaten up debug messages
17 年之前
Michael Brown
f08093b0d9
Remove spurious debug message
17 年之前
Michael Brown
f0edd11c7d
Now split out into undirom.c and undiload.c
17 年之前
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
17 年之前
Michael Brown
66f7bcc785
Tidied up debug messages
17 年之前
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
17 年之前
Michael Brown
359c888aec
Remove obsolete includes
17 年之前
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).
17 年之前
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.
17 年之前
Michael Brown
36c1e1aa57
Renamed undi.c to undinet.c. (undi.c will become the UNDI PCI driver)
17 年之前
Michael Brown
234d81728a
Obsolete
17 年之前
Michael Brown
d3558fdd3a
Remove accidentally checked-in code
17 年之前
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.
17 年之前
Michael Brown
23cb837951
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
17 年之前
Michael Brown
9ab5c0dde7
Remove redundant debug message
17 年之前
Michael Brown
fa9055197d
UNDI loader routine now works
17 年之前
Marty Connor
7dee2556f4
Fixed typo
17 年之前