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 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 block_translate(struct interface *block, userptr_t buffer, size_t size)
Insert block device translator.
Access to external ("user") memory.
int http_block_read_capacity(struct http_transaction *http, struct interface *data)
Read block device capacity.
uint32_t userptr_t
A pointer to a user buffer.
Hyper Text Transport Protocol.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
uint16_t count
Number of entries.
static __always_inline void struct pci_range * range
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)
#define UNULL
Equivalent of NULL for user pointers.
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 *)
int http_block_read(struct http_transaction *http, struct interface *data, uint64_t lba, unsigned int count, userptr_t buffer, size_t len)
Read from block device.
#define HTTP_BLKSIZE
Block size used for HTTP block device requests.