| 1 | /* SPDX-License-Identifier: MIT */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Copyright © 2019 Intel Corporation | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef __INTEL_HDCP_H__ | 
|---|
| 7 | #define __INTEL_HDCP_H__ | 
|---|
| 8 |  | 
|---|
| 9 | #include <linux/types.h> | 
|---|
| 10 |  | 
|---|
| 11 | #define HDCP_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS	50 | 
|---|
| 12 |  | 
|---|
| 13 | struct drm_connector; | 
|---|
| 14 | struct drm_connector_state; | 
|---|
| 15 | struct intel_atomic_state; | 
|---|
| 16 | struct intel_connector; | 
|---|
| 17 | struct intel_crtc_state; | 
|---|
| 18 | struct intel_digital_port; | 
|---|
| 19 | struct intel_display; | 
|---|
| 20 | struct intel_encoder; | 
|---|
| 21 | struct intel_hdcp_shim; | 
|---|
| 22 | struct seq_file; | 
|---|
| 23 | enum port; | 
|---|
| 24 |  | 
|---|
| 25 | void intel_hdcp_atomic_check(struct drm_connector *connector, | 
|---|
| 26 | struct drm_connector_state *old_state, | 
|---|
| 27 | struct drm_connector_state *new_state); | 
|---|
| 28 | int intel_hdcp_init(struct intel_connector *connector, | 
|---|
| 29 | struct intel_digital_port *dig_port, | 
|---|
| 30 | const struct intel_hdcp_shim *hdcp_shim); | 
|---|
| 31 | void intel_hdcp_enable(struct intel_atomic_state *state, | 
|---|
| 32 | struct intel_encoder *encoder, | 
|---|
| 33 | const struct intel_crtc_state *pipe_config, | 
|---|
| 34 | const struct drm_connector_state *conn_state); | 
|---|
| 35 | int intel_hdcp_disable(struct intel_connector *connector); | 
|---|
| 36 | void intel_hdcp_cancel_works(struct intel_connector *connector); | 
|---|
| 37 | void intel_hdcp_update_pipe(struct intel_atomic_state *state, | 
|---|
| 38 | struct intel_encoder *encoder, | 
|---|
| 39 | const struct intel_crtc_state *crtc_state, | 
|---|
| 40 | const struct drm_connector_state *conn_state); | 
|---|
| 41 | bool is_hdcp_supported(struct intel_display *display, enum port port); | 
|---|
| 42 | void intel_hdcp_component_init(struct intel_display *display); | 
|---|
| 43 | void intel_hdcp_component_fini(struct intel_display *display); | 
|---|
| 44 | void intel_hdcp_cleanup(struct intel_connector *connector); | 
|---|
| 45 | void intel_hdcp_handle_cp_irq(struct intel_connector *connector); | 
|---|
| 46 |  | 
|---|
| 47 | void intel_hdcp_info(struct seq_file *m, struct intel_connector *connector); | 
|---|
| 48 | void intel_hdcp_connector_debugfs_add(struct intel_connector *connector); | 
|---|
| 49 |  | 
|---|
| 50 | #endif /* __INTEL_HDCP_H__ */ | 
|---|
| 51 |  | 
|---|