Michael Brown
c3e41e6fd1
Added soon-to-be-requisite missing include.
il y a 18 ans
Dan Lynch
34cfbf55a4
- added most slk functions
il y a 18 ans
Michael Brown
d78581297b
Improve tcpdump legibility.
il y a 18 ans
Michael Brown
6ab4b99f41
Quick hack to avoid trying to use an uninitialised net device.
il y a 18 ans
Michael Brown
48fb6c6dc2
Updated retry timer mechanism to incorporate smoothed RTT estimation.
AoE now uses the retry timer mechanism.
il y a 18 ans
Michael Brown
50415b3aca
Make DBG_DISCARD correct
il y a 18 ans
Michael Brown
1f394c2f7c
Backing out last change; no immediate plans to make the whole block-device
layer asynchronous, so keeping the sync/async boundary within aoedev.c
seems cleanest for now.
il y a 18 ans
Michael Brown
d6866202f9
Until we have a functioning UDP stack and PXE API again, there's not much
point trying to use the old boot sequence. Replaced with a call to the
AoE demo code, so that people can at least build and try something useful.
il y a 18 ans
Michael Brown
d21fc3610f
Added sample AoE test code to tree
il y a 18 ans
Michael Brown
f6d20bb0f4
Put in a method to get the MAC address for the AoE target. (It's not
elegant, but it works).
il y a 18 ans
Michael Brown
99ef98d0bf
ATA devices are now asynchronous. The ATA layer itself now performs the
async_wait(), though we may wish to move this higher up the stack, and
consider making the block device model asynchronous. (There is only a
marginal cost for synchronous devices, since they can simply call
async_done() before returning; async_wait() will work seamlessly in this
situation).
il y a 18 ans
Michael Brown
cf96d325d8
Missing from previous checkin.
This is the core portion of the async I/O interface.
il y a 18 ans
Michael Brown
68125bc441
Added generic asynchronous operations code.
Removed data_in_len and data_out_len from ata_command structure; the
lengths are implied by the sector count and the presence of the data_in
or data_out pointers.
Changed AoE code to use subcommands by default, and made aoe_issue()
nonblocking (with completion via async_wait()).
il y a 18 ans
Michael Brown
73a449e96b
Added drivers/ata directory (forgot to check this in previously).
il y a 18 ans
Michael Brown
552b4a178e
One bit of an ASCII character can make a big difference.
il y a 18 ans
Michael Brown
1db1a6dad3
Added first sketch of a generic retry timer mechanism. The idea is to use
these timer objects in AoE and UDP protocols (where there is no underlying
retransmission mechanism) without requiring each protocol to implement its
own individual retry logic. Eventually, we should be able to use the same
timer code for TCP retransmissions as well.
il y a 18 ans
Michael Brown
6541338897
Handle multi-sector reads by splitting them into subcommands.
il y a 18 ans
Michael Brown
9a2a52693d
Initial AoE implementation. Limitations are:
Cannot yet handle reads of more than two sectors
No retransmission
No way to find out a target's MAC address (this proof of concept uses
broadcasts)
These limitations shall not last long! :)
il y a 18 ans
Michael Brown
6f998cecb3
Use separate data-in and data-out buffers.
Increase code simplicity at the expense of around 64 bytes.
il y a 18 ans
Michael Brown
6d6252067f
Add ETH_P_AOE
il y a 18 ans
Michael Brown
35b04b1514
Tidy up comment
il y a 18 ans
Michael Brown
041a04335e
Fixed assembly on old versions of gas
il y a 18 ans
Michael Brown
f743de4858
Added tcp_kick(). This speed up LILO and GRUB booting by almost two
orders of magnitude.
il y a 18 ans
Michael Brown
cd3ecac809
Avoid causing TX overflow on small TX queues.
il y a 18 ans
Michael Brown
70ef6dbb7c
Rewrote to use the new net driver API, the updated PCI API, and the
generic three-wire serial device support for EEPROM access.
il y a 18 ans
Michael Brown
69b1f24a97
I have no idea how this ever worked before.
il y a 18 ans
Michael Brown
6c50564724
Make PKB_ZLEN the minimum possible size of packet buffer (to allow for
hardware that can't autopad).
il y a 18 ans
Michael Brown
1dbafa8950
Tidied up debugging messages
il y a 18 ans
Michael Brown
aa2468babe
Added abstraction layer for a three-wire serial device (e.g. the EEPROM
used on RTL8139 cards).
il y a 18 ans
Michael Brown
2f392ee13e
Need write permission to /dev/net/tun, not just read.
il y a 18 ans
Michael Brown
9f86754f90
Updated to work with libprefix.
il y a 18 ans
Michael Brown
29340d7728
Documented the fact that the prefix can prot_call(main) without
worrying about its stack being destroyed during the Etherboot run.
il y a 18 ans
Michael Brown
0479e9f541
relocate.o is now dragged in by the objects that require it; there is no
need for a CONFIG_RELOCATE.
il y a 18 ans
Michael Brown
3204a1e941
Removed some obsolete INIT_XXX constants.
il y a 18 ans
Michael Brown
d82f71efd0
Also hide base memory region from E820 map.
il y a 18 ans
Michael Brown
89da833c5d
init_librm() and prot_call() are now real-mode far calls.
install() now calls relocate(), moves the protected-mode code to the new
location, and calls hide_etherboot().
il y a 18 ans
Michael Brown
4d81b48504
Has been obsolete for a while.
il y a 18 ans
Michael Brown
1966945a5d
Update relocate() to work with get_memmap().
Change semantics; relocate() now just finds a suitable location; it
doesn't actually perform the relocation itself. Code in libprefix does
the copy in flat real mode.
il y a 18 ans
Michael Brown
f939ff7cb5
Fix printf format warning error
il y a 18 ans
Michael Brown
3bd3c13c7b
Why should pushal/popal put the registers on the stack in a logical
order?
il y a 18 ans
Michael Brown
dd75965057
Typo.
il y a 18 ans
Michael Brown
e4f8d6eed7
Add a "count" field to struct memory_map.
il y a 18 ans
Michael Brown
986f6ffff1
Define a struct memory_map with a fixed number of entries, rather than
requiring each caller to decide how many entries it wants to permit.
il y a 18 ans
Michael Brown
edcf89e2b0
Remove the automatic segment register save and restore; most users of
REAL_CODE() don't need it.
il y a 18 ans
Michael Brown
02cf755f3f
Removed REAL_EXEC(); there is no longer any code using it.
il y a 18 ans
Michael Brown
103aff3ae2
Added potentially required "\n\t" on the end of asm_code_str
il y a 18 ans
Michael Brown
190276a8b6
NBI is due for removal
il y a 18 ans
Michael Brown
52125e158c
Will be replaced with a block-device implementation.
il y a 18 ans
Michael Brown
8110f9b082
Updated to REAL_CODE()
il y a 18 ans
Michael Brown
595f161b51
Updated to REAL_CODE().
int13_boot() now does its own segment register save and restore, ready
for the removal of segment register restoration from the libkir
generic code.
il y a 18 ans