NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
device.h File Reference

Detailed Description

NVIDIA Quickboot Interface: Device Drivers

Description: This file declares APIs for Quickboot device driver framework.

Definition in file device.h.

Go to the source code of this file.

Data Structures

struct  QbDev
 
struct  QbDevOperations
 Holds callbacks for device drivers. More...
 

Macros

#define QB_MAX_DEV_INSTANCE   16U
 
#define QB_MAX_DRIVER_TYPES   100U
 

Enumerations

enum  QbDeviceStatus {
  QbDeviceStatus_None = 0,
  QbDeviceStatus_Idle,
  QbDeviceStatus_ReadInProgress,
  QbDeviceStatus_ReadFailure,
  QbDeviceStatus_WriteInProgress,
  QbDeviceStatus_WriteFailure,
  QbDeviceStatus_EccFailure,
  QbDeviceStatus_CorrectedEccFailure,
  QbDeviceStatus_DataCrcFailure,
  QbDeviceStatus_DataTimeout,
  QbDeviceStatus_DataEndBitError,
  QbDeviceStatus_CorrectedReadFailure,
  QbDeviceStatus_UnknownFailure,
  QbDeviceStatus_Max,
  QbDeviceStatus_Force32 = 0x7fffffff
}
 Defines the current status of a transfer request. More...
 

Functions

NvError QbDeviceRead (QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
 Performs a read operation for the device and instance passed as parameter. More...
 
NvError QbDevicePartRead (NvU32 PartitionId, void *Buffer, NvU64 Size, NvU64 Offset)
 Performs a read operation on the partition passed as parameter. More...
 
NvError QbDeviceWrite (QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
 Performs a write operation on the device passed as parameter. More...
 
NvError QbDevicePartWrite (NvU32 PartitionId, void *Buffer, NvU64 Size, NvU64 Offset)
 Performs a write operation for partition passed as parameter. More...
 
NvError QbDeviceIoctl (QbDriver DriverType, NvU32 Instance, NvU32 Cmd, void *Buffer)
 Performs a ioctl operation on given driver. More...
 
NvError QbCleanExit (QbDriver DriverType, NvU32 Instance)
 Function to trigger clean exit of driver when it's not longer used. More...
 
NvError QbRegisterDriver (QbDriver Driver, struct QbDevOperations *pDevOps)
 Registers a driver to the device driver framework. More...
 
NvError QbRegisterDevice (struct QbDev *pDevice)
 Registers a device to the device driver framework. More...
 
NvError QbLateRegisterDevice (QbDriver DriverType, NvU32 Instance)
 Board Call back to trigger registration and intialization of driver. More...
 
NvBool QbIsDeviceRegistered (QbDriver DriverType, NvU32 Instance)
 Function to check if Device is registered already in the driver framework. More...