|
iPXE
|
Hyper Text Transfer Protocol (HTTP) block device. More...
#include <stdint.h>#include <string.h>#include <ipxe/blocktrans.h>#include <ipxe/blockdev.h>#include <ipxe/acpi.h>#include <ipxe/http.h>Go to the source code of this file.
Macros | |
| #define | HTTP_BLKSIZE 512 |
| Block size used for HTTP block device requests. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | http_block_read (struct http_transaction *http, struct interface *data, uint64_t lba, unsigned int count, void *buffer, size_t len) |
| Read from block device. More... | |
| int | http_block_read_capacity (struct http_transaction *http, struct interface *data) |
| Read block device capacity. More... | |
Hyper Text Transfer Protocol (HTTP) block device.
Definition in file httpblock.c.
| #define HTTP_BLKSIZE 512 |
Block size used for HTTP block device requests.
Definition at line 41 of file httpblock.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| int http_block_read | ( | struct http_transaction * | http, |
| struct interface * | data, | ||
| uint64_t | lba, | ||
| unsigned int | count, | ||
| void * | buffer, | ||
| size_t | len | ||
| ) |
Read from block device.
| http | HTTP transaction |
| data | Data interface |
| lba | Starting logical block address |
| count | Number of logical blocks |
| buffer | Data buffer |
| len | Length of data buffer |
| rc | Return status code |
Definition at line 54 of file httpblock.c.
References assert(), block_translate(), buffer, count, data, DBGC, HTTP_BLKSIZE, http_get, http_open(), intf_restart(), lba, len, NULL, range, rc, pci_range::start, strerror(), and http_transaction::uri.
| int http_block_read_capacity | ( | struct http_transaction * | http, |
| struct interface * | data | ||
| ) |
Read block device capacity.
| control | Control interface |
| data | Data interface |
| rc | Return status code |
Definition at line 94 of file httpblock.c.
References block_translate(), data, DBGC, HTTP_BLKSIZE, http_head, http_open(), intf_restart(), NULL, rc, strerror(), and http_transaction::uri.
1.8.15