058b200529
Renamed _calloc() to zalloc(), ready to be used as a standalone function.
Michael Brown2007-06-11 21:36:10 +01:00
01b4bde8a0
Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer UDP API.
Michael Brown2007-06-11 18:11:29 +01:00
95adce0ce1
Add concept of transfer metadata, to be used by UDP in order to implement sendto()/recvfrom() equivalents.
Michael Brown2007-06-11 15:04:39 +01:00
adf6c8e2a6
Add our own trivial version of stdarg.h. This makes our build entirely self-hosted (which avoids problems when building the same tree on multiple systems - e.g. when you have /home NFS-mounted).
Michael Brown2007-06-09 18:11:07 +01:00
b256900d4f
Scripts temporarily deregister themselves while executing. This allows us to avoid execution loops without having to hack around the image registration order.
Michael Brown2007-06-09 19:00:34 +01:00
2c569fb240
Allow xfer_open() to take a struct uri as well as a URI string.
Michael Brown2007-06-09 18:20:08 +01:00
1ae549b892
Add our own trivial version of stdarg.h. This makes our build entirely self-hosted (which avoids problems when building the same tree on multiple systems - e.g. when you have /home NFS-mounted).
Michael Brown2007-06-09 18:11:07 +01:00
7c8cc3ef6c
Use standard xfer_open() argument list for downloader instantiator
Michael Brown2007-06-09 17:42:46 +01:00
08e286714f
Add reference counting to register/unregister procedure.
Michael Brown2007-06-09 17:32:27 +01:00
b8618d76db
Modify data-xfer semantics: it is no longer necessary to call one of request(), seek() or deliver_xxx() in order to start the data flow. Autonomous generators must be genuinely autonomous (having their own process), or otherwise arrange to be called. TCP does this by starting the retry timer immediately.
Michael Brown2007-05-26 15:04:36 +00:00
10d0a1f8c7
Modify data-xfer semantics: it is no longer necessary to call one of request(), seek() or deliver_xxx() in order to start the data flow. Autonomous generators must be genuinely autonomous (having their own process), or otherwise arrange to be called. TCP does this by starting the retry timer immediately.
Michael Brown2007-05-26 15:04:36 +00:00
3601103381
Modify process semantics; rescheduling is now automatic.
Michael Brown2007-05-26 15:00:56 +00:00
6006bed530
Free I/O buffers when we are finished with them!
Michael Brown2007-05-25 16:01:31 +00:00
1136c19fa4
Updated tcp.c to provide a standardised data transfer interface.
Michael Brown2007-05-25 15:58:42 +00:00
54138f28f6
Use list_for_each_entry_safe() when flushing queue.
Michael Brown2007-05-19 22:05:16 +00:00
68dd826b86
Add alloc_iob() and free_iob(). (Direct search-and-replace equivalents for alloc_pkb() and free_pkb(), which will be retired in due course).
Michael Brown2007-05-18 14:45:16 +00:00
23008b9326
Updated to use POSIX-style file I/O layer.
Michael Brown2007-05-18 14:33:20 +00:00
86a948ccbe
Added POSIX-style blocking I/O calls, for use by PXE TFTP API.
Michael Brown2007-05-18 14:19:22 +00:00
6b6fc1d5ea
Allow construction of PXE status code from internal error number.
Michael Brown2007-05-18 14:17:35 +00:00
59e738d756
Prefix all the open()-family routines with xfer_, to disambiguate them from the normal POSIX-style open()
Michael Brown2007-05-18 14:16:06 +00:00
b1755462ab
Do not hold self-references. This then avoids the problem of having to ensure that we only drop our self-reference exactly once.
Michael Brown2007-05-15 16:53:46 +00:00
5471bfbbbe
Data-transfer interface should now be functionally complete.
Michael Brown2007-05-15 15:23:09 +00:00
817a446cc6
Add always_inline attribute to force gcc to inline single-instruction functions.
Michael Brown2007-05-01 10:17:29 +00:00
123a98db26
Added (non-functional) reference count to struct image
Michael Brown2007-05-01 00:11:34 +00:00
d40761d725
Add (and use) generic reference counter, to improve signal:noise ratio in code defining reference-counted objects.
Michael Brown2007-04-29 23:53:39 +00:00
ed7dc02a95
hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise output buffering defintions and the like)
Anselm Martin Hoffmeister2007-04-09 18:01:43 +00:00
ff5aac826a
hoffmeis: Fixing situation where absence of a newdata() handler for UDP connections might break things. Only-sending applications like syslog() do not need a newdata() handler, so added a check if that handler exists.
Anselm Martin Hoffmeister2007-04-09 17:34:10 +00:00
5578d3b2de
Support 32-bit (linear) NBI images. We don't yet provide a bootp data block, so first32.c dies immediately.
Michael Brown2007-03-14 00:39:12 +00:00
80cc27cbc4
Ported bnx2 driver from Etherboot 5.4.
James Harper2007-03-13 23:03:50 +00:00
e1735d5fc2
Fix some bad pointer arithmatic in the tg3 driver that was causing the dynamic memory pool to be corrupted (or worse)
James Harper2007-02-10 00:28:41 +00:00