Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _ASM_JAZZDMA_H |
| 20 | #define _ASM_JAZZDMA_H |
| 21 | #define VDMA_PAGESIZE 4096 |
| 22 | #define VDMA_PGTBL_ENTRIES 4096 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define VDMA_PGTBL_SIZE (sizeof(VDMA_PGTBL_ENTRY) * VDMA_PGTBL_ENTRIES) |
| 25 | #define VDMA_PAGE_EMPTY 0xff000000 |
| 26 | #define VDMA_PAGE(a) ((unsigned int)(a) >> 12) |
| 27 | #define VDMA_OFFSET(a) ((unsigned int)(a) & (VDMA_PAGESIZE-1)) |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define VDMA_ERROR 0xffffffff |
| 30 | typedef volatile struct VDMA_PGTBL_ENTRY { |
| 31 | unsigned int frame; |
| 32 | unsigned int owner; |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | } VDMA_PGTBL_ENTRY; |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 35 | #define JAZZ_R4030_CHNL_MODE 0xE0000100 |
| 36 | #define JAZZ_R4030_CHNL_ENABLE 0xE0000108 |
| 37 | #define JAZZ_R4030_CHNL_COUNT 0xE0000110 |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 39 | #define JAZZ_R4030_CHNL_ADDR 0xE0000118 |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 40 | #define R4030_CHNL_ENABLE (1<<0) |
| 41 | #define R4030_CHNL_WRITE (1<<1) |
| 42 | #define R4030_TC_INTR (1<<8) |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define R4030_MEM_INTR (1<<9) |
| 45 | #define R4030_ADDR_INTR (1<<10) |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 46 | #define R4030_MODE_ATIME_40 (0) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 47 | #define R4030_MODE_ATIME_80 (1) |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define R4030_MODE_ATIME_120 (2) |
| 50 | #define R4030_MODE_ATIME_160 (3) |
| 51 | #define R4030_MODE_ATIME_200 (4) |
| 52 | #define R4030_MODE_ATIME_240 (5) |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define R4030_MODE_ATIME_280 (6) |
| 55 | #define R4030_MODE_ATIME_320 (7) |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 56 | #define R4030_MODE_WIDTH_8 (1<<3) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 57 | #define R4030_MODE_WIDTH_16 (2<<3) |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define R4030_MODE_WIDTH_32 (3<<3) |
| 60 | #define R4030_MODE_INTR_EN (1<<5) |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 61 | #define R4030_MODE_BURST (1<<6) |
| 62 | #define R4030_MODE_FAST_ACK (1<<7) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #endif |