Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c06e130b
Commit
c06e130b
authored
Apr 07, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] possible way to clean up fdreg.h
parent
808048f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
include/linux/fdreg.h
include/linux/fdreg.h
+5
-11
No files found.
include/linux/fdreg.h
View file @
c06e130b
...
@@ -7,8 +7,12 @@
...
@@ -7,8 +7,12 @@
*/
*/
#ifdef FDPATCHES
#ifdef FDPATCHES
#define FD_IOPORT fdc_state[fdc].address
#define FD_IOPORT fdc_state[fdc].address
#else
/* It would be a lot saner just to force fdc_state[fdc].address to always
be set ! FIXME */
#define FD_IOPORT 0x3f0
#endif
/* Fd controller regs. S&C, about page 340 */
/* Fd controller regs. S&C, about page 340 */
#define FD_STATUS (4 + FD_IOPORT )
#define FD_STATUS (4 + FD_IOPORT )
...
@@ -23,16 +27,6 @@
...
@@ -23,16 +27,6 @@
/* Diskette Control Register (write)*/
/* Diskette Control Register (write)*/
#define FD_DCR (7 + FD_IOPORT )
#define FD_DCR (7 + FD_IOPORT )
#else
#define FD_STATUS 0x3f4
#define FD_DATA 0x3f5
#define FD_DOR 0x3f2
/* Digital Output Register */
#define FD_DIR 0x3f7
/* Digital Input Register (read) */
#define FD_DCR 0x3f7
/* Diskette Control Register (write)*/
#endif
/* Bits of main status register */
/* Bits of main status register */
#define STATUS_BUSYMASK 0x0F
/* drive busy mask */
#define STATUS_BUSYMASK 0x0F
/* drive busy mask */
#define STATUS_BUSY 0x10
/* FDC busy */
#define STATUS_BUSY 0x10
/* FDC busy */
...
...
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