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 19 roky
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
před 19 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 19 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 19 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 19 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 19 roky
Michael Brown
159930862f
Added missing call to undinet_remove()
před 19 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 19 roky
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
před 19 roky
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
před 19 roky
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
před 19 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 19 roky
Michael Brown
67e824b539
Neaten up debug messages
před 19 roky
Michael Brown
f08093b0d9
Remove spurious debug message
před 19 roky
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
před 19 roky
Michael Brown
66f7bcc785
Tidied up debug messages
před 19 roky
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
před 19 roky
Michael Brown
359c888aec
Remove obsolete includes
před 19 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 19 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 19 roky
Michael Brown
36c1e1aa57
Renamed undi.c to undinet.c. (undi.c will become the UNDI PCI driver)
před 19 roky
Michael Brown
234d81728a
Obsolete
před 19 roky
Michael Brown
d3558fdd3a
Remove accidentally checked-in code
před 19 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 19 roky
Michael Brown
23cb837951
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
před 19 roky
Michael Brown
ef50ea0b2b
Renamed undi_net.c to undi.c.
před 19 roky
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.)
před 19 roky
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.
před 19 roky
Marty Connor
c4964c3e3a
fix args to _disable routine
před 19 roky
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.
před 19 roky
Michael Brown
ff8e46f2f3
#if 0 out the whole file for now; it cannot be linked because the base
memory interface has changed.
před 20 roky
Michael Brown
3a7967a38a
PCI_DRIVER changed
před 20 roky
Michael Brown
dbea213c27
Coerced into compiling.
před 20 roky
Michael Brown
2c2154b169
Now compiles.
před 21 roky
Michael Brown
44c7cc8c12
Standardised debug mechanism in place now.
před 21 roky
Michael Brown
c2a21744f6
We now record a pointer to the struct pci_device, since it's carried
around in struct dev anyway.
před 21 roky
Michael Brown
e1d0cebfa8
Able to at least compile again now.
před 21 roky
Michael Brown
90cf689810
Note basemem API change.
před 21 roky
Michael Brown
0ff80b477d
Merged mcb30-realmode-redesign back to HEAD
před 21 roky
Michael Brown
3d6123e69a
Initial revision
před 21 roky