TianoCore EDK2 master
Loading...
Searching...
No Matches
PvScsi.h File Reference

Go to the source code of this file.

Data Structures

struct  PVSCSI_DMA_DESC
 
struct  PVSCSI_RING_DESC
 
struct  PVSCSI_DMA_BUFFER
 
struct  PVSCSI_DEV
 

Macros

#define PVSCSI_SIG   SIGNATURE_32 ('P', 'S', 'C', 'S')
 
#define PVSCSI_FROM_PASS_THRU(PassThruPointer)    CR (PassThruPointer, PVSCSI_DEV, PassThru, PVSCSI_SIG)
 
#define PVSCSI_DMA_BUF_DEV_ADDR(Dev, MemberName)    (Dev->DmaBufDmaDesc.DeviceAddress + OFFSET_OF(PVSCSI_DMA_BUFFER, MemberName))
 

Detailed Description

Internal definitions for the PVSCSI driver, which produces Extended SCSI Pass Thru Protocol instances for pvscsi devices.

Copyright (C) 2020, Oracle and/or its affiliates.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PvScsi.h.

Macro Definition Documentation

◆ PVSCSI_DMA_BUF_DEV_ADDR

#define PVSCSI_DMA_BUF_DEV_ADDR (   Dev,
  MemberName 
)     (Dev->DmaBufDmaDesc.DeviceAddress + OFFSET_OF(PVSCSI_DMA_BUFFER, MemberName))

Definition at line 69 of file PvScsi.h.

◆ PVSCSI_FROM_PASS_THRU

#define PVSCSI_FROM_PASS_THRU (   PassThruPointer)     CR (PassThruPointer, PVSCSI_DEV, PassThru, PVSCSI_SIG)

Definition at line 66 of file PvScsi.h.

◆ PVSCSI_SIG

#define PVSCSI_SIG   SIGNATURE_32 ('P', 'S', 'C', 'S')

Definition at line 49 of file PvScsi.h.