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.


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



◆ edd_describe()

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

Describe a disk device using EDD.

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;
52  if ( op ) {
53  rc = op ( object, type, path );
54  } else {
55  /* Default is to not support this operation */
56  rc = -ENOTSUP;
57  }
59  intf_put ( dest );
60  return rc;
61 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
uint8_t type
Definition: ena.h:16
#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
An object interface.
Definition: interface.h:124
static void * dest
Definition: strings.h:176
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
#define intf_get_dest_op(intf, type, dest)
Get object interface destination and operation method.
Definition: interface.h:231

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

Referenced by edd_describe(), and int13_device_path_info().