Michael Brown
2dc8ed1eb8
Work around Etherboot 5.4 bug when multiple packets are received.
17 jaren geleden
Michael Brown
0958726ebb
It's not just Etherboot that fails to generate TX completions.
17 jaren geleden
Michael Brown
adb3dd03e5
Document TX completion bug.
17 jaren geleden
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 jaren geleden
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 jaren geleden
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 jaren geleden
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 jaren geleden
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 jaren geleden
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
17 jaren geleden
Michael Brown
f547f148d3
Use {get,set}_fbms() so that allocated base memory is correctly hidden.
17 jaren geleden
Michael Brown
d0f4e9a54b
Add some trace messages for important events
17 jaren geleden
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 jaren geleden
Michael Brown
5817c9f114
When an UNDI API call fails, print everything there is to know about it.
17 jaren geleden
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 jaren geleden
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
17 jaren geleden
Michael Brown
fdc97499bf
Add device description fields to struct device.
17 jaren geleden
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
17 jaren geleden
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 jaren geleden
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 jaren geleden
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
17 jaren geleden
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 jaren geleden
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
17 jaren geleden
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
17 jaren geleden
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 jaren geleden
Michael Brown
159930862f
Added missing call to undinet_remove()
17 jaren geleden
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
17 jaren geleden
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
17 jaren geleden
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
17 jaren geleden
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
17 jaren geleden
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
17 jaren geleden
Michael Brown
67e824b539
Neaten up debug messages
17 jaren geleden
Michael Brown
f08093b0d9
Remove spurious debug message
17 jaren geleden
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
17 jaren geleden
Michael Brown
66f7bcc785
Tidied up debug messages
17 jaren geleden
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
17 jaren geleden
Michael Brown
359c888aec
Remove obsolete includes
17 jaren geleden
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 jaren geleden
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 jaren geleden
Michael Brown
36c1e1aa57
Renamed undi.c to undinet.c. (undi.c will become the UNDI PCI driver)
17 jaren geleden
Michael Brown
234d81728a
Obsolete
17 jaren geleden
Michael Brown
d3558fdd3a
Remove accidentally checked-in code
17 jaren geleden
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 jaren geleden
Michael Brown
23cb837951
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
17 jaren geleden
Michael Brown
ef50ea0b2b
Renamed undi_net.c to undi.c.
17 jaren geleden
Michael Brown
6cf488dcf7
Obsolete; net driver functionality is now in undi_net.c and bus driver
functionality is now in pxebus.c. (Not all bus functionality is ported
across yet.)
17 jaren geleden
Michael Brown
7e07dfb2f4
Added PXE bus driver (with support only for using PXE structures found
lying about in memory, not for loading from ROM), and UNDI net driver.
17 jaren geleden
Marty Connor
c4964c3e3a
fix args to _disable routine
18 jaren geleden
Michael Brown
824d6ffa7f
Header rearrangement.
I want to get to the point where any header in include/ reflects a
standard user-level header (e.g. a POSIX header), while everything that's
specific to gPXE lives in include/gpxe/. Headers that reflect a Linux
header (e.g. if_ether.h) should also be in include/gpxe/, with the same
name as the Linux header and, preferably, the same names used for the
definitions.
18 jaren geleden
Michael Brown
ff8e46f2f3
#if 0 out the whole file for now; it cannot be linked because the base
memory interface has changed.
19 jaren geleden
Michael Brown
3a7967a38a
PCI_DRIVER changed
19 jaren geleden