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.

Detailed Description

Enhanced Disk Drive specification.

Definition in file edd.c.


Function Documentation

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.

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

Definition at line 44 of file edd.c.

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

Referenced by edd_describe(), and int13_device_path_info().

                                                 {
        struct interface *dest;
        edd_describe_TYPE ( void * ) *op =
                intf_get_dest_op ( intf, edd_describe, &dest );
        void *object = intf_object ( dest );
        int rc;

        if ( op ) {
                rc = op ( object, type, path );
        } else {
                /* Default is to not support this operation */
                rc = -ENOTSUP;
        }

        intf_put ( dest );
        return rc;
}