URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1633 |
Rev 1765 |
#ifndef __ASM_ARCH_DMA_H
|
#ifndef __ASM_ARCH_DMA_H
|
#define __ASM_ARCH_DMA_H
|
#define __ASM_ARCH_DMA_H
|
|
|
/*
|
/*
|
* This is the maximum DMA address that can be DMAd to.
|
* This is the maximum DMA address that can be DMAd to.
|
* There should not be more than (0xd0000000 - 0xc0000000)
|
* There should not be more than (0xd0000000 - 0xc0000000)
|
* bytes of RAM.
|
* bytes of RAM.
|
*/
|
*/
|
#define MAX_DMA_ADDRESS 0xd0000000
|
#define MAX_DMA_ADDRESS 0xd0000000
|
|
|
/*
|
/*
|
* DMA modes - we have two, IN and OUT
|
* DMA modes - we have two, IN and OUT
|
*/
|
*/
|
typedef enum {
|
typedef enum {
|
DMA_MODE_READ,
|
DMA_MODE_READ,
|
DMA_MODE_WRITE
|
DMA_MODE_WRITE
|
} dmamode_t;
|
} dmamode_t;
|
|
|
#define MAX_DMA_CHANNELS 8
|
#define MAX_DMA_CHANNELS 8
|
|
|
#define DMA_0 0
|
#define DMA_0 0
|
#define DMA_1 1
|
#define DMA_1 1
|
#define DMA_2 2
|
#define DMA_2 2
|
#define DMA_3 3
|
#define DMA_3 3
|
#define DMA_S0 4
|
#define DMA_S0 4
|
#define DMA_S1 5
|
#define DMA_S1 5
|
#define DMA_VIRTUAL_FLOPPY 6
|
#define DMA_VIRTUAL_FLOPPY 6
|
#define DMA_VIRTUAL_SOUND 7
|
#define DMA_VIRTUAL_SOUND 7
|
|
|
#define DMA_FLOPPY DMA_VIRTUAL_FLOPPY
|
#define DMA_FLOPPY DMA_VIRTUAL_FLOPPY
|
|
|
#endif /* _ASM_ARCH_DMA_H */
|
#endif /* _ASM_ARCH_DMA_H */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.