summaryrefslogtreecommitdiff
path: root/plat/marvell/a8k-p/common/plat_dram.c
blob: ea72f6923eed64bbbe62a3bce5179637b635d257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
/*
 * Copyright (C) 2018 Marvell International Ltd.
 *
 * SPDX-License-Identifier:	BSD-3-Clause
 * https://spdx.org/licenses
 */

#include <mmio.h>
#include <debug.h>
#include <addr_map.h>
#include <ccu.h>
#include <gwin.h>
#include <plat_def.h>
#include <plat_dram.h>
#include <mv_ddr_if.h>
#include <a8k_i2c.h>
#include <ap810_setup.h>
#include <ap810_init_clocks.h>

#define CCU_RGF_WIN0_REG(ap)		(MVEBU_CCU_BASE(ap) + 0x90)
#define CCU_RGF_WIN_UNIT_ID_OFFS	2
#define CCU_RGF_WIN_UNIT_ID_MASK	0xf

/* In the below macros the "iftid" is either DRAM_0_TID or DRAM_1_TID */
#define CCU_MC_RCR_OFFSET(ap, iface_tid)	(MVEBU_A2_BANKED_STOP_BASE(ap, \
							iface_tid) + 0x300)
#define CCU_MC_RSBR_OFFSET(ap, iface_tid)	(MVEBU_A2_BANKED_STOP_BASE(ap, \
							iface_tid) + 0x304)
#define CCU_MC_RTBR_OFFSET(ap, iface_tid)	(MVEBU_A2_BANKED_STOP_BASE(ap, \
							iface_tid) + 0x308)
#define CCU_MC_ITR_OFFSET(ap, iface_tid)	(MVEBU_A2_BANKED_STOP_BASE(ap, \
							iface_tid) + 0x314)
#define CCU_MC_RAR_OFFSET(ap, iface_tid)	(MVEBU_CCU_BASE(ap) + \
						((iface_tid == DRAM_0_TID) ? \
							0xe0 : 0xe4))
#define MC_RAR_ENABLE			1
#define MC_RAR_TID_OFFSET		4
#define MC_RAR_ADDR_MASK_OFFSET		20
#define MC_RAR_ADDR_VALUE_OFFSET	8
#define MC_INTERLEAVE_SHIFT		6

#define REMAP_ADDR_OFFSET		10
#define REMAP_ADDR_MASK			0xfffff
#define REMAP_SIZE_OFFSET		20
#define REMAP_SIZE_MASK			0xfff
#define REMAP_ENABLE_MASK		0x1

/* iface is 0 or 1 */
#define DSS_SCR_REG(ap, iface)         (MVEBU_AR_RFU_BASE(ap) + 0x208 + ((iface) * 0x4))
#define DSS_PPROT_OFFS			4
#define DSS_PPROT_MASK			0x7
#define DSS_PPROT_PRIV_SECURE_DATA	0x1

/* Extern the parameters from porting file */
extern struct mv_ddr_iface dram_iface_ap0[DDR_MAX_UNIT_PER_AP];
extern struct mv_ddr_iface dram_iface_ap1[DDR_MAX_UNIT_PER_AP];
extern struct mv_ddr_iface *ptr_iface;

/* Use global varibale to check if i2c initialization done */
int i2c_init_done = 0;

static int plat_dram_ap_ifaces_get(int ap_id, struct mv_ddr_iface **ifaces, uint32_t *size)
{
	/* For now support DRAM on AP0/AP1 - TODO: add support for all APs */
	if (ap_id == 0) {
		*size = sizeof(dram_iface_ap0)/sizeof(dram_iface_ap0[0]);
		*ifaces = dram_iface_ap0;
	} else if (ap_id == 1) {
		*size = sizeof(dram_iface_ap1)/sizeof(dram_iface_ap1[0]);
		*ifaces = dram_iface_ap1;
	} else {
		*ifaces = NULL;
		*size = 0;
	}


	return 0;
}

static void plat_dram_iface_set(struct mv_ddr_iface *iface)
{
	ptr_iface = iface;
}

struct mv_ddr_iface *mv_ddr_iface_get(void)
{
	/* Return current ddr interface */
	return ptr_iface;
}

struct mv_ddr_topology_map *mv_ddr_topology_map_get(void)
{
	/* Return the board topology as defined in the board code */
	return &ptr_iface->tm;
}

/*
 * TODO: Move to the pin control driver API once it becomes available
 */
#define MVEBU_AP_MPP_CTRL16_23_REG		MVEBU_AP_MPP_REGS(0, 2)
#define MVEBU_AP_MPP_CTRL18_OFFS		8
#define MVEBU_AP_MPP_CTRL19_OFFS		12
#define MVEBU_AP_MPP_CTRL4_I2C0_SDA_ENA		0x3
#define MVEBU_AP_MPP_CTRL5_I2C0_SCK_ENA		0x3

#define MVEBU_MPP_CTRL_MASK			0xf

static void mpp_config(void)
{
	uintptr_t reg;
	uint32_t val;

	/*
	 * The Ax0x0 A0 DB boards are using the AP0 i2c channel (MPP18 and MPP19)
	 * for accessing all DIMM SPDs available on board.
	 */
	reg = MVEBU_AP_MPP_CTRL16_23_REG;
	val = mmio_read_32(reg);

	val &= ~((MVEBU_MPP_CTRL_MASK << MVEBU_AP_MPP_CTRL18_OFFS) |
		(MVEBU_MPP_CTRL_MASK << MVEBU_AP_MPP_CTRL19_OFFS));
	val |= ((MVEBU_AP_MPP_CTRL4_I2C0_SDA_ENA << MVEBU_AP_MPP_CTRL18_OFFS) |
		(MVEBU_AP_MPP_CTRL5_I2C0_SCK_ENA << MVEBU_AP_MPP_CTRL19_OFFS));

	mmio_write_32(reg, val);
	val = mmio_read_32(reg);
}

void plat_dram_freq_update(enum ddr_freq freq_option)
{
	struct mv_ddr_iface *iface = NULL;
	uint32_t ifaces_size, i, ap_id;

	/* Update DDR topology for all APs for all interfaces */
	for (ap_id = 0; ap_id < ap810_get_ap_count(); ap_id++) {
		plat_dram_ap_ifaces_get(ap_id, &iface, &ifaces_size);
		for (i = 0; i < ifaces_size; i++, iface++)
			iface->tm.interface_params[0].memory_freq = freq_option;
	}
}

/*
 * This function may modify the default DRAM parameters
 * based on information received from SPD or bootloader
 * configuration located on non volatile storage
 */
static void plat_dram_update_topology(uint32_t ap_id, struct mv_ddr_iface *iface)
{
	struct mv_ddr_topology_map *tm = &iface->tm;
	int ret;

	debug_enter();

	if (tm->cfg_src != MV_DDR_CFG_SPD)
		return;
	/* Initialize I2C of AP-0 to read SPD
	** need to initialize the I2C once.
	**
	*/
	if (i2c_init_done == 0) {
		/* Configure MPPs to enable i2c */
		mpp_config();
		/* Enable I2C on AP0 */
		i2c_init((void *)MVEBU_AP_I2C_BASE(0));
		/* Mark done */
		i2c_init_done = 1;
	}
	/* Select SPD memory page to access DRAM configuration */
	i2c_write(iface->spd_page_sel_addr, 0x0, 1, tm->spd_data.all_bytes, 1);
	/* Read data from SPD */
	ret = i2c_read(iface->spd_data_addr, 0x0, 1, tm->spd_data.all_bytes,
		 sizeof(tm->spd_data.all_bytes));
	/* Mark the interface as non-existing if the SPD read fails */
	if (ret < 0) {
		NOTICE("AP-%d DRAM-%d - EMPTY\n", ap_id, iface->id);
		iface->state = MV_DDR_IFACE_DNE;
	} else {
		INFO("AP-%d DRAM-%d - OK\n", ap_id, iface->id);
		iface->state = MV_DDR_IFACE_NRDY;
	}

	debug_exit();
}

static void plat_dram_phy_access_config(uint32_t ap_id, uint32_t iface_id)
{
	uint32_t reg_val, dram_target;

	debug_enter();

	if (iface_id == 1)
		dram_target = DRAM_1_TID;
	else
		dram_target = DRAM_0_TID;

	/* Update PHY destination in RGF window */
	reg_val = mmio_read_32(CCU_RGF_WIN0_REG(ap_id));
	reg_val &= ~(CCU_RGF_WIN_UNIT_ID_MASK << CCU_RGF_WIN_UNIT_ID_OFFS);
	reg_val |= ((dram_target & CCU_RGF_WIN_UNIT_ID_MASK) << CCU_RGF_WIN_UNIT_ID_OFFS);
	mmio_write_32(CCU_RGF_WIN0_REG(ap_id), reg_val);

	/* Update DSS port access permission to DSS_PHY */
	reg_val = mmio_read_32(DSS_SCR_REG(ap_id, iface_id));
	reg_val &= ~(DSS_PPROT_MASK << DSS_PPROT_OFFS);
	reg_val |= ((DSS_PPROT_PRIV_SECURE_DATA & DSS_PPROT_MASK) << DSS_PPROT_OFFS);
	mmio_write_32(DSS_SCR_REG(ap_id, iface_id), reg_val);

	debug_exit();
}

/* Setup RAR interleave value and enable RAR mode (data striping) for AP DRAM */
static void plat_dram_rar_mode_set(uint32_t ap_id)
{
	uint32_t val;
	uint32_t interleave = dram_rar_interleave() >> MC_INTERLEAVE_SHIFT;

	debug_enter();

	/* Enable ITR for the DDR interface */
	VERBOSE("Enable AP-%d DRAM_RAR mode with interleave of %d Bytes\n",
		ap_id, dram_rar_interleave());
	mmio_write_32(CCU_MC_ITR_OFFSET(ap_id, DRAM_0_TID),
		      interleave);
	mmio_write_32(CCU_MC_ITR_OFFSET(ap_id, DRAM_1_TID),
		      interleave);
	/* Configure RAR registers:
	 * For RAR 0: mask = interleave, value = 0x0, target = 0x3, enable =0x1.
	 * For RAR 1: mask = interleave, value = interleave, target = 0x8, enable =0x1
	 */
	val = interleave << MC_RAR_ADDR_MASK_OFFSET;
	val |= (DRAM_0_TID << MC_RAR_TID_OFFSET) | MC_RAR_ENABLE;
	mmio_write_32(CCU_MC_RAR_OFFSET(ap_id, DRAM_0_TID), val);

	val = interleave << MC_RAR_ADDR_MASK_OFFSET;
	val |= interleave << MC_RAR_ADDR_VALUE_OFFSET |
			(DRAM_1_TID << MC_RAR_TID_OFFSET) | MC_RAR_ENABLE;
	mmio_write_32(CCU_MC_RAR_OFFSET(ap_id, DRAM_1_TID), val);

	debug_exit();
}

/* Remap Physical address range to Memory Controller addrress range (PA->MCA) */
void plat_dram_mca_remap(int ap_index, int dram_tgt, uint64_t from, uint64_t to, uint64_t size)
{
	int dram_if[] = { -1, -1 };
	int if_idx;

	debug_enter();

	if (dram_tgt == RAR_TID) {
		dram_if[0] = DRAM_0_TID;
		dram_if[1] = DRAM_1_TID;
	} else {
		dram_if[0] = dram_tgt;
	}

	/* Size should be non-zero, up to 4GB and multiple of 1MB */
	if (!size || (size >> 32) || (size % (1 << 20))) {
		ERROR("Invalid remap size %lx\n", size);
		return;
	}

	/* Remap addresses must be multiple of remap size */
	if ((from % size) || (to % size)) {
		ERROR("Invalid remap address %lx -> %lx\n", from, to);
		return;
	}

	from >>= 20; /* bit[39:20] */
	to   >>= 20; /* bit[39:20] */
	size >>= 20; /* Size is in 1MB chunks */
	for (if_idx = 0; if_idx < DDR_MAX_UNIT_PER_AP; if_idx++) {
		uint32_t val;

		if (dram_if[if_idx] == -1)
			break;
		/* set mc remap source base to the top of dram */
		val = (from & REMAP_ADDR_MASK) << REMAP_ADDR_OFFSET;
		VERBOSE("AP-%d DRAM%d RSBR(0x%x) <== 0x%x\n",
			ap_index, if_idx, CCU_MC_RSBR_OFFSET(ap_index, dram_if[if_idx]), val);
		mmio_write_32(CCU_MC_RSBR_OFFSET(ap_index, dram_if[if_idx]), val);

		/* set mc remap target base to the overlapped dram region */
		val = (to & REMAP_ADDR_MASK) << REMAP_ADDR_OFFSET;
		VERBOSE("AP-%d DRAM%d RTBR(0x%x) <== 0x%x\n",
			ap_index, if_idx, CCU_MC_RTBR_OFFSET(ap_index, dram_if[if_idx]), val);
		mmio_write_32(CCU_MC_RTBR_OFFSET(ap_index, dram_if[if_idx]), val);

		/* set mc remap size to the size of the overlapped dram region */
		/* up to 4GB region for remapping */
		val = ((size - 1) & REMAP_SIZE_MASK) << REMAP_SIZE_OFFSET;
		/* enable remapping */
		val |= REMAP_ENABLE_MASK;
		VERBOSE("AP-%d DRAM%d RCR(0x%x) <== 0x%x\n",
			ap_index, if_idx, CCU_MC_RCR_OFFSET(ap_index, dram_if[if_idx]), val);
		mmio_write_32(CCU_MC_RCR_OFFSET(ap_index, dram_if[if_idx]), val);
	}

	debug_exit();
}

static void plat_dram_interfaces_update(void)
{
	struct mv_ddr_iface *iface = NULL;
	uint32_t ifaces_size, i, ap_id, iface_cnt;
	const uint32_t ap_cnt = ap810_get_ap_count();

	debug_enter();

	/* Go over the interfaces, and update the topology */
	for (ap_id = 0; ap_id < ap_cnt; ap_id++) {
		/* Get interfaces of AP-ID */
		plat_dram_ap_ifaces_get(ap_id, &iface, &ifaces_size);
		/* clear iface counter */
		iface_cnt = 0;
		/* Go over the interfaces of AP and initialize them */
		for (i = 0; i < ifaces_size; i++, iface++) {
			/* Update DRAM topology (scan DIMM SPDs) */
			plat_dram_update_topology(ap_id, iface);
			/* Skip if not exist */
			if (iface->state == MV_DDR_IFACE_DNE)
				continue;
			/* Update AP base address */
			iface->ap_base = MVEBU_REGS_BASE_AP(ap_id);
			/* Initialize iface mode with single interface */
			iface->iface_mode = MV_DDR_RAR_DIS;
			/* Update base address of interface */
			iface->iface_base_addr = AP_DRAM_BASE_ADDR(ap_id, ap_cnt);
			/* Count number of interfaces are ready */
			VERBOSE("Found DRAM on interface %d AP-%d\n", iface->id, ap_id);
			iface_cnt++;
		}
		if (iface_cnt < ifaces_size)
			NOTICE("\n\tFound %d out of %d DRAM interface in AP %d. Performance may be degraded!!\n",
				iface_cnt, ifaces_size, ap_id);
	}
}

static void plat_dram_addr_decode_insert(uint32_t ap_id, uint32_t dram_tgt,
					struct addr_map_win *gwin_temp_win,
					struct addr_map_win *ccu_dram_win)
{
	const uint32_t ap_cnt = ap810_get_ap_count();

	/* Add a single GWIN entry to AP0 for enabling remote APs access
	 * There is no need to open GWIN on other APs, since only AP0
	 * is involved at this stage.
	 */
	if (ap_id != 0) {
		gwin_temp_win->base_addr = AP_DRAM_BASE_ADDR(ap_id, ap_cnt);
		gwin_temp_win->win_size = AP_DRAM_SIZE(ap_cnt);
		gwin_temp_win->target_id = ap_id;
		gwin_temp_win_insert(0, gwin_temp_win, 1);
	}
	/* Add CCU window for DRAM access:
	 * Single DIMM on this AP, CCU target = DRAM 0/1
	 * Multiple DIMMs on this AP, CCU target = RAR
	 * The RAR target allows access to both DRAM interfaces
	 * in parallel, increasing the total memory bandwidth.
	 */
	ccu_dram_win->base_addr = AP_DRAM_BASE_ADDR(ap_id, ap_cnt);
	ccu_dram_win->win_size = AP_DRAM_SIZE(ap_cnt);
	ccu_dram_win->target_id = dram_tgt;

	/* Create a memory window with the approriate target in CCU */
	ccu_dram_win_config(ap_id, ccu_dram_win);
}

static void plat_dram_temp_addr_decode_cfg(uint32_t ap_id, struct mv_ddr_iface *iface)
{
	struct addr_map_win ccu_dram_win;

	/*
	 * Add CCU window for DRAM access:
	 * Single DIMM on this AP, CCU target = DRAM 0/1
	 * Setting the CCU for each interface
	 */
	if ((ap_id == 0) && (iface->iface_byte_size > (3 * _1GB_)))
		ccu_dram_win.win_size = iface->iface_byte_size + _1GB_;
	else
		ccu_dram_win.win_size = iface->iface_byte_size;
	ccu_dram_win.base_addr = iface->iface_base_addr;
	if (iface->id == 1)
		ccu_dram_win.target_id = DRAM_1_TID;
	else
		ccu_dram_win.target_id = DRAM_0_TID;

	/* Create a memory window with the appropriate target in CCU */
	ccu_dram_win_config(ap_id, &ccu_dram_win);

	/* Remap configuration space */
	if ((ap_id == 0) && (iface->iface_byte_size > (3 * _1GB_)))
		plat_dram_mca_remap(0, ccu_dram_win.target_id, iface->iface_byte_size, 3 * _1GB_, _1GB_);
}

static void plat_dram_addr_decode_remove(uint32_t ap_id,
					struct addr_map_win *gwin_temp_win,
					struct addr_map_win *ccu_dram_win)
{
	if (ap_id == 0) {
		ccu_dram_win->win_size = AP0_BOOTROM_DRAM_SIZE;
		ccu_dram_win_config(0, ccu_dram_win);
	} else {
		/* Remove the earlier configured GWIN entry from AP0 */
		gwin_temp_win_remove(0, gwin_temp_win, 1);
	}
}

int plat_dram_init(void)
{
	struct mv_ddr_iface *iface = NULL;
	uint32_t ifaces_size, i, ap_id, ret, iface_cnt;
	const uint32_t ap_cnt = ap810_get_ap_count();
	uint64_t ap_dram_size;
	uint32_t ap_dram_tgt;

	/* Update DRAM topology for all interfaces */
	plat_dram_interfaces_update();

	/* Go over DRAM interfaces, run remapping and scrubbing */
	for (ap_id = 0; ap_id < ap_cnt; ap_id++) {
		struct addr_map_win gwin_temp_win, ccu_dram_win;
		iface_cnt = 0;
		ap_dram_size = 0;
		ap_dram_tgt = DRAM_0_TID;
		/* Get interfaces of AP-ID */
		plat_dram_ap_ifaces_get(ap_id, &iface, &ifaces_size);
		/* Go over the interfaces of AP and initialize them */
		for (i = 0; i < ifaces_size; i++, iface++) {
			if (iface->state == MV_DDR_IFACE_DNE)
				continue;
			/* Set the pointer to current interface */
			plat_dram_iface_set(iface);

			/* Set phy accesses */
			plat_dram_phy_access_config(ap_id, iface->id);

			/*
			 * 1. open relevant CCU widow for each interface
			 *    according to dram size and ap base address
			 *    for validation\scrubbing purpose
			 * 2. remap dram widow to end of dram size for ap 0 interface 0
			 */
			plat_dram_temp_addr_decode_cfg(ap_id, iface);

			/* Call DRAM init per interface */
			ret = dram_init();
			if (ret) {
				ERROR("DRAM interface %d on AP-%d failed\n", i, ap_id);
				return ret;
			}

			iface_cnt++;
			/* Update status of interface */
			iface->state = MV_DDR_IFACE_RDY;
			ap_dram_size += iface->iface_byte_size;
		}

		if (iface_cnt == DDR_MAX_UNIT_PER_AP) {
			ap_dram_tgt = RAR_TID;
		} else {
			if (iface->id == 1)
				ap_dram_tgt = DRAM_1_TID;
			else
				ap_dram_tgt = DRAM_0_TID;
		}

		if (ap_dram_tgt == RAR_TID) {
			plat_dram_ap_ifaces_get(ap_id, &iface, &ifaces_size);
			for (i = 0; i < ifaces_size; i++, iface++) {
				plat_dram_iface_set(iface);
				VERBOSE("AP-%d set DRAM%d into RAR mode\n", ap_id, i);
				/* If the base address not 0x0, need to divide
				** the base address, the dram region will be
				** splited into dual DRAMs
				** */
				iface->iface_base_addr >>= 1;
				/* TODO: add EERATA */
				if (iface->id == 1)
					iface->iface_base_addr |= 1UL << 43;
				/* Update dram memory mapping */
				dram_mmap_config();
			}
		}

		INFO("AP-%d DRAM size is 0x%lx (%lldGB)\n",
		     ap_id, ap_dram_size, ap_dram_size/_1GB_);
		/* Remap the physical memory shadowed by the internal registers configration
		 * address space to the top of the detected memory area.
		 * Only the AP0 overlaps this configuration area with the DRAM, so only its memory
		 * controller has to remap the overlapped region to the upper memory.
		 * With less than 3GB of DRAM the internal registers space remapping is not needed
		 * since there is no overlap between DRAM and the configuration address spaces
		 */
		if ((ap_id == 0)  && (ap_dram_size > (3 * _1GB_)))
			plat_dram_mca_remap(0, ap_dram_tgt, ap_dram_size, 3 * _1GB_, _1GB_);

		if (ap_dram_tgt == RAR_TID)
			plat_dram_rar_mode_set(ap_id);

		/* Open access to AP DRAM and run scrubbing */
		plat_dram_addr_decode_insert(ap_id, ap_dram_tgt,
					     &gwin_temp_win, &ccu_dram_win);

		/* Restore the original DRAM size on AP0 before returning to the BootROM.
		 * Access to entire DRAM is required only during DDR initialization and scrubbing.
		 * The correct DRAM size will be set back by init_ccu() at later stage.
		 */
		plat_dram_addr_decode_remove(ap_id, &gwin_temp_win, &ccu_dram_win);
	}

	debug_exit();

	return 0;
}