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.
пре 19 година
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
пре 19 година
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
пре 19 година
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
пре 19 година
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
пре 19 година
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).
пре 19 година
Michael Brown
159930862f
Added missing call to undinet_remove()
пре 19 година
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
пре 19 година
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
пре 19 година
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
пре 19 година
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
пре 19 година
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
пре 19 година
Michael Brown
67e824b539
Neaten up debug messages
пре 19 година
Michael Brown
f08093b0d9
Remove spurious debug message
пре 19 година
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
пре 19 година
Michael Brown
66f7bcc785
Tidied up debug messages
пре 19 година
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
пре 19 година
Michael Brown
359c888aec
Remove obsolete includes
пре 19 година
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).
пре 19 година
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.
пре 19 година
Michael Brown
36c1e1aa57
Renamed undi.c to undinet.c. (undi.c will become the UNDI PCI driver)
пре 19 година
Michael Brown
234d81728a
Obsolete
пре 19 година
Michael Brown
d3558fdd3a
Remove accidentally checked-in code
пре 19 година
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.
пре 19 година
Michael Brown
23cb837951
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
пре 19 година
Michael Brown
ef50ea0b2b
Renamed undi_net.c to undi.c.
пре 19 година
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.)
пре 19 година
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.
пре 19 година
Marty Connor
c4964c3e3a
fix args to _disable routine
пре 19 година
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.
пре 19 година
Michael Brown
ff8e46f2f3
#if 0 out the whole file for now; it cannot be linked because the base
memory interface has changed.
пре 20 година
Michael Brown
3a7967a38a
PCI_DRIVER changed
пре 20 година
Michael Brown
dbea213c27
Coerced into compiling.
пре 20 година
Michael Brown
2c2154b169
Now compiles.
пре 21 година
Michael Brown
44c7cc8c12
Standardised debug mechanism in place now.
пре 21 година
Michael Brown
c2a21744f6
We now record a pointer to the struct pci_device, since it's carried
around in struct dev anyway.
пре 21 година
Michael Brown
e1d0cebfa8
Able to at least compile again now.
пре 21 година
Michael Brown
90cf689810
Note basemem API change.
пре 21 година
Michael Brown
0ff80b477d
Merged mcb30-realmode-redesign back to HEAD
пре 21 година
Michael Brown
3d6123e69a
Initial revision
пре 21 година