1#ifndef _IPXE_BLOCKDEV_H
2#define _IPXE_BLOCKDEV_H
30#define block_read_TYPE( object_type ) \
31 typeof ( int ( object_type, struct interface *data, \
32 uint64_t lba, unsigned int count, \
33 void *buffer, size_t len ) )
38#define block_write_TYPE( object_type ) \
39 typeof ( int ( object_type, struct interface *data, \
40 uint64_t lba, unsigned int count, \
41 void *buffer, size_t len ) )
45#define block_read_capacity_TYPE( object_type ) \
46 typeof ( int ( object_type, struct interface *data ) )
50#define block_capacity_TYPE( object_type ) \
51 typeof ( void ( object_type, \
52 struct block_device_capacity *capacity ) )
unsigned long long uint64_t
int block_read_capacity(struct interface *control, struct interface *data)
Read block device capacity.
int block_write(struct interface *control, struct interface *data, uint64_t lba, unsigned int count, void *buffer, size_t len)
Write to block device.
int block_read(struct interface *control, struct interface *data, uint64_t lba, unsigned int count, void *buffer, size_t len)
Read from block device.
void block_capacity(struct interface *intf, struct block_device_capacity *capacity)
Report block device capacity.
uint8_t data[48]
Additional event data.
static unsigned int count
Number of entries.
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
uint64_t lba
Starting block number.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
uint64_t blocks
Total number of blocks.
unsigned int max_count
Maximum number of blocks per single transfer.
size_t blksize
Block size.