blob: 5ba8afee800d56e6c31a8a5eb9ef2ef0dece3731 (
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
|
/*
* Copyright (C) 2009 Sony Computer Entertainment Inc.
* Copyright 2009 Sony Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if !defined(_PB_COMMON_PS3_H)
#define _PB_COMMON_PS3_H
#include <stdint.h>
int ps3_get_video_mode(unsigned int *mode_id);
int ps3_set_video_mode(unsigned int mode_id);
/**
* enum ps3_flash_flags
* @ps3_flag_telnet: Allow telnet connections. System use.
*/
enum ps3_flash_flags {
ps3_flag_telnet = 1,
};
enum ps3_timeouts {
ps3_timeout_forever = 255,
};
/**
* struct ps3_flash_values - Values from PS3 flash memory.
* @default_item: The default menu item.
* @timeout: The timeout in seconds.
* @video_mode: The default video_mode.
* @flags: Logical OR of enum ps3_flash_flags.
*/
struct ps3_flash_values {
uint32_t default_item;
uint16_t video_mode;
/* uint16_t flags; */
uint8_t timeout;
};
static const struct ps3_flash_values ps3_flash_defaults = {
.default_item = 0,
.video_mode = 1,
.timeout = ps3_timeout_forever,
};
int ps3_flash_get_values(struct ps3_flash_values *values);
int ps3_flash_set_values(const struct ps3_flash_values *values);
#endif
|