syntax = "proto3";

import "types.proto";
import "types/enum.proto";
package PCIeDeviceMsg;

message SetDiagnosticFaultReq {
    uint8 Segment = 1;
    uint8 SocketID = 2;
    uint8 Bus = 3;
    uint8 Device = 4;
    uint8 Function = 5;
    uint8 Value = 6;
}

message SetDiagnosticFaultResp {
    uint8 Status = 1;
}

message SetPredictiveFaultReq {
    uint8 Segment = 1;
    uint8 SocketID = 2;
    uint8 Bus = 3;
    uint8 Device = 4;
    uint8 Function = 5;
    uint8 Value = 6;
}

message SetPredictiveFaultResp {
    uint8 Status = 1;
}

message GetDeviceNameReq {
    uint8 Segment = 1;
    uint8 SocketID = 2;
    uint8 Bus = 3;
    uint8 Device = 4;
    uint8 Function = 5;
}

message GetDeviceNameResp {
    uint8 Status = 1;
    string DeviceName = 2;
}

message GetPCIeCardNumReq {

}

message GetPCIeCardNumResp {
    uint32 PCIeCardNum = 1;
}