Michael Brown
200d92c76d
Avoid namespace clashes
преди 18 години
Michael Brown
bcc98c78b8
Added fields present in the documentation but not in the header file.
преди 18 години
Michael Brown
dc51af59a4
Capable of starting a multiboot kernel (albeit without the multiboot
information table yet).
преди 18 години
Michael Brown
9196e9069c
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
преди 18 години
Michael Brown
d488a172eb
Capable of loading a multiboot image into memory
преди 18 години
Michael Brown
143e3b84a4
Downloaded from current grub CVS.
преди 18 години
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
преди 18 години
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 години
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
преди 18 години
Michael Brown
ceca6b185c
Added user_to_phys() and memset_user().
преди 18 години
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 години
Michael Brown
c6a4055fae
Add phys_to_user() and copy_user().
преди 18 години
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
преди 18 години
Michael Brown
fdc97499bf
Add device description fields to struct device.
преди 18 години
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
преди 18 години
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 години
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 години
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
преди 18 години
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 години
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
преди 18 години
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
преди 18 години
Michael Brown
a2ffe8c123
Allow boot sector to completely destroy real-mode stack, but still
manage to return control.
преди 18 години
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 години
Michael Brown
2738bdf74b
Obsoleted by drivers/net/undionly.c
преди 18 години
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 години
Michael Brown
159930862f
Added missing call to undinet_remove()
преди 18 години
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
преди 18 години
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
преди 18 години
Michael Brown
a2be828a33
Avoid leaving preloaded_undi with invalid PXENV+/!PXE structure
addresses if the signature checks fail.
преди 18 години
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 години
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
преди 18 години
Michael Brown
2436dac281
Populate preloaded_undi device when applicable.
преди 18 години
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
преди 18 години
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 години
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
преди 18 години
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 години
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 години
Michael Brown
075d79f6d4
Checking in obsolete but working memory-scanning code just for the record
преди 18 години
Michael Brown
67e824b539
Neaten up debug messages
преди 18 години
Michael Brown
f08093b0d9
Remove spurious debug message
преди 18 години
Michael Brown
f0edd11c7d
Now split out into undirom.c and undiload.c
преди 18 години
Michael Brown
07e5d4e3dc
Added any-PCI-device UNDI driver
преди 18 години
Michael Brown
66f7bcc785
Tidied up debug messages
преди 18 години
Michael Brown
a6ba48e51e
Added debugging statements
преди 18 години
Michael Brown
239965ff3b
Added missing includes
преди 18 години
Michael Brown
6115356859
Added missing declarations
преди 18 години
Michael Brown
aff96c13d2
Added missing include
преди 18 години
Michael Brown
afc01a1a7f
Split UNDI load/unload out into undiload.c.
преди 18 години
Michael Brown
359c888aec
Remove obsolete includes
преди 18 години
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 години