2 * Copyright 2019 Advanced Micro Devices, Inc.
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:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
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.
30 * DOC: DMUB interface and operation
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.
36 * This interface is not thread-safe. Ensure that all access to the interface
37 * is properly synchronized by the caller.
39 * Initialization and usage of the DMUB service should be done in the
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()
47 * The call to dmub_srv_create() is required to use the server.
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.
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().
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.
60 * Destroying the DMUB service can be done by calling dmub_srv_destroy().
61 * This does not clear DMUB hardware state, only software state.
63 * The interface is intended to be standalone and should not depend on any
64 * other component within DAL.
67 #include "inc/dmub_cmd.h"
69 #if defined(__cplusplus)
73 /* Forward declarations */
75 struct dmub_srv_common_regs;
76 struct dmub_srv_dcn31_regs;
78 struct dmcub_trace_buf_entry;
80 /* enum dmub_status - return code for dmcub functions */
84 DMUB_STATUS_QUEUE_FULL,
87 DMUB_STATUS_HW_FAILURE,
90 /* enum dmub_asic - dmub asic identifier */
109 /* enum dmub_window_id - dmub window identifier */
110 enum dmub_window_id {
111 DMUB_WINDOW_0_INST_CONST = 0,
113 DMUB_WINDOW_2_BSS_DATA,
115 DMUB_WINDOW_4_MAILBOX,
116 DMUB_WINDOW_5_TRACEBUFF,
117 DMUB_WINDOW_6_FW_STATE,
118 DMUB_WINDOW_7_SCRATCH_MEM,
122 /* enum dmub_notification_type - dmub outbox notification identifier */
123 enum dmub_notification_type {
124 DMUB_NOTIFICATION_NO_DATA = 0,
125 DMUB_NOTIFICATION_AUX_REPLY,
126 DMUB_NOTIFICATION_HPD,
127 DMUB_NOTIFICATION_HPD_IRQ,
128 DMUB_NOTIFICATION_SET_CONFIG_REPLY,
129 DMUB_NOTIFICATION_MAX
133 * struct dmub_region - dmub hw memory region
134 * @base: base address for region, must be 256 byte aligned
135 * @top: top address for region
143 * struct dmub_window - dmub hw cache window
144 * @off: offset to the fb memory in gpu address space
145 * @r: region in uc address space for cache window
148 union dmub_addr offset;
149 struct dmub_region region;
153 * struct dmub_fb - defines a dmub framebuffer memory region
154 * @cpu_addr: cpu virtual address for the region, NULL if invalid
155 * @gpu_addr: gpu virtual address for the region, NULL if invalid
156 * @size: size of the region in bytes, zero if invalid
165 * struct dmub_srv_region_params - params used for calculating dmub regions
166 * @inst_const_size: size of the fw inst const section
167 * @bss_data_size: size of the fw bss data section
168 * @vbios_size: size of the vbios data
169 * @fw_bss_data: raw firmware bss data section
171 struct dmub_srv_region_params {
172 uint32_t inst_const_size;
173 uint32_t bss_data_size;
175 const uint8_t *fw_inst_const;
176 const uint8_t *fw_bss_data;
180 * struct dmub_srv_region_info - output region info from the dmub service
181 * @fb_size: required minimum fb size for all regions, aligned to 4096 bytes
182 * @num_regions: number of regions used by the dmub service
183 * @regions: region info
185 * The regions are aligned such that they can be all placed within the
186 * same framebuffer but they can also be placed into different framebuffers.
188 * The size of each region can be calculated by the caller:
189 * size = reg.top - reg.base
191 * Care must be taken when performing custom allocations to ensure that each
192 * region base address is 256 byte aligned.
194 struct dmub_srv_region_info {
197 struct dmub_region regions[DMUB_WINDOW_TOTAL];
201 * struct dmub_srv_fb_params - parameters used for driver fb setup
202 * @region_info: region info calculated by dmub service
203 * @cpu_addr: base cpu address for the framebuffer
204 * @gpu_addr: base gpu virtual address for the framebuffer
206 struct dmub_srv_fb_params {
207 const struct dmub_srv_region_info *region_info;
213 * struct dmub_srv_fb_info - output fb info from the dmub service
214 * @num_fbs: number of required dmub framebuffers
215 * @fbs: fb data for each region
217 * Output from the dmub service helper that can be used by the
218 * driver to prepare dmub_fb that can be passed into the dmub
221 * Assumes that all regions are within the same framebuffer
222 * and have been setup according to the region_info generated
223 * by the dmub service.
225 struct dmub_srv_fb_info {
227 struct dmub_fb fb[DMUB_WINDOW_TOTAL];
231 * struct dmub_srv_hw_params - params for dmub hardware initialization
232 * @fb: framebuffer info for each region
233 * @fb_base: base of the framebuffer aperture
234 * @fb_offset: offset of the framebuffer aperture
235 * @psp_version: psp version to pass for DMCU init
236 * @load_inst_const: true if DMUB should load inst const fw
238 struct dmub_srv_hw_params {
239 struct dmub_fb *fb[DMUB_WINDOW_TOTAL];
242 uint32_t psp_version;
243 bool load_inst_const;
244 bool skip_panel_power_sequence;
246 bool power_optimization;
249 bool usb4_cm_version;
250 bool fw_in_system_memory;
254 * struct dmub_diagnostic_data - Diagnostic data retrieved from DMCUB for
255 * debugging purposes, including logging, crash analysis, etc.
257 struct dmub_diagnostic_data {
258 uint32_t dmcub_version;
259 uint32_t scratch[16];
261 uint32_t undefined_address_fault_addr;
262 uint32_t inst_fetch_fault_addr;
263 uint32_t data_write_fault_addr;
264 uint32_t inbox1_rptr;
265 uint32_t inbox1_wptr;
266 uint32_t inbox1_size;
267 uint32_t inbox0_rptr;
268 uint32_t inbox0_wptr;
269 uint32_t inbox0_size;
270 uint8_t is_dmcub_enabled : 1;
271 uint8_t is_dmcub_soft_reset : 1;
272 uint8_t is_dmcub_secure_reset : 1;
273 uint8_t is_traceport_en : 1;
274 uint8_t is_cw0_enabled : 1;
275 uint8_t is_cw6_enabled : 1;
279 * struct dmub_srv_base_funcs - Driver specific base callbacks
281 struct dmub_srv_base_funcs {
285 * Hook for reading a register.
287 * Return: The 32-bit register value from the given address.
289 uint32_t (*reg_read)(void *ctx, uint32_t address);
294 * Hook for writing a value to the register specified by address.
296 void (*reg_write)(void *ctx, uint32_t address, uint32_t value);
300 * struct dmub_srv_hw_funcs - hardware sequencer funcs for dmub
302 struct dmub_srv_hw_funcs {
303 /* private: internal use only */
305 void (*init)(struct dmub_srv *dmub);
307 void (*reset)(struct dmub_srv *dmub);
309 void (*reset_release)(struct dmub_srv *dmub);
311 void (*backdoor_load)(struct dmub_srv *dmub,
312 const struct dmub_window *cw0,
313 const struct dmub_window *cw1);
315 void (*backdoor_load_zfb_mode)(struct dmub_srv *dmub,
316 const struct dmub_window *cw0,
317 const struct dmub_window *cw1);
318 void (*setup_windows)(struct dmub_srv *dmub,
319 const struct dmub_window *cw2,
320 const struct dmub_window *cw3,
321 const struct dmub_window *cw4,
322 const struct dmub_window *cw5,
323 const struct dmub_window *cw6);
325 void (*setup_mailbox)(struct dmub_srv *dmub,
326 const struct dmub_region *inbox1);
328 uint32_t (*get_inbox1_rptr)(struct dmub_srv *dmub);
330 void (*set_inbox1_wptr)(struct dmub_srv *dmub, uint32_t wptr_offset);
332 void (*setup_out_mailbox)(struct dmub_srv *dmub,
333 const struct dmub_region *outbox1);
335 uint32_t (*get_outbox1_wptr)(struct dmub_srv *dmub);
337 void (*set_outbox1_rptr)(struct dmub_srv *dmub, uint32_t rptr_offset);
339 void (*setup_outbox0)(struct dmub_srv *dmub,
340 const struct dmub_region *outbox0);
342 uint32_t (*get_outbox0_wptr)(struct dmub_srv *dmub);
344 void (*set_outbox0_rptr)(struct dmub_srv *dmub, uint32_t rptr_offset);
346 uint32_t (*emul_get_inbox1_rptr)(struct dmub_srv *dmub);
348 void (*emul_set_inbox1_wptr)(struct dmub_srv *dmub, uint32_t wptr_offset);
350 bool (*is_supported)(struct dmub_srv *dmub);
352 bool (*is_hw_init)(struct dmub_srv *dmub);
354 bool (*is_phy_init)(struct dmub_srv *dmub);
355 void (*enable_dmub_boot_options)(struct dmub_srv *dmub,
356 const struct dmub_srv_hw_params *params);
358 void (*skip_dmub_panel_power_sequence)(struct dmub_srv *dmub, bool skip);
360 union dmub_fw_boot_status (*get_fw_status)(struct dmub_srv *dmub);
363 void (*set_gpint)(struct dmub_srv *dmub,
364 union dmub_gpint_data_register reg);
366 bool (*is_gpint_acked)(struct dmub_srv *dmub,
367 union dmub_gpint_data_register reg);
369 uint32_t (*get_gpint_response)(struct dmub_srv *dmub);
371 uint32_t (*get_gpint_dataout)(struct dmub_srv *dmub);
373 void (*configure_dmub_in_system_memory)(struct dmub_srv *dmub);
374 void (*clear_inbox0_ack_register)(struct dmub_srv *dmub);
375 uint32_t (*read_inbox0_ack_register)(struct dmub_srv *dmub);
376 void (*send_inbox0_cmd)(struct dmub_srv *dmub, union dmub_inbox0_data_register data);
377 uint32_t (*get_current_time)(struct dmub_srv *dmub);
379 void (*get_diagnostic_data)(struct dmub_srv *dmub, struct dmub_diagnostic_data *dmub_oca);
381 bool (*should_detect)(struct dmub_srv *dmub);
385 * struct dmub_srv_create_params - params for dmub service creation
386 * @base_funcs: driver supplied base routines
387 * @hw_funcs: optional overrides for hw funcs
388 * @user_ctx: context data for callback funcs
389 * @asic: driver supplied asic
390 * @fw_version: the current firmware version, if any
391 * @is_virtual: false for hw support only
393 struct dmub_srv_create_params {
394 struct dmub_srv_base_funcs funcs;
395 struct dmub_srv_hw_funcs *hw_funcs;
403 * struct dmub_srv - software state for dmcub
404 * @asic: dmub asic identifier
405 * @user_ctx: user provided context for the dmub_srv
406 * @fw_version: the current firmware version, if any
407 * @is_virtual: false if hardware support only
408 * @fw_state: dmub firmware state pointer
415 struct dmub_fb scratch_mem_fb;
416 volatile const struct dmub_fw_state *fw_state;
418 /* private: internal use only */
419 const struct dmub_srv_common_regs *regs;
420 const struct dmub_srv_dcn31_regs *regs_dcn31;
421 const struct dmub_srv_dcn32_regs *regs_dcn32;
423 struct dmub_srv_base_funcs funcs;
424 struct dmub_srv_hw_funcs hw_funcs;
425 struct dmub_rb inbox1_rb;
426 uint32_t inbox1_last_wptr;
428 * outbox1_rb is accessed without locks (dal & dc)
429 * and to be used only in dmub_srv_stat_get_notification()
431 struct dmub_rb outbox1_rb;
433 struct dmub_rb outbox0_rb;
440 uint32_t psp_version;
442 /* Feature capabilities reported by fw */
443 struct dmub_feature_caps feature_caps;
444 struct dmub_visual_confirm_color visual_confirm_color;
448 * struct dmub_notification - dmub notification data
449 * @type: dmub notification type
450 * @link_index: link index to identify aux connection
451 * @result: USB4 status returned from dmub
452 * @pending_notification: Indicates there are other pending notifications
453 * @aux_reply: aux reply
454 * @hpd_status: hpd status
456 struct dmub_notification {
457 enum dmub_notification_type type;
460 bool pending_notification;
462 struct aux_reply_data aux_reply;
463 enum dp_hpd_status hpd_status;
464 enum set_config_status sc_status;
469 * DMUB firmware version helper macro - useful for checking if the version
470 * of a firmware to know if feature or functionality is supported or present.
472 #define DMUB_FW_VERSION(major, minor, revision) \
473 ((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF))
476 * dmub_srv_create() - creates the DMUB service.
477 * @dmub: the dmub service
478 * @params: creation parameters for the service
481 * DMUB_STATUS_OK - success
482 * DMUB_STATUS_INVALID - unspecified error
484 enum dmub_status dmub_srv_create(struct dmub_srv *dmub,
485 const struct dmub_srv_create_params *params);
488 * dmub_srv_destroy() - destroys the DMUB service.
489 * @dmub: the dmub service
491 void dmub_srv_destroy(struct dmub_srv *dmub);
494 * dmub_srv_calc_region_info() - retreives region info from the dmub service
495 * @dmub: the dmub service
496 * @params: parameters used to calculate region locations
497 * @info_out: the output region info from dmub
499 * Calculates the base and top address for all relevant dmub regions
500 * using the parameters given (if any).
503 * DMUB_STATUS_OK - success
504 * DMUB_STATUS_INVALID - unspecified error
507 dmub_srv_calc_region_info(struct dmub_srv *dmub,
508 const struct dmub_srv_region_params *params,
509 struct dmub_srv_region_info *out);
512 * dmub_srv_calc_region_info() - retreives fb info from the dmub service
513 * @dmub: the dmub service
514 * @params: parameters used to calculate fb locations
515 * @info_out: the output fb info from dmub
517 * Calculates the base and top address for all relevant dmub regions
518 * using the parameters given (if any).
521 * DMUB_STATUS_OK - success
522 * DMUB_STATUS_INVALID - unspecified error
524 enum dmub_status dmub_srv_calc_fb_info(struct dmub_srv *dmub,
525 const struct dmub_srv_fb_params *params,
526 struct dmub_srv_fb_info *out);
529 * dmub_srv_has_hw_support() - returns hw support state for dmcub
530 * @dmub: the dmub service
531 * @is_supported: hw support state
533 * Queries the hardware for DMCUB support and returns the result.
535 * Can be called before dmub_srv_hw_init().
538 * DMUB_STATUS_OK - success
539 * DMUB_STATUS_INVALID - unspecified error
541 enum dmub_status dmub_srv_has_hw_support(struct dmub_srv *dmub,
545 * dmub_srv_is_hw_init() - returns hardware init state
548 * DMUB_STATUS_OK - success
549 * DMUB_STATUS_INVALID - unspecified error
551 enum dmub_status dmub_srv_is_hw_init(struct dmub_srv *dmub, bool *is_hw_init);
554 * dmub_srv_hw_init() - initializes the underlying DMUB hardware
555 * @dmub: the dmub service
556 * @params: params for hardware initialization
558 * Resets the DMUB hardware and performs backdoor loading of the
559 * required cache regions based on the input framebuffer regions.
562 * DMUB_STATUS_OK - success
563 * DMUB_STATUS_NO_CTX - dmcub context not initialized
564 * DMUB_STATUS_INVALID - unspecified error
566 enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub,
567 const struct dmub_srv_hw_params *params);
570 * dmub_srv_hw_reset() - puts the DMUB hardware in reset state if initialized
571 * @dmub: the dmub service
573 * Before destroying the DMUB service or releasing the backing framebuffer
574 * memory we'll need to put the DMCUB into reset first.
576 * A subsequent call to dmub_srv_hw_init() will re-enable the DMCUB.
579 * DMUB_STATUS_OK - success
580 * DMUB_STATUS_INVALID - unspecified error
582 enum dmub_status dmub_srv_hw_reset(struct dmub_srv *dmub);
585 * dmub_srv_cmd_queue() - queues a command to the DMUB
586 * @dmub: the dmub service
587 * @cmd: the command to queue
589 * Queues a command to the DMUB service but does not begin execution
593 * DMUB_STATUS_OK - success
594 * DMUB_STATUS_QUEUE_FULL - no remaining room in queue
595 * DMUB_STATUS_INVALID - unspecified error
597 enum dmub_status dmub_srv_cmd_queue(struct dmub_srv *dmub,
598 const union dmub_rb_cmd *cmd);
601 * dmub_srv_cmd_execute() - Executes a queued sequence to the dmub
602 * @dmub: the dmub service
604 * Begins execution of queued commands on the dmub.
607 * DMUB_STATUS_OK - success
608 * DMUB_STATUS_INVALID - unspecified error
610 enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub);
613 * dmub_srv_wait_for_auto_load() - Waits for firmware auto load to complete
614 * @dmub: the dmub service
615 * @timeout_us: the maximum number of microseconds to wait
617 * Waits until firmware has been autoloaded by the DMCUB. The maximum
618 * wait time is given in microseconds to prevent spinning forever.
620 * On ASICs without firmware autoload support this function will return
624 * DMUB_STATUS_OK - success
625 * DMUB_STATUS_TIMEOUT - wait for phy init timed out
626 * DMUB_STATUS_INVALID - unspecified error
628 enum dmub_status dmub_srv_wait_for_auto_load(struct dmub_srv *dmub,
629 uint32_t timeout_us);
632 * dmub_srv_wait_for_phy_init() - Waits for DMUB PHY init to complete
633 * @dmub: the dmub service
634 * @timeout_us: the maximum number of microseconds to wait
636 * Waits until the PHY has been initialized by the DMUB. The maximum
637 * wait time is given in microseconds to prevent spinning forever.
639 * On ASICs without PHY init support this function will return
643 * DMUB_STATUS_OK - success
644 * DMUB_STATUS_TIMEOUT - wait for phy init timed out
645 * DMUB_STATUS_INVALID - unspecified error
647 enum dmub_status dmub_srv_wait_for_phy_init(struct dmub_srv *dmub,
648 uint32_t timeout_us);
651 * dmub_srv_wait_for_idle() - Waits for the DMUB to be idle
652 * @dmub: the dmub service
653 * @timeout_us: the maximum number of microseconds to wait
655 * Waits until the DMUB buffer is empty and all commands have
656 * finished processing. The maximum wait time is given in
657 * microseconds to prevent spinning forever.
660 * DMUB_STATUS_OK - success
661 * DMUB_STATUS_TIMEOUT - wait for buffer to flush timed out
662 * DMUB_STATUS_INVALID - unspecified error
664 enum dmub_status dmub_srv_wait_for_idle(struct dmub_srv *dmub,
665 uint32_t timeout_us);
668 * dmub_srv_send_gpint_command() - Sends a GPINT based command.
669 * @dmub: the dmub service
670 * @command_code: the command code to send
671 * @param: the command parameter to send
672 * @timeout_us: the maximum number of microseconds to wait
674 * Sends a command via the general purpose interrupt (GPINT).
675 * Waits for the number of microseconds specified by timeout_us
676 * for the command ACK before returning.
678 * Can be called after software initialization.
681 * DMUB_STATUS_OK - success
682 * DMUB_STATUS_TIMEOUT - wait for ACK timed out
683 * DMUB_STATUS_INVALID - unspecified error
686 dmub_srv_send_gpint_command(struct dmub_srv *dmub,
687 enum dmub_gpint_command command_code,
688 uint16_t param, uint32_t timeout_us);
691 * dmub_srv_get_gpint_response() - Queries the GPINT response.
692 * @dmub: the dmub service
693 * @response: the response for the last GPINT
695 * Returns the response code for the last GPINT interrupt.
697 * Can be called after software initialization.
700 * DMUB_STATUS_OK - success
701 * DMUB_STATUS_INVALID - unspecified error
703 enum dmub_status dmub_srv_get_gpint_response(struct dmub_srv *dmub,
707 * dmub_srv_get_gpint_dataout() - Queries the GPINT DATAOUT.
708 * @dmub: the dmub service
709 * @dataout: the data for the GPINT DATAOUT
711 * Returns the response code for the last GPINT DATAOUT interrupt.
713 * Can be called after software initialization.
716 * DMUB_STATUS_OK - success
717 * DMUB_STATUS_INVALID - unspecified error
719 enum dmub_status dmub_srv_get_gpint_dataout(struct dmub_srv *dmub,
723 * dmub_flush_buffer_mem() - Read back entire frame buffer region.
724 * This ensures that the write from x86 has been flushed and will not
726 * @fb: frame buffer to flush
728 * Can be called after software initialization.
730 void dmub_flush_buffer_mem(const struct dmub_fb *fb);
733 * dmub_srv_get_fw_boot_status() - Returns the DMUB boot status bits.
735 * @dmub: the dmub service
736 * @status: out pointer for firmware status
739 * DMUB_STATUS_OK - success
740 * DMUB_STATUS_INVALID - unspecified error, unsupported
742 enum dmub_status dmub_srv_get_fw_boot_status(struct dmub_srv *dmub,
743 union dmub_fw_boot_status *status);
745 enum dmub_status dmub_srv_cmd_with_reply_data(struct dmub_srv *dmub,
746 union dmub_rb_cmd *cmd);
748 bool dmub_srv_get_outbox0_msg(struct dmub_srv *dmub, struct dmcub_trace_buf_entry *entry);
750 bool dmub_srv_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnostic_data *diag_data);
752 bool dmub_srv_should_detect(struct dmub_srv *dmub);
755 * dmub_srv_send_inbox0_cmd() - Send command to DMUB using INBOX0
756 * @dmub: the dmub service
757 * @data: the data to be sent in the INBOX0 command
759 * Send command by writing directly to INBOX0 WPTR
762 * DMUB_STATUS_OK - success
763 * DMUB_STATUS_INVALID - hw_init false or hw function does not exist
765 enum dmub_status dmub_srv_send_inbox0_cmd(struct dmub_srv *dmub, union dmub_inbox0_data_register data);
768 * dmub_srv_wait_for_inbox0_ack() - wait for DMUB to ACK INBOX0 command
769 * @dmub: the dmub service
770 * @timeout_us: the maximum number of microseconds to wait
772 * Wait for DMUB to ACK the INBOX0 message
775 * DMUB_STATUS_OK - success
776 * DMUB_STATUS_INVALID - hw_init false or hw function does not exist
777 * DMUB_STATUS_TIMEOUT - wait for ack timed out
779 enum dmub_status dmub_srv_wait_for_inbox0_ack(struct dmub_srv *dmub, uint32_t timeout_us);
782 * dmub_srv_wait_for_inbox0_ack() - clear ACK register for INBOX0
783 * @dmub: the dmub service
785 * Clear ACK register for INBOX0
788 * DMUB_STATUS_OK - success
789 * DMUB_STATUS_INVALID - hw_init false or hw function does not exist
791 enum dmub_status dmub_srv_clear_inbox0_ack(struct dmub_srv *dmub);
793 #if defined(__cplusplus)
797 #endif /* _DMUB_SRV_H_ */