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 години