iPXE
Functions
edd.c File Reference

Enhanced Disk Drive specification. More...

#include <errno.h>
#include <ipxe/interface.h>
#include <ipxe/edd.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
int edd_describe (struct interface *intf, struct edd_interface_type *type, union edd_device_path *path)
 Describe a disk device using EDD. More...
 

Detailed Description

Enhanced Disk Drive specification.

Definition in file edd.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ edd_describe()

int edd_describe ( struct interface intf,
struct edd_interface_type type,
union edd_device_path path 
)

Describe a disk device using EDD.

Parameters
intfInterface
typeEDD interface type
pathEDD device path
Return values
rcReturn status code

Definition at line 44 of file edd.c.

45  {
46  struct interface *dest;
47  edd_describe_TYPE ( void * ) *op =
49  void *object = intf_object ( dest );
50  int rc;
51 
52  if ( op ) {
53  rc = op ( object, type, path );
54  } else {
55  /* Default is to not support this operation */
56  rc = -ENOTSUP;
57  }
58 
59  intf_put ( dest );
60  return rc;
61 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
uint32_t type
Operating system type.
Definition: ena.h:12
#define edd_describe_TYPE(object_type)
Definition: edd.h:189
int edd_describe(struct interface *intf, struct edd_interface_type *type, union edd_device_path *path)
Describe a disk device using EDD.
Definition: edd.c:44
void * intf_object(struct interface *intf)
Get pointer to object containing object interface.
Definition: interface.c:159
#define ENOTSUP
Operation not supported.
Definition: errno.h:589
struct interface * intf
Original interface.
Definition: interface.h:158
An object interface.
Definition: interface.h:124
static uint16_t struct vmbus_xfer_pages_operations * op
Definition: netvsc.h:327
void intf_put(struct interface *intf)
Decrement reference count on an object interface.
Definition: interface.c:149
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150
#define intf_get_dest_op(intf, type, dest)
Get object interface destination and operation method.
Definition: interface.h:269

References dest, edd_describe(), edd_describe_TYPE, ENOTSUP, interface::intf, intf_get_dest_op, intf_object(), intf_put(), op, rc, and type.

Referenced by edd_describe(), and int13_device_path_info().