From e375515ddc712f1f69ee21337db2a3267caa5d49 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 6 Mar 2010 11:55:57 -0800 Subject: Add 32-bit versions of open file/close file Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin --- doc/comboot.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/comboot.txt') diff --git a/doc/comboot.txt b/doc/comboot.txt index b970b281..8adff330 100644 --- a/doc/comboot.txt +++ b/doc/comboot.txt @@ -320,6 +320,16 @@ AX=0006h [2.08] Open file In 3.70 or later, EAX can contain -1 indicating that the file length is unknown. + 32-BIT VERSION: + + int cs_pm->open_file(const char *filename, struct com32_filedata *data) + + filename - null-terminated filename + data - pointer to a file data buffer + + Returns the file handle, or -1 on failure. + The file data buffer contains block size and file size. + AX=0007h [2.08] Read file @@ -373,6 +383,12 @@ AX=0008h [2.08] Close file WARNING: Calling this function with an invalid file handle will probably crash the system. + 32-BIT VERSION: + + void cs_pm->close_file(uint16_t handle) + + handle - file handle to close + AX=0009h [2.00] Call PXE Stack [PXELINUX ONLY] -- cgit v1.2.1