Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm/arise: Update Glenfly Arise drm driver license #509

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 23 additions & 25 deletions drivers/gpu/drm/arise/cbios/CBios.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************



/*****************************************************************************
** DESCRIPTION:
** CBios interface function prototype and parameter definition.
**
** NOTE:
** The interface and structure SHOULD NOT be modified under normal condition.
** If the interface need modify for some special case, please make sure to
** update the code where calls this interface.
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/


#ifndef _CBIOS_H_
Expand Down
45 changes: 23 additions & 22 deletions drivers/gpu/drm/arise/cbios/Callback/CBiosCallbacks.c
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************


/*****************************************************************************
** DESCRIPTION:
** CBios hw independent callback function implementation.
**
** NOTE:
** The hw dependent callback function SHOULD NOT be added to this file.
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/


#include "CBiosCallbacks.h"
Expand Down
45 changes: 23 additions & 22 deletions drivers/gpu/drm/arise/cbios/Callback/CBiosCallbacks.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************


/*****************************************************************************
** DESCRIPTION:
** CBios hw independent callback function prototype.
**
** NOTE:
** The hw dependent callback function SHOULD NOT be added to this file.
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/

#ifndef _CBIOS_CALLBACKS_H_
#define _CBIOS_CALLBACKS_H_
Expand Down
65 changes: 22 additions & 43 deletions drivers/gpu/drm/arise/cbios/Device/CBIOSVER.H
Original file line number Diff line number Diff line change
@@ -1,47 +1,26 @@
/*
* Copyright 2019-2020 Shanghai Zhaoxin Semiconductor Co., Ltd. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sub license,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
* THE AUTHOR(S) OR COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/


//
// ZXG_MAJOR_VERSION and ZXG_MINOR_VERSION are used to define DRIVER_VERSION
// which is used in the .rc files.
//
// Please keep the ZXG_MINOR_VERSION to 4 decimal digits
//
//
// DX_DRIVER_PREFIX_VERSION is the number specified in the DriverVer
// directive of the .INF file, and indicates operating system and
// the driver's level of DirectX support. E.g. 5.12.01.xxxx is an
// NT5 (Win2000) DX7 driver. The last four digits are for driver use.
// The entire number (DX prefix + driver number) must be unique among
// WHQL submissions.
//

//
// WARNING: Do NOT use leading zeroes in the ZXG_MINOR_VERSION_NUM!
// Or you'll find that '08' gets treated as an octal signal!
//

* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/

#define CBIOS_VERSION_MAJOR 10 /* Branch CBios code */
#define CBIOS_VERSION_BRANCH 17 /* Big change such as structure modification */
Expand Down
47 changes: 23 additions & 24 deletions drivers/gpu/drm/arise/cbios/Device/CBiosChipShare.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************


/*****************************************************************************
** DESCRIPTION:
** CBios function prototypes in Init/Utility files
** Defines CBIOS_EXTENSION_COMMON and VCP_INFO
** Defines macro for sharing used.
**
** NOTE:
** The sharing used structure is SUGGESTED to be add to CBiosTypes.h
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/

#ifndef _CBIOS_CHIPSHARE_H_
#define _CBIOS_CHIPSHARE_H_
Expand Down
46 changes: 23 additions & 23 deletions drivers/gpu/drm/arise/cbios/Device/CBiosCompile.h
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************



/*****************************************************************************
** DESCRIPTION:
** CBios compile switch for some monitor, port or feature supported.
**
** NOTE:
**
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/

#ifndef _CBIOS_COMPILE_H_
#define _CBIOS_COMPILE_H_
Expand Down
45 changes: 23 additions & 22 deletions drivers/gpu/drm/arise/cbios/Device/CBiosDevice.c
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
//*****************************************************************************
// Copyright (c) 2021 Glenfly Tech Co., Ltd..
// All Rights Reserved.
//
// This is UNPUBLISHED PROPRIETARY SOURCE CODE of Glenfly Tech Co., Ltd..;
// the contents of this file may not be disclosed to third parties, copied or
// duplicated in any form, in whole or in part, without the prior written
// permission of Glenfly Tech Co., Ltd..
//
// The copyright of the source code is protected by the copyright laws of the People's
// Republic of China and the related laws promulgated by the People's Republic of China
// and the international covenant(s) ratified by the People's Republic of China.
//*****************************************************************************


/*****************************************************************************
** DESCRIPTION:
** CBios general device port functions. Call different port or monitor interface.
**
** NOTE:
**
******************************************************************************/
/*
* Copyright © 2021 Glenfly Tech Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/

#include "CBiosChipShare.h"
#include "../Hw/HwBlock/CBiosDIU_DP.h"
Expand Down
Loading
Loading