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
30typedef 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;
35#define JAZZ_R4030_CHNL_MODE 0xE0000100
36#define JAZZ_R4030_CHNL_ENABLE 0xE0000108
37#define JAZZ_R4030_CHNL_COUNT 0xE0000110
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define JAZZ_R4030_CHNL_ADDR 0xE0000118
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)
46#define R4030_MODE_ATIME_40 (0)
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)
56#define R4030_MODE_WIDTH_8 (1<<3)
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)
61#define R4030_MODE_BURST (1<<6)
62#define R4030_MODE_FAST_ACK (1<<7)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#endif
65