Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
29ff8d49
Commit
29ff8d49
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
ide_write unused => gone
parent
8c4b5fc5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ide.c
+0
-27
0 additions, 27 deletions
ide.c
with
0 additions
and
27 deletions
ide.c
+
0
−
27
View file @
29ff8d49
...
...
@@ -164,30 +164,3 @@ ide_rw(int diskno, uint secno, void *addr, uint nsecs, int read)
release
(
&
ide_lock
);
}
// Synchronous disk write.
int
ide_write
(
int
diskno
,
uint
secno
,
const
void
*
src
,
uint
nsecs
)
{
int
r
;
if
(
nsecs
>
256
)
panic
(
"ide_write"
);
ide_wait_ready
(
0
);
outb
(
0x1F2
,
nsecs
);
outb
(
0x1F3
,
secno
&
0xFF
);
outb
(
0x1F4
,
(
secno
>>
8
)
&
0xFF
);
outb
(
0x1F5
,
(
secno
>>
16
)
&
0xFF
);
outb
(
0x1F6
,
0xE0
|
((
diskno
&
1
)
<<
4
)
|
((
secno
>>
24
)
&
0x0F
));
outb
(
0x1F7
,
0x30
);
// CMD 0x30 means write sector
for
(;
nsecs
>
0
;
nsecs
--
,
src
+=
512
)
{
if
((
r
=
ide_wait_ready
(
1
))
<
0
)
return
r
;
outsl
(
0x1F0
,
src
,
512
/
4
);
}
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment