25 #ifndef __DC_FLASHROM_H 
   26 #define __DC_FLASHROM_H 
   28 #include <sys/cdefs.h> 
   36 #define FLASHROM_PT_SYSTEM      0    
   37 #define FLASHROM_PT_RESERVED    1    
   38 #define FLASHROM_PT_BLOCK_1     2    
   39 #define FLASHROM_PT_SETTINGS    3    
   40 #define FLASHROM_PT_BLOCK_2     4    
   47 #define FLASHROM_B1_SYSCFG          0x05     
   48 #define FLASHROM_B1_PW_SETTINGS_1   0x80     
   49 #define FLASHROM_B1_PW_SETTINGS_2   0x81     
   50 #define FLASHROM_B1_PW_SETTINGS_3   0x82     
   51 #define FLASHROM_B1_PW_SETTINGS_4   0x83     
   52 #define FLASHROM_B1_PW_SETTINGS_5   0x84     
   53 #define FLASHROM_B1_PW_PPP1         0xC0     
   54 #define FLASHROM_B1_PW_PPP2         0xC1     
   55 #define FLASHROM_B1_PW_DNS          0xC2     
   56 #define FLASHROM_B1_PW_EMAIL1       0xC3     
   57 #define FLASHROM_B1_PW_EMAIL2       0xC4     
   58 #define FLASHROM_B1_PW_EMAIL_PROXY  0xC5     
   59 #define FLASHROM_B1_IP_SETTINGS     0xE0     
   60 #define FLASHROM_B1_EMAIL           0xE2     
   61 #define FLASHROM_B1_SMTP            0xE4     
   62 #define FLASHROM_B1_POP3            0xE5     
   63 #define FLASHROM_B1_POP3LOGIN       0xE6     
   64 #define FLASHROM_B1_POP3PASSWD      0xE7     
   65 #define FLASHROM_B1_PPPLOGIN        0xE8     
   66 #define FLASHROM_B1_PPPPASSWD       0xE9     
  149 #define FLASHROM_LANG_JAPANESE  0    
  150 #define FLASHROM_LANG_ENGLISH   1    
  151 #define FLASHROM_LANG_GERMAN    2    
  152 #define FLASHROM_LANG_FRENCH    3    
  153 #define FLASHROM_LANG_SPANISH   4    
  154 #define FLASHROM_LANG_ITALIAN   5    
  184 #define FLASHROM_REGION_UNKNOWN 0    
  185 #define FLASHROM_REGION_JAPAN   1    
  186 #define FLASHROM_REGION_US      2    
  187 #define FLASHROM_REGION_EUROPE  3    
  207 #define FLASHROM_ISP_DHCP   0    
  208 #define FLASHROM_ISP_STATIC 1    
  209 #define FLASHROM_ISP_DIALUP 2    
  210 #define FLASHROM_ISP_PPPOE  4    
  221 #define FLASHROM_ISP_IP         (1 <<  0)    
  222 #define FLASHROM_ISP_NETMASK    (1 <<  1)    
  223 #define FLASHROM_ISP_BROADCAST  (1 <<  2)    
  224 #define FLASHROM_ISP_GATEWAY    (1 <<  3)    
  225 #define FLASHROM_ISP_DNS        (1 <<  4)    
  226 #define FLASHROM_ISP_HOSTNAME   (1 <<  5)    
  227 #define FLASHROM_ISP_EMAIL      (1 <<  6)    
  228 #define FLASHROM_ISP_SMTP       (1 <<  7)    
  229 #define FLASHROM_ISP_POP3       (1 <<  8)    
  230 #define FLASHROM_ISP_POP3_USER  (1 <<  9)    
  231 #define FLASHROM_ISP_POP3_PASS  (1 << 10)    
  232 #define FLASHROM_ISP_PROXY_HOST (1 << 11)    
  233 #define FLASHROM_ISP_PROXY_PORT (1 << 12)    
  234 #define FLASHROM_ISP_PPP_USER   (1 << 13)    
  235 #define FLASHROM_ISP_PPP_PASS   (1 << 14)    
  236 #define FLASHROM_ISP_OUT_PREFIX (1 << 15)    
  237 #define FLASHROM_ISP_CW_PREFIX  (1 << 16)    
  238 #define FLASHROM_ISP_REAL_NAME  (1 << 17)    
  239 #define FLASHROM_ISP_MODEM_INIT (1 << 18)    
  240 #define FLASHROM_ISP_AREA_CODE  (1 << 19)    
  241 #define FLASHROM_ISP_LD_PREFIX  (1 << 20)    
  242 #define FLASHROM_ISP_PHONE1     (1 << 21)    
  243 #define FLASHROM_ISP_PHONE2     (1 << 22)    
  253 #define FLASHROM_ISP_DIAL_AREACODE  (1 <<  0)    
  254 #define FLASHROM_ISP_USE_PROXY      (1 <<  1)    
  255 #define FLASHROM_ISP_PULSE_DIAL     (1 <<  2)    
  256 #define FLASHROM_ISP_BLIND_DIAL     (1 <<  3)    
char pop3[31]
POP3 server. 
Definition: flashrom.h:284
ISP configuration structure. 
Definition: flashrom.h:267
char phone2[26]
Phone number 2. 
Definition: flashrom.h:299
char proxy_host[31]
Proxy server hostname. 
Definition: flashrom.h:287
int flashrom_info(int part, int *start_out, int *size_out)
Retrieve information about the given partition. 
uint8 bc[4]
Broadcast address. 
Definition: flashrom.h:277
char modem_init[33]
The modem init string to use. 
Definition: flashrom.h:293
struct flashrom_syscfg flashrom_syscfg_t
System configuration structure. 
int language
Language setting. 
Definition: flashrom.h:165
int flashrom_get_syscfg(flashrom_syscfg_t *out)
Retrieve the current system configuration settings. 
int proxy_port
Proxy server port. 
Definition: flashrom.h:280
uint8 gw[4]
Gateway address. 
Definition: flashrom.h:278
char ppp_passwd[20]
PPP password. 
Definition: flashrom.h:289
uint32 flags
Various flags that can be set in options. 
Definition: flashrom.h:272
int flashrom_get_ispcfg(flashrom_ispcfg_t *out)
Retrieve DreamPassport's ISP configuration. 
char ld_prefix[21]
The long-distance dial prefix. 
Definition: flashrom.h:295
char pop3_passwd[32]
POP3 passwd. 
Definition: flashrom.h:286
int flashrom_read(int offset, void *buffer_out, int bytes)
Read data from the flashrom. 
char out_prefix[9]
Outside dial prefix. 
Definition: flashrom.h:290
char p1_areacode[4]
Phone number 1's area code. 
Definition: flashrom.h:296
char smtp[31]
SMTP server. 
Definition: flashrom.h:283
struct flashrom_ispcfg flashrom_ispcfg_t
ISP configuration structure. 
int flashrom_get_pw_ispcfg(flashrom_ispcfg_t *out)
Retrieve PlanetWeb's ISP configuration. 
char cw_prefix[9]
Call waiting prefix. 
Definition: flashrom.h:291
char p2_areacode[4]
Phone number 2's area code. 
Definition: flashrom.h:298
char ppp_login[29]
PPP login. 
Definition: flashrom.h:288
unsigned long uint32
32-bit unsigned integer 
Definition: types.h:28
char real_name[31]
The "Real Name" field of PlanetWeb. 
Definition: flashrom.h:292
int flashrom_delete(int offset)
Delete data from the flashrom. 
int flashrom_get_region()
Retrieve the console's region code. 
int autostart
Autostart discs? 0 == off, 1 == on. 
Definition: flashrom.h:168
int flashrom_get_block(int partid, int blockid, uint8 *buffer_out)
Get a logical block from the specified partition. 
int method
DHCP, Static, dialup(?), PPPoE. 
Definition: flashrom.h:268
unsigned char uint8
8-bit unsigned integer 
Definition: types.h:30
uint8 dns[2][4]
DNS servers (2) 
Definition: flashrom.h:279
System configuration structure. 
Definition: flashrom.h:164
int flashrom_write(int offset, void *buffer, int bytes)
Write data to the flashrom. 
char area_code[4]
The area code the user is in. 
Definition: flashrom.h:294
uint8 ip[4]
Host IP address. 
Definition: flashrom.h:275
char phone1[26]
Phone number 1. 
Definition: flashrom.h:297
char hostname[24]
DHCP/Host name. 
Definition: flashrom.h:281
char email[64]
Email address. 
Definition: flashrom.h:282
char pop3_login[20]
POP3 login. 
Definition: flashrom.h:285
uint8 nm[4]
Netmask. 
Definition: flashrom.h:276
int audio
Stereo/mono setting. 0 == mono, 1 == stereo. 
Definition: flashrom.h:167
uint32 valid_fields
Which fields are valid? 
Definition: flashrom.h:270