162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Definitions for the SGI MACE (Multimedia, Audio and Communications Engine)
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
562306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
662306a36Sopenharmony_ci * for more details.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (C) 2000 Harald Koerfgen
962306a36Sopenharmony_ci * Copyright (C) 2004 Ladislav Michl
1062306a36Sopenharmony_ci */
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#ifndef __ASM_MACE_H__
1362306a36Sopenharmony_ci#define __ASM_MACE_H__
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/*
1662306a36Sopenharmony_ci * Address map
1762306a36Sopenharmony_ci */
1862306a36Sopenharmony_ci#define MACE_BASE	0x1f000000	/* physical */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci/*
2162306a36Sopenharmony_ci * PCI interface
2262306a36Sopenharmony_ci */
2362306a36Sopenharmony_cistruct mace_pci {
2462306a36Sopenharmony_ci	volatile unsigned int error_addr;
2562306a36Sopenharmony_ci	volatile unsigned int error;
2662306a36Sopenharmony_ci#define MACEPCI_ERROR_MASTER_ABORT		BIT(31)
2762306a36Sopenharmony_ci#define MACEPCI_ERROR_TARGET_ABORT		BIT(30)
2862306a36Sopenharmony_ci#define MACEPCI_ERROR_DATA_PARITY_ERR		BIT(29)
2962306a36Sopenharmony_ci#define MACEPCI_ERROR_RETRY_ERR			BIT(28)
3062306a36Sopenharmony_ci#define MACEPCI_ERROR_ILLEGAL_CMD		BIT(27)
3162306a36Sopenharmony_ci#define MACEPCI_ERROR_SYSTEM_ERR		BIT(26)
3262306a36Sopenharmony_ci#define MACEPCI_ERROR_INTERRUPT_TEST		BIT(25)
3362306a36Sopenharmony_ci#define MACEPCI_ERROR_PARITY_ERR		BIT(24)
3462306a36Sopenharmony_ci#define MACEPCI_ERROR_OVERRUN			BIT(23)
3562306a36Sopenharmony_ci#define MACEPCI_ERROR_RSVD			BIT(22)
3662306a36Sopenharmony_ci#define MACEPCI_ERROR_MEMORY_ADDR		BIT(21)
3762306a36Sopenharmony_ci#define MACEPCI_ERROR_CONFIG_ADDR		BIT(20)
3862306a36Sopenharmony_ci#define MACEPCI_ERROR_MASTER_ABORT_ADDR_VALID	BIT(19)
3962306a36Sopenharmony_ci#define MACEPCI_ERROR_TARGET_ABORT_ADDR_VALID	BIT(18)
4062306a36Sopenharmony_ci#define MACEPCI_ERROR_DATA_PARITY_ADDR_VALID	BIT(17)
4162306a36Sopenharmony_ci#define MACEPCI_ERROR_RETRY_ADDR_VALID		BIT(16)
4262306a36Sopenharmony_ci#define MACEPCI_ERROR_SIG_TABORT		BIT(4)
4362306a36Sopenharmony_ci#define MACEPCI_ERROR_DEVSEL_MASK		0xc0
4462306a36Sopenharmony_ci#define MACEPCI_ERROR_DEVSEL_FAST		0
4562306a36Sopenharmony_ci#define MACEPCI_ERROR_DEVSEL_MED		0x40
4662306a36Sopenharmony_ci#define MACEPCI_ERROR_DEVSEL_SLOW		0x80
4762306a36Sopenharmony_ci#define MACEPCI_ERROR_FBB			BIT(1)
4862306a36Sopenharmony_ci#define MACEPCI_ERROR_66MHZ			BIT(0)
4962306a36Sopenharmony_ci	volatile unsigned int control;
5062306a36Sopenharmony_ci#define MACEPCI_CONTROL_INT(x)			BIT(x)
5162306a36Sopenharmony_ci#define MACEPCI_CONTROL_INT_MASK		0xff
5262306a36Sopenharmony_ci#define MACEPCI_CONTROL_SERR_ENA		BIT(8)
5362306a36Sopenharmony_ci#define MACEPCI_CONTROL_ARB_N6			BIT(9)
5462306a36Sopenharmony_ci#define MACEPCI_CONTROL_PARITY_ERR		BIT(10)
5562306a36Sopenharmony_ci#define MACEPCI_CONTROL_MRMRA_ENA		BIT(11)
5662306a36Sopenharmony_ci#define MACEPCI_CONTROL_ARB_N3			BIT(12)
5762306a36Sopenharmony_ci#define MACEPCI_CONTROL_ARB_N4			BIT(13)
5862306a36Sopenharmony_ci#define MACEPCI_CONTROL_ARB_N5			BIT(14)
5962306a36Sopenharmony_ci#define MACEPCI_CONTROL_PARK_LIU		BIT(15)
6062306a36Sopenharmony_ci#define MACEPCI_CONTROL_INV_INT(x)		BIT(16+x)
6162306a36Sopenharmony_ci#define MACEPCI_CONTROL_INV_INT_MASK		0x00ff0000
6262306a36Sopenharmony_ci#define MACEPCI_CONTROL_OVERRUN_INT		BIT(24)
6362306a36Sopenharmony_ci#define MACEPCI_CONTROL_PARITY_INT		BIT(25)
6462306a36Sopenharmony_ci#define MACEPCI_CONTROL_SERR_INT		BIT(26)
6562306a36Sopenharmony_ci#define MACEPCI_CONTROL_IT_INT			BIT(27)
6662306a36Sopenharmony_ci#define MACEPCI_CONTROL_RE_INT			BIT(28)
6762306a36Sopenharmony_ci#define MACEPCI_CONTROL_DPED_INT		BIT(29)
6862306a36Sopenharmony_ci#define MACEPCI_CONTROL_TAR_INT			BIT(30)
6962306a36Sopenharmony_ci#define MACEPCI_CONTROL_MAR_INT			BIT(31)
7062306a36Sopenharmony_ci	volatile unsigned int rev;
7162306a36Sopenharmony_ci	unsigned int _pad[0xcf8/4 - 4];
7262306a36Sopenharmony_ci	volatile unsigned int config_addr;
7362306a36Sopenharmony_ci	union {
7462306a36Sopenharmony_ci		volatile unsigned char b[4];
7562306a36Sopenharmony_ci		volatile unsigned short w[2];
7662306a36Sopenharmony_ci		volatile unsigned int l;
7762306a36Sopenharmony_ci	} config_data;
7862306a36Sopenharmony_ci};
7962306a36Sopenharmony_ci#define MACEPCI_LOW_MEMORY		0x1a000000
8062306a36Sopenharmony_ci#define MACEPCI_LOW_IO			0x18000000
8162306a36Sopenharmony_ci#define MACEPCI_SWAPPED_VIEW		0
8262306a36Sopenharmony_ci#define MACEPCI_NATIVE_VIEW		0x40000000
8362306a36Sopenharmony_ci#define MACEPCI_IO			0x80000000
8462306a36Sopenharmony_ci#define MACEPCI_HI_MEMORY		0x280000000
8562306a36Sopenharmony_ci#define MACEPCI_HI_IO			0x100000000
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci/*
8862306a36Sopenharmony_ci * Video interface
8962306a36Sopenharmony_ci */
9062306a36Sopenharmony_cistruct mace_video {
9162306a36Sopenharmony_ci	unsigned long xxx;	/* later... */
9262306a36Sopenharmony_ci};
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ci/*
9562306a36Sopenharmony_ci * Ethernet interface
9662306a36Sopenharmony_ci */
9762306a36Sopenharmony_cistruct mace_ethernet {
9862306a36Sopenharmony_ci	volatile u64 mac_ctrl;
9962306a36Sopenharmony_ci	volatile unsigned long int_stat;
10062306a36Sopenharmony_ci	volatile unsigned long dma_ctrl;
10162306a36Sopenharmony_ci	volatile unsigned long timer;
10262306a36Sopenharmony_ci	volatile unsigned long tx_int_al;
10362306a36Sopenharmony_ci	volatile unsigned long rx_int_al;
10462306a36Sopenharmony_ci	volatile unsigned long tx_info;
10562306a36Sopenharmony_ci	volatile unsigned long tx_info_al;
10662306a36Sopenharmony_ci	volatile unsigned long rx_buff;
10762306a36Sopenharmony_ci	volatile unsigned long rx_buff_al1;
10862306a36Sopenharmony_ci	volatile unsigned long rx_buff_al2;
10962306a36Sopenharmony_ci	volatile unsigned long diag;
11062306a36Sopenharmony_ci	volatile unsigned long phy_data;
11162306a36Sopenharmony_ci	volatile unsigned long phy_regs;
11262306a36Sopenharmony_ci	volatile unsigned long phy_trans_go;
11362306a36Sopenharmony_ci	volatile unsigned long backoff_seed;
11462306a36Sopenharmony_ci	/*===================================*/
11562306a36Sopenharmony_ci	volatile unsigned long imq_reserved[4];
11662306a36Sopenharmony_ci	volatile unsigned long mac_addr;
11762306a36Sopenharmony_ci	volatile unsigned long mac_addr2;
11862306a36Sopenharmony_ci	volatile unsigned long mcast_filter;
11962306a36Sopenharmony_ci	volatile unsigned long tx_ring_base;
12062306a36Sopenharmony_ci	/* Following are read-only registers for debugging */
12162306a36Sopenharmony_ci	volatile unsigned long tx_pkt1_hdr;
12262306a36Sopenharmony_ci	volatile unsigned long tx_pkt1_ptr[3];
12362306a36Sopenharmony_ci	volatile unsigned long tx_pkt2_hdr;
12462306a36Sopenharmony_ci	volatile unsigned long tx_pkt2_ptr[3];
12562306a36Sopenharmony_ci	/*===================================*/
12662306a36Sopenharmony_ci	volatile unsigned long rx_fifo;
12762306a36Sopenharmony_ci};
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci/*
13062306a36Sopenharmony_ci * Peripherals
13162306a36Sopenharmony_ci */
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ci/* Audio registers */
13462306a36Sopenharmony_cistruct mace_audio {
13562306a36Sopenharmony_ci	volatile unsigned long control;
13662306a36Sopenharmony_ci	volatile unsigned long codec_control;		/* codec status control */
13762306a36Sopenharmony_ci	volatile unsigned long codec_mask;		/* codec status input mask */
13862306a36Sopenharmony_ci	volatile unsigned long codec_read;		/* codec status read data */
13962306a36Sopenharmony_ci	struct {
14062306a36Sopenharmony_ci		volatile unsigned long control;		/* channel control */
14162306a36Sopenharmony_ci		volatile unsigned long read_ptr;	/* channel read pointer */
14262306a36Sopenharmony_ci		volatile unsigned long write_ptr;	/* channel write pointer */
14362306a36Sopenharmony_ci		volatile unsigned long depth;		/* channel depth */
14462306a36Sopenharmony_ci	} chan[3];
14562306a36Sopenharmony_ci};
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci/* register definitions for parallel port DMA */
14962306a36Sopenharmony_cistruct mace_parport {
15062306a36Sopenharmony_ci	/* 0 - do nothing,
15162306a36Sopenharmony_ci	 * 1 - pulse terminal count to the device after buffer is drained */
15262306a36Sopenharmony_ci#define MACEPAR_CONTEXT_LASTFLAG	BIT(63)
15362306a36Sopenharmony_ci	/* Should not cross 4K page boundary */
15462306a36Sopenharmony_ci#define MACEPAR_CONTEXT_DATA_BOUND	0x0000000000001000UL
15562306a36Sopenharmony_ci#define MACEPAR_CONTEXT_DATALEN_MASK	0x00000fff00000000UL
15662306a36Sopenharmony_ci#define MACEPAR_CONTEXT_DATALEN_SHIFT	32
15762306a36Sopenharmony_ci	/* Can be arbitrarily aligned on any byte boundary on output,
15862306a36Sopenharmony_ci	 * 64 byte aligned on input */
15962306a36Sopenharmony_ci#define MACEPAR_CONTEXT_BASEADDR_MASK	0x00000000ffffffffUL
16062306a36Sopenharmony_ci	volatile u64 context_a;
16162306a36Sopenharmony_ci	volatile u64 context_b;
16262306a36Sopenharmony_ci	/* 0 - mem->device, 1 - device->mem */
16362306a36Sopenharmony_ci#define MACEPAR_CTLSTAT_DIRECTION	BIT(0)
16462306a36Sopenharmony_ci	/* 0 - channel frozen, 1 - channel enabled */
16562306a36Sopenharmony_ci#define MACEPAR_CTLSTAT_ENABLE		BIT(1)
16662306a36Sopenharmony_ci	/* 0 - channel active, 1 - complete channel reset */
16762306a36Sopenharmony_ci#define MACEPAR_CTLSTAT_RESET		BIT(2)
16862306a36Sopenharmony_ci#define MACEPAR_CTLSTAT_CTXB_VALID	BIT(3)
16962306a36Sopenharmony_ci#define MACEPAR_CTLSTAT_CTXA_VALID	BIT(4)
17062306a36Sopenharmony_ci	volatile u64 cntlstat;		/* Control/Status register */
17162306a36Sopenharmony_ci#define MACEPAR_DIAG_CTXINUSE		BIT(0)
17262306a36Sopenharmony_ci	/* 1 - Dma engine is enabled and processing something */
17362306a36Sopenharmony_ci#define MACEPAR_DIAG_DMACTIVE		BIT(1)
17462306a36Sopenharmony_ci	/* Counter of bytes left */
17562306a36Sopenharmony_ci#define MACEPAR_DIAG_CTRMASK		0x0000000000003ffcUL
17662306a36Sopenharmony_ci#define MACEPAR_DIAG_CTRSHIFT		2
17762306a36Sopenharmony_ci	volatile u64 diagnostic;	/* RO: diagnostic register */
17862306a36Sopenharmony_ci};
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ci/* ISA Control and DMA registers */
18162306a36Sopenharmony_cistruct mace_isactrl {
18262306a36Sopenharmony_ci	volatile unsigned long ringbase;
18362306a36Sopenharmony_ci#define MACEISA_RINGBUFFERS_SIZE	(8 * 4096)
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci	volatile unsigned long misc;
18662306a36Sopenharmony_ci#define MACEISA_FLASH_WE		BIT(0)	/* 1=> Enable FLASH writes */
18762306a36Sopenharmony_ci#define MACEISA_PWD_CLEAR		BIT(1)	/* 1=> PWD CLEAR jumper detected */
18862306a36Sopenharmony_ci#define MACEISA_NIC_DEASSERT		BIT(2)
18962306a36Sopenharmony_ci#define MACEISA_NIC_DATA		BIT(3)
19062306a36Sopenharmony_ci#define MACEISA_LED_RED			BIT(4)	/* 0=> Illuminate red LED */
19162306a36Sopenharmony_ci#define MACEISA_LED_GREEN		BIT(5)	/* 0=> Illuminate green LED */
19262306a36Sopenharmony_ci#define MACEISA_DP_RAM_ENABLE		BIT(6)
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ci	volatile unsigned long istat;
19562306a36Sopenharmony_ci	volatile unsigned long imask;
19662306a36Sopenharmony_ci#define MACEISA_AUDIO_SW_INT		BIT(0)
19762306a36Sopenharmony_ci#define MACEISA_AUDIO_SC_INT		BIT(1)
19862306a36Sopenharmony_ci#define MACEISA_AUDIO1_DMAT_INT		BIT(2)
19962306a36Sopenharmony_ci#define MACEISA_AUDIO1_OF_INT		BIT(3)
20062306a36Sopenharmony_ci#define MACEISA_AUDIO2_DMAT_INT		BIT(4)
20162306a36Sopenharmony_ci#define MACEISA_AUDIO2_MERR_INT		BIT(5)
20262306a36Sopenharmony_ci#define MACEISA_AUDIO3_DMAT_INT		BIT(6)
20362306a36Sopenharmony_ci#define MACEISA_AUDIO3_MERR_INT		BIT(7)
20462306a36Sopenharmony_ci#define MACEISA_RTC_INT			BIT(8)
20562306a36Sopenharmony_ci#define MACEISA_KEYB_INT		BIT(9)
20662306a36Sopenharmony_ci#define MACEISA_KEYB_POLL_INT		BIT(10)
20762306a36Sopenharmony_ci#define MACEISA_MOUSE_INT		BIT(11)
20862306a36Sopenharmony_ci#define MACEISA_MOUSE_POLL_INT		BIT(12)
20962306a36Sopenharmony_ci#define MACEISA_TIMER0_INT		BIT(13)
21062306a36Sopenharmony_ci#define MACEISA_TIMER1_INT		BIT(14)
21162306a36Sopenharmony_ci#define MACEISA_TIMER2_INT		BIT(15)
21262306a36Sopenharmony_ci#define MACEISA_PARALLEL_INT		BIT(16)
21362306a36Sopenharmony_ci#define MACEISA_PAR_CTXA_INT		BIT(17)
21462306a36Sopenharmony_ci#define MACEISA_PAR_CTXB_INT		BIT(18)
21562306a36Sopenharmony_ci#define MACEISA_PAR_MERR_INT		BIT(19)
21662306a36Sopenharmony_ci#define MACEISA_SERIAL1_INT		BIT(20)
21762306a36Sopenharmony_ci#define MACEISA_SERIAL1_TDMAT_INT	BIT(21)
21862306a36Sopenharmony_ci#define MACEISA_SERIAL1_TDMAPR_INT	BIT(22)
21962306a36Sopenharmony_ci#define MACEISA_SERIAL1_TDMAME_INT	BIT(23)
22062306a36Sopenharmony_ci#define MACEISA_SERIAL1_RDMAT_INT	BIT(24)
22162306a36Sopenharmony_ci#define MACEISA_SERIAL1_RDMAOR_INT	BIT(25)
22262306a36Sopenharmony_ci#define MACEISA_SERIAL2_INT		BIT(26)
22362306a36Sopenharmony_ci#define MACEISA_SERIAL2_TDMAT_INT	BIT(27)
22462306a36Sopenharmony_ci#define MACEISA_SERIAL2_TDMAPR_INT	BIT(28)
22562306a36Sopenharmony_ci#define MACEISA_SERIAL2_TDMAME_INT	BIT(29)
22662306a36Sopenharmony_ci#define MACEISA_SERIAL2_RDMAT_INT	BIT(30)
22762306a36Sopenharmony_ci#define MACEISA_SERIAL2_RDMAOR_INT	BIT(31)
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ci	volatile unsigned long _pad[0x2000/8 - 4];
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ci	volatile unsigned long dp_ram[0x400];
23262306a36Sopenharmony_ci	struct mace_parport parport;
23362306a36Sopenharmony_ci};
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ci/* Keyboard & Mouse registers
23662306a36Sopenharmony_ci * -> drivers/input/serio/maceps2.c */
23762306a36Sopenharmony_cistruct mace_ps2port {
23862306a36Sopenharmony_ci	volatile unsigned long tx;
23962306a36Sopenharmony_ci	volatile unsigned long rx;
24062306a36Sopenharmony_ci	volatile unsigned long control;
24162306a36Sopenharmony_ci	volatile unsigned long status;
24262306a36Sopenharmony_ci};
24362306a36Sopenharmony_ci
24462306a36Sopenharmony_cistruct mace_ps2 {
24562306a36Sopenharmony_ci	struct mace_ps2port keyb;
24662306a36Sopenharmony_ci	struct mace_ps2port mouse;
24762306a36Sopenharmony_ci};
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_ci/* I2C registers
25062306a36Sopenharmony_ci * -> drivers/i2c/algos/i2c-algo-sgi.c */
25162306a36Sopenharmony_cistruct mace_i2c {
25262306a36Sopenharmony_ci	volatile unsigned long config;
25362306a36Sopenharmony_ci#define MACEI2C_RESET		BIT(0)
25462306a36Sopenharmony_ci#define MACEI2C_FAST		BIT(1)
25562306a36Sopenharmony_ci#define MACEI2C_DATA_OVERRIDE	BIT(2)
25662306a36Sopenharmony_ci#define MACEI2C_CLOCK_OVERRIDE	BIT(3)
25762306a36Sopenharmony_ci#define MACEI2C_DATA_STATUS	BIT(4)
25862306a36Sopenharmony_ci#define MACEI2C_CLOCK_STATUS	BIT(5)
25962306a36Sopenharmony_ci	volatile unsigned long control;
26062306a36Sopenharmony_ci	volatile unsigned long data;
26162306a36Sopenharmony_ci};
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci/* Timer registers */
26462306a36Sopenharmony_citypedef union {
26562306a36Sopenharmony_ci	volatile unsigned long ust_msc;
26662306a36Sopenharmony_ci	struct reg {
26762306a36Sopenharmony_ci		volatile unsigned int ust;
26862306a36Sopenharmony_ci		volatile unsigned int msc;
26962306a36Sopenharmony_ci	} reg;
27062306a36Sopenharmony_ci} timer_reg;
27162306a36Sopenharmony_ci
27262306a36Sopenharmony_cistruct mace_timers {
27362306a36Sopenharmony_ci	volatile unsigned long ust;
27462306a36Sopenharmony_ci#define MACE_UST_PERIOD_NS	960
27562306a36Sopenharmony_ci
27662306a36Sopenharmony_ci	volatile unsigned long compare1;
27762306a36Sopenharmony_ci	volatile unsigned long compare2;
27862306a36Sopenharmony_ci	volatile unsigned long compare3;
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ci	timer_reg audio_in;
28162306a36Sopenharmony_ci	timer_reg audio_out1;
28262306a36Sopenharmony_ci	timer_reg audio_out2;
28362306a36Sopenharmony_ci	timer_reg video_in1;
28462306a36Sopenharmony_ci	timer_reg video_in2;
28562306a36Sopenharmony_ci	timer_reg video_out;
28662306a36Sopenharmony_ci};
28762306a36Sopenharmony_ci
28862306a36Sopenharmony_cistruct mace_perif {
28962306a36Sopenharmony_ci	struct mace_audio audio;
29062306a36Sopenharmony_ci	char _pad0[0x10000 - sizeof(struct mace_audio)];
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ci	struct mace_isactrl ctrl;
29362306a36Sopenharmony_ci	char _pad1[0x10000 - sizeof(struct mace_isactrl)];
29462306a36Sopenharmony_ci
29562306a36Sopenharmony_ci	struct mace_ps2 ps2;
29662306a36Sopenharmony_ci	char _pad2[0x10000 - sizeof(struct mace_ps2)];
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_ci	struct mace_i2c i2c;
29962306a36Sopenharmony_ci	char _pad3[0x10000 - sizeof(struct mace_i2c)];
30062306a36Sopenharmony_ci
30162306a36Sopenharmony_ci	struct mace_timers timers;
30262306a36Sopenharmony_ci	char _pad4[0x10000 - sizeof(struct mace_timers)];
30362306a36Sopenharmony_ci};
30462306a36Sopenharmony_ci
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_ci/*
30762306a36Sopenharmony_ci * ISA peripherals
30862306a36Sopenharmony_ci */
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ci/* Parallel port */
31162306a36Sopenharmony_cistruct mace_parallel {
31262306a36Sopenharmony_ci};
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_cistruct mace_ecp1284 {	/* later... */
31562306a36Sopenharmony_ci};
31662306a36Sopenharmony_ci
31762306a36Sopenharmony_ci/* Serial port */
31862306a36Sopenharmony_cistruct mace_serial {
31962306a36Sopenharmony_ci	volatile unsigned long xxx;	/* later... */
32062306a36Sopenharmony_ci};
32162306a36Sopenharmony_ci
32262306a36Sopenharmony_cistruct mace_isa {
32362306a36Sopenharmony_ci	struct mace_parallel parallel;
32462306a36Sopenharmony_ci	char _pad1[0x8000 - sizeof(struct mace_parallel)];
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_ci	struct mace_ecp1284 ecp1284;
32762306a36Sopenharmony_ci	char _pad2[0x8000 - sizeof(struct mace_ecp1284)];
32862306a36Sopenharmony_ci
32962306a36Sopenharmony_ci	struct mace_serial serial1;
33062306a36Sopenharmony_ci	char _pad3[0x8000 - sizeof(struct mace_serial)];
33162306a36Sopenharmony_ci
33262306a36Sopenharmony_ci	struct mace_serial serial2;
33362306a36Sopenharmony_ci	char _pad4[0x8000 - sizeof(struct mace_serial)];
33462306a36Sopenharmony_ci
33562306a36Sopenharmony_ci	volatile unsigned char rtc[0x10000];
33662306a36Sopenharmony_ci};
33762306a36Sopenharmony_ci
33862306a36Sopenharmony_cistruct sgi_mace {
33962306a36Sopenharmony_ci	char _reserved[0x80000];
34062306a36Sopenharmony_ci
34162306a36Sopenharmony_ci	struct mace_pci pci;
34262306a36Sopenharmony_ci	char _pad0[0x80000 - sizeof(struct mace_pci)];
34362306a36Sopenharmony_ci
34462306a36Sopenharmony_ci	struct mace_video video_in1;
34562306a36Sopenharmony_ci	char _pad1[0x80000 - sizeof(struct mace_video)];
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_ci	struct mace_video video_in2;
34862306a36Sopenharmony_ci	char _pad2[0x80000 - sizeof(struct mace_video)];
34962306a36Sopenharmony_ci
35062306a36Sopenharmony_ci	struct mace_video video_out;
35162306a36Sopenharmony_ci	char _pad3[0x80000 - sizeof(struct mace_video)];
35262306a36Sopenharmony_ci
35362306a36Sopenharmony_ci	struct mace_ethernet eth;
35462306a36Sopenharmony_ci	char _pad4[0x80000 - sizeof(struct mace_ethernet)];
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ci	struct mace_perif perif;
35762306a36Sopenharmony_ci	char _pad5[0x80000 - sizeof(struct mace_perif)];
35862306a36Sopenharmony_ci
35962306a36Sopenharmony_ci	struct mace_isa isa;
36062306a36Sopenharmony_ci	char _pad6[0x80000 - sizeof(struct mace_isa)];
36162306a36Sopenharmony_ci};
36262306a36Sopenharmony_ci
36362306a36Sopenharmony_ciextern struct sgi_mace __iomem *mace;
36462306a36Sopenharmony_ci
36562306a36Sopenharmony_ci#endif /* __ASM_MACE_H__ */
366