Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

rename tdisp modules to keep align with idekm. #138

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tdisp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pub mod common;
pub mod config;
pub mod context;
pub mod device;
pub mod message;
pub mod pci_tdisp;
pub mod state_machine;
pub mod tdisp_codec;
pub mod tdisp_requester;
pub mod tdisp_responder;
pub mod pci_tdisp_requester;
pub mod pci_tdisp_responder;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ impl<'a> TdispRequester<'a> {
}
}

pub mod bind_p2p_stream_request_req;
pub mod get_device_interface_report_req;
pub mod get_device_interface_state_req;
pub mod get_tdisp_capabilities_req;
pub mod get_tdisp_version_req;
pub mod lock_interface_request_req;
pub mod set_mmio_attribute_request_req;
pub mod start_interface_request_req;
pub mod stop_interface_request_req;
pub mod unbind_p2p_stream_request_req;
pub mod vdm_request;
pub mod pci_tdisp_req_bind_p2p_stream_request;
pub mod pci_tdisp_req_get_device_interface_report;
pub mod pci_tdisp_req_get_device_interface_state;
pub mod pci_tdisp_req_get_tdisp_capabilities;
pub mod pci_tdisp_req_get_tdisp_version;
pub mod pci_tdisp_req_lock_interface_request;
pub mod pci_tdisp_req_set_mmio_attribute_request;
pub mod pci_tdisp_req_start_interface_request;
pub mod pci_tdisp_req_stop_interface_request;
pub mod pci_tdisp_req_unbind_p2p_stream_request;
pub mod pci_tdisp_req_vdm_request;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_bind_p2p_stream(
pub fn pci_tdisp_req_bind_p2p_stream_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_get_device_interface_report(
pub fn pci_tdisp_req_get_device_interface_report(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_get_device_interface_state(
pub fn pci_tdisp_req_get_device_interface_state(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_get_tdisp_capabilities(
pub fn pci_tdisp_req_get_tdisp_capabilities(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_get_tdisp_version(
pub fn pci_tdisp_req_get_tdisp_version(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_lock_interface_request(
pub fn pci_tdisp_req_lock_interface_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_set_mmio_attribute(
pub fn pci_tdisp_req_set_mmio_attribute_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_start_interface(
pub fn pci_tdisp_req_start_interface_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_stop_interface(
pub fn pci_tdisp_req_stop_interface_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_unbind_p2p_stream(
pub fn pci_tdisp_req_unbind_p2p_stream_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
use super::*;

impl<'a> TdispRequester<'a> {
pub fn send_receive_vdm_request(
pub fn pci_tdisp_req_vdm_request(
&mut self,
spdm_requester: &mut RequesterContext,
) -> TdispResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ use self::context::{
ExtendedErrorData, GenericErrorResponseCode, InterfaceId, MessagePayloadResponseTdispError,
};

pub mod bind_p2p_stream_request_rsp;
pub mod device_interface_report_rsp;
pub mod device_interface_state_rsp;
pub mod lock_interface_request_rsp;
pub mod set_mmio_attribute_request_rsp;
pub mod start_interface_request_rsp;
pub mod stop_interface_request_rsp;
pub mod tdisp_capabilities_rsp;
pub mod tdisp_error_rsp;
pub mod tdisp_version_rsp;
pub mod unbind_p2p_stream_request_rsp;
pub mod vdm_response;
pub mod pci_tdisp_rsp_bind_p2p_stream_request;
pub mod pci_tdisp_rsp_device_interface_report;
pub mod pci_tdisp_rsp_device_interface_state;
pub mod pci_tdisp_rsp_lock_interface_request;
pub mod pci_tdisp_rsp_set_mmio_attribute_request;
pub mod pci_tdisp_rsp_start_interface_request;
pub mod pci_tdisp_rsp_stop_interface_request;
pub mod pci_tdisp_rsp_tdisp_capabilities;
pub mod pci_tdisp_rsp_tdisp_error;
pub mod pci_tdisp_rsp_tdisp_version;
pub mod pci_tdisp_rsp_unbind_p2p_stream_request;
pub mod pci_tdisp_rsp_vdm_response;

pub static mut TDISP_RESPONDER: Option<TdispResponder> = None;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use super::*;
// IDE configuration register for this stream is configured as the default stream
// Address and/or RID association registers of this streams IDE configuration registers overlap with other IDE configuration registers
impl<'a> TdispResponder<'a> {
pub fn handle_bind_p2p_stream_request(
pub fn pci_tdisp_rsp_bind_p2p_stream_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use super::*;
// Invalid offset specified

impl<'a> TdispResponder<'a> {
pub fn handle_device_interface_report(
pub fn pci_tdisp_rsp_device_interface_report(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use super::*;
// Interface ID in the request is not hosted by the device.

impl<'a> TdispResponder<'a> {
pub fn handle_device_interface_state(
pub fn pci_tdisp_rsp_device_interface_state(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use super::*;
// BIND_P2P
// ALL_REQUEST_REDIRECT
impl<'a> TdispResponder<'a> {
pub fn handle_lock_interface_request(
pub fn pci_tdisp_rsp_lock_interface_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use super::*;
// The MMIO range specified in the request is not associated with TDI

impl<'a> TdispResponder<'a> {
pub fn handle_set_mmio_attribute_request(
pub fn pci_tdisp_rsp_set_mmio_attribute_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::*;
// DONE - TDI is not in CONFIG_LOCKED.

impl<'a> TdispResponder<'a> {
pub fn handle_start_interface_request(
pub fn pci_tdisp_rsp_start_interface_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use super::*;
// Reclaim and scrub private resources (e.g., memory encryption keys for device attached memories, etc.) assigned to the TDI

impl<'a> TdispResponder<'a> {
pub fn handle_stop_interface_request(
pub fn pci_tdisp_rsp_stop_interface_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::context::{MessagePayloadRequestGetCapabilities, MessagePayloadRespons
use super::*;

impl<'a> TdispResponder<'a> {
pub fn handle_tdisp_capabilities(
pub fn pci_tdisp_rsp_tdisp_capabilities(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{context::MessagePayloadResponseTdispError, tdisp_codec::TdispCodec};
use super::*;

impl<'a> TdispResponder<'a> {
pub fn handle_tdisp_error(
pub fn pci_tdisp_rsp_tdisp_error(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
message_payload_response_tdisp_error: MessagePayloadResponseTdispError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
use super::*;

impl<'a> TdispResponder<'a> {
pub fn handle_tdisp_version(
pub fn pci_tdisp_rsp_tdisp_version(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use super::*;
// Stream ID specified was not previously bound to this TDI

impl<'a> TdispResponder<'a> {
pub fn handle_unbind_p2p_stream_request(
pub fn pci_tdisp_rsp_unbind_p2p_stream_request(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::context::{MessagePayloadRequestVDM, MessagePayloadResponseVDM};
use super::*;

impl<'a> TdispResponder<'a> {
pub fn handle_vdm_request(
pub fn pci_tdisp_rsp_vdm_response(
&mut self,
vendor_defined_req_payload_struct: &VendorDefinedReqPayloadStruct,
) -> SpdmResult<VendorDefinedRspPayloadStruct> {
Expand Down
Loading