Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 1 | /*-------------------------------------------------------------------- |
| 2 | * TITLE: Plasma Hardware Defines |
| 3 | * AUTHOR: Steve Rhoads (rhoadss@yahoo.com) |
| 4 | * DATE CREATED: 12/17/05 |
| 5 | * FILENAME: plasma.h |
| 6 | * PROJECT: Plasma CPU core |
| 7 | * COPYRIGHT: Software placed into the public domain by the author. |
| 8 | * Software 'as is' without warranty. Author liable for nothing. |
| 9 | * DESCRIPTION: |
| 10 | * Plasma Hardware Defines |
| 11 | *--------------------------------------------------------------------*/ |
| 12 | #ifndef __PLASMA_H__ |
| 13 | #define __PLASMA_H__ |
| 14 | |
| 15 | /*********** Hardware addesses ***********/ |
| 16 | #define RAM_INTERNAL_BASE 0x00000000 //8KB |
| 17 | #define RAM_EXTERNAL_BASE 0x10000000 //1MB |
| 18 | #define RAM_EXTERNAL_SIZE 0x00100000 |
| 19 | #define UART_BASE 0x20000000 |
| 20 | #define UART_WRITE 0x20000000 |
| 21 | #define UART_READ 0x20000000 |
| 22 | #define UART_STATUS 0x20000010 |
| 23 | #define IRQ_MASK 0x20000010 |
| 24 | #define IRQ_STATUS 0x20000020 |
| 25 | #define GPIO0_OUT 0x20000030 |
| 26 | #define GPIO0_CLEAR 0x20000040 |
| 27 | #define GPIOA_IN 0x20000050 |
| 28 | #define COUNTER_REG 0x20000060 |
| 29 | #define ETHERNET_REG 0x20000070 |
| 30 | #define FLASH_BASE 0x30000000 |
| 31 | |
| 32 | /*********** GPIO out bits ***************/ |
| 33 | #define ETHERNET_MDIO 0x00200000 |
| 34 | #define ETHERNET_MDIO_WE 0x00400000 |
| 35 | #define ETHERENT_MDC 0x00800000 |
| 36 | #define ETHERNET_ENABLE 0x01000000 |
| 37 | |
| 38 | /*********** Interrupt bits **************/ |
| 39 | #define IRQ_UART_READ_AVAILABLE 0x01 |
| 40 | #define IRQ_UART_WRITE_AVAILABLE 0x02 |
| 41 | #define IRQ_COUNTER18_NOT 0x04 |
| 42 | #define IRQ_COUNTER18 0x08 |
| 43 | #define IRQ_ETHERNET_RECEIVE 0x10 |
| 44 | #define IRQ_ETHERNET_TRANSMIT 0x20 |
| 45 | #define IRQ_GPIO31_NOT 0x40 |
| 46 | #define IRQ_GPIO31 0x80 |
| 47 | |
| 48 | /*********** Ethernet buffers ************/ |
| 49 | #define ETHERNET_RECEIVE 0x13ff0000 |
| 50 | #define ETHERNET_TRANSMIT 0x13fe0000 |
| 51 | |
| 52 | #endif //__PLASMA_H__ |
| 53 | |
| 54 |
Branches:
master
