16986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/**************************************************************************** 26986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh **************************************************************************** 36986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** 46986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** This header was automatically generated from a Linux kernel header 56986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** of the same name, to make information necessary for userspace to 66986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** call into the kernel available to libc. It contains only constants, 76986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** structures, and macros generated from the original header, and thus, 86986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** contains no copyrightable information. 96986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** 106986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** To edit the content of this header, modify the corresponding 116986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** source file (e.g. under external/kernel-headers/original/) then 126986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** run bionic/libc/kernel/tools/update_all.py 136986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** 146986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** Any manual change here will be lost the next time this script will 156986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** be run. You've been warned! 166986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh *** 176986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh **************************************************************************** 186986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh ****************************************************************************/ 196986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#ifndef _SGI_HPC3_H 206986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define _SGI_HPC3_H 216986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#include <linux/types.h> 226986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#include <asm/page.h> 236986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 246986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsiehstruct hpc_dma_desc { 256986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 pbuf; 266986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 cntinfo; 276986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_EOX 0x80000000 286986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 296986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_EOR 0x80000000 306986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_EOXP 0x40000000 316986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_EORP 0x40000000 326986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_XIE 0x20000000 336986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 346986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_XIU 0x01000000 356986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_EIPC 0x00ff0000 366986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_ETXD 0x00008000 376986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_OWN 0x00004000 386986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 396986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPCDMA_BCNT 0x00003fff 406986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 pnext; 416986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh}; 426986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsiehstruct hpc3_pbus_dmacregs { 436986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 446986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbdma_bptr; 456986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbdma_dptr; 466986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused0[0x1000/4 - 2]; 476986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbdma_ctrl; 486986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 496986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_INT 0x00000001 506986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_ISACT 0x00000002 516986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_SEL 0x00000002 526986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_RCV 0x00000004 536986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 546986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_FLSH 0x00000008 556986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_ACT 0x00000010 566986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_LD 0x00000020 576986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_RT 0x00000040 586986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 596986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_HW 0x0000ff00 606986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_FB 0x003f0000 616986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PDMACTRL_FE 0x3f000000 626986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused1[0x1000/4 - 1]; 636986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 646986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh}; 656986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsiehstruct hpc3_scsiregs { 666986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 cbptr; 676986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 ndptr; 686986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 696986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused0[0x1000/4 - 2]; 706986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 bcd; 716986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SBCD_BCNTMSK 0x00003fff 726986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SBCD_XIE 0x00004000 736986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 746986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SBCD_EOX 0x00008000 756986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 ctrl; 766986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_IRQ 0x01 776986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_ENDIAN 0x02 786986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 796986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_DIR 0x04 806986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_FLUSH 0x08 816986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_ACTIVE 0x10 826986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_AMASK 0x20 836986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 846986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_CRESET 0x40 856986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SCTRL_PERR 0x80 866986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 gfptr; 876986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 dfptr; 886986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 896986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 dconfig; 906986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_HCLK 0x00001 916986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_D1 0x00006 926986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_D2 0x00038 936986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 946986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_D3 0x001c0 956986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_HWAT 0x00e00 966986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_HW 0x01000 976986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_SWAP 0x02000 986986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 996986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_EPAR 0x04000 1006986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_POLL 0x08000 1016986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SDCFG_ERLY 0x30000 1026986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pconfig; 1036986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1046986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_P3 0x0003 1056986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_P2W 0x001c 1066986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_P2R 0x01e0 1076986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_P1 0x0e00 1086986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1096986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_HW 0x1000 1106986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_SWAP 0x2000 1116986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_EPAR 0x4000 1126986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_SPCFG_FUJI 0x8000 1136986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1146986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused1[0x1000/4 - 6]; 1156986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh}; 1166986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsiehstruct hpc3_ethregs { 1176986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_cbptr; 1186986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1196986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_ndptr; 1206986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused0[0x1000/4 - 2]; 1216986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_bcd; 1226986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXBCD_BCNTMSK 0x00003fff 1236986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1246986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXBCD_XIE 0x20000000 1256986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXBCD_EOX 0x80000000 1266986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_ctrl; 1276986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_STAT50 0x0000003f 1286986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1296986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_STAT6 0x00000040 1306986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_STAT7 0x00000080 1316986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_ENDIAN 0x00000100 1326986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_ACTIVE 0x00000200 1336986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1346986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_AMASK 0x00000400 1356986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERXCTRL_RBO 0x00000800 1366986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_gfptr; 1376986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rx_dfptr; 1386986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1396986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused1; 1406986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 reset; 1416986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERST_CRESET 0x1 1426986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERST_CLRIRQ 0x2 1436986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1446986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ERST_LBACK 0x4 1456986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 dconfig; 1466986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_D1 0x0000f 1476986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_D2 0x000f0 1486986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1496986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_D3 0x00f00 1506986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_WCTRL 0x01000 1516986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_FRXDC 0x02000 1526986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_FEOP 0x04000 1536986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1546986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_FIRQ 0x08000 1556986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EDCFG_PTO 0x30000 1566986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pconfig; 1576986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EPCFG_P1 0x000f 1586986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1596986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EPCFG_P2 0x00f0 1606986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EPCFG_P3 0x0f00 1616986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EPCFG_TST 0x1000 1626986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused2[0x1000/4 - 8]; 1636986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1646986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_cbptr; 1656986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_ndptr; 1666986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused3[0x1000/4 - 2]; 1676986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_bcd; 1686986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1696986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXBCD_BCNTMSK 0x00003fff 1706986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXBCD_ESAMP 0x10000000 1716986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXBCD_XIE 0x20000000 1726986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXBCD_EOP 0x40000000 1736986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1746986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXBCD_EOX 0x80000000 1756986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_ctrl; 1766986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_STAT30 0x0000000f 1776986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_STAT4 0x00000010 1786986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1796986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_STAT75 0x000000e0 1806986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_ENDIAN 0x00000100 1816986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_ACTIVE 0x00000200 1826986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ETXCTRL_AMASK 0x00000400 1836986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1846986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_gfptr; 1856986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 tx_dfptr; 1866986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused4[0x1000/4 - 4]; 1876986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh}; 1886986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1896986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsiehstruct hpc3_regs { 1906986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh struct hpc3_pbus_dmacregs pbdma[8]; 1916986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh struct hpc3_scsiregs scsi_chan0, scsi_chan1; 1926986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh struct hpc3_ethregs ethregs; 1936986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1946986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused0[0x18000/4]; 1956986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 istat0; 1966986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ISTAT_PBIMASK 0x0ff 1976986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ISTAT_SC0MASK 0x100 1986986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1996986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_ISTAT_SC1MASK 0x200 2006986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 gio_misc; 2016986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_GIOMISC_ERTIME 0x1 2026986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_GIOMISC_DENDIAN 0x2 2036986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2046986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 eeprom; 2056986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EEPROM_EPROT 0x01 2066986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EEPROM_CSEL 0x02 2076986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EEPROM_ECLK 0x04 2086986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2096986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EEPROM_DATO 0x08 2106986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_EEPROM_DATI 0x10 2116986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 istat1; 2126986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 bestat; 2136986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2146986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_BESTAT_BLMASK 0x000ff 2156986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_BESTAT_CTYPE 0x00100 2166986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_BESTAT_PIDSHIFT 9 2176986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_BESTAT_PIDMASK 0x3f700 2186986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2196986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused1[0x14000/4 - 5]; 2206986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 scsi0_ext[256]; 2216986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused2[0x7c00/4]; 2226986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 scsi1_ext[256]; 2236986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2246986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused3[0x7c00/4]; 2256986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 eth_ext[320]; 2266986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused4[0x3b00/4]; 2276986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_extregs[16][256]; 2286986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2296986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_dmacfg[8][128]; 2306986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D3R_MASK 0x00000001 2316986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D3R_SHIFT 0 2326986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D4R_MASK 0x0000001e 2336986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2346986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D4R_SHIFT 1 2356986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D5R_MASK 0x000001e0 2366986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D5R_SHIFT 5 2376986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D3W_MASK 0x00000200 2386986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2396986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D3W_SHIFT 9 2406986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D4W_MASK 0x00003c00 2416986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D4W_SHIFT 10 2426986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D5W_MASK 0x0003c000 2436986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2446986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_D5W_SHIFT 14 2456986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_DS16 0x00040000 2466986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_EVENHI 0x00080000 2476986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_RTIME 0x00200000 2486986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2496986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_BURST_MASK 0x07c00000 2506986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_BURST_SHIFT 22 2516986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_DMACFG_DRQLIVE 0x08000000 2526986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_piocfg[16][64]; 2536986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2546986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P2R_MASK 0x00001 2556986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P2R_SHIFT 0 2566986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P3R_MASK 0x0001e 2576986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P3R_SHIFT 1 2586986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2596986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P4R_MASK 0x001e0 2606986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P4R_SHIFT 5 2616986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P2W_MASK 0x00200 2626986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P2W_SHIFT 9 2636986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2646986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P3W_MASK 0x03c00 2656986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P3W_SHIFT 10 2666986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P4W_MASK 0x3c000 2676986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_P4W_SHIFT 14 2686986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2696986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_DS16 0x40000 2706986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PIOCFG_EVENHI 0x80000 2716986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_promwe; 2726986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PROM_WENAB 0x1 2736986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2746986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused5[0x0800/4 - 1]; 2756986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_promswap; 2766986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PROM_SWAP 0x1 2776986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused6[0x0800/4 - 1]; 2786986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2796986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 pbus_gout; 2806986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_PROM_STAT 0x1 2816986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused7[0x1000/4 - 1]; 2826986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 rtcregs[14]; 2836986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2846986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh u32 _unused8[50]; 2856986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh volatile u32 bbram[8192-50-14]; 2866986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh}; 2876986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_CHIP0_BASE 0x1fb80000 2886986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2896986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#define HPC3_CHIP1_BASE 0x1fb00000 2906986c6e7f06bb3bdedfc3bb08694da9b1227048cAndrew Hsieh#endif 291