dp: Compilation reordering for backwards compatibility.
User application may either include xdp.h or xdptx.h to use DisplayPort driver functionality. This is useful when upgrading to an existing application to a newer driver version. Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
cfc2fec774
commit
204d93a1fe
1 changed files with 5 additions and 5 deletions
|
@ -205,7 +205,6 @@
|
||||||
|
|
||||||
/******************************* Include Files ********************************/
|
/******************************* Include Files ********************************/
|
||||||
|
|
||||||
#include "xdptx.h"
|
|
||||||
#include "xil_types.h"
|
#include "xil_types.h"
|
||||||
|
|
||||||
/****************************** Type Definitions ******************************/
|
/****************************** Type Definitions ******************************/
|
||||||
|
@ -247,15 +246,16 @@ typedef struct {
|
||||||
0 = v1.1a, 1 = v1.2. */
|
0 = v1.1a, 1 = v1.2. */
|
||||||
} XDp_Config;
|
} XDp_Config;
|
||||||
|
|
||||||
/* Backwards compatible with dptx. */
|
|
||||||
#define XDptx_Config XDp_Config
|
|
||||||
|
|
||||||
/**************************** Function Prototypes *****************************/
|
/**************************** Function Prototypes *****************************/
|
||||||
|
|
||||||
/* xdp_sinit.c: Configuration extraction function.*/
|
/* xdp_sinit.c: Configuration extraction function.*/
|
||||||
XDp_Config *XDp_LookupConfig(u16 DeviceId);
|
XDp_Config *XDp_LookupConfig(u16 DeviceId);
|
||||||
|
|
||||||
/* Backwards compatible with dptx. */
|
/******************************* Compatibility ********************************/
|
||||||
|
|
||||||
#define XDptx_LookupConfig XDp_LookupConfig
|
#define XDptx_LookupConfig XDp_LookupConfig
|
||||||
|
#define XDptx_Config XDp_Config
|
||||||
|
|
||||||
|
#include "xdptx.h"
|
||||||
|
|
||||||
#endif /* XDP_H_ */
|
#endif /* XDP_H_ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue