1 | /* $Id: expandospu_config.c 54905 2015-03-23 11:20:58Z vboxsync $ */
|
---|
2 | /* Copyright (c) 2001, Stanford University
|
---|
3 | * All rights reserved
|
---|
4 | *
|
---|
5 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include "expandospu.h"
|
---|
9 |
|
---|
10 | //#include "cr_mothership.h"
|
---|
11 | #include "cr_string.h"
|
---|
12 |
|
---|
13 | #include <stdio.h>
|
---|
14 |
|
---|
15 | static void __setDefaults( void )
|
---|
16 | {
|
---|
17 | }
|
---|
18 |
|
---|
19 | /* option, type, nr, default, min, max, title, callback
|
---|
20 | */
|
---|
21 | SPUOptions expandoSPUOptions[] = {
|
---|
22 | { NULL, CR_BOOL, 0, NULL, NULL, NULL, NULL, NULL },
|
---|
23 | };
|
---|
24 |
|
---|
25 |
|
---|
26 | void expandospuGatherConfiguration( void )
|
---|
27 | {
|
---|
28 | CRConnection *conn;
|
---|
29 |
|
---|
30 | __setDefaults();
|
---|
31 | #if 0
|
---|
32 | /* Connect to the mothership and identify ourselves. */
|
---|
33 |
|
---|
34 | conn = crMothershipConnect( );
|
---|
35 | if (!conn)
|
---|
36 | {
|
---|
37 | /* The mothership isn't running. Some SPU's can recover gracefully, some
|
---|
38 | * should issue an error here. */
|
---|
39 | crSPUSetDefaultParams( &expando_spu, expandoSPUOptions );
|
---|
40 | return;
|
---|
41 | }
|
---|
42 | crMothershipIdentifySPU( conn, expando_spu.id );
|
---|
43 |
|
---|
44 | crSPUGetMothershipParams( conn, &expando_spu, expandoSPUOptions );
|
---|
45 |
|
---|
46 | crMothershipDisconnect( conn );
|
---|
47 | #endif
|
---|
48 | }
|
---|