aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-09-06 16:27:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-09-06 16:27:37 +0000
commit92558d67a463bfbb351d30e28648de03b635f024 (patch)
treea5d41b991a151e72663527a96fbc6c494565d65c /target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h
parente1dbce411cd2a3a067f387cee011cd889486a07d (diff)
downloadmaster-187ad058-92558d67a463bfbb351d30e28648de03b635f024.tar.gz
master-187ad058-92558d67a463bfbb351d30e28648de03b635f024.tar.bz2
master-187ad058-92558d67a463bfbb351d30e28648de03b635f024.zip
strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h')
-rw-r--r--target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h b/target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h
deleted file mode 100644
index cb3d456c95..0000000000
--- a/target/linux/amazon-2.6/files/arch/mips/amazon/dma-core.h
+++ /dev/null
@@ -1,69 +0,0 @@
-#ifndef DMA_CORE_H
-#define DMA_CORE_H
-
-#define AMAZON_DMA_REG32(reg_num) *((volatile u32*)(reg_num))
-#define AMAZON_DMA_CH_STEP 4
-
-#define COMB_ISR_RX_MASK 0xfe000000
-#define COMB_ISR_TX_MASK 0x01f00000
-
-
-#define DMA_OWN 1
-#define CPU_OWN 0
-#define DMA_MAJOR 250
-
-//Descriptors
-#define DMA_DESC_OWN_CPU 0x0
-#define DMA_DESC_OWN_DMA 0x80000000
-#define DMA_DESC_CPT_SET 0x40000000
-#define DMA_DESC_SOP_SET 0x20000000
-#define DMA_DESC_EOP_SET 0x10000000
-
-#define switch_rx_chan_base 0
-#define switch_tx_chan_base 7
-#define switch2_rx_chan_base 2
-#define switch2_tx_chan_base 8
-#define TPE_rx_chan_base 4
-#define TPE_tx_chan_base 9
-#define DPLus2FPI_rx_chan_base 6
-#define DPLus2FPI_tx_chan_base 11
-
-#define RX_CHAN_NUM 7
-#define TX_CHAN_NUM 5
-#define CHAN_TOTAL_NUM (RX_CHAN_NUM+TX_CHAN_NUM)
-#define DEFAULT_OFFSET 20
-#define DESCRIPTOR_SIZE 8
-
-typedef struct dev_list{
- struct dma_device_info* dev;
- int weight;
- struct dev_list* prev;
- struct dev_list* next;
-}dev_list;
-
-typedef struct channel_info{
- char device_name[16];
- int occupied;
- enum attr_t attr;
- int current_desc;
- int weight;
- int default_weight;
- int desc_num;
- int burst_len;
- int desc_len;
- int desc_ofst;
- int packet_size;
- int offset_from_base;
- int control;
- void* opt[DEFAULT_OFFSET];
- u8* (*buffer_alloc)(int len,int* offset, void** opt);
- int (*buffer_free)(u8* dataptr,void* opt);
- int (*intr_handler)(struct dma_device_info* info,int status);
-
- struct dma_device_info* dma_dev;
-}channel_info;
-
-
-
-#endif
-