Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
N
Networking
Ethernet
EtherTH
Commits
73257005
Commit
73257005
authored
7 years ago
by
John Ballance
Browse files
Options
Download
Email Patches
Plain Diff
Made aware of Service_PreReset. Better control of Phy power on RevD,
Detail: Admin: Version 0.31. Tagged as 'EtherTH-0_31'
parent
f23b4460
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
18 deletions
+23
-18
VersionASM
VersionASM
+6
-6
VersionNum
VersionNum
+10
-10
c/mii
c/mii
+3
-2
c/module
c/module
+4
-0
No files found.
VersionASM
View file @
73257005
...
...
@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.3
0
"
Module_Version SETA 3
0
Module_MajorVersion SETS "0.3
1
"
Module_Version SETA 3
1
Module_MinorVersion SETS ""
Module_Date SETS "
18 Jul
2017"
Module_ApplicationDate SETS "
18-Jul
-17"
Module_Date SETS "
31 Dec
2017"
Module_ApplicationDate SETS "
31-Dec
-17"
Module_ComponentName SETS "EtherTH"
Module_ComponentPath SETS "mixed/RiscOS/Sources/Networking/Ethernet/EtherTH"
Module_FullVersion SETS "0.3
0
"
Module_HelpVersion SETS "0.3
0
(
18 Jul
2017)"
Module_FullVersion SETS "0.3
1
"
Module_HelpVersion SETS "0.3
1
(
31 Dec
2017)"
END
This diff is collapsed.
Click to expand it.
VersionNum
View file @
73257005
/* (0.3
0
)
/* (0.3
1
)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.3
0
#define Module_MajorVersion_CMHG 0.3
1
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG
18 Jul
2017
#define Module_Date_CMHG
31 Dec
2017
#define Module_MajorVersion "0.3
0
"
#define Module_Version 3
0
#define Module_MajorVersion "0.3
1
"
#define Module_Version 3
1
#define Module_MinorVersion ""
#define Module_Date "
18 Jul
2017"
#define Module_Date "
31 Dec
2017"
#define Module_ApplicationDate "
18-Jul
-17"
#define Module_ApplicationDate "
31-Dec
-17"
#define Module_ComponentName "EtherTH"
#define Module_ComponentPath "mixed/RiscOS/Sources/Networking/Ethernet/EtherTH"
#define Module_FullVersion "0.3
0
"
#define Module_HelpVersion "0.3
0
(
18 Jul
2017)"
#define Module_LibraryVersionInfo "0:3
0
"
#define Module_FullVersion "0.3
1
"
#define Module_HelpVersion "0.3
1
(
31 Dec
2017)"
#define Module_LibraryVersionInfo "0:3
1
"
This diff is collapsed.
Click to expand it.
c/mii
View file @
73257005
...
...
@@ -39,11 +39,12 @@ void mii_hardresetPhy(device_t* device)
if
(
device
->
flags
&
DF_I_HAL_HAS_PHY_PWRRST
)
{
/* ensure phy is powered up, and give it a hardware reset pulse */
device
->
hal_device
->
phy
.
PwrRst
(
PhyPwrOn
,
device
->
hal_pw
);
device
->
hal_device
->
phy
.
PwrRst
(
PhyPwrOn
,
(
void
*
)
device
->
hal_pw
);
utils_delay_us
(
500
);
device
->
hal_device
->
phy
.
PwrRst
(
PhyPwrOn
+
PhyHWRst
,(
void
*
)(
device
->
hal_pw
));
utils_delay_us
(
50
);
utils_delay_us
(
50
0
);
device
->
hal_device
->
phy
.
PwrRst
(
PhyPwrOn
,(
void
*
)(
device
->
hal_pw
));
utils_delay_us
(
50
);
/* a decent wait to ensure phy is up and running at thie point*/
}
}
...
...
This diff is collapsed.
Click to expand it.
c/module
View file @
73257005
...
...
@@ -193,6 +193,10 @@ void module_service(int service_number, _kernel_swi_regs *r, void *pw)
switch
(
service_number
)
{
case
Service_PreReset
:
{
/* shut down the module totally */
module_final
(
1
,
0
,
0
);
}
case
Service_MbufManagerStatus
:
switch
(
r
->
r
[
0
])
/* reason code */
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment