-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add support for Iceriver KS5 and submodels
- Loading branch information
1 parent
14533ce
commit 6c09175
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
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,36 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Copyright 2024 Upstream Data Inc - | ||
# - | ||
# Licensed under the Apache License, Version 2.0 (the "License"); - | ||
# you may not use this file except in compliance with the License. - | ||
# You may obtain a copy of the License at - | ||
# - | ||
# http://www.apache.org/licenses/LICENSE-2.0 - | ||
# - | ||
# Unless required by applicable law or agreed to in writing, software - | ||
# distributed under the License is distributed on an "AS IS" BASIS, - | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - | ||
# See the License for the specific language governing permissions and - | ||
# limitations under the License. - | ||
# ------------------------------------------------------------------------------ | ||
from pyasic.device.models import MinerModel | ||
from pyasic.miners.device.makes import IceRiverMake | ||
|
||
|
||
class KS5(IceRiverMake): | ||
raw_model = MinerModel.ICERIVER.KS5 | ||
|
||
expected_fans = 4 | ||
|
||
|
||
class KS5L(IceRiverMake): | ||
raw_model = MinerModel.ICERIVER.KS5L | ||
|
||
expected_fans = 4 | ||
expected_chips = 18 | ||
|
||
|
||
class KS5M(IceRiverMake): | ||
raw_model = MinerModel.ICERIVER.KS5M | ||
|
||
expected_fans = 4 |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
from .KS1 import KS1 | ||
from .KS2 import KS2 | ||
from .KS3 import KS3, KS3L, KS3M | ||
from .KS5 import KS5, KS5L, KS5M |
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
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,14 @@ | ||
from pyasic.miners.backends.iceriver import IceRiver | ||
from pyasic.miners.device.models.iceriver import KS5, KS5L, KS5M | ||
|
||
|
||
class IceRiverKS5(IceRiver, KS5): | ||
pass | ||
|
||
|
||
class IceRiverKS5L(IceRiver, KS5L): | ||
pass | ||
|
||
|
||
class IceRiverKS5M(IceRiver, KS5M): | ||
pass |
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