VirtualBox

忽略:
時間撮記:
2023-4-14 下午03:17:44 (2 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
156854
訊息:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

位置:
trunk/src/VBox/Devices/EFI/FirmwareNew
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Protocol/Dhcp6.h

    r80721 r99404  
    3131  /// to be called
    3232  ///
    33   Dhcp6Init                    = 0x0,
     33  Dhcp6Init = 0x0,
    3434  ///
    3535  /// A Solicit packet is sent out to discover DHCPv6 server, and the EFI
    3636  /// DHCPv6 Protocol instance is collecting Advertise packets.
    3737  ///
    38   Dhcp6Selecting               = 0x1,
     38  Dhcp6Selecting = 0x1,
    3939  ///
    4040  /// A Request is sent out to the DHCPv6 server, and the EFI DHCPv6
    4141  /// Protocol instance is waiting for Reply packet.
    4242  ///
    43   Dhcp6Requesting              = 0x2,
     43  Dhcp6Requesting = 0x2,
    4444  ///
    4545  /// A Decline packet is sent out to indicate one or more addresses of the
     
    4747  /// Protocol instance is waiting for Reply packet.
    4848  ///
    49   Dhcp6Declining               = 0x3,
     49  Dhcp6Declining = 0x3,
    5050  ///
    5151  /// A Confirm packet is sent out to confirm the IPv6 addresses of the
    5252  /// configured IA, and the EFI DHCPv6 Protocol instance is waiting for Reply packet.
    5353  ///
    54   Dhcp6Confirming              = 0x4,
     54  Dhcp6Confirming = 0x4,
    5555  ///
    5656  /// A Release packet is sent out to release one or more IPv6 addresses of
    5757  /// the configured IA, and the EFI DHCPv6 Protocol instance is waiting for Reply packet.
    5858  ///
    59   Dhcp6Releasing               = 0x5,
     59  Dhcp6Releasing = 0x5,
    6060  ///
    6161  /// The DHCPv6 S.A.R.R process is completed for the configured IA.
    6262  ///
    63   Dhcp6Bound                   = 0x6,
     63  Dhcp6Bound = 0x6,
    6464  ///
    6565  /// A Renew packet is sent out to extend lifetime for the IPv6 addresses of
    6666  /// the configured IA, and the EFI DHCPv6 Protocol instance is waiting for Reply packet.
    6767  ///
    68   Dhcp6Renewing                = 0x7,
     68  Dhcp6Renewing = 0x7,
    6969  ///
    7070  /// A Rebind packet is sent out to extend lifetime for the IPv6 addresses of
    7171  /// the configured IA, and the EFI DHCPv6 Protocol instance is waiting for Reply packet.
    7272  ///
    73   Dhcp6Rebinding               = 0x8
     73  Dhcp6Rebinding = 0x8
    7474} EFI_DHCP6_STATE;
    7575
     
    7979  /// can be modified or replaced in Dhcp6Callback.
    8080  ///
    81   Dhcp6SendSolicit             = 0x0,
     81  Dhcp6SendSolicit = 0x0,
    8282  ///
    8383  /// An Advertise packet is received and will be passed to Dhcp6Callback.
    8484  ///
    85   Dhcp6RcvdAdvertise           = 0x1,
     85  Dhcp6RcvdAdvertise = 0x1,
    8686  ///
    8787  /// It is time for Dhcp6Callback to determine whether select the default Advertise
    8888  /// packet by RFC 3315 policy, or overwrite it by specific user policy.
    8989  ///
    90   Dhcp6SelectAdvertise         = 0x2,
     90  Dhcp6SelectAdvertise = 0x2,
    9191  ///
    9292  /// A Request packet is about to be sent. The packet is passed to Dhcp6Callback and
    9393  /// can be modified or replaced in Dhcp6Callback.
    9494  ///
    95   Dhcp6SendRequest             = 0x3,
     95  Dhcp6SendRequest = 0x3,
    9696  ///
    9797  /// A Reply packet is received and will be passed to Dhcp6Callback.
    9898  ///
    99   Dhcp6RcvdReply               = 0x4,
     99  Dhcp6RcvdReply = 0x4,
    100100  ///
    101101  /// A Reconfigure packet is received and will be passed to Dhcp6Callback.
    102102  ///
    103   Dhcp6RcvdReconfigure         = 0x5,
     103  Dhcp6RcvdReconfigure = 0x5,
    104104  ///
    105105  /// A Decline packet is about to be sent. The packet is passed to Dhcp6Callback and
    106106  /// can be modified or replaced in Dhcp6Callback.
    107107  ///
    108   Dhcp6SendDecline             = 0x6,
     108  Dhcp6SendDecline = 0x6,
    109109  ///
    110110  /// A Confirm packet is about to be sent. The packet is passed to Dhcp6Callback and
    111111  /// can be modified or replaced in Dhcp6Callback.
    112112  ///
    113   Dhcp6SendConfirm             = 0x7,
     113  Dhcp6SendConfirm = 0x7,
    114114  ///
    115115  /// A Release packet is about to be sent. The packet is passed to Dhcp6Callback and
    116116  /// can be modified or replaced in Dhcp6Callback.
    117117  ///
    118   Dhcp6SendRelease             = 0x8,
     118  Dhcp6SendRelease = 0x8,
    119119  ///
    120120  /// A Renew packet is about to be sent. The packet is passed to Dhcp6Callback and
    121121  /// can be modified or replaced in Dhcp6Callback.
    122122  ///
    123   Dhcp6EnterRenewing           = 0x9,
     123  Dhcp6EnterRenewing = 0x9,
    124124  ///
    125125  /// A Rebind packet is about to be sent. The packet is passed to Dhcp6Callback and
    126126  /// can be modified or replaced in Dhcp6Callback.
    127127  ///
    128   Dhcp6EnterRebinding          = 0xa
     128  Dhcp6EnterRebinding = 0xa
    129129} EFI_DHCP6_EVENT;
    130130
     
    132132/// An IA which carries assigned not temporary address.
    133133///
    134 #define EFI_DHCP6_IA_TYPE_NA   3
     134#define EFI_DHCP6_IA_TYPE_NA  3
    135135///
    136136/// An IA which carries assigned temporary address.
    137137///
    138 #define EFI_DHCP6_IA_TYPE_TA   4
     138#define EFI_DHCP6_IA_TYPE_TA  4
    139139
    140140#pragma pack(1)
     
    148148  /// The DHCPv6 option code, stored in network order.
    149149  ///
    150   UINT16                       OpCode;
     150  UINT16    OpCode;
    151151  ///
    152152  /// Length of the DHCPv6 option data, stored in network order.
    153153  /// From the first byte to the last byte of the Data field.
    154154  ///
    155   UINT16                       OpLen;
     155  UINT16    OpLen;
    156156  ///
    157157  /// The data for the DHCPv6 option, stored in network order.
    158158  ///
    159   UINT8                        Data[1];
     159  UINT8     Data[1];
    160160} EFI_DHCP6_PACKET_OPTION;
    161161
     
    164164/// defines the format of the DHCPv6 header. See RFC 3315 for more information.
    165165///
    166 typedef struct{
     166typedef struct {
    167167  ///
    168168  /// The DHCPv6 transaction ID.
    169169  ///
    170   UINT32                       MessageType:8;
     170  UINT32    MessageType   : 8;
    171171  ///
    172172  /// The DHCPv6 message type.
    173173  ///
    174   UINT32                       TransactionId:24;
     174  UINT32    TransactionId : 24;
    175175} EFI_DHCP6_HEADER;
    176176
     
    183183  /// Size of the EFI_DHCP6_PACKET buffer.
    184184  ///
    185   UINT32                       Size;
     185  UINT32    Size;
    186186  ///
    187187  /// Length of the EFI_DHCP6_PACKET from the first byte of the Header field to the last
    188188  /// byte of the Option[] field.
    189189  ///
    190   UINT32                       Length;
    191   struct{
     190  UINT32    Length;
     191  struct {
    192192    ///
    193193    /// The DHCPv6 packet header.
    194194    ///
    195     EFI_DHCP6_HEADER           Header;
     195    EFI_DHCP6_HEADER    Header;
    196196    ///
    197197    /// Start of the DHCPv6 packed option data.
    198198    ///
    199     UINT8                      Option[1];
     199    UINT8               Option[1];
    200200  } Dhcp6;
    201201} EFI_DHCP6_PACKET;
     
    207207  /// Length of DUID in octects.
    208208  ///
    209   UINT16                       Length;
     209  UINT16    Length;
    210210  ///
    211211  /// Array of DUID octects.
    212212  ///
    213   UINT8                        Duid[1];
     213  UINT8     Duid[1];
    214214} EFI_DHCP6_DUID;
    215215
     
    218218  /// Initial retransmission timeout.
    219219  ///
    220   UINT32                       Irt;
     220  UINT32    Irt;
    221221  ///
    222222  /// Maximum retransmission count for one packet. If Mrc is zero, there's no upper limit
    223223  /// for retransmission count.
    224224  ///
    225   UINT32                       Mrc;
     225  UINT32    Mrc;
    226226  ///
    227227  /// Maximum retransmission timeout for each retry. It's the upper bound of the number of
     
    229229  /// timeout.
    230230  ///
    231   UINT32                       Mrt;
     231  UINT32    Mrt;
    232232  ///
    233233  /// Maximum retransmission duration for one packet. It's the upper bound of the numbers
     
    235235  /// retransmission duration.
    236236  ///
    237   UINT32                       Mrd;
     237  UINT32    Mrd;
    238238} EFI_DHCP6_RETRANSMISSION;
    239239
     
    242242  /// The IPv6 address.
    243243  ///
    244   EFI_IPv6_ADDRESS             IpAddress;
     244  EFI_IPv6_ADDRESS    IpAddress;
    245245  ///
    246246  /// The preferred lifetime in unit of seconds for the IPv6 address.
    247247  ///
    248   UINT32                       PreferredLifetime;
     248  UINT32              PreferredLifetime;
    249249  ///
    250250  /// The valid lifetime in unit of seconds for the IPv6 address.
    251251  ///
    252   UINT32                       ValidLifetime;
     252  UINT32              ValidLifetime;
    253253} EFI_DHCP6_IA_ADDRESS;
    254254
    255255typedef struct {
    256   UINT16                       Type; ///< Type for an IA.
    257   UINT32                       IaId; ///< The identifier for an IA.
     256  UINT16    Type;                    ///< Type for an IA.
     257  UINT32    IaId;                    ///< The identifier for an IA.
    258258} EFI_DHCP6_IA_DESCRIPTOR;
    259259
     
    262262  /// The descriptor for IA.
    263263  ///
    264   EFI_DHCP6_IA_DESCRIPTOR      Descriptor;
     264  EFI_DHCP6_IA_DESCRIPTOR    Descriptor;
    265265  ///
    266266  /// The state of the configured IA.
    267267  ///
    268   EFI_DHCP6_STATE              State;
     268  EFI_DHCP6_STATE            State;
    269269  ///
    270270  /// Pointer to the cached latest Reply packet. May be NULL if no packet is cached.
    271271  ///
    272   EFI_DHCP6_PACKET             *ReplyPacket;
     272  EFI_DHCP6_PACKET           *ReplyPacket;
    273273  ///
    274274  /// Number of IPv6 addresses of the configured IA.
    275275  ///
    276   UINT32                       IaAddressCount;
     276  UINT32                     IaAddressCount;
    277277  ///
    278278  /// List of the IPv6 addresses of the configured IA. When the state of the configured IA is
    279279  /// in Dhcp6Bound, Dhcp6Renewing and Dhcp6Rebinding, the IPv6 addresses are usable.
    280280  ///
    281   EFI_DHCP6_IA_ADDRESS         IaAddress[1];
     281  EFI_DHCP6_IA_ADDRESS       IaAddress[1];
    282282} EFI_DHCP6_IA;
    283283
     
    286286  /// Pointer to the DHCPv6 unique identifier. The caller is responsible for freeing this buffer.
    287287  ///
    288   EFI_DHCP6_DUID               *ClientId;
     288  EFI_DHCP6_DUID    *ClientId;
    289289  ///
    290290  /// Pointer to the configured IA of current instance. The caller can free this buffer after
    291291  /// using it.
    292292  ///
    293   EFI_DHCP6_IA                 *Ia;
     293  EFI_DHCP6_IA      *Ia;
    294294} EFI_DHCP6_MODE_DATA;
    295295
     
    330330  /// process. Set to NULL to ignore all those events.
    331331  ///
    332   EFI_DHCP6_CALLBACK           Dhcp6Callback;
     332  EFI_DHCP6_CALLBACK          Dhcp6Callback;
    333333  ///
    334334  /// Pointer to the context that will be passed to Dhcp6Callback.
    335335  ///
    336   VOID                         *CallbackContext;
     336  VOID                        *CallbackContext;
    337337  ///
    338338  /// Number of the DHCPv6 options in the OptionList.
    339339  ///
    340   UINT32                       OptionCount;
     340  UINT32                      OptionCount;
    341341  ///
    342342  /// List of the DHCPv6 options to be included in Solicit and Request packet. The buffer
     
    346346  /// automatically.
    347347  ///
    348   EFI_DHCP6_PACKET_OPTION      **OptionList;
     348  EFI_DHCP6_PACKET_OPTION     **OptionList;
    349349  ///
    350350  /// The descriptor for the IA of the EFI DHCPv6 Protocol instance.
    351351  ///
    352   EFI_DHCP6_IA_DESCRIPTOR      IaDescriptor;
     352  EFI_DHCP6_IA_DESCRIPTOR     IaDescriptor;
    353353  ///
    354354  /// If not NULL, the event will be signaled when any IPv6 address information of the
     
    358358  /// operations, and they will wait for the exchange process completion or failure.
    359359  ///
    360   EFI_EVENT                    IaInfoEvent;
     360  EFI_EVENT                   IaInfoEvent;
    361361  ///
    362362  /// If TRUE, the EFI DHCPv6 Protocol instance is willing to accept Reconfigure packet.
     
    364364  /// OptionList parameter.
    365365  ///
    366   BOOLEAN                      ReconfigureAccept;
     366  BOOLEAN                     ReconfigureAccept;
    367367  ///
    368368  /// If TRUE, the EFI DHCPv6 Protocol instance will send Solicit packet with Rapid
     
    370370  /// packet. Rapid Commit option can not be specified through OptionList parameter.
    371371  ///
    372   BOOLEAN                      RapidCommit;
     372  BOOLEAN                     RapidCommit;
    373373  ///
    374374  /// Parameter to control Solicit packet retransmission behavior. The
    375375  /// buffer can be freed after EFI_DHCP6_PROTOCOL.Configure() returns.
    376376  ///
    377   EFI_DHCP6_RETRANSMISSION     *SolicitRetransmission;
     377  EFI_DHCP6_RETRANSMISSION    *SolicitRetransmission;
    378378} EFI_DHCP6_CONFIG_DATA;
    379379
     
    757757  IN OUT UINT32                *OptionCount,
    758758  OUT EFI_DHCP6_PACKET_OPTION  *PacketOptionList[] OPTIONAL
    759 );
     759  );
    760760
    761761///
     
    764764///
    765765struct _EFI_DHCP6_PROTOCOL {
    766   EFI_DHCP6_GET_MODE_DATA      GetModeData;
    767   EFI_DHCP6_CONFIGURE          Configure;
    768   EFI_DHCP6_START              Start;
    769   EFI_DHCP6_INFO_REQUEST       InfoRequest;
    770   EFI_DHCP6_RENEW_REBIND       RenewRebind;
    771   EFI_DHCP6_DECLINE            Decline;
    772   EFI_DHCP6_RELEASE            Release;
    773   EFI_DHCP6_STOP               Stop;
    774   EFI_DHCP6_PARSE              Parse;
     766  EFI_DHCP6_GET_MODE_DATA    GetModeData;
     767  EFI_DHCP6_CONFIGURE        Configure;
     768  EFI_DHCP6_START            Start;
     769  EFI_DHCP6_INFO_REQUEST     InfoRequest;
     770  EFI_DHCP6_RENEW_REBIND     RenewRebind;
     771  EFI_DHCP6_DECLINE          Decline;
     772  EFI_DHCP6_RELEASE          Release;
     773  EFI_DHCP6_STOP             Stop;
     774  EFI_DHCP6_PARSE            Parse;
    775775};
    776776
    777 extern EFI_GUID gEfiDhcp6ProtocolGuid;
    778 extern EFI_GUID gEfiDhcp6ServiceBindingProtocolGuid;
     777extern EFI_GUID  gEfiDhcp6ProtocolGuid;
     778extern EFI_GUID  gEfiDhcp6ServiceBindingProtocolGuid;
    779779
    780780#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette