18 #ifndef INCLUDED_DEVICE_H
19 #define INCLUDED_DEVICE_H
30 #include <flashtools_nverror.h>
36 #define QB_MAX_DEV_INSTANCE 16
37 #define QB_MAX_DRIVER_TYPES 100
74 NvU64 Size, NvU64 Offset);
76 NvU64 Size, NvU64 Offset);
101 void *Buffer, NvU64 Size, NvU64 Offset);
257 #endif //INCLUDED_DEVICE_H
QbDriver
Defines Quickboot device driver types.
QbDeviceStatus
Defines the current status of a transfer request.
NvError(* Write)(QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
NvError QbDeviceRead(QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
Performs a read operation for the device and instance passed as parameter.
NvBool DevInstanceIntialized[QB_MAX_DEV_INSTANCE]
NvError QbDevicePartWrite(NvU32 PartitionId, void *Buffer, NvU64 Size, NvU64 Offset)
Performs a write operation for partition passed as parameter.
NvBool QbIsDeviceRegistered(QbDriver DriverType, NvU32 Instance)
Function to check if Device is registered already in the driver framework.
#define QB_MAX_DEV_INSTANCE
NvError(* Read)(QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
NvError QbDeviceWrite(QbDriver DriverType, NvU32 Instance, void *Buffer, NvU64 Size, NvU64 Offset)
Performs a write operation on the device passed as parameter.
NvError(* CleanExit)(QbDriver DriverType, NvU32 Instance)
NvError(* Ioctl)(QbDriver DriverType, NvU32 Instance, NvU32 Cmd, void *Buf)
Holds callbacks for device drivers.
NvError QbCleanExit(QbDriver DriverType, NvU32 Instance)
Function to trigger clean exit of driver when it's not longer used.
NVIDIA Quickboot Interface: Error Handling (Parker)
NvError QbDevicePartRead(NvU32 PartitionId, void *Buffer, NvU64 Size, NvU64 Offset)
Performs a read operation on the partition passed as parameter.
NvError QbLateRegisterDevice(QbDriver DriverType, NvU32 Instance)
Board Call back to trigger registration and intialization of driver.
Read error occurred but was corrected.
NvError(* Probe)(struct QbDev *Dev)
NvError QbRegisterDriver(QbDriver Driver, struct QbDevOperations *pDevOps)
Registers a driver to the device driver framework.
NVIDIA Quickboot Interface: Device Driver Types
NvError QbRegisterDevice(struct QbDev *pDevice)
Registers a device to the device driver framework.
NvError QbDeviceIoctl(QbDriver DriverType, NvU32 Instance, NvU32 Cmd, void *Buffer)
Performs a ioctl operation on given driver.