Michael Brown
200d92c76d
Avoid namespace clashes
18 years ago
Michael Brown
bcc98c78b8
Added fields present in the documentation but not in the header file.
18 years ago
Michael Brown
dc51af59a4
Capable of starting a multiboot kernel (albeit without the multiboot
information table yet).
18 years ago
Michael Brown
9196e9069c
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
18 years ago
Michael Brown
d488a172eb
Capable of loading a multiboot image into memory
18 years ago
Michael Brown
143e3b84a4
Downloaded from current grub CVS.
18 years ago
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
18 years ago
Michael Brown
7ad1c2eaa8
Removed the Etherboot-specific ELF-image code and replaced it with a
generic ELF loader, to be used by the multiboot code.
18 years ago
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
18 years ago
Michael Brown
ceca6b185c
Added user_to_phys() and memset_user().
18 years ago
Michael Brown
c980cdd0aa
Move memmap.h out of arch/i386; it no longer contains anything
architecture-dependent and is needed by the ELF code.
18 years ago
Michael Brown
c6a4055fae
Add phys_to_user() and copy_user().
18 years ago
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
18 years ago
Michael Brown
fdc97499bf
Add device description fields to struct device.
18 years ago
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
18 years ago
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).
18 years ago
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.
18 years ago
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
18 years ago
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
18 years ago
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
18 years ago
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
18 years ago
Michael Brown
a2ffe8c123
Allow boot sector to completely destroy real-mode stack, but still
manage to return control.
18 years ago
Michael Brown
a9369bb503
Leave protected-mode return address on PM stack when issuing a
real_call(), rather than moving it to the RM stack and back again.
This allows the real-mode function to completely destroy the stack
contents, provided that it manages to return to real_call().
18 years ago
Michael Brown
2738bdf74b
Obsoleted by drivers/net/undionly.c
18 years ago
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).
18 years ago
Michael Brown
159930862f
Added missing call to undinet_remove()
18 years ago
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
18 years ago
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
18 years ago
Michael Brown
a2be828a33
Avoid leaving preloaded_undi with invalid PXENV+/!PXE structure
addresses if the signature checks fail.
18 years ago
Michael Brown
697bcc9d24
Since we now always unload the base code stack (even if we keep UNDI),
we can never return to the PXE stack and must always use INT 18.
18 years ago
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
18 years ago
Michael Brown
2436dac281
Populate preloaded_undi device when applicable.
18 years ago
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
18 years ago
Michael Brown
47222d5ed8
Call PXENV_UNDI_GET_NIC_TYPE to identify NIC physical device.
Record all information required for populating a struct undi_device.
Make debugging output more human-readable.
18 years ago
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
18 years ago
Michael Brown
fbdebac5f4
Copy pxelinux's shutdown sequence: use UNLOAD_STACK without STOP_BASE,
and call UNDI_SHUTDOWN first to make sure the NIC is in a safe state.
18 years ago
Michael Brown
8f8af10b22
New strategy: always stop both base code and UNDI. Always free base code
memory (unless we get an error while stopping the base code). Leave UNDI
resident (though stopped) for .kpxe.
Still need to add code to record the device identification parameters
prior to stopping UNDI.
18 years ago
Michael Brown
075d79f6d4
Checking in obsolete but working memory-scanning code just for the record
18 years ago
Michael Brown
67e824b539
Neaten up debug messages
18 years ago
Michael Brown
f08093b0d9
Remove spurious debug message
18 years ago
Michael Brown
f0edd11c7d
Now split out into undirom.c and undiload.c
18 years ago
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
18 years ago
Michael Brown
66f7bcc785
Tidied up debug messages
18 years ago
Michael Brown
a6ba48e51e
Added debugging statements
18 years ago
Michael Brown
239965ff3b
Added missing includes
18 years ago
Michael Brown
6115356859
Added missing declarations
18 years ago
Michael Brown
aff96c13d2
Added missing include
18 years ago
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
18 years ago
Michael Brown
359c888aec
Remove obsolete includes
18 years ago
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).
18 years ago