pi1.h revision 11cd02dfb91661c65134cac258cf5924270e9d2b
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 _SGI_PI1_H
20#define _SGI_PI1_H
21struct pi1_regs {
22 u8 _data[3];
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 volatile u8 data;
25 u8 _ctrl[3];
26 volatile u8 ctrl;
27#define PI1_CTRL_STROBE_N 0x01
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define PI1_CTRL_AFD_N 0x02
30#define PI1_CTRL_INIT_N 0x04
31#define PI1_CTRL_SLIN_N 0x08
32#define PI1_CTRL_IRQ_ENA 0x10
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define PI1_CTRL_DIR 0x20
35#define PI1_CTRL_SEL 0x40
36 u8 _status[3];
37 volatile u8 status;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define PI1_STAT_DEVID 0x03
40#define PI1_STAT_NOINK 0x04
41#define PI1_STAT_ERROR 0x08
42#define PI1_STAT_ONLINE 0x10
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define PI1_STAT_PE 0x20
45#define PI1_STAT_ACK 0x40
46#define PI1_STAT_BUSY 0x80
47 u8 _dmactrl[3];
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 volatile u8 dmactrl;
50#define PI1_DMACTRL_FIFO_EMPTY 0x01
51#define PI1_DMACTRL_ABORT 0x02
52#define PI1_DMACTRL_STDMODE 0x00
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define PI1_DMACTRL_SGIMODE 0x04
55#define PI1_DMACTRL_RICOHMODE 0x08
56#define PI1_DMACTRL_HPMODE 0x0c
57#define PI1_DMACTRL_BLKMODE 0x10
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define PI1_DMACTRL_FIFO_CLEAR 0x20
60#define PI1_DMACTRL_READ 0x40
61#define PI1_DMACTRL_RUN 0x80
62 u8 _intstat[3];
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 volatile u8 intstat;
65#define PI1_INTSTAT_ACK 0x04
66#define PI1_INTSTAT_FEMPTY 0x08
67#define PI1_INTSTAT_NOINK 0x10
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define PI1_INTSTAT_ONLINE 0x20
70#define PI1_INTSTAT_ERR 0x40
71#define PI1_INTSTAT_PE 0x80
72 u8 _intmask[3];
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 volatile u8 intmask;
75#define PI1_INTMASK_ACK 0x04
76#define PI1_INTMASK_FIFO_EMPTY 0x08
77#define PI1_INTMASK_NOINK 0x10
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define PI1_INTMASK_ONLINE 0x20
80#define PI1_INTMASK_ERR 0x40
81#define PI1_INTMASK_PE 0x80
82 u8 _timer1[3];
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 volatile u8 timer1;
85#define PI1_TIME1 0x27
86 u8 _timer2[3];
87 volatile u8 timer2;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define PI1_TIME2 0x13
90 u8 _timer3[3];
91 volatile u8 timer3;
92#define PI1_TIME3 0x10
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 u8 _timer4[3];
95 volatile u8 timer4;
96#define PI1_TIME4 0x00
97};
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#endif
100