Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
08eaabfc
Commit
08eaabfc
authored
19 years ago
by
Ilya A. Volynets-Evenbakh
Committed by
Ralf Baechle
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
O2 parport definitions
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
6a4dea1d
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/asm-mips/ip32/mace.h
+25
-1
25 additions, 1 deletion
include/asm-mips/ip32/mace.h
with
25 additions
and
1 deletion
include/asm-mips/ip32/mace.h
+
25
−
1
View file @
08eaabfc
...
...
@@ -147,6 +147,29 @@ struct mace_audio {
}
chan
[
3
];
};
/* register definitions for parallel port DMA */
struct
mace_parport
{
/* 0 - do nothing, 1 - pulse terminal count to the device after buffer is drained */
#define MACEPAR_CONTEXT_LASTFLAG BIT(63)
/* Should not cross 4K page boundary */
#define MACEPAR_CONTEXT_DATALEN_MASK 0xfff00000000
/* Can be arbitrarily aligned on any byte boundary on output, 64 byte aligned on input */
#define MACEPAR_CONTEXT_BASEADDR_MASK 0xffffffff
volatile
u64
context_a
;
volatile
u64
context_b
;
#define MACEPAR_CTLSTAT_DIRECTION BIT(0)
/* 0 - mem->device, 1 - device->mem */
#define MACEPAR_CTLSTAT_ENABLE BIT(1)
/* 0 - channel frozen, 1 - channel enabled */
#define MACEPAR_CTLSTAT_RESET BIT(2)
/* 0 - channel active, 1 - complete channel reset */
#define MACEPAR_CTLSTAT_CTXB_VALID BIT(3)
#define MACEPAR_CTLSTAT_CTXA_VALID BIT(4)
volatile
u64
cntlstat
;
/* Control/Status register */
#define MACEPAR_DIAG_CTXINUSE BIT(1)
#define MACEPAR_DIAG_DMACTIVE BIT(2)
/* 1 - Dma engine is enabled and processing something */
#define MACEPAR_DIAG_CTRMASK 0x3ffc
/* Counter of bytes left */
volatile
u64
diagnostic
;
/* RO: diagnostic register */
};
/* ISA Control and DMA registers */
struct
mace_isactrl
{
volatile
unsigned
long
ringbase
;
...
...
@@ -199,6 +222,7 @@ struct mace_isactrl {
volatile
unsigned
long
_pad
[
0x2000
/
8
-
4
];
volatile
unsigned
long
dp_ram
[
0x400
];
struct
mace_parport
parport
;
};
/* Keyboard & Mouse registers
...
...
@@ -277,7 +301,7 @@ struct mace_perif {
*/
/* Parallel port */
struct
mace_parallel
{
/* later... */
struct
mace_parallel
{
};
struct
mace_ecp1284
{
/* later... */
...
...
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