41 #define HTTP_BLKSIZE 512 74 DBGC ( http,
"HTTP %p could not insert block translator: %s\n",
105 DBGC ( http,
"HTTP %p could not insert block translator: %s\n",
uint32_t start
Starting bus:dev.fn address.
struct arbelprm_rc_send_wqe rc
void intf_restart(struct interface *intf, int rc)
Shut down and restart an object interface.
struct pci_range range
PCI bus:dev.fn address range.
struct http_method http_head
HTTP HEAD method.
HTTP request range descriptor.
struct uri * uri
Request URI.
unsigned long long uint64_t
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
int http_block_read_capacity(struct http_transaction *http, struct interface *data)
Read block device capacity.
Hyper Text Transport Protocol.
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.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
static unsigned int count
Number of entries.
struct http_method http_get
HTTP GET method.
char * strerror(int errno)
Retrieve string representation of error number.
uint64_t lba
Starting block number.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int block_translate(struct interface *block, void *buffer, size_t size)
Insert block device translator.
int http_open(struct interface *xfer, struct http_method *method, struct uri *uri, struct http_request_range *range, struct http_request_content *content)
Open HTTP transaction.
uint8_t data[48]
Additional event data.
#define NULL
NULL pointer (VOID *)
#define HTTP_BLKSIZE
Block size used for HTTP block device requests.