forked from edge-core/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Platform][Common Driver]: Sync PMBUS driver from PRs
Why I did it: Testbed test reports related PSU test failed. How I dit it: Sync PMBUS driver from: - sonic-net/sonic-buildimage#13815 - edge-core#6 - edge-core#23 How to verify it: show platform firmware show platform syseeprom show platform psustatus show platform temperature show platform fan
- Loading branch information
tiger_fu
committed
May 3, 2024
1 parent
39a071c
commit 3eca9aa
Showing
11 changed files
with
495 additions
and
122 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as4630-54pe/modules/accton_psu_api.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_api.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as4630-54pe/modules/accton_psu_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_defs.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as5835-54x/modules/accton_psu_api.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_api.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as5835-54x/modules/accton_psu_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_defs.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as7326-56x/modules/accton_psu_api.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_api.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as7326-56x/modules/accton_psu_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_defs.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as7726-32x/modules/accton_psu_api.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_api.h |
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-accton/as7726-32x/modules/accton_psu_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common/modules/accton_psu_defs.h |
29 changes: 29 additions & 0 deletions
29
platform/broadcom/sonic-platform-modules-accton/common/modules/accton_psu_api.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2022 Accton Technology Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* | ||
* Description: | ||
* PSU driver related api declarations | ||
*/ | ||
|
||
#ifndef ACCTON_PSU_API_H | ||
#define ACCTON_PSU_API_H | ||
|
||
#include "accton_psu_defs.h" | ||
|
||
/** Description: | ||
* Register psu status entry, set entry as NULL to unregister | ||
*/ | ||
extern int register_psu_status_entry(PSU_STATUS_ENTRY *entry); | ||
|
||
#endif /* ACCTON_PSU_API_H */ |
28 changes: 28 additions & 0 deletions
28
platform/broadcom/sonic-platform-modules-accton/common/modules/accton_psu_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2022 Accton Technology Corporation. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* | ||
* Description: | ||
* Platform PSU defines/structures header file | ||
*/ | ||
|
||
#ifndef ACCTON_PSU_DEFS_H | ||
#define ACCTON_PSU_DEFS_H | ||
|
||
typedef struct PSU_STATUS_ENTRY | ||
{ | ||
int (*get_presence)(void *client); | ||
int (*get_powergood)(void *client); | ||
} PSU_STATUS_ENTRY; | ||
|
||
#endif /* ACCTON_PSU_DEFS_H */ |
Oops, something went wrong.