Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
drivers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MLA98
drivers
Commits
329750af
Commit
329750af
authored
Mar 10, 2018
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug prints
parent
5bccc801
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
ahcid/src/ahci/hba.rs
ahcid/src/ahci/hba.rs
+0
-1
rtl8168d/src/device.rs
rtl8168d/src/device.rs
+0
-4
No files found.
ahcid/src/ahci/hba.rs
View file @
329750af
...
@@ -140,7 +140,6 @@ impl HbaPort {
...
@@ -140,7 +140,6 @@ impl HbaPort {
// Shared between identify() and identify_packet()
// Shared between identify() and identify_packet()
unsafe
fn
identify_inner
(
&
mut
self
,
cmd
:
u8
,
clb
:
&
mut
Dma
<
[
HbaCmdHeader
;
32
]
>
,
ctbas
:
&
mut
[
Dma
<
HbaCmdTable
>
;
32
])
->
Option
<
u64
>
{
unsafe
fn
identify_inner
(
&
mut
self
,
cmd
:
u8
,
clb
:
&
mut
Dma
<
[
HbaCmdHeader
;
32
]
>
,
ctbas
:
&
mut
[
Dma
<
HbaCmdTable
>
;
32
])
->
Option
<
u64
>
{
let
dest
:
Dma
<
[
u16
;
256
]
>
=
Dma
::
new
([
0
;
256
])
.unwrap
();
let
dest
:
Dma
<
[
u16
;
256
]
>
=
Dma
::
new
([
0
;
256
])
.unwrap
();
let
res
=
self
.ata_dma
(
clb
,
ctbas
,
|
cmdheader
,
cmdfis
,
prdt_entries
,
_
acmd
|
{
let
res
=
self
.ata_dma
(
clb
,
ctbas
,
|
cmdheader
,
cmdfis
,
prdt_entries
,
_
acmd
|
{
...
...
rtl8168d/src/device.rs
View file @
329750af
...
@@ -113,8 +113,6 @@ impl SchemeMut for Rtl8168 {
...
@@ -113,8 +113,6 @@ impl SchemeMut for Rtl8168 {
let
eor
=
rd
.ctrl
.read
()
&
EOR
;
let
eor
=
rd
.ctrl
.read
()
&
EOR
;
rd
.ctrl
.write
(
OWN
|
eor
|
data
.len
()
as
u32
);
rd
.ctrl
.write
(
OWN
|
eor
|
data
.len
()
as
u32
);
print!
(
"{}"
,
format!
(
"rtl8168d: read {}: {}
\n
"
,
self
.receive_i
,
i
));
self
.receive_i
+=
1
;
self
.receive_i
+=
1
;
return
Ok
(
i
);
return
Ok
(
i
);
...
@@ -152,8 +150,6 @@ impl SchemeMut for Rtl8168 {
...
@@ -152,8 +150,6 @@ impl SchemeMut for Rtl8168 {
thread
::
yield_now
();
thread
::
yield_now
();
}
}
print!
(
"{}"
,
format!
(
"rtl8168d: write {}: {}
\n
"
,
self
.transmit_i
,
i
));
self
.transmit_i
+=
1
;
self
.transmit_i
+=
1
;
return
Ok
(
i
);
return
Ok
(
i
);
...
...
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