1 /* 2 * Copyright 2019 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * Authors: AMD 23 * 24 */ 25 26 #ifndef _DMUB_SRV_H_ 27 #define _DMUB_SRV_H_ 28 29 /** 30 * DOC: DMUB interface and operation 31 * 32 * DMUB is the interface to the display DMCUB microcontroller on DCN hardware. 33 * It delegates hardware initialization and command submission to the 34 * microcontroller. DMUB is the shortname for DMCUB. 35 * 36 * This interface is not thread-safe. Ensure that all access to the interface 37 * is properly synchronized by the caller. 38 * 39 * Initialization and usage of the DMUB service should be done in the 40 * steps given below: 41 * 42 * 1. dmub_srv_create() 43 * 2. dmub_srv_has_hw_support() 44 * 3. dmub_srv_calc_region_info() 45 * 4. dmub_srv_hw_init() 46 * 47 * The call to dmub_srv_create() is required to use the server. 48 * 49 * The calls to dmub_srv_has_hw_support() and dmub_srv_calc_region_info() 50 * are helpers to query cache window size and allocate framebuffer(s) 51 * for the cache windows. 52 * 53 * The call to dmub_srv_hw_init() programs the DMCUB registers to prepare 54 * for command submission. Commands can be queued via dmub_srv_cmd_queue() 55 * and executed via dmub_srv_cmd_execute(). 56 * 57 * If the queue is full the dmub_srv_wait_for_idle() call can be used to 58 * wait until the queue has been cleared. 59 * 60 * Destroying the DMUB service can be done by calling dmub_srv_destroy(). 61 * This does not clear DMUB hardware state, only software state. 62 * 63 * The interface is intended to be standalone and should not depend on any 64 * other component within DAL. 65 */ 66 67 #include "inc/dmub_cmd.h" 68 69 #if defined(__cplusplus) 70 extern "C" { 71 #endif 72 73 /* Forward declarations */ 74 struct dmub_srv; 75 struct dmub_srv_common_regs; 76 77 struct dmcub_trace_buf_entry; 78 79 /* enum dmub_status - return code for dmcub functions */ 80 enum dmub_status { 81 DMUB_STATUS_OK = 0, 82 DMUB_STATUS_NO_CTX, 83 DMUB_STATUS_QUEUE_FULL, 84 DMUB_STATUS_TIMEOUT, 85 DMUB_STATUS_INVALID, 86 }; 87 88 /* enum dmub_asic - dmub asic identifier */ 89 enum dmub_asic { 90 DMUB_ASIC_NONE = 0, 91 DMUB_ASIC_DCN20, 92 DMUB_ASIC_DCN21, 93 DMUB_ASIC_DCN30, 94 DMUB_ASIC_DCN301, 95 DMUB_ASIC_DCN302, 96 DMUB_ASIC_DCN303, 97 DMUB_ASIC_MAX, 98 }; 99 100 /* enum dmub_window_id - dmub window identifier */ 101 enum dmub_window_id { 102 DMUB_WINDOW_0_INST_CONST = 0, 103 DMUB_WINDOW_1_STACK, 104 DMUB_WINDOW_2_BSS_DATA, 105 DMUB_WINDOW_3_VBIOS, 106 DMUB_WINDOW_4_MAILBOX, 107 DMUB_WINDOW_5_TRACEBUFF, 108 DMUB_WINDOW_6_FW_STATE, 109 DMUB_WINDOW_7_SCRATCH_MEM, 110 DMUB_WINDOW_TOTAL, 111 }; 112 113 /* enum dmub_notification_type - dmub outbox notification identifier */ 114 enum dmub_notification_type { 115 DMUB_NOTIFICATION_NO_DATA = 0, 116 DMUB_NOTIFICATION_AUX_REPLY, 117 DMUB_NOTIFICATION_HPD, 118 DMUB_NOTIFICATION_HPD_IRQ, 119 DMUB_NOTIFICATION_MAX 120 }; 121 122 /** 123 * struct dmub_region - dmub hw memory region 124 * @base: base address for region, must be 256 byte aligned 125 * @top: top address for region 126 */ 127 struct dmub_region { 128 uint32_t base; 129 uint32_t top; 130 }; 131 132 /** 133 * struct dmub_window - dmub hw cache window 134 * @off: offset to the fb memory in gpu address space 135 * @r: region in uc address space for cache window 136 */ 137 struct dmub_window { 138 union dmub_addr offset; 139 struct dmub_region region; 140 }; 141 142 /** 143 * struct dmub_fb - defines a dmub framebuffer memory region 144 * @cpu_addr: cpu virtual address for the region, NULL if invalid 145 * @gpu_addr: gpu virtual address for the region, NULL if invalid 146 * @size: size of the region in bytes, zero if invalid 147 */ 148 struct dmub_fb { 149 void *cpu_addr; 150 uint64_t gpu_addr; 151 uint32_t size; 152 }; 153 154 /** 155 * struct dmub_srv_region_params - params used for calculating dmub regions 156 * @inst_const_size: size of the fw inst const section 157 * @bss_data_size: size of the fw bss data section 158 * @vbios_size: size of the vbios data 159 * @fw_bss_data: raw firmware bss data section 160 */ 161 struct dmub_srv_region_params { 162 uint32_t inst_const_size; 163 uint32_t bss_data_size; 164 uint32_t vbios_size; 165 const uint8_t *fw_inst_const; 166 const uint8_t *fw_bss_data; 167 }; 168 169 /** 170 * struct dmub_srv_region_info - output region info from the dmub service 171 * @fb_size: required minimum fb size for all regions, aligned to 4096 bytes 172 * @num_regions: number of regions used by the dmub service 173 * @regions: region info 174 * 175 * The regions are aligned such that they can be all placed within the 176 * same framebuffer but they can also be placed into different framebuffers. 177 * 178 * The size of each region can be calculated by the caller: 179 * size = reg.top - reg.base 180 * 181 * Care must be taken when performing custom allocations to ensure that each 182 * region base address is 256 byte aligned. 183 */ 184 struct dmub_srv_region_info { 185 uint32_t fb_size; 186 uint8_t num_regions; 187 struct dmub_region regions[DMUB_WINDOW_TOTAL]; 188 }; 189 190 /** 191 * struct dmub_srv_fb_params - parameters used for driver fb setup 192 * @region_info: region info calculated by dmub service 193 * @cpu_addr: base cpu address for the framebuffer 194 * @gpu_addr: base gpu virtual address for the framebuffer 195 */ 196 struct dmub_srv_fb_params { 197 const struct dmub_srv_region_info *region_info; 198 void *cpu_addr; 199 uint64_t gpu_addr; 200 }; 201 202 /** 203 * struct dmub_srv_fb_info - output fb info from the dmub service 204 * @num_fbs: number of required dmub framebuffers 205 * @fbs: fb data for each region 206 * 207 * Output from the dmub service helper that can be used by the 208 * driver to prepare dmub_fb that can be passed into the dmub 209 * hw init service. 210 * 211 * Assumes that all regions are within the same framebuffer 212 * and have been setup according to the region_info generated 213 * by the dmub service. 214 */ 215 struct dmub_srv_fb_info { 216 uint8_t num_fb; 217 struct dmub_fb fb[DMUB_WINDOW_TOTAL]; 218 }; 219 220 /* 221 * struct dmub_srv_hw_params - params for dmub hardware initialization 222 * @fb: framebuffer info for each region 223 * @fb_base: base of the framebuffer aperture 224 * @fb_offset: offset of the framebuffer aperture 225 * @psp_version: psp version to pass for DMCU init 226 * @load_inst_const: true if DMUB should load inst const fw 227 */ 228 struct dmub_srv_hw_params { 229 struct dmub_fb *fb[DMUB_WINDOW_TOTAL]; 230 uint64_t fb_base; 231 uint64_t fb_offset; 232 uint32_t psp_version; 233 bool load_inst_const; 234 bool skip_panel_power_sequence; 235 }; 236 237 /** 238 * struct dmub_srv_base_funcs - Driver specific base callbacks 239 */ 240 struct dmub_srv_base_funcs { 241 /** 242 * @reg_read: 243 * 244 * Hook for reading a register. 245 * 246 * Return: The 32-bit register value from the given address. 247 */ 248 uint32_t (*reg_read)(void *ctx, uint32_t address); 249 250 /** 251 * @reg_write: 252 * 253 * Hook for writing a value to the register specified by address. 254 */ 255 void (*reg_write)(void *ctx, uint32_t address, uint32_t value); 256 }; 257 258 /** 259 * struct dmub_srv_hw_funcs - hardware sequencer funcs for dmub 260 */ 261 struct dmub_srv_hw_funcs { 262 /* private: internal use only */ 263 264 void (*init)(struct dmub_srv *dmub); 265 266 void (*reset)(struct dmub_srv *dmub); 267 268 void (*reset_release)(struct dmub_srv *dmub); 269 270 void (*backdoor_load)(struct dmub_srv *dmub, 271 const struct dmub_window *cw0, 272 const struct dmub_window *cw1); 273 274 void (*setup_windows)(struct dmub_srv *dmub, 275 const struct dmub_window *cw2, 276 const struct dmub_window *cw3, 277 const struct dmub_window *cw4, 278 const struct dmub_window *cw5, 279 const struct dmub_window *cw6); 280 281 void (*setup_mailbox)(struct dmub_srv *dmub, 282 const struct dmub_region *inbox1); 283 284 uint32_t (*get_inbox1_rptr)(struct dmub_srv *dmub); 285 286 void (*set_inbox1_wptr)(struct dmub_srv *dmub, uint32_t wptr_offset); 287 288 void (*setup_out_mailbox)(struct dmub_srv *dmub, 289 const struct dmub_region *outbox1); 290 291 uint32_t (*get_outbox1_wptr)(struct dmub_srv *dmub); 292 293 void (*set_outbox1_rptr)(struct dmub_srv *dmub, uint32_t rptr_offset); 294 295 void (*setup_outbox0)(struct dmub_srv *dmub, 296 const struct dmub_region *outbox0); 297 298 uint32_t (*get_outbox0_wptr)(struct dmub_srv *dmub); 299 300 void (*set_outbox0_rptr)(struct dmub_srv *dmub, uint32_t rptr_offset); 301 302 uint32_t (*emul_get_inbox1_rptr)(struct dmub_srv *dmub); 303 304 void (*emul_set_inbox1_wptr)(struct dmub_srv *dmub, uint32_t wptr_offset); 305 306 bool (*is_supported)(struct dmub_srv *dmub); 307 308 bool (*is_hw_init)(struct dmub_srv *dmub); 309 310 bool (*is_phy_init)(struct dmub_srv *dmub); 311 void (*enable_dmub_boot_options)(struct dmub_srv *dmub, 312 const struct dmub_srv_hw_params *params); 313 314 void (*skip_dmub_panel_power_sequence)(struct dmub_srv *dmub, bool skip); 315 316 union dmub_fw_boot_status (*get_fw_status)(struct dmub_srv *dmub); 317 318 319 void (*set_gpint)(struct dmub_srv *dmub, 320 union dmub_gpint_data_register reg); 321 322 bool (*is_gpint_acked)(struct dmub_srv *dmub, 323 union dmub_gpint_data_register reg); 324 325 uint32_t (*get_gpint_response)(struct dmub_srv *dmub); 326 327 uint32_t (*get_current_time)(struct dmub_srv *dmub); 328 }; 329 330 /** 331 * struct dmub_srv_create_params - params for dmub service creation 332 * @base_funcs: driver supplied base routines 333 * @hw_funcs: optional overrides for hw funcs 334 * @user_ctx: context data for callback funcs 335 * @asic: driver supplied asic 336 * @fw_version: the current firmware version, if any 337 * @is_virtual: false for hw support only 338 */ 339 struct dmub_srv_create_params { 340 struct dmub_srv_base_funcs funcs; 341 struct dmub_srv_hw_funcs *hw_funcs; 342 void *user_ctx; 343 enum dmub_asic asic; 344 uint32_t fw_version; 345 bool is_virtual; 346 }; 347 348 /** 349 * struct dmub_srv - software state for dmcub 350 * @asic: dmub asic identifier 351 * @user_ctx: user provided context for the dmub_srv 352 * @fw_version: the current firmware version, if any 353 * @is_virtual: false if hardware support only 354 * @fw_state: dmub firmware state pointer 355 */ 356 struct dmub_srv { 357 enum dmub_asic asic; 358 void *user_ctx; 359 uint32_t fw_version; 360 bool is_virtual; 361 struct dmub_fb scratch_mem_fb; 362 volatile const struct dmub_fw_state *fw_state; 363 364 /* private: internal use only */ 365 const struct dmub_srv_common_regs *regs; 366 367 struct dmub_srv_base_funcs funcs; 368 struct dmub_srv_hw_funcs hw_funcs; 369 struct dmub_rb inbox1_rb; 370 /** 371 * outbox1_rb is accessed without locks (dal & dc) 372 * and to be used only in dmub_srv_stat_get_notification() 373 */ 374 struct dmub_rb outbox1_rb; 375 376 struct dmub_rb outbox0_rb; 377 378 bool sw_init; 379 bool hw_init; 380 381 uint64_t fb_base; 382 uint64_t fb_offset; 383 uint32_t psp_version; 384 385 /* Feature capabilities reported by fw */ 386 struct dmub_feature_caps feature_caps; 387 }; 388 389 /** 390 * struct dmub_notification - dmub notification data 391 * @type: dmub notification type 392 * @link_index: link index to identify aux connection 393 * @result: USB4 status returned from dmub 394 * @pending_notification: Indicates there are other pending notifications 395 * @aux_reply: aux reply 396 * @hpd_status: hpd status 397 */ 398 struct dmub_notification { 399 enum dmub_notification_type type; 400 uint8_t link_index; 401 uint8_t result; 402 bool pending_notification; 403 union { 404 struct aux_reply_data aux_reply; 405 enum dp_hpd_status hpd_status; 406 }; 407 }; 408 409 /** 410 * DMUB firmware version helper macro - useful for checking if the version 411 * of a firmware to know if feature or functionality is supported or present. 412 */ 413 #define DMUB_FW_VERSION(major, minor, revision) \ 414 ((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF)) 415 416 /** 417 * dmub_srv_create() - creates the DMUB service. 418 * @dmub: the dmub service 419 * @params: creation parameters for the service 420 * 421 * Return: 422 * DMUB_STATUS_OK - success 423 * DMUB_STATUS_INVALID - unspecified error 424 */ 425 enum dmub_status dmub_srv_create(struct dmub_srv *dmub, 426 const struct dmub_srv_create_params *params); 427 428 /** 429 * dmub_srv_destroy() - destroys the DMUB service. 430 * @dmub: the dmub service 431 */ 432 void dmub_srv_destroy(struct dmub_srv *dmub); 433 434 /** 435 * dmub_srv_calc_region_info() - retreives region info from the dmub service 436 * @dmub: the dmub service 437 * @params: parameters used to calculate region locations 438 * @info_out: the output region info from dmub 439 * 440 * Calculates the base and top address for all relevant dmub regions 441 * using the parameters given (if any). 442 * 443 * Return: 444 * DMUB_STATUS_OK - success 445 * DMUB_STATUS_INVALID - unspecified error 446 */ 447 enum dmub_status 448 dmub_srv_calc_region_info(struct dmub_srv *dmub, 449 const struct dmub_srv_region_params *params, 450 struct dmub_srv_region_info *out); 451 452 /** 453 * dmub_srv_calc_region_info() - retreives fb info from the dmub service 454 * @dmub: the dmub service 455 * @params: parameters used to calculate fb locations 456 * @info_out: the output fb info from dmub 457 * 458 * Calculates the base and top address for all relevant dmub regions 459 * using the parameters given (if any). 460 * 461 * Return: 462 * DMUB_STATUS_OK - success 463 * DMUB_STATUS_INVALID - unspecified error 464 */ 465 enum dmub_status dmub_srv_calc_fb_info(struct dmub_srv *dmub, 466 const struct dmub_srv_fb_params *params, 467 struct dmub_srv_fb_info *out); 468 469 /** 470 * dmub_srv_has_hw_support() - returns hw support state for dmcub 471 * @dmub: the dmub service 472 * @is_supported: hw support state 473 * 474 * Queries the hardware for DMCUB support and returns the result. 475 * 476 * Can be called before dmub_srv_hw_init(). 477 * 478 * Return: 479 * DMUB_STATUS_OK - success 480 * DMUB_STATUS_INVALID - unspecified error 481 */ 482 enum dmub_status dmub_srv_has_hw_support(struct dmub_srv *dmub, 483 bool *is_supported); 484 485 /** 486 * dmub_srv_is_hw_init() - returns hardware init state 487 * 488 * Return: 489 * DMUB_STATUS_OK - success 490 * DMUB_STATUS_INVALID - unspecified error 491 */ 492 enum dmub_status dmub_srv_is_hw_init(struct dmub_srv *dmub, bool *is_hw_init); 493 494 /** 495 * dmub_srv_hw_init() - initializes the underlying DMUB hardware 496 * @dmub: the dmub service 497 * @params: params for hardware initialization 498 * 499 * Resets the DMUB hardware and performs backdoor loading of the 500 * required cache regions based on the input framebuffer regions. 501 * 502 * Return: 503 * DMUB_STATUS_OK - success 504 * DMUB_STATUS_NO_CTX - dmcub context not initialized 505 * DMUB_STATUS_INVALID - unspecified error 506 */ 507 enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub, 508 const struct dmub_srv_hw_params *params); 509 510 /** 511 * dmub_srv_hw_reset() - puts the DMUB hardware in reset state if initialized 512 * @dmub: the dmub service 513 * 514 * Before destroying the DMUB service or releasing the backing framebuffer 515 * memory we'll need to put the DMCUB into reset first. 516 * 517 * A subsequent call to dmub_srv_hw_init() will re-enable the DMCUB. 518 * 519 * Return: 520 * DMUB_STATUS_OK - success 521 * DMUB_STATUS_INVALID - unspecified error 522 */ 523 enum dmub_status dmub_srv_hw_reset(struct dmub_srv *dmub); 524 525 /** 526 * dmub_srv_cmd_queue() - queues a command to the DMUB 527 * @dmub: the dmub service 528 * @cmd: the command to queue 529 * 530 * Queues a command to the DMUB service but does not begin execution 531 * immediately. 532 * 533 * Return: 534 * DMUB_STATUS_OK - success 535 * DMUB_STATUS_QUEUE_FULL - no remaining room in queue 536 * DMUB_STATUS_INVALID - unspecified error 537 */ 538 enum dmub_status dmub_srv_cmd_queue(struct dmub_srv *dmub, 539 const union dmub_rb_cmd *cmd); 540 541 /** 542 * dmub_srv_cmd_execute() - Executes a queued sequence to the dmub 543 * @dmub: the dmub service 544 * 545 * Begins execution of queued commands on the dmub. 546 * 547 * Return: 548 * DMUB_STATUS_OK - success 549 * DMUB_STATUS_INVALID - unspecified error 550 */ 551 enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub); 552 553 /** 554 * dmub_srv_wait_for_auto_load() - Waits for firmware auto load to complete 555 * @dmub: the dmub service 556 * @timeout_us: the maximum number of microseconds to wait 557 * 558 * Waits until firmware has been autoloaded by the DMCUB. The maximum 559 * wait time is given in microseconds to prevent spinning forever. 560 * 561 * On ASICs without firmware autoload support this function will return 562 * immediately. 563 * 564 * Return: 565 * DMUB_STATUS_OK - success 566 * DMUB_STATUS_TIMEOUT - wait for phy init timed out 567 * DMUB_STATUS_INVALID - unspecified error 568 */ 569 enum dmub_status dmub_srv_wait_for_auto_load(struct dmub_srv *dmub, 570 uint32_t timeout_us); 571 572 /** 573 * dmub_srv_wait_for_phy_init() - Waits for DMUB PHY init to complete 574 * @dmub: the dmub service 575 * @timeout_us: the maximum number of microseconds to wait 576 * 577 * Waits until the PHY has been initialized by the DMUB. The maximum 578 * wait time is given in microseconds to prevent spinning forever. 579 * 580 * On ASICs without PHY init support this function will return 581 * immediately. 582 * 583 * Return: 584 * DMUB_STATUS_OK - success 585 * DMUB_STATUS_TIMEOUT - wait for phy init timed out 586 * DMUB_STATUS_INVALID - unspecified error 587 */ 588 enum dmub_status dmub_srv_wait_for_phy_init(struct dmub_srv *dmub, 589 uint32_t timeout_us); 590 591 /** 592 * dmub_srv_wait_for_idle() - Waits for the DMUB to be idle 593 * @dmub: the dmub service 594 * @timeout_us: the maximum number of microseconds to wait 595 * 596 * Waits until the DMUB buffer is empty and all commands have 597 * finished processing. The maximum wait time is given in 598 * microseconds to prevent spinning forever. 599 * 600 * Return: 601 * DMUB_STATUS_OK - success 602 * DMUB_STATUS_TIMEOUT - wait for buffer to flush timed out 603 * DMUB_STATUS_INVALID - unspecified error 604 */ 605 enum dmub_status dmub_srv_wait_for_idle(struct dmub_srv *dmub, 606 uint32_t timeout_us); 607 608 /** 609 * dmub_srv_send_gpint_command() - Sends a GPINT based command. 610 * @dmub: the dmub service 611 * @command_code: the command code to send 612 * @param: the command parameter to send 613 * @timeout_us: the maximum number of microseconds to wait 614 * 615 * Sends a command via the general purpose interrupt (GPINT). 616 * Waits for the number of microseconds specified by timeout_us 617 * for the command ACK before returning. 618 * 619 * Can be called after software initialization. 620 * 621 * Return: 622 * DMUB_STATUS_OK - success 623 * DMUB_STATUS_TIMEOUT - wait for ACK timed out 624 * DMUB_STATUS_INVALID - unspecified error 625 */ 626 enum dmub_status 627 dmub_srv_send_gpint_command(struct dmub_srv *dmub, 628 enum dmub_gpint_command command_code, 629 uint16_t param, uint32_t timeout_us); 630 631 /** 632 * dmub_srv_get_gpint_response() - Queries the GPINT response. 633 * @dmub: the dmub service 634 * @response: the response for the last GPINT 635 * 636 * Returns the response code for the last GPINT interrupt. 637 * 638 * Can be called after software initialization. 639 * 640 * Return: 641 * DMUB_STATUS_OK - success 642 * DMUB_STATUS_INVALID - unspecified error 643 */ 644 enum dmub_status dmub_srv_get_gpint_response(struct dmub_srv *dmub, 645 uint32_t *response); 646 647 /** 648 * dmub_flush_buffer_mem() - Read back entire frame buffer region. 649 * This ensures that the write from x86 has been flushed and will not 650 * hang the DMCUB. 651 * @fb: frame buffer to flush 652 * 653 * Can be called after software initialization. 654 */ 655 void dmub_flush_buffer_mem(const struct dmub_fb *fb); 656 657 /** 658 * dmub_srv_get_fw_boot_status() - Returns the DMUB boot status bits. 659 * 660 * @dmub: the dmub service 661 * @status: out pointer for firmware status 662 * 663 * Return: 664 * DMUB_STATUS_OK - success 665 * DMUB_STATUS_INVALID - unspecified error, unsupported 666 */ 667 enum dmub_status dmub_srv_get_fw_boot_status(struct dmub_srv *dmub, 668 union dmub_fw_boot_status *status); 669 670 enum dmub_status dmub_srv_cmd_with_reply_data(struct dmub_srv *dmub, 671 union dmub_rb_cmd *cmd); 672 673 bool dmub_srv_get_outbox0_msg(struct dmub_srv *dmub, struct dmcub_trace_buf_entry *entry); 674 675 #if defined(__cplusplus) 676 } 677 #endif 678 679 #endif /* _DMUB_SRV_H_ */ 680