Skip to content

Commit

Permalink
pci/doe: Define protocol types and make those public
Browse files Browse the repository at this point in the history
Already public pci_doe() takes a protocol type argument.
PCIe 6.0 defines three, define them in a header for use with pci_doe().

Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
  • Loading branch information
aik committed Aug 23, 2024
1 parent 59050c2 commit 7743bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/pci/doe.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include "pci.h"

#define PCI_DOE_PROTOCOL_DISCOVERY 0

/* Timeout of 1 second from 6.30.2 Operation, PCI Spec r6.0 */
#define PCI_DOE_TIMEOUT HZ
#define PCI_DOE_POLL_INTERVAL (PCI_DOE_TIMEOUT / 128)
Expand Down
4 changes: 4 additions & 0 deletions include/linux/pci-doe.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#ifndef LINUX_PCI_DOE_H
#define LINUX_PCI_DOE_H

#define PCI_DOE_PROTOCOL_DISCOVERY 0
#define PCI_DOE_PROTOCOL_CMA_SPDM 1
#define PCI_DOE_PROTOCOL_SECURED_CMA_SPDM 2

struct pci_doe_mb;

/* Max data object length is 2^18 dwords (including 2 dwords for header) */
Expand Down

0 comments on commit 7743bd2

Please sign in to comment.