@@ -215,8 +215,12 @@ pub const CUR_PROCESS_HANDLE: u32 = 4294934529;
215
215
pub const ARBITRATION_SIGNAL_ALL : i32 = -1 ;
216
216
pub const CUR_THREAD_HANDLE : u32 = 4294934528 ;
217
217
pub const SYSCLOCK_SOC : u32 = 16756991 ;
218
+ pub const SYSCLOCK_SYS : u32 = 33513982 ;
219
+ pub const SYSCLOCK_SDMMC : u32 = 67027964 ;
218
220
pub const SYSCLOCK_ARM9 : u32 = 134055928 ;
219
221
pub const SYSCLOCK_ARM11 : u32 = 268111856 ;
222
+ pub const SYSCLOCK_ARM11_LGR1 : u32 = 536223712 ;
223
+ pub const SYSCLOCK_ARM11_LGR2 : u32 = 804335568 ;
220
224
pub const SYSCLOCK_ARM11_NEW : u32 = 804335568 ;
221
225
pub const CPU_TICKS_PER_MSEC : f64 = 268111.856 ;
222
226
pub const CPU_TICKS_PER_USEC : f64 = 268.111856 ;
@@ -277,6 +281,8 @@ pub const CONSOLE_BLINK_FAST: u32 = 32;
277
281
pub const CONSOLE_COLOR_REVERSE : u32 = 64 ;
278
282
pub const CONSOLE_CONCEAL : u32 = 128 ;
279
283
pub const CONSOLE_CROSSED_OUT : u32 = 256 ;
284
+ pub const CONSOLE_FG_CUSTOM : u32 = 512 ;
285
+ pub const CONSOLE_BG_CUSTOM : u32 = 1024 ;
280
286
pub const __GNUCLIKE_ASM: u32 = 3 ;
281
287
pub const __GNUCLIKE___TYPEOF: u32 = 1 ;
282
288
pub const __GNUCLIKE___OFFSETOF: u32 = 1 ;
@@ -1216,6 +1222,7 @@ pub const MIISELECTOR_GUESTMII_SLOTS: u32 = 6;
1216
1222
pub const MIISELECTOR_USERMII_SLOTS : u32 = 100 ;
1217
1223
pub const MIISELECTOR_GUESTMII_NAME_LEN : u32 = 12 ;
1218
1224
pub const ARCHIVE_DIRITER_MAGIC : u32 = 1751347809 ;
1225
+ pub const LINK3DS_COMM_PORT : u32 = 17491 ;
1219
1226
pub type __int8_t = :: libc:: c_schar ;
1220
1227
pub type __uint8_t = :: libc:: c_uchar ;
1221
1228
pub type __int16_t = :: libc:: c_short ;
@@ -3446,7 +3453,10 @@ extern "C" {
3446
3453
fb_b : * const :: libc:: c_void ,
3447
3454
stride : u32_ ,
3448
3455
mode : u32_ ,
3449
- ) ;
3456
+ ) -> bool ;
3457
+ }
3458
+ extern "C" {
3459
+ pub fn gspIsPresentPending ( screen : :: libc:: c_uint ) -> bool ;
3450
3460
}
3451
3461
extern "C" {
3452
3462
pub fn gspSetEventCallback (
@@ -3628,8 +3638,8 @@ pub struct PrintConsole {
3628
3638
pub windowWidth : :: libc:: c_int ,
3629
3639
pub windowHeight : :: libc:: c_int ,
3630
3640
pub tabSize : :: libc:: c_int ,
3631
- pub fg : :: libc :: c_int ,
3632
- pub bg : :: libc :: c_int ,
3641
+ pub fg : u16_ ,
3642
+ pub bg : u16_ ,
3633
3643
pub flags : :: libc:: c_int ,
3634
3644
pub PrintChar : ConsolePrint ,
3635
3645
pub consoleInitialised : bool ,
@@ -4040,12 +4050,26 @@ extern "C" {
4040
4050
extern "C" {
4041
4051
pub fn mappableFree ( mem : * mut :: libc:: c_void ) ;
4042
4052
}
4053
+ pub const VRAM_ALLOC_A : vramAllocPos = 1 ;
4054
+ pub const VRAM_ALLOC_B : vramAllocPos = 2 ;
4055
+ pub const VRAM_ALLOC_ANY : vramAllocPos = 3 ;
4056
+ pub type vramAllocPos = :: libc:: c_uint ;
4043
4057
extern "C" {
4044
4058
pub fn vramAlloc ( size : size_t ) -> * mut :: libc:: c_void ;
4045
4059
}
4060
+ extern "C" {
4061
+ pub fn vramAllocAt ( size : size_t , pos : vramAllocPos ) -> * mut :: libc:: c_void ;
4062
+ }
4046
4063
extern "C" {
4047
4064
pub fn vramMemAlign ( size : size_t , alignment : size_t ) -> * mut :: libc:: c_void ;
4048
4065
}
4066
+ extern "C" {
4067
+ pub fn vramMemAlignAt (
4068
+ size : size_t ,
4069
+ alignment : size_t ,
4070
+ pos : vramAllocPos ,
4071
+ ) -> * mut :: libc:: c_void ;
4072
+ }
4049
4073
extern "C" {
4050
4074
pub fn vramRealloc ( mem : * mut :: libc:: c_void , size : size_t ) -> * mut :: libc:: c_void ;
4051
4075
}
@@ -4414,6 +4438,13 @@ impl Default for FS_Path {
4414
4438
}
4415
4439
}
4416
4440
}
4441
+ #[ repr( C ) ]
4442
+ #[ derive( Debug , Default , Copy , Clone ) ]
4443
+ pub struct FS_SdMmcSpeedInfo {
4444
+ pub highSpeedModeEnabled : bool ,
4445
+ pub usesHighestClockRate : bool ,
4446
+ pub sdClkCtrl : u16_ ,
4447
+ }
4417
4448
pub type FS_Archive = u64_ ;
4418
4449
extern "C" {
4419
4450
pub fn fsInit ( ) -> Result ;
@@ -4553,10 +4584,10 @@ extern "C" {
4553
4584
pub fn FSUSER_GetNandCid ( out : * mut u8_ , length : u32_ ) -> Result ;
4554
4585
}
4555
4586
extern "C" {
4556
- pub fn FSUSER_GetSdmcSpeedInfo ( speedInfo : * mut u32_ ) -> Result ;
4587
+ pub fn FSUSER_GetSdmcSpeedInfo ( speedInfo : * mut FS_SdMmcSpeedInfo ) -> Result ;
4557
4588
}
4558
4589
extern "C" {
4559
- pub fn FSUSER_GetNandSpeedInfo ( speedInfo : * mut u32_ ) -> Result ;
4590
+ pub fn FSUSER_GetNandSpeedInfo ( speedInfo : * mut FS_SdMmcSpeedInfo ) -> Result ;
4560
4591
}
4561
4592
extern "C" {
4562
4593
pub fn FSUSER_GetSdmcLog ( out : * mut u8_ , length : u32_ ) -> Result ;
@@ -5027,6 +5058,19 @@ pub struct AM_TWLPartitionInfo {
5027
5058
pub titlesCapacity : u64_ ,
5028
5059
pub titlesFreeSpace : u64_ ,
5029
5060
}
5061
+ #[ repr( C ) ]
5062
+ #[ derive( Debug , Default , Copy , Clone ) ]
5063
+ pub struct AM_ContentInfo {
5064
+ pub index : u16_ ,
5065
+ pub type_ : u16_ ,
5066
+ pub contentId : u32_ ,
5067
+ pub size : u64_ ,
5068
+ pub flags : u8_ ,
5069
+ pub padding : [ u8_ ; 7usize ] ,
5070
+ }
5071
+ pub const AM_CONTENT_DOWNLOADED : AM_ContentInfoFlags = 1 ;
5072
+ pub const AM_CONTENT_OWNED : AM_ContentInfoFlags = 2 ;
5073
+ pub type AM_ContentInfoFlags = :: libc:: c_uint ;
5030
5074
extern "C" {
5031
5075
pub fn amInit ( ) -> Result ;
5032
5076
}
@@ -5325,6 +5369,23 @@ extern "C" {
5325
5369
extern "C" {
5326
5370
pub fn AM_DeleteAllTwlTitles ( ) -> Result ;
5327
5371
}
5372
+ extern "C" {
5373
+ pub fn AMAPP_GetDLCContentInfoCount (
5374
+ count : * mut u32_ ,
5375
+ mediatype : FS_MediaType ,
5376
+ titleID : u64_ ,
5377
+ ) -> Result ;
5378
+ }
5379
+ extern "C" {
5380
+ pub fn AMAPP_ListDLCContentInfos (
5381
+ contentInfoRead : * mut u32_ ,
5382
+ mediatype : FS_MediaType ,
5383
+ titleID : u64_ ,
5384
+ contentInfoCount : u32_ ,
5385
+ offset : u32_ ,
5386
+ contentInfos : * mut AM_ContentInfo ,
5387
+ ) -> Result ;
5388
+ }
5328
5389
extern "C" {
5329
5390
pub fn ampxiInit ( servhandle : Handle ) -> Result ;
5330
5391
}
@@ -7305,10 +7366,10 @@ extern "C" {
7305
7366
pub fn FSPXI_GetNandCid ( serviceHandle : Handle , out : * mut :: libc:: c_void , size : u32_ ) -> Result ;
7306
7367
}
7307
7368
extern "C" {
7308
- pub fn FSPXI_GetSdmcSpeedInfo ( serviceHandle : Handle , out : * mut u32_ ) -> Result ;
7369
+ pub fn FSPXI_GetSdmcSpeedInfo ( serviceHandle : Handle , out : * mut FS_SdMmcSpeedInfo ) -> Result ;
7309
7370
}
7310
7371
extern "C" {
7311
- pub fn FSPXI_GetNandSpeedInfo ( serviceHandle : Handle , out : * mut u32_ ) -> Result ;
7372
+ pub fn FSPXI_GetNandSpeedInfo ( serviceHandle : Handle , out : * mut FS_SdMmcSpeedInfo ) -> Result ;
7312
7373
}
7313
7374
extern "C" {
7314
7375
pub fn FSPXI_GetSdmcLog ( serviceHandle : Handle , out : * mut :: libc:: c_void , size : u32_ ) -> Result ;
@@ -10314,6 +10375,9 @@ extern "C" {
10314
10375
extern "C" {
10315
10376
pub fn ptmuExit ( ) ;
10316
10377
}
10378
+ extern "C" {
10379
+ pub fn ptmuGetSessionHandle ( ) -> * mut Handle ;
10380
+ }
10317
10381
extern "C" {
10318
10382
pub fn PTMU_GetShellState ( out : * mut u8_ ) -> Result ;
10319
10383
}
@@ -10361,6 +10425,9 @@ extern "C" {
10361
10425
extern "C" {
10362
10426
pub fn ptmSysmExit ( ) ;
10363
10427
}
10428
+ extern "C" {
10429
+ pub fn ptmSysmGetSessionHandle ( ) -> * mut Handle ;
10430
+ }
10364
10431
extern "C" {
10365
10432
pub fn PTMSYSM_RequestSleep ( ) -> Result ;
10366
10433
}
@@ -10379,6 +10446,9 @@ extern "C" {
10379
10446
extern "C" {
10380
10447
pub fn PTMSYSM_Awaken ( ) -> Result ;
10381
10448
}
10449
+ extern "C" {
10450
+ pub fn PTMSYSM_SetUserTime ( msY2k : s64 ) -> Result ;
10451
+ }
10382
10452
extern "C" {
10383
10453
pub fn PTMSYSM_InvalidateSystemTime ( ) -> Result ;
10384
10454
}
@@ -10400,6 +10470,30 @@ extern "C" {
10400
10470
extern "C" {
10401
10471
pub fn PTMSYSM_RebootAsync ( timeout : u64_ ) -> Result ;
10402
10472
}
10473
+ extern "C" {
10474
+ pub fn ptmGetsInit ( ) -> Result ;
10475
+ }
10476
+ extern "C" {
10477
+ pub fn ptmGetsExit ( ) ;
10478
+ }
10479
+ extern "C" {
10480
+ pub fn ptmGetsGetSessionHandle ( ) -> * mut Handle ;
10481
+ }
10482
+ extern "C" {
10483
+ pub fn PTMGETS_GetSystemTime ( outMsY2k : * mut s64 ) -> Result ;
10484
+ }
10485
+ extern "C" {
10486
+ pub fn ptmSetsInit ( ) -> Result ;
10487
+ }
10488
+ extern "C" {
10489
+ pub fn ptmSetsExit ( ) ;
10490
+ }
10491
+ extern "C" {
10492
+ pub fn ptmSetsGetSessionHandle ( ) -> * mut Handle ;
10493
+ }
10494
+ extern "C" {
10495
+ pub fn PTMSETS_SetSystemTime ( msY2k : s64 ) -> Result ;
10496
+ }
10403
10497
pub const WAIT_NONE : PXIDEV_WaitType = 0 ;
10404
10498
pub const WAIT_SLEEP : PXIDEV_WaitType = 1 ;
10405
10499
pub const WAIT_IREQ_RETURN : PXIDEV_WaitType = 2 ;
@@ -13543,3 +13637,9 @@ extern "C" {
13543
13637
extern "C" {
13544
13638
pub fn gdbHioDevSystem ( command : * const :: libc:: c_char ) -> :: libc:: c_int ;
13545
13639
}
13640
+ extern "C" {
13641
+ pub static mut __3dslink_host: in_addr ;
13642
+ }
13643
+ extern "C" {
13644
+ pub fn link3dsConnectToHost ( redirStdout : bool , redirStderr : bool ) -> :: libc:: c_int ;
13645
+ }
0 commit comments